Merge branch 'linux1'
[oweals/cde.git] / cde / programs / dthelp / parser / pass2 / eltdef / proto.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: proto.h /main/3 1995/11/08 10:45:25 rswiston $ */
24 /*
25                    Copyright (c) 1988, 1989 Hewlett-Packard Co.
26 */
27
28 /* Proto.h contains function prototypes for program ELTDEF. */
29
30
31 void actptrout(
32 #if defined(M_PROTO)
33   ACTION **array, char *name
34 #endif
35   ) ;
36
37 void addent(
38 #if defined(M_PROTO)
39   M_NOPAR
40 #endif
41   ) ;
42
43 LOGICAL m_allwhite(
44 #if defined(M_PROTO)
45   const M_WCHAR *string
46 #endif
47   ) ;
48
49 void closeiffile(
50 #if defined(M_PROTO)
51   LOGICAL flag, FILE *file, int count, char *table, char *proto
52 #endif
53   ) ;
54
55 void countdown(
56 #if defined(M_PROTO)
57   M_TRIE *parent, int *count
58 #endif
59   ) ;
60
61 void cvalue(
62 #if defined(M_PROTO)
63   M_NOPAR
64 #endif
65   ) ;
66
67
68 void done(
69 #if defined(M_PROTO)
70   M_NOPAR
71 #endif
72   ) ;
73
74 void m_dumptrie(
75 #if defined(M_PROTO)
76   FILE *file,
77   M_TRIE *xtrie,
78   char *extname,
79   int *count,
80   void (*proc)(M_ENTITY *)
81 #endif
82   ) ;
83
84 void endcode(
85 #if defined(M_PROTO)
86   LOGICAL flag, FILE *file
87 #endif
88   ) ;
89
90 void endini(
91 #if defined(M_PROTO)
92   M_NOPAR
93 #endif
94   ) ;
95
96 void endsignon(
97 #if defined(M_PROTO)
98   M_NOPAR
99 #endif
100   ) ;
101
102 void endstring(
103 #if defined(M_PROTO)
104   M_NOPAR
105 #endif
106   ) ;
107
108 void entout(
109 #if defined(M_PROTO)
110   char *fname
111 #endif
112   ) ;
113
114 void enttype(
115 #if defined(M_PROTO)
116   int type
117 #endif
118   ) ;
119
120 void m_error(
121 #if defined(M_PROTO)
122   char *text
123 #endif
124   ) ;
125
126 void m_err1(
127 #if defined(M_PROTO)
128   const char *text, const M_WCHAR *arg
129 #endif
130   ) ;
131
132 void m_mberr1(
133 #if defined(M_PROTO)
134   char *text, const char *arg
135 #endif
136   ) ;
137
138 void m_err2(
139 #if defined(M_PROTO)
140   const char *text, const M_WCHAR *arg1, const M_WCHAR *arg2
141 #endif
142   ) ;
143
144 void m_err3(
145 #if defined(M_PROTO)
146   char *text, M_WCHAR *arg1, M_WCHAR *arg2, M_WCHAR *arg3
147 #endif
148   ) ;
149
150 void m_err5(
151 #if defined(M_PROTO)
152   char *text,
153   M_WCHAR *arg1, M_WCHAR *arg2, M_WCHAR *arg3, M_WCHAR *arg4, M_WCHAR *arg5
154 #endif
155   ) ;
156
157 void m_exit(
158 #if defined(M_PROTO)
159   int status
160 #endif
161   ) ;
162
163 void m_free(
164 #if defined(M_PROTO)
165   void *block, char *msg
166 #endif
167   ) ;
168
169 void freechain(
170 #if defined(M_PROTO)
171   M_NOPAR
172 #endif
173   ) ;
174
175 int getachar(
176 #if defined(M_PROTO)
177   M_NOPAR
178 #endif
179   ) ;
180
181 int *getaction(
182 #if defined(M_PROTO)
183   ACTION **array
184 #endif
185   ) ;
186
187 ACTION *getactstruct(
188 #if defined(M_PROTO)
189   M_NOPAR
190 #endif
191   ) ;
192
193 void getname(
194 #if defined(M_PROTO)
195   int first
196 #endif
197   ) ;
198
199 int gettoken(
200 #if defined(M_PROTO)
201   int *c, int context
202 #endif
203   ) ;
204
205 void m_initctype(
206 #if defined(M_PROTO)
207   M_NOPAR
208 #endif
209   ) ;
210
211 void initialize(
212 #if defined(M_PROTO)
213   M_NOPAR
214 #endif
215   ) ;
216
217 LOGICAL m_letter(
218 #if defined(M_PROTO)
219   M_WCHAR c
220 #endif
221   ) ;
222
223 LOGICAL litproc(
224 #if defined(M_PROTO)
225   int delim
226 #endif
227   ) ;
228
229 void main(
230 #if defined(M_PROTO)
231   int argc, char **argv
232 #endif
233   ) ;
234
235 void *m_malloc(
236 #if defined(M_PROTO)
237   int size, char *msg
238 #endif
239   ) ;
240
241 void m_openchk(
242 #if defined(M_PROTO)
243   FILE **ptr, char *name, char *mode
244 #endif
245   ) ;
246
247 void outpval(
248 #if defined(M_PROTO)
249   M_TRIE *p
250 #endif
251   ) ;
252
253 void outstring(
254 #if defined(M_PROTO)
255   M_NOPAR
256 #endif
257   ) ;
258
259 int m_packedlook(
260 #if defined(M_PROTO)
261   M_PTRIE *xptrie, M_WCHAR *name
262 #endif
263   ) ;
264
265 const M_WCHAR *m_partype(
266 #if defined(M_PROTO)
267   const int par, const M_WCHAR *string
268 #endif
269   ) ;
270
271 int scan(
272 #if defined(M_PROTO)
273   M_NOPAR
274 #endif
275   ) ;
276
277 void skiptoend(
278 #if defined(M_PROTO)
279   M_NOPAR
280 #endif
281   ) ;
282
283 void startcode(
284 #if defined(M_PROTO)
285   int caseno, LOGICAL *flag, FILE *file, char *prefix, char *proto,
286   char *formal, char *formtype
287 #endif
288   ) ;
289
290 void startelement(
291 #if defined(M_PROTO)
292   M_NOPAR
293 #endif
294   ) ;
295
296 void storecvar(
297 #if defined(M_PROTO)
298   M_NOPAR
299 #endif
300   ) ;
301
302 void storepname(
303 #if defined(M_PROTO)
304   M_NOPAR
305 #endif
306   ) ;
307
308 void undodelim(
309 #if defined(M_PROTO)
310   M_WCHAR *delim
311 #endif
312   ) ;
313
314 void ungetachar(
315 #if defined(M_PROTO)
316   int c
317 #endif
318   ) ;
319
320 int m_wcupstrcmp(
321 #if defined(M_PROTO)
322   const M_WCHAR *p, const M_WCHAR *q
323 #endif
324   ) ;
325
326 int m_wcmbupstrcmp(
327 #if defined(M_PROTO)
328   const M_WCHAR *p, const char *q
329 #endif
330   ) ;
331
332 int m_mbmbupstrcmp(
333 #if defined(M_PROTO)
334   const char *p, const char *q
335 #endif
336   ) ;
337
338 void value(
339 #if defined(M_PROTO)
340   M_WCHAR *p
341 #endif
342   ) ;
343
344 void warning(
345 #if defined(M_PROTO)
346   char *text
347 #endif
348   ) ;
349
350 void warning1(
351 #if defined(M_PROTO)
352   char *text, M_WCHAR *arg
353 #endif
354   ) ;
355
356 LOGICAL m_whitespace(
357 #if defined(M_PROTO)
358   M_WCHAR c
359 #endif
360   ) ;
361