/*
* 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/tld/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_NStringP 'C'
#define MSG_KEY_NameKeyP 'D'
#define MSG_KEY_capsule_offset 'E'
#define MSG_KEY_library_offset 'F'
#define MSG_KEY_istream_line 'G'
#define MSG_KEY_tdfr_offset 'H'
#define MSG_KEY_ExceptionName 'I'
#define MSG_KEY_libcapfullname 'J'
/* 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'
/* 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 NStringP chk_C(NStringP);
extern NameKeyP chk_D(NameKeyP);
extern capsule_offset chk_E(capsule_offset);
extern library_offset chk_F(library_offset);
extern istream_line chk_G(istream_line);
extern tdfr_offset chk_H(tdfr_offset);
extern ExceptionName chk_I(ExceptionName);
extern libcapfullname chk_J(libcapfullname);
#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)
#define chk_D(A) (A)
#define chk_E(A) (A)
#define chk_F(A) (A)
#define chk_G(A) (A)
#define chk_H(A) (A)
#define chk_I(A) (A)
#define chk_J(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_cant_open_library_file(A)\
MSG_GEN (47, chk_5 (A))
#define MSG_bad_mode(A)\
MSG_GEN (48, chk_5 (A))
#define MSG_missing_files()\
MSG_GEN (49)
#define MSG_no_memory()\
MSG_GEN (50)
#define MSG_illegal_external_name(A)\
MSG_GEN (51, chk_5 (A))
#define MSG_multiply_renamed_name(A, B)\
MSG_GEN (52, chk_5 (A), chk_5 (B))
#define MSG_tld_multiple_debug_files()\
MSG_GEN (53)
#define MSG_tld_cannot_open_debug_file(A)\
MSG_GEN (54, chk_5 (A))
#define MSG_tld_multiple_output_files()\
MSG_GEN (55)
#define MSG_tld_multiple_unit_files()\
MSG_GEN (56)
#define MSG_duplicate_capsule_name(A)\
MSG_GEN (57, chk_5 (A))
#define MSG_cant_hide_shape(A)\
MSG_GEN (58, chk_5 (A))
#define MSG_cant_hide(A, B)\
MSG_GEN (59, chk_5 (A), chk_5 (B))
#define MSG_cant_hide_undefined(A, B)\
MSG_GEN (60, chk_5 (A), chk_5 (B))
#define MSG_cant_keep_shape(A)\
MSG_GEN (61, chk_5 (A))
#define MSG_cant_keep(A, B)\
MSG_GEN (62, chk_5 (A), chk_5 (B))
#define MSG_cant_open_unit_set_file(A)\
MSG_GEN (63, chk_5 (A))
#define MSG_unit_set_expected_quote(A)\
MSG_GEN (64, chk_G (A))
#define MSG_unit_set_illegal_escape(A)\
MSG_GEN (65, chk_G (A))
#define MSG_unit_set_eof_in_name(A)\
MSG_GEN (66, chk_G (A))
#define MSG_unit_set_duplicate_name(A, B)\
MSG_GEN (67, chk_5 (A), chk_5 (B))
#define MSG_unit_set_no_tld_name(A)\
MSG_GEN (68, chk_5 (A))
#define MSG_capsule_bad_magic(A, B, C)\
MSG_GEN (69, chk_E (A), chk_C (B), chk_C (C))
#define MSG_capsule_bad_version(A, B)\
MSG_GEN (70, chk_E (A), chk_1 (B))
#define MSG_capsule_version_mismatch(A, B, C)\
MSG_GEN (71, chk_E (A), chk_1 (B), chk_1 (C))
#define MSG_duplicate_unit_set_name(A, B)\
MSG_GEN (72, chk_E (A), chk_C (B))
#define MSG_out_of_order_unit_set_name(A, B)\
MSG_GEN (73, chk_E (A), chk_C (B))
#define MSG_unknown_unit_set_name(A, B)\
MSG_GEN (74, chk_E (A), chk_C (B))
#define MSG_duplicate_shape_name(A, B)\
MSG_GEN (75, chk_E (A), chk_C (B))
#define MSG_shape_and_name_count_mismatch(A, B, C)\
MSG_GEN (76, chk_E (A), chk_1 (B), chk_1 (C))
#define MSG_name_id_out_of_range(A, B, C, D, E)\
MSG_GEN (77, chk_E (A), chk_C (B), chk_D (C), chk_1 (D), chk_1 (E))
#define MSG_name_id_used_multiple_times(A, B, C, D)\
MSG_GEN (78, chk_E (A), chk_C (B), chk_D (C), chk_1 (D))
#define MSG_too_many_tld_units(A)\
MSG_GEN (79, chk_E (A))
#define MSG_tld2_unit_set_type_obsolete(A)\
MSG_GEN (80, chk_E (A))
#define MSG_too_many_tld_unit_counts(A)\
MSG_GEN (81, chk_E (A))
#define MSG_too_many_tld_unit_mappings(A)\
MSG_GEN (82, chk_E (A))
#define MSG_tld_unit_wrong_size(A, B, C)\
MSG_GEN (83, chk_E (A), chk_1 (B), chk_1 (C))
#define MSG_unknown_tld_unit_type(A, B)\
MSG_GEN (84, chk_E (A), chk_1 (B))
#define MSG_unit_set_count_mismatch(A, B, C)\
MSG_GEN (85, chk_E (A), chk_1 (B), chk_1 (C))
#define MSG_missing_tld_unit_set(A)\
MSG_GEN (86, chk_5 (A))
#define MSG_extra_tld_unit_set(A)\
MSG_GEN (87, chk_E (A))
#define MSG_defined_but_not_declared(A, B, C)\
MSG_GEN (88, chk_E (A), chk_C (B), chk_D (C))
#define MSG_illegally_multiply_defined(A, B, C)\
MSG_GEN (89, chk_E (A), chk_C (B), chk_D (C))
#define MSG_bad_usage(A, B, C, D)\
MSG_GEN (90, chk_E (A), chk_C (B), chk_D (C), chk_1 (D))
#define MSG_multiply_defined(A, B, C, D)\
MSG_GEN (91, chk_E (A), chk_C (B), chk_D (C), chk_5 (D))
#define MSG_unit_count_num_mismatch(A, B, C, D, E)\
MSG_GEN (92, chk_E (A), chk_1 (B), chk_1 (C), chk_1 (D), chk_C (E))
#define MSG_unit_mapping_num_mismatch(A, B, C, D, E)\
MSG_GEN (93, chk_E (A), chk_1 (B), chk_1 (C), chk_1 (D), chk_C (E))
#define MSG_id_out_of_range(A, B, C, D, E, F)\
MSG_GEN (94, chk_E (A), chk_1 (B), chk_1 (C), chk_C (D), chk_1 (E), chk_C (F))
#define MSG_too_many_library_files()\
MSG_GEN (95)
#define MSG_all_specified_with_capsules()\
MSG_GEN (96)
#define MSG_no_capsules_specified()\
MSG_GEN (97)
#define MSG_exception_unhandled(A, B, C)\
MSG_GEN (98, chk_I (A), chk_5 (B), chk_1 (C))
#define MSG_exception_corrupt_handler(A, B)\
MSG_GEN (99, chk_5 (A), chk_1 (B))
#define MSG_assertion_failed(A, B, C)\
MSG_GEN (100, chk_5 (A), chk_5 (B), chk_1 (C))
#define MSG_dalloc_multi_deallocate(A, B, C, D, E)\
MSG_GEN (101, chk_9 (A), chk_5 (B), chk_1 (C), chk_5 (D), chk_1 (E))
#define MSG_dalloc_corrupt_block(A, B, C)\
MSG_GEN (102, chk_9 (A), chk_5 (B), chk_1 (C))
#define MSG_library_bad_magic(A, B, C)\
MSG_GEN (103, chk_F (A), chk_C (B), chk_C (C))
#define MSG_library_bad_version(A, B)\
MSG_GEN (104, chk_F (A), chk_1 (B))
#define MSG_library_version_mismatch(A, B, C)\
MSG_GEN (105, chk_F (A), chk_1 (B), chk_1 (C))
#define MSG_null_in_file_name(A, B)\
MSG_GEN (106, chk_F (A), chk_C (B))
#define MSG_capsule_not_found(A, B)\
MSG_GEN (107, chk_5 (A), chk_5 (B))
#define MSG_extracting_capsule(A, B)\
MSG_GEN (108, chk_5 (A), chk_5 (B))
#define MSG_lib_unknown_type(A, B)\
MSG_GEN (109, chk_F (A), chk_1 (B))
#define MSG_lib_defined_but_not_declared(A, B, C)\
MSG_GEN (110, chk_F (A), chk_C (B), chk_D (C))
#define MSG_lib_illegally_mult_defined(A, B, C)\
MSG_GEN (111, chk_F (A), chk_C (B), chk_D (C))
#define MSG_lib_bad_usage(A, B, C, D)\
MSG_GEN (112, chk_F (A), chk_C (B), chk_D (C), chk_1 (D))
#define MSG_lib_multiply_defined(A, B, C, D)\
MSG_GEN (113, chk_F (A), chk_C (B), chk_D (C), chk_J (D))
#define MSG_capsule_index_too_big(A, B, C, D, E)\
MSG_GEN (114, chk_F (A), chk_C (B), chk_D (C), chk_1 (D), chk_1 (E))
#define MSG_no_single_definition(A, B)\
MSG_GEN (115, chk_C (A), chk_D (B))
#define MSG_rename_cycle(A, B)\
MSG_GEN (116, chk_C (A), chk_D (B))
#define MSG_no_definition_found(A, B)\
MSG_GEN (117, chk_C (A), chk_D (B))
#define MSG_cant_open_rename_file(A)\
MSG_GEN (118, chk_5 (A))
#define MSG_rename_expected_shape(A)\
MSG_GEN (119, chk_G (A))
#define MSG_rename_expected_name(A)\
MSG_GEN (120, chk_G (A))
#define MSG_rename_expected_semi(A)\
MSG_GEN (121, chk_G (A))
#define MSG_rename_unexpected_eof(A)\
MSG_GEN (122, chk_G (A))
#define MSG_rename_unexpected_newline(A)\
MSG_GEN (123, chk_G (A))
#define MSG_rename_illegal_escape(A)\
MSG_GEN (124, chk_G (A))
#define MSG_rename_illegal_char(A, B)\
MSG_GEN (125, chk_G (A), chk_4 (B))
#define MSG_too_many_ids()\
MSG_GEN (126)
#define MSG_unexpected_eof_in_tdf(A)\
MSG_GEN (127, chk_H (A))
#define MSG_tdf_integer_too_big_in_tdf(A)\
MSG_GEN (128, chk_H (A))
#define MSG_unsupported_char_size_in_tdf(A, B)\
MSG_GEN (129, chk_H (A), chk_1 (B))
#define MSG_bad_name_type_in_tdf(A, B)\
MSG_GEN (130, chk_H (A), chk_1 (B))
#define MSG_expected_eof_in_tdf(A)\
MSG_GEN (131, chk_H (A))
#define MSG_description_of_mode()\
MSG_GEN (132)
#define MSG_description_of_all()\
MSG_GEN (133)
#define MSG_description_of_all_hide_defined()\
MSG_GEN (134)
#define MSG_description_of_basename()\
MSG_GEN (135)
#define MSG_description_of_debug_file()\
MSG_GEN (136)
#define MSG_description_of_hide()\
MSG_GEN (137)
#define MSG_description_of_hide_defined()\
MSG_GEN (138)
#define MSG_description_of_include_library()\
MSG_GEN (139)
#define MSG_description_of_index()\
MSG_GEN (140)
#define MSG_description_of_info()\
MSG_GEN (141)
#define MSG_description_of_keep()\
MSG_GEN (142)
#define MSG_description_of_keep_all()\
MSG_GEN (143)
#define MSG_description_of_library_file()\
MSG_GEN (144)
#define MSG_description_of_match_basename()\
MSG_GEN (145)
#define MSG_description_of_output_file()\
MSG_GEN (146)
#define MSG_description_of_path()\
MSG_GEN (147)
#define MSG_description_of_rename()\
MSG_GEN (148)
#define MSG_description_of_rename_file()\
MSG_GEN (149)
#define MSG_description_of_size()\
MSG_GEN (150)
#define MSG_description_of_suppress()\
MSG_GEN (151)
#define MSG_description_of_suppress_all()\
MSG_GEN (152)
#define MSG_description_of_suppress_mult()\
MSG_GEN (153)
#define MSG_description_of_tdf_version()\
MSG_GEN (154)
#define MSG_description_of_unit_file()\
MSG_GEN (155)
#define MSG_description_of_warning()\
MSG_GEN (156)
#define MSG_root_usage()\
MSG_GEN (157)
#define MSG_builder_usage()\
MSG_GEN (158)
#define MSG_linker_usage()\
MSG_GEN (159)
#define MSG_contents_usage()\
MSG_GEN (160)
#define MSG_extract_usage()\
MSG_GEN (161)
#endif
#endif
syntax highlighted by Code2HTML, v. 0.9.1