varargs.h

Go to the documentation of this file.
00001 /*
00002  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
00003  * See the copyright notice in the ACK home directory, in the file "Copyright".
00004  */
00005 /* $Header: /opt/proj/minix/cvsroot/src/commands/aal/varargs.h,v 1.1.1.1 2005/04/21 14:53:58 beng Exp $ */
00006 
00007 #ifndef _VARARGS_H
00008 #define _VARARGS_H
00009 
00010 typedef char *va_list;
00011 # define __va_sz(mode)  (((sizeof(mode) + sizeof(int) - 1) / sizeof(int)) * sizeof(int))
00012 # define va_dcl int va_alist;
00013 # define va_start(list) (list = (char *) &va_alist)
00014 # define va_end(list)
00015 # define va_arg(list,mode) (*((mode *)((list += __va_sz(mode)) - __va_sz(mode))))
00016 #endif /* _VARARGS_H */

Generated on Fri Apr 14 22:56:38 2006 for minix by  doxygen 1.4.6