1 /*-------------------------------------------------------------------------
2 stdarg.h - ANSI macros for variable parameter list
4 Ported to PIC16 port by Vangelis Rokas, 2004 (vrokas@otenet.gr)
6 Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998)
8 This program is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 2, or (at your option) any
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 In other words, you are welcome to use, share and improve this program.
23 You are forbidden to forbid anyone else to use, share and improve
24 what you give them. Help stamp out software-hoarding!
25 -------------------------------------------------------------------------*/
32 #ifndef __PIC16_STDARG_H
33 #define __PIC16_STDARG_H 1
35 typedef unsigned char * va_list;
36 #define va_start(list, last) list = (unsigned char *)&last + sizeof(last)
37 #define va_arg(list, type) *((type *)((list += sizeof(type)) - sizeof(type)))
38 #define va_end(list) list = ((va_list) 0)
40 #endif /* __PIC16_STDARG_H */