Errors.h
gehe zur Dokumentation dieser Datei
00001 
00041 #ifndef MUTABOR_ERRORS_H
00042 #define MUTABOR_ERRORS_H
00043 
00044 
00045 extern const mutTranslationChar * Error_text[];
00046 
00047 extern const mutTranslationChar * Warning_text[];
00048 
00049 #define MUT_ERR_MALLOC_FAILED MUT_ERR_UNFINISHED_TRANSLATION
00050 
00051 enum
00052 {
00053         MUT_ERR_UNKNOWN=0,
00054         MUT_ERR_SYNTAX_ERROR,
00055         MUT_ERR_INVALID_CHAR,
00056         MUT_ERR_FILE_OPEN_FAILED,
00057         MUT_ERR_UNFINISHED_TRANSLATION, /* Memory exhausted or insufficient source file */
00058 };
00059 
00060 /*
00061 const mutChar * Error_text[] =
00062   {
00063 
00064     / * 0 * / N_("Unknown error in %s , line %d !"), / * allgemeinster Fehler * /
00065 
00066     / * Datei- und Systemfehler * /
00067     / * 1 * / N_("Syntax error, not specified. (line %d)"),
00068     N_("Non-valid character: asc=%d (line %d)"),
00069     N_("Can't open file: %s"),
00070     N_("Not enough memory or too few data for mutabor in source file"),
00071     N_(" "),
00072     N_(" "),
00073     N_(" "),
00074     N_(" "),
00075     N_(" "),
00076 
00077     / * Doppeldeklarationen * /
00078     / * 10 * / N_("The interval name %s was used twice"),
00079     N_("The tone name %s was used twice"),
00080     N_("The tonesystem name %s was used twice"),
00081     N_("The retuning name %s was used twice"),
00082     N_("The pattern name %s was used twice"),
00083     N_("The logic name %s was used twice"),
00084     N_("(unused)"),
00085     N_("The parameter name %s was used twice"),
00086     N_("The MIDI-Instrument %d was used twice"),
00087     N_("MIDI-Mapping: Channel %d was used twice"),
00088     N_("Logik %s contains more than one ELSE statement"),
00089     N_("Retuning %s contains more than one ELSE statement"),
00090     N_("The alternative %d is ued twice in %s"),
00091     N_(" "),
00092     N_(" "),
00093 
00094     / * Undefinierte Symbole * /
00095     / * 25 * / N_("Undefined symbol: %s"),
00096     N_("Undefined interval: %s"),
00097     N_("Undefined tone: %s"),
00098     N_("Undefined tonesystem: %s"),
00099     N_("Undefined retuning: %s"),
00100     N_("Undefined pattern: %s (in logic %s)"),
00101     N_("Undefined parameter name: %s in %s"),
00102     N_("Undefined interval: %s (in %s)"),
00103     N_("Undefined tone: %s (in tone system %s)"),
00104     N_("Undefined tone: %s (in retuning %s)"),
00105     / * 35 * / N_("(to be reused)"),
00106     N_("Undefined retuning: %s (in retuning %s)"),
00107     N_("Undefined initial tuning: %s (in logic %s)"),
00108     N_("Undefined action: %s (in logic %s)"),
00109     N_("Undefined parameter: %s (in call %s from logic %s)"),
00110     N_(" "),
00111     N_(" "),
00112     N_(" "),
00113     N_(" "),
00114     N_(" "),
00115 
00116     / * Range violations * /
00117     / * 45 * /
00118     N_("Bad MIDI channel (valid: 1...16)"),
00119     N_("Bad interval value in %s"),
00120     N_("Bad key %d (valid: 36..96 (in tonesystem %s)"),
00121     N_("Not-complex tone in retuning %s ( %s )"),
00122     N_("Bad value in %s"), / * (allgemein) * /
00123     N_("Bad MIDI-Code in logic %s (expecting %s )"),
00124     N_("Logic %s must not be called by ELSE"),
00125     N_("A Key needs to be a single character ( %s )"),
00126     N_("Division by (nearly) 0 in line %d"),
00127     N_(" "),
00128     N_(" "),
00129     N_(" "),
00130     N_(" "),
00131     N_(" "),
00132     N_(" "),
00133 
00134     / * Parameterfehler * /
00135     / * 60 * / N_("In retuning %s and %s : Bad parameters"),
00136     N_("In logic %s : Bad number of parameters ( %s )"),
00137     N_("In logik %s : initial tuning %s mustn't have parameters"),
00138     N_("In collection %s : call to %s mustn't have parameters"),
00139     N_("In case %s : call to %s mustn't have parameters"),
00140 
00141     / * Dependencies * /
00142     / * 65 * / N_("Tones %s and %s are dependent"),
00143     N_("Retunings/logics %s and %s are dependent"),
00144     N_("Intervals %s and %s are dependent"),
00145     N_("MIDI-channels are dependent"),
00146     N_(" "),
00147 
00148     / * Syntaxfehler (vom BISON-Parser aufgerufen) * /
00149     / * 70 * / N_("Wrong character ! Expecting %s (line %d)"),
00150     N_("Bad interval declaration of intervall %s"),
00151     N_("Bad tone declaration of tone %s"),
00152     N_("Bad tonesystem declaration. (line %d)"),
00153     N_("Bad parameter list in call to %s in line %d"),
00154     N_("Bad retuning in line %d"),
00155     N_("bad pattern decl. at %s"),
00156     N_("Bad MIDI list in line %d"),
00157     N_("No hex number after # (line %d)"),
00158     N_(" ")
00159 
00160   };
00161 
00162 const mutChar * Warning_text[] =
00163   {
00164     / *  0 * / N_("Undefined compiler warning"),
00165     N_("MIDI event in logic %s does not start with channel 0 status byte. Value corrected."),
00166     N_("Non existent harmony event in logic %s"),
00167     N_("Non well defined event %s in logic %s"),
00168     N_("Event ELSE is last in %s"),
00169     / *  5 * / N_("MIDI channels wasted in channel assotiation"),
00170     N_("No file given, trying test.mut"),
00171     N_("Invalid configuration file"),
00172     N_("Intersection of MIDI channels %d und %d"),
00173     N_("Error in GMN-File %s position(%d, %d): %s")
00174   };
00175 */
00176 #endif
00177 
00178 

Erzeugt am Sun Aug 21 2011 10:51:51 für Mutabor von doxygen 1.7.4