Debian Codegraph @

runtime/gdtoa/stdio1.h

raw symbols SCIP
1 /****************************************************************
2 Copyright (C) 1997-1999 Lucent Technologies
3 All Rights Reserved
4
5 Permission to use, copy, modify, and distribute this software and
6 its documentation for any purpose and without fee is hereby
7 granted, provided that the above copyright notice appear in all
8 copies and that both that the copyright notice and this
9 permission notice and warranty disclaimer appear in supporting
10 documentation, and that the name of Lucent or any of its entities
11 not be used in advertising or publicity pertaining to
12 distribution of the software without specific, written prior
13 permission.
14
15 LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
17 IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
18 SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
20 IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
21 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
22 THIS SOFTWARE.
23 ****************************************************************/
24
25 /* stdio1.h -- for using Printf, Fprintf, Sprintf while
26 * retaining the system-supplied printf, fprintf, sprintf.
27 */
28
29 #ifndef STDIO1_H_included
30 #define STDIO1_H_included
31 #ifndef STDIO_H_included /* allow suppressing stdio.h */
32 #include <stdio.h> /* in case it's already included, */
33 #endif /* e.g., by cplex.h */
34
35 #ifdef KR_headers
36 #ifndef _SIZE_T
37 #define _SIZE_T
38 typedef unsigned int size_t;
39 #endif
40 #define ANSI(x) ()
41 #include "varargs.h"
42 #ifndef Char
43 #define Char char
44 #endif
45 #else
46 #define ANSI(x) x
47 #include "stdarg.h"
48 #ifndef Char
49 #define Char void
50 #endif
51 #endif
52
53 #ifndef NO_STDIO1
54 #ifdef _WIN32
55 /* Avoid Microsoft bug that perrror may appear in stdlib.h. */
56 /* It should only be declared in stdio.h. */
57 #include <stdlib.h>
58 #endif
59
60 #ifdef __cplusplus
61 extern "C" {
62 #endif
63
64 extern int Fprintf ANSI((FILE*, const char*, ...));
65 extern int Printf ANSI((const char*, ...));
66 extern int Sprintf ANSI((char*, const char*, ...));
67 extern int Snprintf ANSI((char*, size_t, const char*, ...));
68 extern void Perror ANSI((const char*));
69 extern int Vfprintf ANSI((FILE*, const char*, va_list));
70 extern int Vsprintf ANSI((char*, const char*, va_list));
71 extern int Vsnprintf ANSI((char*, size_t, const char*, va_list));
72
73 #ifdef PF_BUF
74 extern FILE *stderr_ASL;
75 extern void (*pfbuf_print_ASL) ANSI((char*));
76 extern char *pfbuf_ASL;
77 extern void fflush_ASL ANSI((FILE*));
78 #ifdef fflush
79 #define old_fflush_ASL fflush
80 #undef fflush
81 #endif
82 #define fflush fflush_ASL
83 #endif
84
85 #ifdef __cplusplus
86 }
87 #endif
88
89 #undef printf
90 #undef fprintf
91 #undef sprintf
92 #undef perror
93 #undef vfprintf
94 #undef vsprintf
95 #define printf Printf
96 #define fprintf Fprintf
97 #undef snprintf /* for MacOSX */
98 #undef vsnprintf /* for MacOSX */
99 #define snprintf Snprintf
100 #define sprintf Sprintf
101 #define perror Perror
102 #define vfprintf Vfprintf
103 #define vsnprintf Vsnprintf
104 #define vsprintf Vsprintf
105
106 #endif /* NO_STDIO1 */
107
108 #endif /* STDIO1_H_included */