Added varargs.h
This commit is contained in:
parent
ecaea97a99
commit
d7b7427431
2 changed files with 13 additions and 0 deletions
|
@ -4,4 +4,5 @@ stdio.h
|
|||
assert.h
|
||||
termio.h
|
||||
sgtty.h
|
||||
varargs.h
|
||||
sys
|
||||
|
|
12
include/_tail_cc/varargs.h
Normal file
12
include/_tail_cc/varargs.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||
*/
|
||||
/* $Header$ */
|
||||
|
||||
typedef char *va_list;
|
||||
# define __va_sz(mode) (((sizeof(mode) + sizeof(int) - 1) / sizeof(int)) * sizeof(int))
|
||||
# define va_dcl int va_alist;
|
||||
# define va_start(list) (list = (char *) &va_alist)
|
||||
# define va_end(list)
|
||||
# define va_arg(list,mode) (*((mode *)((list += __va_sz(mode)) - __va_sz(mode))))
|
Loading…
Reference in a new issue