1 /* Pawn compiler - Error message strings (plain and compressed formats)
3 * Copyright (c) ITB CompuPhase, 2000-2006
5 * This software is provided "as-is", without any express or implied warranty.
6 * In no event will the authors be held liable for any damages arising from
7 * the use of this software.
9 * Permission is granted to anyone to use this software for any purpose,
10 * including commercial applications, and to alter it and redistribute it
11 * freely, subject to the following restrictions:
13 * 1. The origin of this software must not be misrepresented; you must not
14 * claim that you wrote the original software. If you use this software in
15 * a product, an acknowledgment in the product documentation would be
16 * appreciated but is not required.
17 * 2. Altered source versions must be plainly marked as such, and must not be
18 * misrepresented as being the original software.
19 * 3. This notice may not be removed or altered from any source distribution.
21 * Version: $Id: sc5.sch 3590 2006-06-24 14:16:39Z thiadmer $
24 SC_FUNC int strexpand(char *dest, unsigned char *source, int maxlen, unsigned char pairtable[128][2]);
26 #define SCPACK_TABLE errstr_table
27 /*-*SCPACK start of pair table, do not change or remove this line */
28 unsigned char errstr_table[][2] = {
29 {101,32}, {111,110}, {116,32}, {105,110}, {97,114}, {116,105}, {100,32}, {115,32}, {101,114}, {97,108}, {101,110}, {37,115}, {133,129}, {34,139}, {141,34}, {117,110},
30 {110,111}, {114,101}, {115,105}, {121,32}, {97,116}, {111,114}, {97,110}, {32,142}, {109,98}, {115,116}, {41,10}, {100,101}, {109,138}, {101,134}, {98,108}, {140,32},
31 {111,108}, {114,97}, {144,130}, {118,137}, {143,99}, {102,164}, {115,121}, {166,152}, {167,160}, {117,115}, {97,32}, {115,146}, {97,158}, {149,32}, {132,161}, {105,134},
32 {103,32}, {163,175}, {103,117}, {178,156}, {136,32}, {132,179}, {131,177}, {111,102}, {116,104}, {101,120}, {105,135}, {165,159}, {101,100}, {99,104}, {118,132}, {168,151},
33 {105,172}, {190,192}, {155,102}, {174,147}, {183,32}, {109,97}, {116,111}, {99,129}, {101,135}, {181,130}, {98,128}, {115,10}, {112,145}, {153,148}, {44,32}, {40,191},
34 {169,130}, {151,10}, {101,10}, {207,154}, {109,208}, {116,97}, {105,99}, {194,131}, {193,128}, {34,32}, {129,32}, {132,97}, {100,105}, {146,122}, {110,32}, {137,32},
35 {104,97}, {101,108}, {117,108}, {99,111}, {108,111}, {109,148}, {199,153}, {58,209}, {111,112}, {97,115}, {108,128}, {232,136}, {230,150}, {150,32}, {204,171}, {131,176},
36 {212,202}, {102,105}, {119,105}, {185,238}, {109,112}, {116,136}, {165,140}, {197,147}, {102,149}, {111,32}, {131,32}, {213,176}, {110,117}, {115,117}, {118,128}
38 /*-*SCPACK end of pair table, do not change or remove this line */
40 static char *errmsg[] = {
42 /*001*/ "expected token: \"%s\", but found \"%s\"\n",
43 /*002*/ "only a single statement (or expression) can follow each \"case\"\n",
44 /*003*/ "declaration of a local variable must appear in a compound block\n",
45 /*004*/ "function \"%s\" is not implemented\n",
46 /*005*/ "function may not have arguments\n",
47 /*006*/ "must be assigned to an array\n",
48 /*007*/ "operator cannot be redefined\n",
49 /*008*/ "must be a constant expression; assumed zero\n",
50 /*009*/ "invalid array size (negative, zero or out of bounds)\n",
51 /*010*/ "invalid function or declaration\n",
52 /*011*/ "invalid outside functions\n",
53 /*012*/ "invalid function call, not a valid address\n",
54 /*013*/ "no entry point (no public functions)\n",
55 /*014*/ "invalid statement; not in switch\n",
56 /*015*/ "\"default\" case must be the last case in switch statement\n",
57 /*016*/ "multiple defaults in \"switch\"\n",
58 /*017*/ "undefined symbol \"%s\"\n",
59 /*018*/ "initialization data exceeds declared size\n",
60 /*019*/ "not a label: \"%s\"\n",
61 /*020*/ "invalid symbol name \"%s\"\n",
62 /*021*/ "symbol already defined: \"%s\"\n",
63 /*022*/ "must be lvalue (non-constant)\n",
64 /*023*/ "array assignment must be simple assignment\n",
65 /*024*/ "\"break\" or \"continue\" is out of context\n",
66 /*025*/ "function heading differs from prototype\n",
67 /*026*/ "no matching \"#if...\"\n",
68 /*027*/ "invalid character constant\n",
69 /*028*/ "invalid subscript (not an array or too many subscripts): \"%s\"\n",
70 /*029*/ "invalid expression, assumed zero\n",
71 /*030*/ "compound statement not closed at the end of file (started at line %d)\n",
72 /*031*/ "unknown directive\n",
73 /*032*/ "array index out of bounds (variable \"%s\")\n",
74 /*033*/ "array must be indexed (variable \"%s\")\n",
75 /*034*/ "argument does not have a default value (argument %d)\n",
76 /*035*/ "argument type mismatch (argument %d)\n",
77 /*036*/ "empty statement\n",
78 /*037*/ "invalid string (possibly non-terminated string)\n",
79 /*038*/ "extra characters on line\n",
80 /*039*/ "constant symbol has no size\n",
81 /*040*/ "duplicate \"case\" label (value %d)\n",
82 /*041*/ "invalid ellipsis, array size is not known\n",
83 /*042*/ "invalid combination of class specifiers\n",
84 /*043*/ "character constant exceeds range for packed string\n",
85 /*044*/ "positional parameters must precede all named parameters\n",
86 /*045*/ "too many function arguments\n",
87 /*046*/ "unknown array size (variable \"%s\")\n",
88 /*047*/ "array sizes do not match, or destination array is too small\n",
89 /*048*/ "array dimensions do not match\n",
90 /*049*/ "invalid line continuation\n",
91 /*050*/ "invalid range\n",
92 /*051*/ "invalid subscript, use \"[ ]\" operators on major dimensions\n",
93 /*052*/ "multi-dimensional arrays must be fully initialized\n",
94 /*053*/ "exceeding maximum number of dimensions\n",
95 /*054*/ "unmatched closing brace (\"}\")\n",
96 /*055*/ "start of function body without function header\n",
97 /*056*/ "arrays, local variables and function arguments cannot be public (variable \"%s\")\n",
98 /*057*/ "unfinished expression before compiler directive\n",
99 /*058*/ "duplicate argument; same argument is passed twice\n",
100 /*059*/ "function argument may not have a default value (variable \"%s\")\n",
101 /*060*/ "multiple \"#else\" directives between \"#if ... #endif\"\n",
102 /*061*/ "\"#elseif\" directive follows an \"#else\" directive\n",
103 /*062*/ "number of operands does not fit the operator\n",
104 /*063*/ "function result tag of operator \"%s\" must be \"%s\"\n",
105 /*064*/ "cannot change predefined operators\n",
106 /*065*/ "function argument may only have a single tag (argument %d)\n",
107 /*066*/ "function argument may not be a reference argument or an array (argument \"%s\")\n",
108 /*067*/ "variable cannot be both a reference and an array (variable \"%s\")\n",
109 /*068*/ "invalid rational number precision in #pragma\n",
110 /*069*/ "rational number format already defined\n",
111 /*070*/ "rational number support was not enabled\n",
112 /*071*/ "user-defined operator must be declared before use (function \"%s\")\n",
113 /*072*/ "\"sizeof\" operator is invalid on \"function\" symbols\n",
114 /*073*/ "function argument must be an array (argument \"%s\")\n",
115 /*074*/ "#define pattern must start with an alphabetic character\n",
116 /*075*/ "input line too long (after substitutions)\n",
117 /*076*/ "syntax error in the expression, or invalid function call\n",
118 /*077*/ "malformed UTF-8 encoding, or corrupted file: %s\n",
119 /*078*/ "function uses both \"return\" and \"return <value>\"\n",
120 /*079*/ "inconsistent return types (array & non-array)\n",
121 /*080*/ "unknown symbol, or not a constant symbol (symbol \"%s\")\n",
122 /*081*/ "cannot take a tag as a default value for an indexed array parameter (symbol \"%s\")\n",
123 /*082*/ "user-defined operators and native functions may not have states\n",
124 /*083*/ "a function or variable may only belong to a single automaton (symbol \"%s\")\n",
125 /*084*/ "state conflict: one of the states is already assigned to another implementation (symbol \"%s\")\n",
126 /*085*/ "no states are defined for symbol \"%s\"\n",
127 /*086*/ "unknown automaton \"%s\"\n",
128 /*087*/ "unknown state \"%s\" for automaton \"%s\"\n",
129 /*088*/ "public variables and local variables may not have states (symbol \"%s\")\n",
130 /*089*/ "state variables may not be initialized (symbol \"%s\")\n",
131 /*090*/ "public functions may not return arrays (symbol \"%s\")\n",
132 /*091*/ "ambiguous constant; tag override is required (symbol \"%s\")\n",
133 /*092*/ "number of arguments does not match definition\n"
135 "\271pect\235\306k\212:\227\316bu\202fo\217\206\216\012",
136 "\201l\223\252s\203g\352\315e\234\202(\255\363\201) c\355f\240\344w ea\275 \042c\351e\042\012",
137 "\233cl\333\237\304\252\344c\337\330\324appe\204 \372\252\343\364o\217\206\236ock\012",
138 "\366\227 \272\242i\364le\234t\274\012",
139 "\273\367\242\340\376\265t\313",
140 "\360a\253gn\235\306 \355\256y\012",
141 "\353\224\255c\226\242\312\221\327\274\012",
142 "\360\252\354\202\363\201; \351\375m\235z\210o\012",
143 "\266\303\335\200(nega\205ve\316z\210\371\255ou\202\304bo\217ds\232",
144 "\266\273\255\233cl\333\214\012",
145 "\266out\222d\200\366\313",
146 "\266\273c\211l\316\242\252\261add\221s\313",
147 "\220 \212tr\223po\203\202(\220 pu\236\326 \366s\232",
148 "\266\315e\234t; \242\372s\362t\275\012",
149 "\042\302a\342t\331c\351\200\360\270\200l\351\202c\351\200\372s\362t\275 \315e\234t\012",
150 "m\342\205p\352\302a\342t\207\372\042s\362t\275\042\012",
151 "\217\327\235\277\012",
152 "\203i\205\211iza\237d\224\252\271ce\274\207\233cl\204\235\335\322",
153 "\242\252lab\341\347",
154 "\266\250 nam\200\216\012",
155 "\250 \211\221ad\223\327\274\347",
156 "\360l\243u\200(n\201-\354t\232",
157 "\303a\253gn\234\202\360\222\364\352a\253gn\234t\012",
158 "\042b\221ak\331\255\042\307t\203ue\331\272ou\202\304\307t\271t\012",
159 "\273head\357\334ff\210\207from pro\306typ\322",
160 "\220 \345\275\357\042#if...\042\012",
161 "\266\275\333ct\264\354t\012",
162 "\266\375bscrip\202(\242\355\303\255\306\371m\226\223\375bscripts)\347",
163 "\266\363\201\316\351\375m\235z\210o\012",
164 "\343\364o\217\206\315e\234\202\242c\344s\235a\202\270\200\212\206\304\361\352(\231\204t\235a\202l\203\200%d\232",
165 "\217k\220w\336\334\221c\205v\322",
166 "\303\203\233x ou\202\304bo\217d\207(\330\216\232",
167 "\303\360\203\233x\235(\330\216\232",
168 "\311do\310\242\340\376\252\302a\342\202\243u\200(\311%d\232",
169 "\311typ\200mis\345\275 (\311%d\232",
170 "e\364t\223\315e\234t\012",
171 "\266\231r\357(po\253\236\223n\201-\365m\203\224\235\231r\203g\232",
172 "\271t\241 \275\333c\365\207\332l\203\322",
173 "\354\202\250 \340\207\220 \335\322",
174 "dupl\326\224\200\042c\351e\331lab\341 (\243u\200%d\232",
175 "\266\341lip\222s\316\303\335\200\272\242k\220wn\012",
176 "\266\343\230\203a\237\304cl\351\207speci\361\210\313",
177 "\275\333ct\264\354\202\271ce\274\207r\226g\200f\255pack\235\231r\203g\012",
178 "po\222\214\337p\333me\365\207\324\314c\274\200\211l nam\235p\333me\365\313",
179 "\306\371m\226\223\273\265t\313",
180 "\217k\220w\336\303\335\200(\330\216\232",
181 "\303\335\310d\371\242\345\275\316\255\233\231\203a\237\303\272\306\371sm\211l\012",
182 "\303\334\234\222\201\207d\371\242\345\275\012",
183 "\266l\203\200\307t\203ua\214\012",
185 "\266\375bscript\316\251\200\042[ ]\331\353\224\225\207\332\305j\255\334\234\222\201\313",
186 "m\342\205-\334\234\222\201\337\256y\207\360f\342l\223\203i\205\211iz\274\012",
187 "\271ce\274\357\305ximum \374\230\264\304\334\234\222\201\313",
188 "\217\345\275\235c\344s\357b\241c\200(\042}\042\232",
189 "\231\204\202\304\273bod\223\362\270ou\202\273head\210\012",
190 "\256ys\316\344c\337\301\310\226\206\273\265t\207c\226\242\312pu\236\326 (\330\216\232",
191 "\217f\203ish\235\363\332be\370\200\343\364il\264\334\221c\205v\322",
192 "dupl\326\224\200\265t; sam\200\311\272p\351s\235tw\326\322",
193 "\273\311\367\242\340\376\252\302a\342\202\243u\200(\330\216\232",
194 "m\342\205p\352\042#\341se\331\334\221c\205v\310betwe\212 \042#if ... #\212\334f\042\012",
195 "\042#\341seif\331\334\221c\205\376f\240\344w\207\355\042#\341se\331\334\221c\205v\322",
196 "\374\230\264\304\353\226d\207do\310\242\361\202\270\200\353\224\225\012",
197 "\273\221s\342\202\373\304\353\224\225\227 \360\216\012",
198 "c\226\242\275\226g\200\314\327\235\353\224\225\313",
199 "\273\311\367\201l\223\340\376\252s\203g\352\373(\311%d\232",
200 "\273\311\367\242\312\252\221f\210\212c\200\311\255\355\303(\311\216\232",
201 "\330c\226\242\312bo\270 \252\221f\210\212c\200\226\206\355\303(\330\216\232",
202 "\266\241\214\337\374\230\264\314ci\222\332\372#p\241g\305\012",
203 "\241\214\337\374\230\264\370\305\202\211\221ad\223\327\274\012",
204 "\241\214\337\374\230\264\375pp\225\202wa\207\242\212\254\274\012",
205 "\251\210-\327\235\353\224\255\360\233cl\204\235be\370\200\251\200(\366\227\232",
206 "\042\335e\267\331\353\224\255\272\266\332\042\366\331\250\313",
207 "\273\311\360\355\303(\311\216\232",
208 "#\327\200p\224\365\336\324\231\204\202\362\270 \355\211p\340be\205c \275\333c\365\012",
209 "\203pu\202l\203\200\306\371l\201\260(aft\264\375bs\205tu\214s\232",
210 "\246n\325x \210r\255\372\270\200\363\201\316\255\266\273c\211l\012",
211 "m\211\370m\235UTF-8 \212\343d\203g\316\255c\225rupt\235\361le: \213\012",
212 "\273\251\310bo\270 \042\221turn\331\226\206\042\221tur\336<\243ue>\042\012",
213 "\203\307\222\231\212\202\221tur\336typ\310(\303& n\201-\256y\232",
214 "\217k\220w\336\250\316\255\242\252\354\202\250 \323",
215 "c\226\242\325k\200\252\373a\207\252\302a\342\202\243u\200f\255\355\203\233x\235\303p\333met\264\323",
216 "\251\210-\327\235\353\224\225\207\226\206na\205\376\366\207\367\242\340\376\315e\313",
217 "\252\273\255\330\367\201l\223b\341\201\260\306 \252s\203g\352au\306\345\332\323",
218 "\315\200\307fl\326t: \201\200\304\270\200\315\310\272\211\221ad\223a\253gn\235\306 a\220\270\264i\364le\234\325\237\323",
219 "\220 \315\310\204\200\327\235f\255\277\012",
220 "\217k\220w\336au\306\345\201\321",
221 "\217k\220w\336\315\200\216 f\255au\306\345\201\321",
222 "pu\236\326 \301\310\226\206\344c\337\301\310\367\242\340\376\315\310\323",
223 "\315\200\301\310\367\242\312\203i\205\211iz\235\323",
224 "pu\236\326 \366\207\367\242\221tur\336\256y\207\323",
225 "a\230i\262ou\207\354t; \373ov\210rid\200\272\221qui\221\206\323",
226 "\374\230\264\304\265t\207do\310\242\345\275 \327i\214\012",
230 static char *fatalmsg[] = {
232 /*100*/ "cannot read from file: \"%s\"\n",
233 /*101*/ "cannot write to file: \"%s\"\n",
234 /*102*/ "table overflow: \"%s\"\n",
235 /* table can be: loop table
238 * option table (response file)
239 * peephole optimizer table
241 /*103*/ "insufficient memory\n",
242 /*104*/ "invalid assembler instruction \"%s\"\n",
243 /*105*/ "numeric overflow, exceeding capacity\n",
244 /*106*/ "compiled script exceeds the maximum memory size (%ld bytes)\n",
245 /*107*/ "too many error messages on one line\n",
246 /*108*/ "codepage mapping file not found\n",
247 /*109*/ "invalid path: \"%s\"\n",
248 /*110*/ "assertion failed: %s\n",
249 /*111*/ "user error: %s\n",
251 "c\226\242\221a\206from \361le\347",
252 "c\226\242writ\200\306 \361le\347",
253 "t\254\200ov\210f\344w\347",
254 "\203\375ff\326i\212\202mem\225y\012",
255 "\266\351se\230l\264\203\231ruc\214\321",
256 "\374m\210\326 ov\210f\344w\316\271ce\274\357capacity\012",
257 "\343\364il\235scrip\202\271ce\274\207\270\200\305ximum mem\225\223\335\200(%l\206bytes\232",
258 "\306\371m\226\223\210r\255messag\310\332\201\200l\203\322",
259 "\343\233pag\200\305pp\357\361\352\242fo\217d\012",
261 "\351s\210\237fail\274: \213\012",
262 "\251\264\210r\225: \213\012"
266 static char *warnmsg[] = {
268 /*200*/ "symbol \"%s\" is truncated to %d characters\n",
269 /*201*/ "redefinition of constant/macro (symbol \"%s\")\n",
270 /*202*/ "number of arguments does not match definition\n",
271 /*203*/ "symbol is never used: \"%s\"\n",
272 /*204*/ "symbol is assigned a value that is never used: \"%s\"\n",
273 /*205*/ "redundant code: constant expression is zero\n",
274 /*206*/ "redundant test: constant expression is non-zero\n",
275 /*207*/ "unknown #pragma\n",
276 /*208*/ "function with tag result used before definition, forcing reparse\n",
277 /*209*/ "function \"%s\" should return a value\n",
278 /*210*/ "possible use of symbol before initialization: \"%s\"\n",
279 /*211*/ "possibly unintended assignment\n",
280 /*212*/ "possibly unintended bitwise operation\n",
281 /*213*/ "tag mismatch\n",
282 /*214*/ "possibly a \"const\" array argument was intended: \"%s\"\n",
283 /*215*/ "expression has no effect\n",
284 /*216*/ "nested comment\n",
285 /*217*/ "loose indentation\n",
286 /*218*/ "old style prototypes used with optional semicolumns\n",
287 /*219*/ "local variable \"%s\" shadows a variable at a preceding level\n",
288 /*220*/ "expression with tag override must appear between parentheses\n",
289 /*221*/ "label name \"%s\" shadows tag name\n",
290 /*222*/ "number of digits exceeds rational number precision\n",
291 /*223*/ "redundant \"sizeof\": argument size is always 1 (symbol \"%s\")\n",
292 /*224*/ "indeterminate array size in \"sizeof\" expression (symbol \"%s\")\n",
293 /*225*/ "unreachable code\n",
294 /*226*/ "a variable is assigned to itself (symbol \"%s\")\n",
295 /*227*/ "more initiallers than enum fields\n",
296 /*228*/ "length of initialler exceeds size of the enum field\n",
297 /*229*/ "index tag mismatch (symbol \"%s\")\n",
298 /*230*/ "no implementation for state \"%s\" in function \"%s\", no fall-back\n",
299 /*231*/ "state specification on forward declaration is ignored\n",
300 /*232*/ "output file is written, but with compact encoding disabled\n",
301 /*233*/ "state variable \"%s\" shadows a global variable\n",
302 /*234*/ "function is deprecated (symbol \"%s\") %s\n",
303 /*235*/ "public function lacks forward declaration (symbol \"%s\")\n",
304 /*236*/ "unknown parameter in substitution (incorrect #define pattern)\n"
306 "\277 \272tr\244\224\235\306 %\206\275\333c\365\313",
307 "\221\327i\237\304\354t/\305cr\371\323",
308 "\374\230\264\304\265t\207do\310\242\345\275 \327i\214\012",
309 "\250 \272nev\264\251\274\347",
310 "\250 \272a\253gn\235\252\243u\200\270a\202\272nev\264\251\274\347",
311 "\221d\217d\226\202\343\233: \354\202\363\332\272z\210o\012",
312 "\221d\217d\226\202te\231: \354\202\363\332\272n\201-z\210o\012",
313 "\217k\220w\336#p\241g\305\012",
314 "\273\362\270 \373\221s\342\202\251\235be\370\200\327i\214\316\370c\357\221p\204s\322",
315 "\366\227 sho\342\206\221tur\336\252\243u\322",
316 "po\253\236\200\251\200\304\250 be\370\200\203i\205\211iza\214\347",
317 "po\253\236\223\217\203t\212\233\206a\253gn\234t\012",
318 "po\253\236\223\217\203t\212\233\206bit\362s\200\353a\214\012",
319 "\373mis\345\275\012",
320 "po\253\236\223\252\042\346\331\303\311wa\207\203t\212\233d\347",
321 "\363\332\340\207\220 effect\012",
322 "ne\231\235\343m\234t\012",
323 "\344os\200\203d\212\325\214\012",
324 "\240\206\231y\352pro\306typ\310\251\235\362\270 \350\214\337sem\326\240umn\313",
325 "\344c\337\330\216 s\340dow\207\252\330a\202\252\314c\274\357lev\341\012",
326 "\363\332\362\270 \373ov\210rid\200\324appe\204 betwe\212 p\204\212\270ese\313",
327 "lab\341 nam\200\216 s\340dow\207\373nam\322",
328 "\374\230\264\304\334git\207\271ce\274\207\241\214\337\374\230\264\314ci\222\201\012",
329 "\221d\217d\226\202\042\335e\267\042: \311\335\200\272\211way\2071 \323",
330 "\203\233\365m\203\224\200\303\335\200\372\042\335e\267\331\363\332\323",
331 "\217\221a\275\254\200\343\233\012",
332 "\252\330\272a\253gn\235\306 its\341f \323",
333 "m\225\200\203i\205\211l\210\207\270\355\212um \361\341d\313",
334 "l\212g\270 \304\203i\205\211l\264\271ce\274\207\335\200\304\270\200\212um \361\341d\012",
335 "\203\233x \373mis\345\275 \323",
336 "\220 i\364le\234\325\237f\255\315\200\216 \372\366\227\316\220 f\211l-back\012",
337 "\315\200specif\326a\237\332\370w\204\206\233cl\333\237\272ig\220\221d\012",
338 "outpu\202\361\352\272writt\212\316bu\202\362\270 \343\364ac\202\212\343d\357\334s\254\274\012",
339 "\315\200\330\216 s\340dow\207\252g\344b\337\301\322",
340 "\273\272\233pr\326\224\235\317) \213\012",
341 "pu\236\326 \273lack\207\370w\204\206\233cl\333\237\323",
342 "\217k\220w\336p\333met\264\372\375bs\205tu\237(\203c\225\221c\202#\327\200p\224\365n\232"