/usr/share/z88dk/include/stdarg.h is in z88dk-data 1.8.ds1-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 47 | /*
* A nice old stdarg.h
*
* djm 28/2/2000
*
* Will this work? Who knows!
*
* NB. va_start must be called immediately after calling
* the function - i.e. no auto variables can be initialised
* (except to constants)
*
* NB2. The first call to va_next returns with the value
* of the first named argument, the 2nd call returns the
* value of the 2nd named argument etc etc
*
* I've only tested this with 2 byte arguments but it
* seems to work...
*
* $Id: stdarg.h,v 1.3 2001/10/16 18:30:32 dom Exp $
*/
#ifndef __STDARG_H__
#define __STDARG_H__
#ifndef DEF_GETARG
#define DEF_GETARG
extern int __LIB__ getarg(void);
#endif
#define va_list unsigned char *
#define va_start(ap,last) ap=(getarg()*2)+&last-2
#define va_arg(ap,type) (type *)*(ap-=sizeof(type))
#define va_end(ap)
/*
* This (non-standard) macro could be used by routines
* with a similar setup to the library printf routines
*/
#define va_addr(ap,type) (ap-=sizeof(type))
#endif /* _STDARG_H */
|