]> pd.if.org Git - pdclib/blobdiff - includes/stdarg.h
Moved the includes into subdirectory (again). Teaches you to decide on a proper layou...
[pdclib] / includes / stdarg.h
index ab5529aa2b3527d108f8caebf90cc2b86fca93f5..7558131fbb28e3404a258f1e3eb23ae3fd93a0d6 100644 (file)
@@ -1,15 +1,27 @@
-// ----------------------------------------------------------------------------
-// $Id$
-// ----------------------------------------------------------------------------
-// Public Domain C Library - http://pdclib.sourceforge.net
-// This code is Public Domain. Use, modify, and redistribute at will.
-// ----------------------------------------------------------------------------
-// TODO
-// ----------------------------------------------------------------------------
+/* $Id$ */
 
-#ifndef __STDARG_H
-#define __STDARG_H __STDARG_H
+/* Release $Name$ */
 
-// TODO
+/* 7.15 Variable arguments <stdarg.h> 
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#ifndef _PDCLIB_STDARG_H
+#define _PDCLIB_STDARG_H _PDCLIB_STDARG_H
+
+#ifndef _PDCLIB_CONFIG_H
+#define _PDCLIB_CONFIG_H _PDCLIB_CONFIG_H
+#include <_PDCLIB_config.h>
+#endif
+
+typedef _PDCLIB_va_list va_list;
+
+#define va_arg( ap, type )    _PDCLIB_va_arg( ap, type )
+#define va_copy( dest, src )  _PDCLIB_va_copy( dest, src )
+#define va_end( ap )          _PDCLIB_va_end( ap )
+#define va_start( ap, parmN ) _PDCLIB_va_start( ap, parmN )
+
+#endif
 
-#endif // __STDARG_H