projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
from scratch, add Berkeley copyright; change to be included by a.out.h
[unix-history]
/
usr
/
src
/
include
/
stdarg.h
diff --git
a/usr/src/include/stdarg.h
b/usr/src/include/stdarg.h
index
2e73811
..
0bd863a
100644
(file)
--- a/
usr/src/include/stdarg.h
+++ b/
usr/src/include/stdarg.h
@@
-4,19
+4,12
@@
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)stdarg.h 5.
4
(Berkeley) %G%
+ * @(#)stdarg.h 5.
6
(Berkeley) %G%
*/
*/
-typedef char *va_list;
+#ifndef _STDARG_H
+#define _STDARG_H
-#define va_arg(ap, type) \
- ((type *)(ap += sizeof(type) < sizeof(int) ? \
- (abort(), 0) : sizeof(type)))[-1]
+#include <machine/stdarg.h>
-#define va_end(ap)
-
-#define __va_promote(type) \
- (((sizeof(type) + sizeof(int) - 1) / sizeof(int)) * sizeof(int))
-
-#define va_start(ap, last) \
- (ap = ((char *)&(last) + __va_promote(last)))
+#endif /* !_STDARG_H */