Imported Upstream version 2.9.0
[debian/cc1111] / device / include / pic16 / stdarg.h
1 /*-------------------------------------------------------------------------
2   stdarg.h - ANSI macros for variable parameter list
3
4    Ported to PIC16 port by Vangelis Rokas, 2004 (vrokas@otenet.gr)
5    
6              Written By -  Sandeep Dutta . sandeep.dutta@usa.net (1998)
7
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
11    later version.
12
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.
17
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.
21
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 -------------------------------------------------------------------------*/
26
27 /*
28 ** $Id: stdarg.h 3522 2004-10-03 12:12:40Z vrokas $
29 */
30
31
32 #ifndef __PIC16_STDARG_H
33 #define __PIC16_STDARG_H 1
34
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)
39
40 #endif  /* __PIC16_STDARG_H */