source: trunk/minix/commands/aal/varargs.h@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 621 bytes
Line 
1/*
2 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 * See the copyright notice in the ACK home directory, in the file "Copyright".
4 */
5/* $Header: /cvsup/minix/src/commands/aal/varargs.h,v 1.1.1.1 2005/04/21 14:53:58 beng Exp $ */
6
7#ifndef _VARARGS_H
8#define _VARARGS_H
9
10typedef char *va_list;
11# define __va_sz(mode) (((sizeof(mode) + sizeof(int) - 1) / sizeof(int)) * sizeof(int))
12# define va_dcl int va_alist;
13# define va_start(list) (list = (char *) &va_alist)
14# define va_end(list)
15# define va_arg(list,mode) (*((mode *)((list += __va_sz(mode)) - __va_sz(mode))))
16#endif /* _VARARGS_H */
Note: See TracBrowser for help on using the repository browser.