Fix typo in license headers
[oweals/cde.git] / cde / programs / dthelp / parser / pass2 / htag2 / fproto.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 libraries 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: fproto.h /main/3 1995/11/08 10:46:14 rswiston $ */
24 /* Copyright (c) 1988, 1989, 1990 Hewlett-Packard Co. */
25 /* Function prototypes for HP Tag/TeX translator */
26
27
28 int m_lower(
29 #if defined(M_PROTO)
30   int c
31 #endif
32   ) ;
33
34 void options(
35 #if defined(M_PROTO)
36   LOGICAL filelenonly
37 #endif
38   ) ;
39
40 void setopt(
41 #if defined(M_PROTO)
42   char *string, LOGICAL filelenonly
43 #endif
44   ) ;
45
46 LOGICAL setvalopt(
47 #if defined(M_PROTO)
48   int thisopt, char *string, LOGICAL filelenonly
49 #endif
50   ) ;
51
52 char *strstr(
53 #if defined(M_PROTO)
54   const char *s1, const char *s2
55 #endif
56   ) ;
57
58 int m_upper(
59 #if defined(M_PROTO)
60   int c
61 #endif
62   ) ;
63
64 char *MakeMByteString(
65 #if defined(M_PROTO)
66   const M_WCHAR *from
67 #endif
68   );
69
70 M_WCHAR *MakeWideCharString(
71 #if defined(M_PROTO)
72   const char *from
73 #endif
74   );
75
76 void PutString(
77 #if defined(M_PROTO)
78   char *string
79 #endif
80   ) ;
81
82 void PutWString(
83 #if defined(M_PROTO)
84   M_WCHAR *string
85 #endif
86   ) ;
87
88 void PutWChar(
89 #if defined(M_PROTO)
90   M_WCHAR wchar
91 #endif
92   ) ;
93
94 void SaveWChar(
95 #if defined(M_PROTO)
96   M_WCHAR wchar
97 #endif
98   ) ;
99
100 void OpenTag(
101 #if defined(M_PROTO)
102   LOGICAL hasAttributes,
103   LOGICAL newlineOK
104 #endif
105   ) ;
106
107 void CloseTag(
108 #if defined(M_PROTO)
109   LOGICAL newlineOK
110 #endif
111   ) ;
112
113 void ImpliedlAttribute(
114 #if defined(M_PROTO)
115   char    *name,
116   M_WCHAR *value
117 #endif
118   ) ;
119
120 void RequiredAttribute(
121 #if defined(M_PROTO)
122   char    *name,
123   M_WCHAR *value
124 #endif
125   ) ;
126
127 M_WCHAR *CopyWString(
128 #if defined(M_PROTO)
129   M_WCHAR *string
130 #endif
131   ) ;
132
133 void MakeNewElement(
134 #if defined(M_PROTO)
135   ElementTypes type
136 #endif
137   ) ;
138
139 void DeleteElement(
140 #if defined(M_PROTO)
141   ElementPtr pElement
142 #endif
143   ) ;
144
145 void OptimizeAndEmit(
146 #if defined(M_PROTO)
147   ElementPtr pVirpage
148 #endif
149   ) ;
150
151 void PushCurrentElement(
152 #if defined(M_PROTO)
153   M_NOPAR
154 #endif
155   ) ;
156
157 void PopCurrentElement(
158 #if defined(M_PROTO)
159   M_NOPAR
160 #endif
161   ) ;
162
163 char *mb_realloc(
164 #if defined(M_PROTO)
165     char *ptr, long size
166 #endif
167   );
168
169 char *mb_malloc(
170 #if defined(M_PROTO)
171     long size
172 #endif
173   );
174
175 void mb_free(
176 #if defined(M_PROTO)
177     char **pptr
178 #endif
179   );
180
181 void EmitSDL(
182 #if defined(M_PROTO)
183   ElementPtr pVirpage
184 #endif
185   ) ;
186
187 int OpenFile(
188 #if defined(M_PROTO)
189   char *name, int type, int code
190 #endif
191   ) ;
192
193 int ReadFile(
194 #if defined(M_PROTO)
195   int fd, char *name, char *buffer, int amount, int code
196 #endif
197   ) ;
198
199 int WriteFile(
200 #if defined(M_PROTO)
201   int fd, char *name, char *buffer, int amount, int code
202 #endif
203   ) ;
204
205 int FileExists(
206 #if defined(M_PROTO)
207   char *name
208 #endif
209   ) ;
210
211 void AssertFileIsReadable(
212 #if defined(M_PROTO)
213   char *name, int code
214 #endif
215   ) ;
216
217 int FileSize(
218 #if defined(M_PROTO)
219   char *name, int code
220 #endif
221   ) ;
222
223 void CloseFile(
224 #if defined(M_PROTO)
225   int fd, char *name, int code
226 #endif
227   ) ;
228
229 FILE *FopenFile(
230 #if defined(M_PROTO)
231   char *name, int type, int code
232 #endif
233   ) ;
234
235 int GetALine(
236 #if defined(M_PROTO)
237   FILE *file, char *name, char *line, int max, int code
238 #endif
239   ) ;
240
241 int FreadFile(
242 #if defined(M_PROTO)
243   FILE *file, char *name, char *buffer, int amount, int code
244 #endif
245   ) ;
246
247 void FwriteFile(
248 #if defined(M_PROTO)
249   FILE *file, char *name, char *buffer, size_t amount, int code
250 #endif
251   ) ;
252
253 void FcloseFile(
254 #if defined(M_PROTO)
255   FILE *file, char *name, int code
256 #endif
257   ) ;
258
259 int StringToUpper(
260 #if defined(M_PROTO)
261   char *string
262 #endif
263   ) ;
264
265 void BuildIndex(
266 #if defined(M_PROTO)
267   M_NOPAR
268 #endif
269   ) ;
270
271 void OpenDocument(
272 #if defined(M_PROTO)
273   M_NOPAR
274 #endif
275   ) ;
276
277 void CloseDocument(
278 #if defined(M_PROTO)
279   M_NOPAR
280 #endif
281   ) ;
282
283 void UpdateTossFileName(
284 #if defined(M_PROTO)
285   M_NOPAR
286 #endif
287   ) ;
288
289 void SetLocale(
290 #if defined(M_PROTO)
291   M_WCHAR *pLang, M_WCHAR *pCharset
292 #endif
293   ) ;