home *** CD-ROM | disk | FTP | other *** search
- #if !defined(__GNUC__) && !defined(__GNUG__)
- /* Use the system's macros with the system's compiler. */
- #include <varargs.h>
- #else
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- /* These macros implement traditional (non-ANSI) varargs
- for GNU C. */
-
- #define va_alist _varargs
- #define va_dcl int _varargs;
- #define va_list char *
-
- #define va_count(count) vaxc$va_count(&count)
-
- #define va_start(AP) AP=(char *) &_varargs
- #define va_end(AP)
-
- #define _va_rounded_size(TYPE) \
- (((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int))
-
- #define va_arg(AP, TYPE) \
- (AP += _va_rounded_size (TYPE), \
- *((TYPE *) (AP - _va_rounded_size (TYPE))))
-
- #ifdef __cplusplus
- }
- #endif
- #endif
-