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