Subversion Repositories tendra.SVN

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 7
Line 116... Line 116...
116
/* FS_STDARG indicates whether the compiler has <stdarg.h> */
116
/* FS_STDARG indicates whether the compiler has <stdarg.h> */
117
 
117
 
118
#ifndef FS_STDARG
118
#ifndef FS_STDARG
119
#define FS_STDARG		FS_STDC
119
#define FS_STDARG		FS_STDC
120
#endif
120
#endif
121
 
-
 
122
 
-
 
123
/* Definitions of PROTO macros for weak prototypes */
-
 
124
 
-
 
125
#if FS_WEAK_PROTOTYPES
-
 
126
#ifndef PROTO_S
-
 
127
#pragma TenDRA keyword KW_WEAK_PROTOTYPE for weak
-
 
128
#define PROTO_S( types )	KW_WEAK_PROTOTYPE types
-
 
129
#define PROTO_N( names )	names
-
 
130
#define PROTO_T( params )	params ;
-
 
131
#define PROTO_Z()		()
-
 
132
#define PROTO_X			;
-
 
133
#endif
-
 
134
#endif
-
 
135
 
-
 
136
 
-
 
137
/* Definitions of PROTO macros for prototypes */
-
 
138
 
-
 
139
#if FS_PROTOTYPES
-
 
140
#ifndef PROTO_S
-
 
141
#define PROTO_S( types )	types
-
 
142
#define PROTO_N( names )
-
 
143
#define PROTO_T( params )	( params )
-
 
144
#define PROTO_Z()		( void )
-
 
145
#define PROTO_X			,
-
 
146
#endif
-
 
147
#endif
-
 
148
 
-
 
149
 
-
 
150
/* Definitions of PROTO macros for non-prototypes */
-
 
151
 
-
 
152
#ifndef PROTO_S
-
 
153
#define PROTO_S( types )	()
-
 
154
#define PROTO_N( names )	names
-
 
155
#define PROTO_T( params )	params ;
-
 
156
#define PROTO_Z()		()
-
 
157
#define PROTO_X			;
-
 
158
#endif
-
 
159
 
-
 
160
 
-
 
161
/* Definitions of PROTO_V macros */
-
 
162
 
-
 
163
#if FS_STDARG
-
 
164
#define PROTO_V( params )	params
-
 
165
#define PROTO_W( types )	types
-
 
166
#else
-
 
167
#define PROTO_V( parms )	( va_alist ) va_dcl
-
 
168
#define PROTO_W( types )	()
-
 
169
#endif
-
 
170
 
-
 
171
 
-
 
172
/* Definition of prototype separator macro */
-
 
173
 
-
 
174
#ifdef X
-
 
175
#undef X
-
 
176
#endif
-
 
177
#define X			PROTO_X
-
 
178
 
121
 
179
 
122
 
180
/* Definitions of TenDRA keywords */
123
/* Definitions of TenDRA keywords */
181
 
124
 
182
#if FS_TENDRA
125
#if FS_TENDRA
Line 202... Line 145...
202
#define FALL_THROUGH
145
#define FALL_THROUGH
203
#endif
146
#endif
204
 
147
 
205
 
148
 
206
/* Dummy definitions for TenDRA keywords */
149
/* Dummy definitions for TenDRA keywords */
207
 
150
 
208
#if !FS_TENDRA && !FS_LINT
151
#if !FS_TENDRA && !FS_LINT
209
#define SET( name )
152
#define SET( name )
210
#define UNUSED( name )
153
#define UNUSED( name )
211
#define IGNORE			( void )
154
#define IGNORE			( void )
212
#define EXHAUSTIVE
155
#define EXHAUSTIVE
Line 229... Line 172...
229
#define FS_VOLATILE		FS_STDC
172
#define FS_VOLATILE		FS_STDC
230
#endif
173
#endif
231
 
174
 
232
 
175
 
233
/* CONST is used in place of const */
176
/* CONST is used in place of const */
234
 
177
 
235
#if FS_CONST
178
#if FS_CONST
236
#define CONST			const
179
#define CONST			const
237
#else
180
#else
238
#define CONST
181
#define CONST
239
#endif
182
#endif
240
 
183
 
241
 
184
 
242
/* VOLATILE is used in place of volatile */
185
/* VOLATILE is used in place of volatile */
243
 
186
 
244
#if FS_VOLATILE
187
#if FS_VOLATILE
245
#define VOLATILE		volatile
188
#define VOLATILE		volatile
246
#else
189
#else
247
#define VOLATILE
190
#define VOLATILE
248
#endif
191
#endif
249
 
192
 
250
 
193
 
251
/* FS_STDC_HASH indicates whether # and ## are supported */
194
/* FS_STDC_HASH indicates whether # and ## are supported */
252
 
195
 
253
#ifndef FS_STDC_HASH
196
#ifndef FS_STDC_HASH
254
#define FS_STDC_HASH		FS_STDC
197
#define FS_STDC_HASH		FS_STDC
255
#endif
198
#endif
256
 
199
 
257
 
200
 
258
/* FS_STDC_IDENTIFIERS indicates __FILE__ etc. are defined */
201
/* FS_STDC_IDENTIFIERS indicates __FILE__ etc. are defined */
259
 
202
 
260
#ifndef FS_STDC_IDENTIFIERS
203
#ifndef FS_STDC_IDENTIFIERS
261
#define FS_STDC_IDENTIFIERS	FS_STDC
204
#define FS_STDC_IDENTIFIERS	FS_STDC
262
#endif
205
#endif
263
 
206
 
264
 
207
 
265
/* FS_TRIGRAPH indicates whether trigraphs are supported */
208
/* FS_TRIGRAPH indicates whether trigraphs are supported */
266
 
209
 
267
#ifndef FS_TRIGRAPH
210
#ifndef FS_TRIGRAPH
268
#define FS_TRIGRAPH		FS_STDC
211
#define FS_TRIGRAPH		FS_STDC
269
#endif
212
#endif
270
 
213
 
271
 
214
 
272
/* FS_WIDE_STRING indicates whether wide strings are supported */
215
/* FS_WIDE_STRING indicates whether wide strings are supported */
273
 
216
 
274
#ifndef FS_WIDE_STRING
217
#ifndef FS_WIDE_STRING
275
#define FS_WIDE_STRING		FS_STDC
218
#define FS_WIDE_STRING		FS_STDC
276
#endif
219
#endif
277
 
220
 
278
 
221
 
279
/* FS_NUMBER_SUFFIX indicates whether the L, U, F suffixes are supported */
222
/* FS_NUMBER_SUFFIX indicates whether the L, U, F suffixes are supported */
280
 
223
 
281
#ifndef FS_NUMBER_SUFFIX
224
#ifndef FS_NUMBER_SUFFIX
282
#define FS_NUMBER_SUFFIX	FS_STDC
225
#define FS_NUMBER_SUFFIX	FS_STDC
283
#endif
226
#endif
284
 
227
 
285
 
228
 
286
/* FS_CONCAT_STRING indicates whether string concatenation is supported */
229
/* FS_CONCAT_STRING indicates whether string concatenation is supported */
287
 
230
 
288
#ifndef FS_CONCAT_STRING
231
#ifndef FS_CONCAT_STRING
289
#define FS_CONCAT_STRING	FS_STDC
232
#define FS_CONCAT_STRING	FS_STDC
290
#endif
-
 
291
 
-
 
292
 
-
 
293
/* FS_PTR_VOID indicates whether void * is supported */
-
 
294
 
-
 
295
#ifndef FS_PTR_VOID
-
 
296
#define FS_PTR_VOID		FS_STDC
-
 
297
#endif
233
#endif
298
 
234
 
299
 
235
 
300
/* FS_SIGNED indicates whether signed is supported */
236
/* FS_SIGNED indicates whether signed is supported */
301
 
237