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