/*
* Common messages catalogue.
*
* It could be extended by defining additional types, usages and entries.
*
* $TenDRA: tendra/src/libten/catstd.cat,v 1.3 2004/09/05 03:38:39 bp Exp $
*/
/*
* AUTOMATICALLY GENERATED BY mkerr.awk FROM /mnt/gmirror/ports/lang/TenDRA/work/tendra/src/libten/catstd.cat
* AUTOMATICALLY GENERATED BY mkerr.awk FROM /mnt/gmirror/ports/lang/TenDRA/work/tendra/src/tools/tnc/messages.cat
*/
#ifndef MSG_INCLUDED
#define MSG_INCLUDED
/* Error data structure */
#ifndef MSG_CONST
#define MSG_CONST
#endif
typedef unsigned MSG_PROPS;
typedef struct {
MSG_CONST char *name;
MSG_CONST char *signature;
int usage;
MSG_PROPS props;
MSG_CONST char *key_STD;
} MSG_DATA;
extern MSG_DATA MSG_CATALOG [];
extern MSG_CONST char *MSG_NAME;
/* Error type keys */
#define MSG_KEY_int '0'
#define MSG_KEY_unsigned '1'
#define MSG_KEY_long '2'
#define MSG_KEY_size_t '3'
#define MSG_KEY_char '4'
#define MSG_KEY_ccp '5'
#define MSG_KEY_hex2_t '6'
#define MSG_KEY_hex4_t '7'
#define MSG_KEY_hex8_t '8'
#define MSG_KEY_pointer_t '9'
#define MSG_KEY_esc_char 'A'
#define MSG_KEY_tdf_stream 'B'
#define MSG_KEY_srcwhere 'C'
/* Error usage keys */
#ifndef MSG_USE
#define MSG_SEV_NONE 0
#define MSG_SEV_INFO 1
#define MSG_SEV_ASSERT 2
#define MSG_SEV_DEBUG 3
#define MSG_SEV_WARNING 4
#define MSG_SEV_ERROR 5
#define MSG_SEV_FATAL 6
#define MSG_SEV_INTERNAL 7
#endif
/* Error property keys */
#ifndef MSG_PROP
#define MSG_PROP_FATAL ((MSG_PROPS)0x1)
#endif
/* Global variables */
#define MSG_GLOB_strerror 'a'
#define MSG_GLOB_iline 'b'
#define MSG_GLOB_where 'c'
/* Error type checking */
#if defined(MSG_CHECK)
extern int chk_0(int);
extern unsigned chk_1(unsigned);
extern long chk_2(long);
extern size_t chk_3(size_t);
extern char chk_4(char);
extern ccp chk_5(ccp);
extern hex2_t chk_6(hex2_t);
extern hex4_t chk_7(hex4_t);
extern hex8_t chk_8(hex8_t);
extern pointer_t chk_9(pointer_t);
extern esc_char chk_A(esc_char);
extern tdf_stream chk_B(tdf_stream);
extern srcwhere chk_C(srcwhere);
#else
#define chk_0(A) (A)
#define chk_1(A) (A)
#define chk_2(A) (A)
#define chk_3(A) (A)
#define chk_4(A) (A)
#define chk_5(A) (A)
#define chk_6(A) (A)
#define chk_7(A) (A)
#define chk_8(A) (A)
#define chk_9(A) (A)
#define chk_A(A) (A)
#define chk_B(A) (A)
#define chk_C(A) (A)
#endif
/* Error message macros */
#ifdef MSG_GEN
#define MSG__prefix_info()\
MSG_GEN (0)
#define MSG__prefix_debug()\
MSG_GEN (1)
#define MSG__prefix_warning()\
MSG_GEN (2)
#define MSG__prefix_error()\
MSG_GEN (3)
#define MSG__prefix_fatal()\
MSG_GEN (4)
#define MSG__prefix_internal()\
MSG_GEN (5)
#define MSG__prefix_assert()\
MSG_GEN (6)
#define MSG_fmm_malloc_failed(A)\
MSG_GEN (7, chk_3 (A))
#define MSG_fmm_frt_still_allocated(A, B)\
MSG_GEN (8, chk_3 (A), chk_5 (B))
#define MSG_fmm_data_modified(A, B, C, D, E, F)\
MSG_GEN (9, chk_9 (A), chk_5 (B), chk_2 (C), chk_2 (D), chk_8 (E), chk_8 (F))
#define MSG_fmm_wrong_bucket()\
MSG_GEN (10)
#define MSG_fmm_lost_data()\
MSG_GEN (11)
#define MSG_fmm_free_modified(A)\
MSG_GEN (12, chk_9 (A))
#define MSG_fmm_multiple_free(A)\
MSG_GEN (13, chk_9 (A))
#define MSG_caught_signal(A, B)\
MSG_GEN (14, chk_0 (A), chk_5 (B))
#define MSG_removed_core()\
MSG_GEN (15)
#define MSG_tenapp_version(A, B, C)\
MSG_GEN (16, chk_5 (A), chk_5 (B), chk_5 (C))
#define MSG_crown_copyright()\
MSG_GEN (17)
#define MSG_cant_open_input_file(A)\
MSG_GEN (18, chk_5 (A))
#define MSG_cant_open_output_file(A)\
MSG_GEN (19, chk_5 (A))
#define MSG_file_read_error(A)\
MSG_GEN (20, chk_5 (A))
#define MSG_file_write_error(A)\
MSG_GEN (21, chk_5 (A))
#define MSG_ostream_write_error(A)\
MSG_GEN (22, chk_5 (A))
#define MSG_getopt_unknown_option(A)\
MSG_GEN (23, chk_5 (A))
#define MSG_getopt_not_enough_arguments()\
MSG_GEN (24)
#define MSG_getopt_too_many_arguments()\
MSG_GEN (25)
#define MSG_arg_parse_missing_argument(A)\
MSG_GEN (26, chk_5 (A))
#define MSG_arg_parse_unknown_option(A)\
MSG_GEN (27, chk_5 (A))
#define MSG_arg_parse_missing_short_arg(A, B)\
MSG_GEN (28, chk_5 (A), chk_5 (B))
#define MSG_arg_parse_ambiguous_option(A)\
MSG_GEN (29, chk_5 (A))
#define MSG_arg_parse_unknown_short_opt(A, B)\
MSG_GEN (30, chk_5 (A), chk_5 (B))
#define MSG_description_of_help()\
MSG_GEN (31)
#define MSG_description_of_version()\
MSG_GEN (32)
#define MSG_fatal_tdf_stream_read_error(A)\
MSG_GEN (33, chk_B (A))
#define MSG_fatal_tdf_stream_seek_error(A)\
MSG_GEN (34, chk_B (A))
#define MSG_fatal_tdf_cant_encode_0_as_extended_value(A)\
MSG_GEN (35, chk_B (A))
#define MSG_fatal_tdf_integer_too_big(A, B)\
MSG_GEN (36, chk_B (A), chk_2 (B))
#define MSG_tdf_integer_too_long(A, B)\
MSG_GEN (37, chk_B (A), chk_2 (B))
#define MSG_fatal_tdf_string_element_too_big(A, B)\
MSG_GEN (38, chk_B (A), chk_0 (B))
#define MSG_fatal_tdf_expect_eof(A)\
MSG_GEN (39, chk_B (A))
#define MSG_fatal_tdf_unexpected_eof(A)\
MSG_GEN (40, chk_B (A))
#define MSG_fatal_tdf_bad_magic(A, B, C)\
MSG_GEN (41, chk_B (A), chk_5 (B), chk_5 (C))
#define MSG_fatal_tdf_bad_version(A, B)\
MSG_GEN (42, chk_B (A), chk_1 (B))
#define MSG_fatal_tdf_version_mismatch(A, B, C)\
MSG_GEN (43, chk_B (A), chk_1 (B), chk_1 (C))
#define MSG_int_tdf_extend_unaligned(A, B)\
MSG_GEN (44, chk_B (A), chk_2 (B))
#define MSG_int_tdf_unaligned_access(A, B)\
MSG_GEN (45, chk_B (A), chk_5 (B))
#define MSG_debug_tdf_version(A, B, C)\
MSG_GEN (46, chk_B (A), chk_1 (B), chk_1 (C))
#define MSG_TDF_version(A, B)\
MSG_GEN (47, chk_0 (A), chk_0 (B))
#define MSG_cant_have_alignment_of_bottom_in(A)\
MSG_GEN (48, chk_5 (A))
#define MSG_end_of_file_in_comment()\
MSG_GEN (49)
#define MSG_new_line_in_string()\
MSG_GEN (50)
#define MSG_invalid_escape_sequence()\
MSG_GEN (51)
#define MSG_end_of_file_in_string()\
MSG_GEN (52)
#define MSG_terminator_character_expected()\
MSG_GEN (53)
#define MSG_illegal_character(A)\
MSG_GEN (54, chk_4 (A))
#define MSG_illegal_digit(A)\
MSG_GEN (55, chk_4 (A))
#define MSG_unexpected_end_of_file()\
MSG_GEN (56)
#define MSG_illegal_seek_command()\
MSG_GEN (57)
#define MSG_tag_used_but_not_declared(A)\
MSG_GEN (58, chk_5 (A))
#define MSG_cant_deduce_shape_from_definition(A)\
MSG_GEN (59, chk_5 (A))
#define MSG_FATAL_illegal_binding_sort()\
MSG_GEN (60)
#define MSG_FATAL_var_already_defined(A)\
MSG_GEN (61, chk_5 (A))
#define MSG_FATAL_object_number_too_big(A, B)\
MSG_GEN (62, chk_2 (A), chk_5 (B))
#define MSG_FATAL_object_already_bound(A, B)\
MSG_GEN (63, chk_2 (A), chk_5 (B))
#define MSG_FATAL_only_8bit_strings_allowed()\
MSG_GEN (64)
#define MSG_FATAL_number_of_local_variables_wrong()\
MSG_GEN (65)
#define MSG_FATAL_number_of_linkage_units_wrong()\
MSG_GEN (66)
#define MSG_FATAL_unit_length_wrong()\
MSG_GEN (67)
#define MSG_FATAL_number_of_variable_sorts_wrong()\
MSG_GEN (68)
#define MSG_FATAL_illegal_EXTERN_value(A)\
MSG_GEN (69, chk_2 (A))
#define MSG_FATAL_number_of_equations_wrong()\
MSG_GEN (70)
#define MSG_FATAL_capsule_length_wrong()\
MSG_GEN (71)
#define MSG_FATAL_label_already_defined(A)\
MSG_GEN (72, chk_5 (A))
#define MSG_FATAL_label_number_too_big(A)\
MSG_GEN (73, chk_2 (A))
#define MSG_alignment_tag_defined_inconsistently(A)\
MSG_GEN (74, chk_5 (A))
#define MSG_tag_declared_inconsistently(A)\
MSG_GEN (75, chk_5 (A))
#define MSG_FATAL_tag_defined_but_not_declared(A)\
MSG_GEN (76, chk_5 (A))
#define MSG_tag_defined_inconsistently(A)\
MSG_GEN (77, chk_5 (A))
#define MSG_FATAL_token_has_high_level_result_sort(A)\
MSG_GEN (78, chk_5 (A))
#define MSG_token_defined_inconsistently(A)\
MSG_GEN (79, chk_5 (A))
#define MSG_FATAL_token_definition_length_wrong(A)\
MSG_GEN (80, chk_5 (A))
#define MSG_FATAL_illegal_version_number(A, B)\
MSG_GEN (81, chk_2 (A), chk_2 (B))
#define MSG_FATAL_bad_magic_number()\
MSG_GEN (82)
#define MSG_foreign_sorts_not_supported()\
MSG_GEN (83)
#define MSG_token_undeclared(A)\
MSG_GEN (84, chk_5 (A))
#define MSG_FATAL_token_arguments_length_wrong(A)\
MSG_GEN (85, chk_5 (A))
#define MSG_FATAL_sort_error_in_token(A)\
MSG_GEN (86, chk_5 (A))
#define MSG_FATAL_conditional_length_wrong()\
MSG_GEN (87)
#define MSG_FATAL_cant_encode_unknown_bitstream()\
MSG_GEN (88)
#define MSG_FATAL_premature_end_of_file()\
MSG_GEN (89)
#define MSG_unknown_construct(A)\
MSG_GEN (90, chk_5 (A))
#define MSG_sort_already_defined(A)\
MSG_GEN (91, chk_5 (A))
#define MSG_illegal_sort_name(A)\
MSG_GEN (92, chk_5 (A))
#define MSG_token_declared_inconsistently(A)\
MSG_GEN (93, chk_5 (A))
#define MSG_FATAL_illegal_decoding_string()\
MSG_GEN (94)
#define MSG_FATAL_token_identifier_expected()\
MSG_GEN (95)
#define MSG_FATAL_token_already_declared(A)\
MSG_GEN (96, chk_5 (A))
#define MSG_FATAL_token_not_declared(A)\
MSG_GEN (97, chk_5 (A))
#define MSG_FATAL_token_returns_wrong_sort(A, B, C)\
MSG_GEN (98, chk_5 (A), chk_5 (B), chk_5 (C))
#define MSG_FATAL_illegal_LIST_value()\
MSG_GEN (99)
#define MSG_end_of_token_construct_expected(A)\
MSG_GEN (100, chk_5 (A))
#define MSG_token_construct_should_be_in_brackets(A)\
MSG_GEN (101, chk_5 (A))
#define MSG_FATAL_token_has_incorrect_sort(A)\
MSG_GEN (102, chk_5 (A))
#define MSG_FATAL_object_already_in_scope(A, B)\
MSG_GEN (103, chk_5 (A), chk_5 (B))
#define MSG_object_not_in_scope(A, B)\
MSG_GEN (104, chk_5 (A), chk_5 (B))
#define MSG_FATAL_sort_identifier_expected(A)\
MSG_GEN (105, chk_5 (A))
#define MSG_FATAL_identifier_expected()\
MSG_GEN (106)
#define MSG_exp_expected()\
MSG_GEN (107)
#define MSG_FATAL_multibyte_strings_not_allowed_here()\
MSG_GEN (108)
#define MSG_FATAL_end_of_multibyte_string_expected()\
MSG_GEN (109)
#define MSG_FATAL_string_expected()\
MSG_GEN (110)
#define MSG_negative_nat()\
MSG_GEN (111)
#define MSG_FATAL_name_expected(A)\
MSG_GEN (112, chk_5 (A))
#define MSG_FATAL_number_expected()\
MSG_GEN (113)
#define MSG_end_of_multibyte_string_expected()\
MSG_GEN (114)
#define MSG_FATAL_illegal_sort(A, B)\
MSG_GEN (115, chk_5 (A), chk_5 (B))
#define MSG_bad_sort_name(A)\
MSG_GEN (116, chk_5 (A))
#define MSG_end_of_construct_expected(A)\
MSG_GEN (117, chk_5 (A))
#define MSG_construct_should_be_in_brackets(A)\
MSG_GEN (118, chk_5 (A))
#define MSG_badly_placed_comma()\
MSG_GEN (119)
#define MSG_comma_or_close_bracket_expected()\
MSG_GEN (120)
#define MSG_FATAL_lists_of_lists_not_implemented()\
MSG_GEN (121)
#define MSG_FATAL_lists_of_options_not_implemented()\
MSG_GEN (122)
#define MSG_FATAL_optional_lists_not_implemented()\
MSG_GEN (123)
#define MSG_FATAL_optional_options_not_implemented()\
MSG_GEN (124)
#define MSG_FATAL_external_expected()\
MSG_GEN (125)
#define MSG_FATAL_illegal_external(A)\
MSG_GEN (126, chk_5 (A))
#define MSG_cant_have_external_name_with_local()\
MSG_GEN (127)
#define MSG_end_of_external_construct_expected()\
MSG_GEN (128)
#define MSG_comma_expected()\
MSG_GEN (129)
#define MSG_object_previously_declared_global(A)\
MSG_GEN (130, chk_5 (A))
#define MSG_external_name_of_object_given_twice(A)\
MSG_GEN (131, chk_5 (A))
#define MSG_object_previously_declared_local(A)\
MSG_GEN (132, chk_5 (A))
#define MSG_tag_defined_but_not_declared(A)\
MSG_GEN (133, chk_5 (A))
#define MSG_sort_name_expected()\
MSG_GEN (134)
#define MSG_arrow_expected()\
MSG_GEN (135)
#define MSG_FATAL_tokens_cant_return_high_level_sorts()\
MSG_GEN (136)
#define MSG_cant_have_local_here()\
MSG_GEN (137)
#define MSG_file_name_expected()\
MSG_GEN (138)
#define MSG_FATAL_construct_name_expected()\
MSG_GEN (139)
#define MSG_open_bracket_expected()\
MSG_GEN (140)
#define MSG_FATAL_illegal_construct_name(A)\
MSG_GEN (141, chk_5 (A))
#define MSG_start_of_construct_expected()\
MSG_GEN (142)
#define MSG_shouldnt_be_checking_shape(A)\
MSG_GEN (143, chk_5 (A))
#define MSG_shape_doesnt_match_declaration(A)\
MSG_GEN (144, chk_5 (A))
#define MSG_shape_incompatibility_in(A)\
MSG_GEN (145, chk_5 (A))
#define MSG_argument_should_be_of_shape(A, B, C)\
MSG_GEN (146, chk_5 (A), chk_5 (B), chk_5 (C))
#define MSG_repeated_statement_cant_be_empty(A)\
MSG_GEN (147, chk_5 (A))
#define MSG_nested_expansion_of_token(A)\
MSG_GEN (148, chk_5 (A))
#define MSG_FATAL_construct_already_defined(A)\
MSG_GEN (149, chk_5 (A))
#define MSG_FATAL_invalid_decode_function()\
MSG_GEN (150)
#define MSG_FATAL_invalid_read_function()\
MSG_GEN (151)
#define MSG_FATAL_labels_dont_match_exps()\
MSG_GEN (152)
#define MSG_FATAL_illegal_decode_letter(A)\
MSG_GEN (153, chk_4 (A))
#define MSG_FATAL_illegal_SN_value(A, B)\
MSG_GEN (154, chk_5 (A), chk_2 (B))
#define MSG_multiple_output_files_given(A)\
MSG_GEN (155, chk_5 (A))
#define MSG_switching_input_form()\
MSG_GEN (156)
#define MSG_usage()\
MSG_GEN (157)
#define MSG_description_of_check()\
MSG_GEN (158)
#define MSG_description_of_cv()\
MSG_GEN (159)
#define MSG_description_of_decode()\
MSG_GEN (160)
#define MSG_description_of_dont_check()\
MSG_GEN (161)
#define MSG_description_of_encode()\
MSG_GEN (162)
#define MSG_description_of_eval()\
MSG_GEN (163)
#define MSG_description_of_expand()\
MSG_GEN (164)
#define MSG_description_of_func()\
MSG_GEN (165)
#define MSG_description_of_funcin()\
MSG_GEN (166)
#define MSG_description_of_funcout()\
MSG_GEN (167)
#define MSG_description_of_include()\
MSG_GEN (168)
#define MSG_description_of_lib()\
MSG_GEN (169)
#define MSG_description_of_lprefix()\
MSG_GEN (170)
#define MSG_description_of_no()\
MSG_GEN (171)
#define MSG_description_of_only()\
MSG_GEN (172)
#define MSG_description_of_outfile()\
MSG_GEN (173)
#define MSG_description_of_print()\
MSG_GEN (174)
#define MSG_description_of_read()\
MSG_GEN (175)
#define MSG_description_of_subject()\
MSG_GEN (176)
#define MSG_description_of_tsimp()\
MSG_GEN (177)
#define MSG_description_of_unsorted()\
MSG_GEN (178)
#define MSG_description_of_verbose()\
MSG_GEN (179)
#define MSG_description_of_write()\
MSG_GEN (180)
#endif
#endif
syntax highlighted by Code2HTML, v. 0.9.1