/* * 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 */ #include #include "catstd.h" /* Error catalogue */ MSG_CONST char *MSG_NAME = "messages"; MSG_DATA MSG_CATALOG [] = { { "_prefix_info", NULL, 0, 0, "Info" }, { "_prefix_debug", NULL, 0, 0, "Debug" }, { "_prefix_warning", NULL, 0, 0, "Warning" }, { "_prefix_error", NULL, 0, 0, "Error" }, { "_prefix_fatal", NULL, 0, 0, "Fatal error" }, { "_prefix_internal", NULL, 0, 0, "Internal error" }, { "_prefix_assert", NULL, 0, 0, "Assertion failed" }, { "fmm_malloc_failed", "3", MSG_SEV_FATAL, 0, "Memory allocation of %0 byte(s) failed." }, { "fmm_frt_still_allocated", "35", MSG_SEV_DEBUG, 0, "fmm_remove_type: %0 bytes of '%1' still allocated" }, { "fmm_data_modified", "952288", MSG_SEV_DEBUG, 0, "fmm_malloc: Data modified on freelist: object %0(%1)[%2] size %3 (%4 != %5)" }, { "fmm_wrong_bucket", NULL, MSG_SEV_FATAL, 0, "fmm_malloc: wrong bucket" }, { "fmm_lost_data", NULL, MSG_SEV_FATAL, 0, "fmm_malloc: lost data" }, { "fmm_free_modified", "9", MSG_SEV_FATAL, 0, "fmm_free: free item %0 modified" }, { "fmm_multiple_free", "9", MSG_SEV_FATAL, 0, "fmm_free: multiple freed item %0" }, { "caught_signal", "05", MSG_SEV_NONE, 0, "\nCaught signal %0 in '%1'" }, { "removed_core", NULL, MSG_SEV_WARNING, 0, "Removed core" }, { "tenapp_version", "555", MSG_SEV_NONE, 0, "%0, Version: %1 (Release: %2)" }, { "crown_copyright", NULL, MSG_SEV_INFO, 0, "\t\tCrown Copyright (c) 1997, 1998\n\n This TenDRA(r) Computer Program is subject to Copyright\n owned by the United Kingdom Secretary of State for Defence\n acting through the Defence Evaluation and Research Agency\n (DERA). It is made available to Recipients with a\n royalty-free licence for its use, reproduction, transfer\n to other parties and amendment for any purpose not excluding\n product development provided that any such use et cetera\n shall be deemed to be acceptance of the following conditions:\n\n\t(1) Its Recipients shall ensure that this Notice is\n\treproduced upon any copies or amended versions of it;\n\n\t(2) Any amended version of it shall be clearly marked to\n\tshow both the nature of and the organisation responsible\n\tfor the relevant amendment or amendments;\n\n\t(3) Its onward transfer from a recipient to another\n\tparty shall be deemed to be that party's acceptance of\n\tthese conditions;\n\n\t(4) DERA gives no warranty or assurance as to its\n\tquality or suitability for any purpose and DERA accepts\n\tno liability whatsoever in relation to any use to which\n\tit may be put.\n\n" }, { "cant_open_input_file", "5", MSG_SEV_ERROR, 1, "Can't open input file, '%0': %a" }, { "cant_open_output_file", "5", MSG_SEV_FATAL, 0, "Can't open output file, '%0': %a" }, { "file_read_error", "5", MSG_SEV_FATAL, 0, "error reading from file '%0': %a" }, { "file_write_error", "5", MSG_SEV_FATAL, 0, "error writing to file '%0': %a" }, { "ostream_write_error", "5", MSG_SEV_FATAL, 0, "error writing to output stream '%0': %a" }, { "getopt_unknown_option", "5", MSG_SEV_FATAL, 0, "Unknown option, '%0'" }, { "getopt_not_enough_arguments", NULL, MSG_SEV_FATAL, 0, "Not enough arguments" }, { "getopt_too_many_arguments", NULL, MSG_SEV_FATAL, 0, "Too many arguments" }, { "arg_parse_missing_argument", "5", MSG_SEV_FATAL, 0, "missing argument for option '%0'" }, { "arg_parse_unknown_option", "5", MSG_SEV_FATAL, 0, "unknown option '%0'" }, { "arg_parse_missing_short_arg", "55", MSG_SEV_FATAL, 0, "missing argument for option '%0' at '%1'" }, { "arg_parse_ambiguous_option", "5", MSG_SEV_FATAL, 0, "ambiguous option '%0'" }, { "arg_parse_unknown_short_opt", "55", MSG_SEV_FATAL, 0, "unknown short option '%0' at '%1'" }, { "description_of_help", NULL, MSG_SEV_NONE, 0, "Print this message" }, { "description_of_version", NULL, MSG_SEV_NONE, 0, "Report program version" }, { "fatal_tdf_stream_read_error", "B", MSG_SEV_FATAL, 0, "%0System error '%a' while reading TDF file" }, { "fatal_tdf_stream_seek_error", "B", MSG_SEV_FATAL, 0, "%0Seek error" }, { "fatal_tdf_cant_encode_0_as_extended_value", "B", MSG_SEV_FATAL, 0, "%0Can't encode 0 as an extended value" }, { "fatal_tdf_integer_too_big", "B2", MSG_SEV_FATAL, 0, "%0TDFINT value too big (%1)" }, { "tdf_integer_too_long", "B2", MSG_SEV_FATAL, 0, "%0TDFINT value too long (%1)" }, { "fatal_tdf_string_element_too_big", "B0", MSG_SEV_FATAL, 0, "%0TDFSTRING element too big (%1)" }, { "fatal_tdf_expect_eof", "B", MSG_SEV_FATAL, 0, "%0End of file expected, but data found" }, { "fatal_tdf_unexpected_eof", "B", MSG_SEV_FATAL, 0, "%0Unexpected end of file" }, { "fatal_tdf_bad_magic", "B55", MSG_SEV_FATAL, 0, "%0Unknown TDF file header. Expected '%2', but got '%1'" }, { "fatal_tdf_bad_version", "B1", MSG_SEV_FATAL, 0, "%0Illegal major version number '%1'" }, { "fatal_tdf_version_mismatch", "B11", MSG_SEV_FATAL, 0, "%0Major version number mismatch: (%1 should be %2)" }, { "int_tdf_extend_unaligned", "B2", MSG_SEV_INTERNAL, 0, "%0Extending unaligned stream at %1" }, { "int_tdf_unaligned_access", "B5", MSG_SEV_INTERNAL, 0, "%0Function %1 requires byte aligned TDF stream" }, { "debug_tdf_version", "B11", MSG_SEV_DEBUG, 0, "%0TDF version: %1.%2" }, { "TDF_version", "00", MSG_SEV_NONE, 0, "TDF version %0.%1" }, { "cant_have_alignment_of_bottom_in", "5", MSG_SEV_ERROR, 0, "Can't have alignment of bottom in %0%c" }, { "end_of_file_in_comment", NULL, MSG_SEV_ERROR, 0, "End of file in comment%c" }, { "new_line_in_string", NULL, MSG_SEV_ERROR, 0, "New line in string%c" }, { "invalid_escape_sequence", NULL, MSG_SEV_ERROR, 0, "Invalid escape sequence%c" }, { "end_of_file_in_string", NULL, MSG_SEV_ERROR, 0, "End of file in string%c" }, { "terminator_character_expected", NULL, MSG_SEV_ERROR, 0, "Terminator character expected%c" }, { "illegal_character", "4", MSG_SEV_ERROR, 0, "Illegal character, %0%c" }, { "illegal_digit", "4", MSG_SEV_ERROR, 0, "Illegal digit, %0%c" }, { "unexpected_end_of_file", NULL, MSG_SEV_FATAL, 0, "Unexpected end of file%c" }, { "illegal_seek_command", NULL, MSG_SEV_FATAL, 0, "Illegal seek command" }, { "tag_used_but_not_declared", "5", MSG_SEV_ERROR, 0, "Tag %0 used but not declared" }, { "cant_deduce_shape_from_definition", "5", MSG_SEV_ERROR, 0, "Can't deduce shape of %0 from definition%c" }, { "FATAL_illegal_binding_sort", NULL, MSG_SEV_FATAL, 0, "Illegal binding sort%c" }, { "FATAL_var_already_defined", "5", MSG_SEV_FATAL, 0, "%0 has already been defined%c" }, { "FATAL_object_number_too_big", "25", MSG_SEV_FATAL, 0, "Object number %0 (%1) too big%c" }, { "FATAL_object_already_bound", "25", MSG_SEV_FATAL, 0, "Object %0 (%1) already bound%c" }, { "FATAL_only_8bit_strings_allowed", NULL, MSG_SEV_FATAL, 0, "Only 8-bit strings allowed%c" }, { "FATAL_number_of_local_variables_wrong", NULL, MSG_SEV_FATAL, 0, "Number of local variables wrong%c" }, { "FATAL_number_of_linkage_units_wrong", NULL, MSG_SEV_FATAL, 0, "Number of linkage units wrong%c" }, { "FATAL_unit_length_wrong", NULL, MSG_SEV_FATAL, 0, "Unit length wrong%c" }, { "FATAL_number_of_variable_sorts_wrong", NULL, MSG_SEV_FATAL, 0, "Number of variable sorts wrong%c" }, { "FATAL_illegal_EXTERN_value", "2", MSG_SEV_FATAL, 0, "Illegal EXTERN value, %0%c" }, { "FATAL_number_of_equations_wrong", NULL, MSG_SEV_FATAL, 0, "Number of equations wrong%c" }, { "FATAL_capsule_length_wrong", NULL, MSG_SEV_FATAL, 0, "Capsule length wrong%c" }, { "FATAL_label_already_defined", "5", MSG_SEV_FATAL, 0, "Label %0 already defined%c" }, { "FATAL_label_number_too_big", "2", MSG_SEV_FATAL, 0, "Label number %0 too big%c" }, { "alignment_tag_defined_inconsistently", "5", MSG_SEV_ERROR, 0, "Alignment tag %0 defined inconsistently%c" }, { "tag_declared_inconsistently", "5", MSG_SEV_ERROR, 0, "Tag %0 declared inconsistently%c" }, { "FATAL_tag_defined_but_not_declared", "5", MSG_SEV_FATAL, 0, "Tag %0 defined but not declared%c" }, { "tag_defined_inconsistently", "5", MSG_SEV_ERROR, 0, "Tag %0 defined inconsistently%c" }, { "FATAL_token_has_high_level_result_sort", "5", MSG_SEV_FATAL, 0, "Token %0 has high-level result sort%c" }, { "token_defined_inconsistently", "5", MSG_SEV_ERROR, 0, "Token %0 defined inconsistently%c" }, { "FATAL_token_definition_length_wrong", "5", MSG_SEV_FATAL, 0, "Token %0 definition length wrong%c" }, { "FATAL_illegal_version_number", "22", MSG_SEV_FATAL, 0, "Illegal version number, %0.%1%c" }, { "FATAL_bad_magic_number", NULL, MSG_SEV_FATAL, 0, "Bad magic number%c" }, { "foreign_sorts_not_supported", NULL, MSG_SEV_WARNING, 0, "Foreign sorts not supported" }, { "token_undeclared", "5", MSG_SEV_WARNING, 0, "Token %0 undeclared" }, { "FATAL_token_arguments_length_wrong", "5", MSG_SEV_FATAL, 0, "Token %0, arguments length wrong%c" }, { "FATAL_sort_error_in_token", "5", MSG_SEV_FATAL, 0, "Sort error in token %0%c" }, { "FATAL_conditional_length_wrong", NULL, MSG_SEV_FATAL, 0, "Conditional length wrong%c" }, { "FATAL_cant_encode_unknown_bitstream", NULL, MSG_SEV_FATAL, 0, "Can't encode unknown bitstream" }, { "FATAL_premature_end_of_file", NULL, MSG_SEV_FATAL, 0, "Premature end of file%c" }, { "unknown_construct", "5", MSG_SEV_ERROR, 0, "Unknown construct, %0%c" }, { "sort_already_defined", "5", MSG_SEV_ERROR, 0, "Sort %0 already defined%c" }, { "illegal_sort_name", "5", MSG_SEV_ERROR, 0, "Illegal sort name, %0%c" }, { "token_declared_inconsistently", "5", MSG_SEV_ERROR, 0, "Token %0 declared inconsistently%c" }, { "FATAL_illegal_decoding_string", NULL, MSG_SEV_FATAL, 0, "Illegal decoding string" }, { "FATAL_token_identifier_expected", NULL, MSG_SEV_FATAL, 0, "Token identifier expected%c" }, { "FATAL_token_already_declared", "5", MSG_SEV_FATAL, 0, "Token %0 already declared%c" }, { "FATAL_token_not_declared", "5", MSG_SEV_FATAL, 0, "Token %0 not declared%c" }, { "FATAL_token_returns_wrong_sort", "555", MSG_SEV_FATAL, 0, "Token %0 returns %1, not %2%c" }, { "FATAL_illegal_LIST_value", NULL, MSG_SEV_FATAL, 0, "Illegal LIST value%c" }, { "end_of_token_construct_expected", "5", MSG_SEV_ERROR, 0, "End of token %0 construct expected%c" }, { "token_construct_should_be_in_brackets", "5", MSG_SEV_ERROR, 0, "Token %0 construct should be in brackets%c" }, { "FATAL_token_has_incorrect_sort", "5", MSG_SEV_FATAL, 0, "Token %0 has incorrect sort%c" }, { "FATAL_object_already_in_scope", "55", MSG_SEV_FATAL, 0, "%0 %1 already in scope%c" }, { "object_not_in_scope", "55", MSG_SEV_ERROR, 0, "%0 %1 not in scope%c" }, { "FATAL_sort_identifier_expected", "5", MSG_SEV_FATAL, 0, "%0 identifier expected%c" }, { "FATAL_identifier_expected", NULL, MSG_SEV_FATAL, 0, "identifier expected%c" }, { "exp_expected", NULL, MSG_SEV_ERROR, 0, "exp expected%c" }, { "FATAL_multibyte_strings_not_allowed_here", NULL, MSG_SEV_FATAL, 0, "Multibyte strings not allowed here%c" }, { "FATAL_end_of_multibyte_string_expected", NULL, MSG_SEV_FATAL, 0, "End of multibyte string expected%c" }, { "FATAL_string_expected", NULL, MSG_SEV_FATAL, 0, "String expected%c" }, { "negative_nat", NULL, MSG_SEV_ERROR, 0, "Negative nat%c" }, { "FATAL_name_expected", "5", MSG_SEV_FATAL, 0, "%0 expected%c" }, { "FATAL_number_expected", NULL, MSG_SEV_FATAL, 0, "Number expected%c" }, { "end_of_multibyte_string_expected", NULL, MSG_SEV_ERROR, 0, "End of multibyte string expected%c" }, { "FATAL_illegal_sort", "55", MSG_SEV_FATAL, 0, "Illegal %0,%1%c" }, { "bad_sort_name", "5", MSG_SEV_ERROR, 0, "Bad sort name, %0%c" }, { "end_of_construct_expected", "5", MSG_SEV_ERROR, 0, "End of %0 construct expected%c" }, { "construct_should_be_in_brackets", "5", MSG_SEV_ERROR, 0, "%0 construct should be in brackets%c" }, { "badly_placed_comma", NULL, MSG_SEV_ERROR, 0, "Badly placed comma%c" }, { "comma_or_close_bracket_expected", NULL, MSG_SEV_ERROR, 0, "Comma or close bracket expected%c" }, { "FATAL_lists_of_lists_not_implemented", NULL, MSG_SEV_FATAL, 0, "Sorry, lists of lists not implemented%c" }, { "FATAL_lists_of_options_not_implemented", NULL, MSG_SEV_FATAL, 0, "Sorry, lists of options not implemented%c" }, { "FATAL_optional_lists_not_implemented", NULL, MSG_SEV_FATAL, 0, "Sorry, optional lists not implemented%c" }, { "FATAL_optional_options_not_implemented", NULL, MSG_SEV_FATAL, 0, "Sorry, optional options not implemented%c" }, { "FATAL_external_expected", NULL, MSG_SEV_FATAL, 0, "External expected%c" }, { "FATAL_illegal_external", "5", MSG_SEV_FATAL, 0, "Illegal external, %0%c" }, { "cant_have_external_name_with_local", NULL, MSG_SEV_ERROR, 0, "Can't have external name with local%c" }, { "end_of_external_construct_expected", NULL, MSG_SEV_ERROR, 0, "End of external construct expected%c" }, { "comma_expected", NULL, MSG_SEV_ERROR, 0, "Comma expected%c" }, { "object_previously_declared_global", "5", MSG_SEV_ERROR, 0, "Object %0 previously declared global%c" }, { "external_name_of_object_given_twice", "5", MSG_SEV_ERROR, 0, "External name of object %0 given twice%c" }, { "object_previously_declared_local", "5", MSG_SEV_ERROR, 0, "Object %0 previously declared local%c" }, { "tag_defined_but_not_declared", "5", MSG_SEV_ERROR, 0, "Tag %0 defined but not declared%c" }, { "sort_name_expected", NULL, MSG_SEV_ERROR, 0, "Sort name expected%c" }, { "arrow_expected", NULL, MSG_SEV_ERROR, 0, "Arrow (->) expected%c" }, { "FATAL_tokens_cant_return_high_level_sorts", NULL, MSG_SEV_FATAL, 0, "Tokens cannot return high-level sorts%c" }, { "cant_have_local_here", NULL, MSG_SEV_ERROR, 0, "Can't have local here%c" }, { "file_name_expected", NULL, MSG_SEV_ERROR, 0, "File name expected%c" }, { "FATAL_construct_name_expected", NULL, MSG_SEV_FATAL, 0, "Construct name expected%c" }, { "open_bracket_expected", NULL, MSG_SEV_ERROR, 0, "Open bracket expected%c" }, { "FATAL_illegal_construct_name", "5", MSG_SEV_FATAL, 0, "Illegal construct name, %0%c" }, { "start_of_construct_expected", NULL, MSG_SEV_ERROR, 0, "Start of construct expected%c" }, { "shouldnt_be_checking_shape", "5", MSG_SEV_ERROR, 0, "Shouldn't be checking %0's%c" }, { "shape_doesnt_match_declaration", "5", MSG_SEV_ERROR, 0, "Shape of tag %0 does not match declaration%c" }, { "shape_incompatibility_in", "5", MSG_SEV_ERROR, 0, "Shape incompatibility in %0%c" }, { "argument_should_be_of_shape", "555", MSG_SEV_ERROR, 0, "%0 argument to %1 should be of %2 shape%c" }, { "repeated_statement_cant_be_empty", "5", MSG_SEV_ERROR, 0, "Repeated statement in %0 cannot be empty%c" }, { "nested_expansion_of_token", "5", MSG_SEV_ERROR, 0, "Nested expansion of token %0%c" }, { "FATAL_construct_already_defined", "5", MSG_SEV_FATAL, 0, "Construct %0 already defined" }, { "FATAL_invalid_decode_function", NULL, MSG_SEV_FATAL, 0, "Invalid decode function" }, { "FATAL_invalid_read_function", NULL, MSG_SEV_FATAL, 0, "Invalid read function" }, { "FATAL_labels_dont_match_exps", NULL, MSG_SEV_FATAL, 0, "Labels don't match exps in labelled%c" }, { "FATAL_illegal_decode_letter", "4", MSG_SEV_FATAL, 0, "Illegal decode letter, %0" }, { "FATAL_illegal_SN_value", "52", MSG_SEV_FATAL, 0, "Illegal %0 value, %1%c" }, { "multiple_output_files_given", "5", MSG_SEV_WARNING, 0, "Multiple output files given, using %0" }, { "switching_input_form", NULL, MSG_SEV_WARNING, 0, "Switching input form" }, { "usage", NULL, MSG_SEV_NONE, 0, "Usage: tnc [options] input [output] \nwhere options are:" }, { "description_of_check", NULL, MSG_SEV_NONE, 0, "Apply extra checks for input data." }, { "description_of_cv", NULL, MSG_SEV_NONE, 0, "Apply extra checks for input data and write possible messages to output stream." }, { "description_of_decode", NULL, MSG_SEV_NONE, 0, "Set decode mode. Treat input file as TDF capsule." }, { "description_of_dont_check", NULL, MSG_SEV_NONE, 0, "Do not check consistency of multiple tag or token definitions." }, { "description_of_encode", NULL, MSG_SEV_NONE, 0, "Set encode mode. Output a TDF capsule." }, { "description_of_eval", NULL, MSG_SEV_NONE, 0, "Simplify input by evaluating constant expressions." }, { "description_of_expand", NULL, MSG_SEV_NONE, 0, "Expand input by replacing all applications of defined tokens by the token definition." }, { "description_of_func", NULL, MSG_SEV_NONE, 0, "Shortcut for --funcin --funcout." }, { "description_of_funcin", NULL, MSG_SEV_NONE, 0, "Assume input file are in the functional form." }, { "description_of_funcout", NULL, MSG_SEV_NONE, 0, "Output data in the functional form." }, { "description_of_include", NULL, MSG_SEV_NONE, 0, "DIRECTORY Add DIRECTORY to the search path for included files." }, { "description_of_lib", NULL, MSG_SEV_NONE, 0, "Treat input capsule as TDF library." }, { "description_of_lprefix", NULL, MSG_SEV_NONE, 0, "PREFIX Treat external identifiers started with PREFIX as local." }, { "description_of_no", NULL, MSG_SEV_NONE, 0, "NAME Remove constructs NAME from output. NAME are one of tokdecs, tokdefs, aldecs, aldefs, tagdecs or tagdefs." }, { "description_of_only", NULL, MSG_SEV_NONE, 0, "NAME Output only constructs NAME from output. See --no for definition of NAME." }, { "description_of_outfile", NULL, MSG_SEV_NONE, 0, "FILE Output to FILE." }, { "description_of_print", NULL, MSG_SEV_NONE, 0, "Set decode and write modes." }, { "description_of_read", NULL, MSG_SEV_NONE, 0, "Set read mode. Treat input file as TDF text." }, { "description_of_subject", NULL, MSG_SEV_NONE, 0, "SUBJECT Display notation of TDF SUBJECT." }, { "description_of_tsimp", NULL, MSG_SEV_NONE, 0, "Shortcut for --expand --eval." }, { "description_of_unsorted", NULL, MSG_SEV_NONE, 0, "Do not sort user defined tags or tokens." }, { "description_of_verbose", NULL, MSG_SEV_NONE, 0, "Output full forms in the write mode." }, { "description_of_write", NULL, MSG_SEV_NONE, 0, "Set write mode. Output TDF text." }, { NULL, NULL, 0, 0, NULL } };