Move the sources to trunk
[opencv] / apps / Hawk / CVEiCL / EiC / src / ppc403 / include / eic.h
1 /* eic.h\r
2  *\r
3  *      (C) Copyright May  7 1995, Edmond J. Breen.\r
4  *                 ALL RIGHTS RESERVED.\r
5  * This code may be copied for personal, non-profit use only.\r
6  *\r
7  */\r
8 #ifndef EICH_\r
9 #define EICH_\r
10 \r
11 #define _need_eic_ptr\r
12 \r
13 #include "sys/types.h"\r
14 \r
15 #undef _need_eic_ptr\r
16 \r
17 \r
18 #include "eicval.h"\r
19 \r
20 \r
21 void *add_builtinfunc(char *name, val_t(*vfunc) ());\r
22 void startEiC(int argc, char ** argv);\r
23 void init_EiC(void);\r
24 \r
25 extern AR_t * AR[3];\r
26 extern size_t ARGC;\r
27 \r
28 #define arg_list                  AR_t *\r
29 #define getargc()                 ARGC\r
30 #define getargs()                 AR[2]\r
31 #define nextarg(x,type)           (*((type*)&(--x)->v))\r
32 #define arg(i,x,type)             (*((type*)&x[-(i+1)].v))\r
33 \r
34 #define malloc(x)       xmalloc(x)\r
35 #define calloc(x,y)     xcalloc(x,y)\r
36 #define free(x)         xfree(x)\r
37 #define realloc(x,y)    xrealloc(x,y)\r
38 \r
39 \r
40 #endif /* EICH_ */\r
41 \r
42 \r
43 \r
44 \r
45 \r
46 \r
47 \r
48 \r
49 \r
50 \r
51 \r
52 \r
53 \r
54 \r