]> git.gag.com Git - fw/sdcc/blob - device/include/stdio.h
fixed the ds390/*.lib files
[fw/sdcc] / device / include / stdio.h
1 /*-------------------------------------------------------------------------
2   stdio.h - ANSI functions forward declarations
3  
4              Written By -  Sandeep Dutta . sandeep.dutta@usa.net (1998)
5
6    This program is free software; you can redistribute it and/or modify it
7    under the terms of the GNU General Public License as published by the
8    Free Software Foundation; either version 2, or (at your option) any
9    later version.
10    
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15    
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19    
20    In other words, you are welcome to use, share and improve this program.
21    You are forbidden to forbid anyone else to use, share and improve
22    what you give them.   Help stamp out software-hoarding!  
23 -------------------------------------------------------------------------*/
24
25 #ifndef __SDC51_STDIO_H
26 #define __SDC51_STDIO_H 1
27
28 #include <stdarg.h>
29
30 #ifdef SDCC_MODEL_FLAT24
31 #ifndef TINIBIOS_H
32 #include <tinibios.h>
33 #endif TINIBIOS_H
34 #endif
35
36 #if defined(SDCC_MODEL_LARGE) || defined(SDCC_MODEL_FLAT24)
37 #define XSPEC xdata
38 #else
39 #define XSPEC
40 #endif
41
42 extern printf_small (char *,...) reentrant;
43 extern printf (XSPEC const char *,...) reentrant;
44 extern int vprintf (const char *, va_list);
45 extern int sprintf (const char *, XSPEC const char *, ...) reentrant;
46 extern int vsprintf (const char *, const char *, va_list);
47 extern int puts(const char *);
48 extern char *gets(char *);
49 extern char getchar(void);
50 extern void putchar(char);
51 #endif
52
53
54
55
56
57