X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstdarg.h;h=7558131fbb28e3404a258f1e3eb23ae3fd93a0d6;hb=e25ac2ecee6251afcec84e08165e454fb6bc256c;hp=6afedec46d83f1702465a1bbb06584764f97129d;hpb=ad2651a3d8a2e2ae70a5ad882518ef346ab1bc7b;p=pdclib diff --git a/includes/stdarg.h b/includes/stdarg.h index 6afedec..7558131 100644 --- a/includes/stdarg.h +++ b/includes/stdarg.h @@ -1,26 +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$ */ -// ---------------------------------------------------------------------------- -// TYPEDEFS +/* 7.15 Variable arguments -typedef do-type va_list; + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ -// ---------------------------------------------------------------------------- -// MACROS +#ifndef _PDCLIB_STDARG_H +#define _PDCLIB_STDARG_H _PDCLIB_STDARG_H -#define va_arg( va_list ap, Ty ) // TODO -#define va_copy( va_list dest, va_list src ) // TODO -#define va_end( va_list ap ) // TODO -#define va_start( va_list ap, last-par ) // TODO +#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