Debian Codegraph @

COSMIC/HDR/xtdio.h

raw
1 /* xtdio.h:
2 * Authors: Charles E. Campbell, Jr.
3 * Terry McRoberts
4 * Copyright: Copyright (C) 1999-2005 Charles E. Campbell, Jr. {{{1
5 * Permission is hereby granted to use and distribute this code,
6 * with or without modifications, provided that this copyright
7 * notice is copied with it. Like anything else that's free,
8 * sockets.h is provided *as is* and comes with no warranty
9 * of any kind, either expressed or implied. By using this
10 * software, you agree that in no event will the copyright
11 * holder be liable for any damages resulting from the use
12 * of this software.
13 * Date: Aug 22, 2005
14 */
15 #ifndef XTDIO_H
16 #define XTDIO_H
17
18 /* --------------------------------------------------------------------- */
19
20 #ifdef AS400
21 # include <string.h>
22 # include <stdarg.h>
23 # include <stdlib.h>
24 #endif
25
26 #ifdef _AIX
27 # include <string.h>
28 # include <stdarg.h>
29 # include <stdlib.h>
30 #endif
31
32 #ifdef apollo
33 # include <string.h>
34 # include <stdarg.h>
35 # include <stdlib.h>
36 #endif
37
38 #ifdef __CYGWIN__
39 # include <stdlib.h>
40 # include <string.h>
41 #endif
42
43 #ifdef __linux__
44 # include <string.h>
45 # include <stdlib.h>
46 # include <stdio.h>
47 # include <stdarg.h>
48 #endif
49
50 #ifdef _MSC_VER
51 # include <string.h>
52 # include <stdlib.h>
53 # include <stdio.h>
54 # include <stdarg.h>
55 #endif
56
57 #ifdef os2
58 # include <string.h>
59 # include <stdlib.h>
60 # include <stdio.h>
61 # include <stdarg.h>
62 #endif
63
64 #ifdef MSDOS
65 # include <string.h>
66 # include <stdlib.h>
67 # include <stdarg.h>
68 #endif
69
70 /* SCO Unix */
71 #if defined(M_I386) && defined(M_SYSV)
72 # include <stdlib.h>
73 # include <stdarg.h>
74 #endif
75
76 #ifdef __osf__
77 # include <strings.h>
78 # include <stdlib.h>
79 # include <stdarg.h>
80 #endif
81
82 #ifdef sgi
83 # include <strings.h>
84 # include <stdlib.h>
85 # include <stdarg.h>
86 #endif
87
88 #ifdef sun
89 # include <string.h>
90 # ifdef __STDC__
91 # include <stdlib.h>
92 # include <stdarg.h>
93 # else
94 # include "xstdlib.h"
95 # include "varargs.h"
96 # endif
97 #endif
98
99 #ifdef ultrix
100 # include <strings.h>
101 # include "xstdlib.h"
102 # include <varargs.h>
103 #endif
104
105 #ifdef vms
106 # include <string.h>
107 # include <stdlib.h>
108 # include <stdarg.h>
109 #endif
110
111 #ifdef __WIN32__
112 # include <string.h>
113 # include <stdlib.h>
114 # include <stdarg.h>
115 #endif
116
117 #include "rdcolor.h"
118 #include "setproto.h"
119
120 /* ---------------------------------------------------------------------
121 * Definitions:
122 */
123
124 #define XTDIO_SEVERE 0
125 #define XTDIO_ERROR 1
126 #define XTDIO_WARNING 2
127 #define XTDIO_NOTE 3
128
129 /* if your compiler supports prototyping, but does *not* support the keyword
130 * "const", then move the following line out of this comment
131 #define const
132 */
133
134 /* ---------------------------------------------------------------------
135 * Typedefs:
136 */
137
138 /* ---------------------------------------------------------------------
139 * Global Variables:
140 */
141 #ifdef __PROTOTYPE__
142 extern void (*error_exit)(int);
143 #else
144 extern void (*error_exit)();
145 #endif
146
147 /* ---------------------------------------------------------------------
148 * Prototypes:
149 */
150 # ifdef __PROTOTYPE__
151
152 char *cprt(const char); /* cprt.c */
153 void error(int, char *, ...); /* error.c */
154 FILE *fopenv(char *, char *, char *); /* fopenv.c */
155 void outofmem(void *, char *, ...); /* outofmem.c */
156 void rdcolor(void); /* rdcolor.c */
157 void rdcputs(char *, FILE *); /* rdcolor.c */
158 char *sprt(const char *); /* sprt.c */
159 void srmtrblk(char *); /* srmtrblk.c */
160 char *stpblk(char *); /* stpblk.c */
161 char *stpnxt(char *, char *); /* stpnxt.c */
162 char *strnxtfmt(char *); /* strnxtfmt.c */
163
164 # else /* __PROTOTYPE__ */
165
166 extern char *cprt(); /* cprt.c */
167 extern char *stpnxt(); /* stpnxt.c */
168 extern char *stpblk(); /* stpblk.c */
169 extern FILE *fopenv(); /* fopenv.c */
170 extern char *sprt(); /* sprt.c */
171 extern char *strnxtfmt(); /* strnxtfmt.c */
172
173 # endif /* __PROTOTYPE__ */
174
175 #endif