X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstdarg.h;h=a25602b7db9a9c3d3739b6bde8becb7139e40104;hb=b1fc26afebd4d557ff89a44bc21767a8704c3809;hp=4c40142d1f05ec7f7a59dbd97197213c5375ee06;hpb=54a2869bd13882c5e3b2417569709cd490cfcf3f;p=pdclib diff --git a/includes/stdarg.h b/includes/stdarg.h index 4c40142..a25602b 100644 --- a/includes/stdarg.h +++ b/includes/stdarg.h @@ -1,32 +1,20 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- -// Variable arguments -// ---------------------------------------------------------------------------- +/* Variable arguments -#ifndef __STDARG_H -#define __STDARG_H __STDARG_H + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ -// ---------------------------------------------------------------------------- -// TYPEDEFS +#ifndef _PDCLIB_STDARG_H +#define _PDCLIB_STDARG_H _PDCLIB_STDARG_H -typedef do-type va_list; +#include <_PDCLIB_config.h> -// ---------------------------------------------------------------------------- -// MACROS +typedef _PDCLIB_va_list va_list; -#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 +#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 ) -/* PDPC code - unreviewed -#define va_start(ap, parmN) ap = (char *)&parmN + 4 -#define va_arg(ap, type) *(type *)(ap += sizeof(type), ap - sizeof(type)) -#define va_end(ap) ap = 0 -*/ +#endif -#endif // __STDARG_H