File: xtdio.h

package info (click to toggle)
robotour 3.1.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,596 kB
  • ctags: 2,972
  • sloc: cpp: 17,705; sh: 3,060; ansic: 2,778; makefile: 144
file content (158 lines) | stat: -rwxr-xr-x 3,672 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/* xtdio.h: */
#ifndef XTDIO_H
#define XTDIO_H

/* --------------------------------------------------------------------- */

#ifdef AS400
# include <string.h>
# include <stdarg.h>
# include <stdlib.h>
#endif

#ifdef _AIX
# include <string.h>
# include <stdarg.h>
# include <stdlib.h>
#endif

#ifdef apollo
# include <string.h>
# include <stdarg.h>
# include <stdlib.h>
#endif

#ifdef __UNIX__
# include <strings.h>
# include <stdlib.h>
# include <stdio.h>
# include <stdarg.h>
#endif

#ifdef _MSC_VER
# include <string.h>
# include <stdlib.h>
# include <stdio.h>
# include <stdarg.h>
#endif

#ifdef os2
# include <string.h>
# include <stdlib.h>
# include <stdio.h>
# include <stdarg.h>
#endif

#ifdef MSDOS
# include <string.h>
# include <stdlib.h>
# include <stdarg.h>
#endif

/* SCO Unix */
#if defined(M_I386) && defined(M_SYSV)
# include <stdlib.h>
# include <stdarg.h>
#endif

#ifdef __osf__
# include <strings.h>
# include <stdlib.h>
# include <stdarg.h>
#endif

#ifdef sgi
# include <strings.h>
# include <stdlib.h>
# include <stdarg.h>
#endif

#ifdef sun
# include <string.h>
# ifdef __STDC__
#  include <stdlib.h>
#  include <stdarg.h>
# else
#  include "xstdlib.h"
#  include "varargs.h"
# endif
#endif

#ifdef ultrix
# include <strings.h>
# include "xstdlib.h"
# include <varargs.h>
#endif

#ifdef vms
# include <string.h>
# include <stdlib.h>
# include <stdarg.h>
#endif

#ifdef __WIN32__
# include <string.h>
# include <stdlib.h>
# include <stdarg.h>
# include <stdio.h>
#endif

#include "rdcolor.h"
#include "setproto.h"

/* ---------------------------------------------------------------------
 * Definitions:
 */

#define XTDIO_SEVERE     0
#define XTDIO_ERROR      1
#define XTDIO_WARNING    2
#define XTDIO_NOTE       3

/* if your compiler supports prototyping, but does *not* support the keyword
 * "const", then move the following line out of this comment
#define const
 */

/* ---------------------------------------------------------------------
 * Typedefs:
 */

/* ---------------------------------------------------------------------
 * Global Variables:
 */
#ifdef __PROTOTYPE__
extern void (*error_exit)(int);
#else
extern void (*error_exit)();
#endif

/* ---------------------------------------------------------------------
 * Prototypes:
 */
# ifdef __PROTOTYPE__

char *cprt(const char);                                /* cprt.c          */
void error(int, char *, ...);                          /* error.c         */
FILE *fopenv(char *, char *, char *);                  /* fopenv.c        */
void outofmem(void *, char *, ...);                    /* outofmem.c      */
void rdcolor(void);                                    /* rdcolor.c       */
void rdcputs(char *, FILE *);                          /* rdcolor.c       */
char *sprt(const char *);                              /* sprt.c          */
void srmtrblk(char *);                                 /* srmtrblk.c      */
char *stpblk(char *);                                  /* stpblk.c        */
char *stpnxt(char *, char *);                          /* stpnxt.c        */
char *strnxtfmt(char *);                               /* strnxtfmt.c     */

# else  /* __PROTOTYPE__ */

extern char *cprt();                                   /* cprt.c          */
extern char *stpnxt();                                 /* stpnxt.c        */
extern char *stpblk();                                 /* stpblk.c        */
extern FILE *fopenv();                                 /* fopenv.c        */
extern char *sprt();                                   /* sprt.c          */
extern char *strnxtfmt();                              /* strnxtfmt.c     */

# endif /* __PROTOTYPE__ */

#endif