/* * STARTUP FILE FOR COMPILATION MODE XC * * Xc represents strict ISO/IEC 9899:1999 compliance, no more, no less. * * $TenDRA: tendra/src/lib/startup/Modes.c99/Xc,v 1.26 2005/11/07 18:42:37 stefanf Exp $ */ #pragma TenDRA declaration block Xc__startup begin #pragma TenDRA begin #pragma TenDRA longlong type allow #include "../Literal/c99.pf" #include "../Promotion/ansi.pf" #define __ANDF__ 1 #define __TenDRA__ 1 #define __OPENLINT__ 1 #pragma TenDRA weak prototype analysis off #pragma TenDRA incompatible interface declaration warning #pragma TenDRA linkage resolution : (internal) warning #pragma TenDRA unknown pragma allow #pragma TenDRA no external declaration disallow #ifndef __NO_PRINTF_CHECKS #define __NO_PRINTF_CHECKS 1 #endif /* Implicit function declarations are not allowed in C99 anymore. */ #pragma TenDRA implicit function declaration off /* No implicit int for K&R-style function parameters. */ #pragma TenDRA implicit int type for function argument disallow /* Implicit int type for functions lacking a return type was removed in C99. */ #pragma TenDRA implicit int type for function return disallow /* C99 allows the same type qualifier to occur multiple times. */ #pragma TenDRA error "dcl_type_cv_dup" off #pragma TenDRA error "dcl_type_type_cv" off /* Declarations and statements can be mixed freely. */ #pragma TenDRA error "stmt_dcl_start" off /* Initialisers for aggregate or union objects don't have to be constant * expressions anymore. */ #pragma TenDRA error "dcl_init_aggr_dynamic" off /* No restrictions on increment and decrement operators (both prefix and * postfix) for type _Bool in C99. */ #pragma TenDRA error "expr_post_incr_bool_inc" off #pragma TenDRA error "expr_post_incr_bool_dec" off #pragma TenDRA error "expr_pre_incr_bool_inc" off #pragma TenDRA error "expr_pre_incr_bool_dec" off /* 6.4.2.2 */ #pragma TenDRA option "func_id" allow /* 6.4.4.2 */ #pragma TenDRA error "lex_fcon_hex" off /* 6.4.9#2 */ #pragma TenDRA option "cpplus_comment" allow /* 6.7.2 */ #pragma TenDRA keyword _Bool for keyword _Bool /* 6.7.2#2 */ #pragma TenDRA implicit int type disallow #pragma TenDRA implicit int type for const / volatile disallow /* 6.7.2.1 */ #pragma TenDRA option "flex_array_member" allow /* 6.7.2.2 */ #pragma TenDRA extra , allow /* 6.7.3 */ #pragma TenDRA keyword restrict for keyword restrict /* 6.7.4 */ #pragma TenDRA keyword inline for inline #pragma TenDRA inline linkage external /* 6.8.5.3 */ #pragma TenDRA error "stmt_for_decl" off /* 6.8.6.4#1 */ #pragma TenDRA incompatible void return disallow /* 6.10.3 */ #pragma TenDRA error "cpp_space_replace2" on #pragma TenDRA error "cpp_replace_arg_empty" off #pragma TenDRA option "va_macro" allow /* 6.10.4 */ #pragma TenDRA option value "hash_line_number" 2147483647 #pragma TenDRA declaration block end