File: MiniBox.h

package info (click to toggle)
psychtoolbox-3 3.0.14.20170103%2Bgit6-g605ff5c.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 103,044 kB
  • ctags: 69,483
  • sloc: ansic: 167,371; cpp: 11,232; objc: 4,708; sh: 1,875; python: 383; php: 344; makefile: 207; java: 113
file content (46 lines) | stat: -rwxr-xr-x 1,466 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* 
  MiniBox.h
  
  AUTHORS:
  Allen Ingling		awi		Allen.W.Ingling@nyu.edu  

  
  PLATFORMS: 
  11/25/01	awi		MacOS 9
  11/25/01	awi		Windows

  HISTORY:
  11/25/01	awi		Created file.
  07/16/02  awi     Included PsychConstants.h and added include once.  
  3/19/10		mk		Cosmetic and make 64-bit clean.

*/

//begin include once 
#ifndef PSYCH_IS_INCLUDED_MiniBox
#define PSYCH_IS_INCLUDED_MiniBox

#include "Psych.h"

//define mex-derived data types.
//typedef	const mxArray	CONSTmxArray;
#if PSYCH_LANGUAGE == PSYCH_MATLAB
typedef void (*MexFunctionPtr)(int nlhs, mxArray *plhs[], int nrhs, CONSTmxArray *prhs[]);
#endif

extern int PrintfExit(const char *format,...);
char *BreakLines(char *string,long lineLength);
psych_bool PsychMatch(char *s1,char *s2);
char *int2str(psych_int64 num);
size_t PsychIndexElementFrom2DArray(size_t mDim/*|Y|*/, size_t nDim/*|X|*/, size_t m/*y*/, size_t n/*x*/);
size_t PsychIndexElementFrom3DArray(size_t mDim/*|Y|*/, size_t nDim/*|X|*/, size_t pDim/*|Z|*/, size_t m/*y*/, size_t n/*x*/, size_t p/*z*/);
size_t PsychIndexPlaneFrom3DArray(size_t mDim, size_t nDim, size_t pDim, size_t planeIndex);
psych_int64 maxInt(psych_int64 a, psych_int64 b);  //might be better to define max as a macro...
psych_bool PsychIsIntegerInDouble(double *value);
psych_bool PsychIsInteger64InDouble(double *value);

psych_bool PsychIsPsychMatchCaseSensitive(void);
void PsychSetPsychMatchCaseSenstive(psych_bool arg);

//end include once
#endif