Update the changelog
[opencv] / apps / Hawk / CVEiCL / EiC / module / stdClib / src / stdarg.c
1 /* stdarg.c
2  *
3  *      (C) Copyright Dec 20 1998, Edmond J. Breen.
4  *                 ALL RIGHTS RESERVED.
5  * This code may be copied for personal, non-profit use only.
6  *
7  */
8
9
10 #ifndef NO_STDARG
11
12 #include <stdlib.h>
13 #include "eic.h"
14 #include "stdliblocal.h"
15
16
17 /*  STDARG.H STUFF */
18
19 val_t _StArT_Va(void)
20 {
21     val_t v;
22     getptrarg(0,v.p);
23     v.p.ep = v.p.p;
24     v.p.sp = (char*)v.p.p - 256 * sizeof(val_t);
25     return v;
26 }
27
28 val_t _get_AR_t_size(void)
29 {
30     val_t v;
31     v.ival = sizeof(AR_t);
32     return v;
33 }
34
35 #endif
36
37
38 /************************************************/
39
40 void module_stdarg()
41 {
42 #ifndef NO_STDARG
43
44     /* STDARG.H STUFF */
45     EiC_add_builtinfunc("_get_AR_t_size",_get_AR_t_size);
46     EiC_add_builtinfunc("_StArT_Va",_StArT_Va);
47
48 #endif
49 }
50
51
52
53
54
55
56
57