|
Last change
on this file since 41 was 18, checked in by bird, 23 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
524 bytes
|
| Line | |
|---|
| 1 | /* stdarg.h (emx+gcc) */
|
|---|
| 2 |
|
|---|
| 3 | #ifndef _STDARG_H
|
|---|
| 4 | #define _STDARG_H
|
|---|
| 5 |
|
|---|
| 6 | #if !defined (_VA_LIST)
|
|---|
| 7 | #define _VA_LIST
|
|---|
| 8 | typedef char *va_list;
|
|---|
| 9 | #endif
|
|---|
| 10 |
|
|---|
| 11 | #define _VA_ROUND(t) ((sizeof (t) + 3) & -4)
|
|---|
| 12 |
|
|---|
| 13 | #if !defined (va_start)
|
|---|
| 14 | #define va_start(ap,v) ap = (va_list)&v + ((sizeof (v) + 3) & -4)
|
|---|
| 15 | #define va_end(ap) (ap = 0, (void)0)
|
|---|
| 16 | #define __std_va_arg(ap,t) (ap += _VA_ROUND (t), *(t *)(ap - _VA_ROUND (t)))
|
|---|
| 17 | #endif
|
|---|
| 18 |
|
|---|
| 19 | #ifdef __BOUNDS_CHECKING_ON
|
|---|
| 20 | #include <fix-args.h>
|
|---|
| 21 | #else
|
|---|
| 22 | #define va_arg(ap,t) __std_va_arg(ap,t)
|
|---|
| 23 | #endif
|
|---|
| 24 |
|
|---|
| 25 | #endif /* not _STDARG_H */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.