Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – tendra.SVN – Blame – //branches/tendra4/src/tools/tld/gen-errors.c – Rev 2

Subversion Repositories tendra.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/* Automatically generated by 'BUILD_ERRORS' */
2
 
3
#include "gen-errors.h"
4
#include "error.h"
5
#include "ostream.h"
6
 
7
/* Header from input file '/u/g/release/Source/src/tools/tld/errors/arg-data.e' */
8
#include "solve-cycles.h"
9
 
10
/* Header from input file '/u/g/release/Source/src/tools/tld/errors/builder.e' */
11
 
12
/* Header from input file '/u/g/release/Source/src/tools/tld/errors/capsule.e' */
13
#include "solve-cycles.h"
14
 
15
/* Header from input file '/u/g/release/Source/src/tools/tld/errors/contents.e' */
16
 
17
/* Header from input file '/u/g/release/Source/src/tools/tld/errors/extract.e' */
18
 
19
/* Header from input file '/u/g/release/Source/src/tools/tld/errors/library.e' */
20
#include "solve-cycles.h"
21
 
22
/* Header from input file '/u/g/release/Source/src/tools/tld/errors/linker.e' */
23
#include "solve-cycles.h"
24
 
25
/* Header from input file '/u/g/release/Source/src/tools/tld/errors/main.e' */
26
#include "solve-cycles.h"
27
 
28
/* Header from input file '/u/g/release/Source/src/tools/tld/errors/name-entry.e' */
29
#include "solve-cycles.h"
30
 
31
/* Header from input file '/u/g/release/Source/src/tools/tld/errors/rename-file.e' */
32
 
33
/* Header from input file '/u/g/release/Source/src/tools/tld/errors/shape-entry.e' */
34
 
35
/* Header from input file '/u/g/release/Source/src/tools/tld/errors/tdf-read.e' */
36
#include "solve-cycles.h"
37
 
38
 
39
static ETagDataT ET [] = {
40
    UB "file name" UE,
41
    UB "system error" UE,
42
    UB "shape name" UE,
43
    UB "name" UE,
44
    UB "option" UE,
45
    UB "usage" UE,
46
    UB "option location" UE,
47
    UB "cap name" UE,
48
    UB "line number" UE,
49
    UB "unit set name" UE,
50
    UB "byte number" UE,
51
    UB "magic name" UE,
52
    UB "proper magic name" UE,
53
    UB "major version" UE,
54
    UB "proper major version" UE,
55
    UB "shape count" UE,
56
    UB "name count" UE,
57
    UB "identifier" UE,
58
    UB "identifier limit" UE,
59
    UB "correct offset" UE,
60
    UB "offset" UE,
61
    UB "version number" UE,
62
    UB "unit set count" UE,
63
    UB "unit count" UE,
64
    UB "previous file name" UE,
65
    UB "count number" UE,
66
    UB "shape number" UE,
67
    UB "unit number" UE,
68
    UB "mapping number" UE,
69
    UB "builtin name" UE,
70
    UB "character" UE,
71
    UB "string name" UE,
72
    UB "error name" UE,
73
    UB "message" UE,
74
    UB "except name" UE,
75
    UB "assertion" UE,
76
    UB "block address" UE,
77
    UB "allocation file name" UE,
78
    UB "allocation line number" UE,
79
    UB "lib name" UE,
80
    UB "capsule index" UE,
81
    UB "num capsules" UE,
82
    UB "mode" UE,
83
    UB "character size" UE,
84
    UB "name type" UE,
85
    ERROR_END_TAG_LIST
86
};
87
 
88
static ErrorDataT EE [] = {
89
    UB {
90
	"tld multiple debug files",
91
	ERROR_SEVERITY_FATAL,
92
	"more than one debug file specified",
93
	NIL (GenericP)
94
    } UE,
95
    UB {
96
	"tld cannot open debug file",
97
	ERROR_SEVERITY_FATAL,
98
	"cannot open debug file '${file name}': ${system error}",
99
	NIL (GenericP)
100
    } UE,
101
    UB {
102
	"tld multiple output files",
103
	ERROR_SEVERITY_FATAL,
104
	"more than one output file specified",
105
	NIL (GenericP)
106
    } UE,
107
    UB {
108
	"tld multiple unit files",
109
	ERROR_SEVERITY_FATAL,
110
	"more than one unit set file specified",
111
	NIL (GenericP)
112
    } UE,
113
    UB {
114
	"multiply renamed name",
115
	ERROR_SEVERITY_ERROR,
116
	"${shape name} '${name}' is renamed multiple times",
117
	NIL (GenericP)
118
    } UE,
119
    UB {
120
	"arg parse unknown option",
121
	ERROR_SEVERITY_FATAL,
122
	"unknown option '${option}'\n\
123
${usage}",
124
	NIL (GenericP)
125
    } UE,
126
    UB {
127
	"arg parse unknown short opt",
128
	ERROR_SEVERITY_FATAL,
129
	"unknown short option '${option}' at '${option location}'\n\
130
${usage}",
131
	NIL (GenericP)
132
    } UE,
133
    UB {
134
	"arg parse ambiguous option",
135
	ERROR_SEVERITY_FATAL,
136
	"ambiguous option '${option}'\n\
137
${usage}",
138
	NIL (GenericP)
139
    } UE,
140
    UB {
141
	"arg parse missing argument",
142
	ERROR_SEVERITY_FATAL,
143
	"missing argument for option '${option}'\n\
144
${usage}",
145
	NIL (GenericP)
146
    } UE,
147
    UB {
148
	"arg parse missing short arg",
149
	ERROR_SEVERITY_FATAL,
150
	"missing argument for option '${option}' at '${option location}'\n\
151
${usage}",
152
	NIL (GenericP)
153
    } UE,
154
    UB {
155
	"duplicate capsule name",
156
	ERROR_SEVERITY_ERROR,
157
	"capsule name '${cap name}' occurs more than once in input capsule list",
158
	NIL (GenericP)
159
    } UE,
160
    UB {
161
	"cannot open unit set file",
162
	ERROR_SEVERITY_FATAL,
163
	"cannot open unit set file '${file name}': ${system error}",
164
	NIL (GenericP)
165
    } UE,
166
    UB {
167
	"unit set expected quote",
168
	ERROR_SEVERITY_FATAL,
169
	"${file name}: ${line number}: expected double quote to begin unit set name",
170
	NIL (GenericP)
171
    } UE,
172
    UB {
173
	"unit set illegal escape",
174
	ERROR_SEVERITY_FATAL,
175
	"${file name}: ${line number}: illegal escape sequence in unit set name",
176
	NIL (GenericP)
177
    } UE,
178
    UB {
179
	"unit set eof in name",
180
	ERROR_SEVERITY_FATAL,
181
	"${file name}: ${line number}: end of file in unit set name",
182
	NIL (GenericP)
183
    } UE,
184
    UB {
185
	"unit set duplicate name",
186
	ERROR_SEVERITY_FATAL,
187
	"${file name}: unit set name '${unit set name}' occurs more than once",
188
	NIL (GenericP)
189
    } UE,
190
    UB {
191
	"unit set no tld name",
192
	ERROR_SEVERITY_FATAL,
193
	"${file name}: linker information unit set name 'tld' does not occur",
194
	NIL (GenericP)
195
    } UE,
196
    UB {
197
	"capsule bad magic",
198
	ERROR_SEVERITY_ERROR,
199
	"${file name}: byte ${byte number}: bad magic number '${magic name}' should be '${proper magic name}'",
200
	NIL (GenericP)
201
    } UE,
202
    UB {
203
	"capsule bad version",
204
	ERROR_SEVERITY_ERROR,
205
	"${file name}: byte ${byte number}: illegal major version number ${major version}",
206
	NIL (GenericP)
207
    } UE,
208
    UB {
209
	"capsule version mismatch",
210
	ERROR_SEVERITY_ERROR,
211
	"${file name}: byte ${byte number}: major version number mismatch (${major version} should be ${proper major version})",
212
	NIL (GenericP)
213
    } UE,
214
    UB {
215
	"duplicate unit set name",
216
	ERROR_SEVERITY_ERROR,
217
	"${file name}: byte ${byte number}: unit set '${unit set name}' occurs more than once",
218
	NIL (GenericP)
219
    } UE,
220
    UB {
221
	"out of order unit set name",
222
	ERROR_SEVERITY_ERROR,
223
	"${file name}: byte ${byte number}: unit set '${unit set name}' occurs in wrong order",
224
	NIL (GenericP)
225
    } UE,
226
    UB {
227
	"unknown unit set name",
228
	ERROR_SEVERITY_ERROR,
229
	"${file name}: byte ${byte number}: unit set '${unit set name}' is unknown",
230
	NIL (GenericP)
231
    } UE,
232
    UB {
233
	"duplicate shape name",
234
	ERROR_SEVERITY_ERROR,
235
	"${file name}: byte ${byte number}: shape '${shape name}' occurs more than once",
236
	NIL (GenericP)
237
    } UE,
238
    UB {
239
	"shape and name count mismatch",
240
	ERROR_SEVERITY_ERROR,
241
	"${file name}: byte ${byte number}: external name count ${name count} does not equal shape count ${shape count}",
242
	NIL (GenericP)
243
    } UE,
244
    UB {
245
	"name id out of range",
246
	ERROR_SEVERITY_ERROR,
247
	"${file name}: byte ${byte number}: external ${shape name} name '${name}' has out of range identifier ${identifier} (greater than ${identifier limit})",
248
	NIL (GenericP)
249
    } UE,
250
    UB {
251
	"name id used multiple times",
252
	ERROR_SEVERITY_ERROR,
253
	"${file name}: byte ${byte number}: external ${shape name} name '${name}' is bound to previously used identifier ${identifier}",
254
	NIL (GenericP)
255
    } UE,
256
    UB {
257
	"too many tld units",
258
	ERROR_SEVERITY_ERROR,
259
	"${file name}: byte ${byte number}: capsule contains wrong number of units in linker information unit set (should be one)",
260
	NIL (GenericP)
261
    } UE,
262
    UB {
263
	"tld2 unit set type obsolete",
264
	ERROR_SEVERITY_WARNING,
265
	"${file name}: byte ${byte number}: capsule contains 'tld2' unit set type which is no longer supported",
266
	NIL (GenericP)
267
    } UE,
268
    UB {
269
	"too many tld unit counts",
270
	ERROR_SEVERITY_ERROR,
271
	"${file name}: byte ${byte number}: capsule contains wrong number of counts in linker information unit (should be zero)",
272
	NIL (GenericP)
273
    } UE,
274
    UB {
275
	"too many tld unit mappings",
276
	ERROR_SEVERITY_ERROR,
277
	"${file name}: byte ${byte number}: capsule contains wrong number of mappings in linker information unit (should be zero)",
278
	NIL (GenericP)
279
    } UE,
280
    UB {
281
	"tld unit wrong size",
282
	ERROR_SEVERITY_ERROR,
283
	"${file name}: byte ${byte number}: linker information unit contents is the wrong size (final offset is ${offset} but should be ${correct offset})",
284
	NIL (GenericP)
285
    } UE,
286
    UB {
287
	"unknown tld unit type",
288
	ERROR_SEVERITY_ERROR,
289
	"${file name}: byte ${byte number}: linker information unit version number ${version number} is not supported in this implementation",
290
	NIL (GenericP)
291
    } UE,
292
    UB {
293
	"unit set count mismatch",
294
	ERROR_SEVERITY_ERROR,
295
	"${file name}: byte ${byte number}: unit count ${unit count} does not equal unit set count ${unit set count}",
296
	NIL (GenericP)
297
    } UE,
298
    UB {
299
	"missing tld unit set",
300
	ERROR_SEVERITY_WARNING,
301
	"capsule '${file name}' has no linker information unit set",
302
	NIL (GenericP)
303
    } UE,
304
    UB {
305
	"extra tld unit set",
306
	ERROR_SEVERITY_ERROR,
307
	"${file name}: byte ${byte number}: capsule contains both a 'tld' and a 'tld2' unit set",
308
	NIL (GenericP)
309
    } UE,
310
    UB {
311
	"defined but not declared",
312
	ERROR_SEVERITY_ERROR,
313
	"${file name}: byte ${byte number}: external ${shape name} '${name}' is defined but not declared",
314
	NIL (GenericP)
315
    } UE,
316
    UB {
317
	"illegally multiply defined",
318
	ERROR_SEVERITY_ERROR,
319
	"${file name}: byte ${byte number}: external ${shape name} '${name}' has the multiply defined bit set illegally",
320
	NIL (GenericP)
321
    } UE,
322
    UB {
323
	"bad usage",
324
	ERROR_SEVERITY_ERROR,
325
	"${file name}: byte ${byte number}: external ${shape name} '${name}' has usage ${usage} which has no meaning in this implementation",
326
	NIL (GenericP)
327
    } UE,
328
    UB {
329
	"multiply defined",
330
	ERROR_SEVERITY_ERROR,
331
	"${file name}: byte ${byte number}: external ${shape name} '${name}' is defined more than once (previous definition in '${previous file name}')",
332
	NIL (GenericP)
333
    } UE,
334
    UB {
335
	"unit count num mismatch",
336
	ERROR_SEVERITY_ERROR,
337
	"${file name}: byte ${byte number}: illegal count number ${count number} in ${unit set name} unit ${unit number} (should be 0 or ${shape number})",
338
	NIL (GenericP)
339
    } UE,
340
    UB {
341
	"unit mapping num mismatch",
342
	ERROR_SEVERITY_ERROR,
343
	"${file name}: byte ${byte number}: illegal mapping number ${mapping number} in ${unit set name} unit ${unit number} (should be ${count number})",
344
	NIL (GenericP)
345
    } UE,
346
    UB {
347
	"id out of range",
348
	ERROR_SEVERITY_ERROR,
349
	"${file name}: byte ${byte number}: ${shape name} identifier ${identifier} is out of range in mapping table of ${unit set name} unit ${unit number} (should be less than ${identifier limit})",
350
	NIL (GenericP)
351
    } UE,
352
    UB {
353
	"too many library files",
354
	ERROR_SEVERITY_FATAL,
355
	"too many library files specified (should be one)",
356
	NIL (GenericP)
357
    } UE,
358
    UB {
359
	"errf null char in builtin",
360
	ERROR_SEVERITY_FATAL,
361
	"${file name}: ${line number}: null character in builtin",
362
	NIL (GenericP)
363
    } UE,
364
    UB {
365
	"errf null character in name",
366
	ERROR_SEVERITY_FATAL,
367
	"${file name}: ${line number}: null character in name",
368
	NIL (GenericP)
369
    } UE,
370
    UB {
371
	"errf null character in string",
372
	ERROR_SEVERITY_FATAL,
373
	"${file name}: ${line number}: null character in string",
374
	NIL (GenericP)
375
    } UE,
376
    UB {
377
	"errf newline in builtin",
378
	ERROR_SEVERITY_FATAL,
379
	"${file name}: ${line number}: unescaped newline in builtin",
380
	NIL (GenericP)
381
    } UE,
382
    UB {
383
	"errf newline in name",
384
	ERROR_SEVERITY_FATAL,
385
	"${file name}: ${line number}: unescaped newline in name",
386
	NIL (GenericP)
387
    } UE,
388
    UB {
389
	"errf newline in string",
390
	ERROR_SEVERITY_FATAL,
391
	"${file name}: ${line number}: unescaped newline in string",
392
	NIL (GenericP)
393
    } UE,
394
    UB {
395
	"errf eof in builtin",
396
	ERROR_SEVERITY_FATAL,
397
	"${file name}: ${line number}: unexpected end of file in builtin",
398
	NIL (GenericP)
399
    } UE,
400
    UB {
401
	"errf eof in name",
402
	ERROR_SEVERITY_FATAL,
403
	"${file name}: ${line number}: unexpected end of file in name",
404
	NIL (GenericP)
405
    } UE,
406
    UB {
407
	"errf eof in string",
408
	ERROR_SEVERITY_FATAL,
409
	"${file name}: ${line number}: unexpected end of file in string",
410
	NIL (GenericP)
411
    } UE,
412
    UB {
413
	"errf illegal esc in builtin",
414
	ERROR_SEVERITY_FATAL,
415
	"${file name}: ${line number}: illegal escape sequence in builtin",
416
	NIL (GenericP)
417
    } UE,
418
    UB {
419
	"errf illegal escape in name",
420
	ERROR_SEVERITY_FATAL,
421
	"${file name}: ${line number}: illegal escape sequence in name",
422
	NIL (GenericP)
423
    } UE,
424
    UB {
425
	"errf illegal escape in string",
426
	ERROR_SEVERITY_FATAL,
427
	"${file name}: ${line number}: illegal escape sequence in string",
428
	NIL (GenericP)
429
    } UE,
430
    UB {
431
	"errf unknown builtin",
432
	ERROR_SEVERITY_FATAL,
433
	"${file name}: ${line number}: unknown builtin '%${builtin name}%'",
434
	NIL (GenericP)
435
    } UE,
436
    UB {
437
	"errf illegal character",
438
	ERROR_SEVERITY_FATAL,
439
	"${file name}: ${line number}: illegal character '${character}'",
440
	NIL (GenericP)
441
    } UE,
442
    UB {
443
	"errf expected string",
444
	ERROR_SEVERITY_FATAL,
445
	"${file name}: ${line number}: expected string",
446
	NIL (GenericP)
447
    } UE,
448
    UB {
449
	"errf expected section",
450
	ERROR_SEVERITY_FATAL,
451
	"${file name}: ${line number}: expected name or section header (one of '%strings%', '%prefix%' or '%errors%')",
452
	NIL (GenericP)
453
    } UE,
454
    UB {
455
	"errf unknown string",
456
	ERROR_SEVERITY_FATAL,
457
	"${file name}: ${line number}: unknown string name '${string name}'",
458
	NIL (GenericP)
459
    } UE,
460
    UB {
461
	"errf unknown error",
462
	ERROR_SEVERITY_FATAL,
463
	"${file name}: ${line number}: unknown error name '${error name}'",
464
	NIL (GenericP)
465
    } UE,
466
    UB {
467
	"errf illegal message",
468
	ERROR_SEVERITY_FATAL,
469
	"${file name}: ${line number}: malformed or unterminated tag in message '${message}'",
470
	NIL (GenericP)
471
    } UE,
472
    UB {
473
	"errf cannot open",
474
	ERROR_SEVERITY_FATAL,
475
	"cannot open error file '${file name}': ${system error}",
476
	NIL (GenericP)
477
    } UE,
478
    UB {
479
	"all specified with capsules",
480
	ERROR_SEVERITY_FATAL,
481
	"cannot extract all capsules and named capsules",
482
	NIL (GenericP)
483
    } UE,
484
    UB {
485
	"no capsules specified",
486
	ERROR_SEVERITY_FATAL,
487
	"no capsules specified to extract",
488
	NIL (GenericP)
489
    } UE,
490
    UB {
491
	"exception unhandled",
492
	ERROR_SEVERITY_INTERNAL,
493
	"unhandled exception '${except name}' thrown from line ${line number}, file '${file name}'",
494
	NIL (GenericP)
495
    } UE,
496
    UB {
497
	"exception corrupt handler",
498
	ERROR_SEVERITY_INTERNAL,
499
	"corrupt exception handler installed at line ${line number}, file '${file name}'",
500
	NIL (GenericP)
501
    } UE,
502
    UB {
503
	"assertion failed",
504
	ERROR_SEVERITY_INTERNAL,
505
	"assertion '${assertion}' failed at line ${line number}, file '${file name}'",
506
	NIL (GenericP)
507
    } UE,
508
    UB {
509
	"dalloc multi deallocate",
510
	ERROR_SEVERITY_INTERNAL,
511
	"memory block ${block address} allocated at line ${allocation line number} in '${allocation file name}' is deallocated more than once (second deallocation at line ${line number} in file '${file name}'",
512
	NIL (GenericP)
513
    } UE,
514
    UB {
515
	"dalloc corrupt block",
516
	ERROR_SEVERITY_INTERNAL,
517
	"memory block ${block address} is corrupt at deallocation (deallocation at line ${line number} in file '${file name}'",
518
	NIL (GenericP)
519
    } UE,
520
    UB {
521
	"library bad magic",
522
	ERROR_SEVERITY_ERROR,
523
	"${file name}: byte ${byte number}: bad magic number '${magic name}' should be '${proper magic name}'",
524
	NIL (GenericP)
525
    } UE,
526
    UB {
527
	"library bad version",
528
	ERROR_SEVERITY_ERROR,
529
	"${file name}: byte ${byte number}: illegal major version number ${major version}",
530
	NIL (GenericP)
531
    } UE,
532
    UB {
533
	"library version mismatch",
534
	ERROR_SEVERITY_ERROR,
535
	"${file name}: byte ${byte number}: major version number mismatch (${major version} should be ${proper major version})",
536
	NIL (GenericP)
537
    } UE,
538
    UB {
539
	"null in file name",
540
	ERROR_SEVERITY_ERROR,
541
	"${file name}: byte ${byte number}: capsule name '${cap name}' contains null character",
542
	NIL (GenericP)
543
    } UE,
544
    UB {
545
	"capsule not found",
546
	ERROR_SEVERITY_ERROR,
547
	"capsule '${cap name}' is not contained in library '${lib name}'",
548
	NIL (GenericP)
549
    } UE,
550
    UB {
551
	"extracting capsule",
552
	ERROR_SEVERITY_INFORMATION,
553
	"extracted capsule '${cap name}' into '${file name}'",
554
	NIL (GenericP)
555
    } UE,
556
    UB {
557
	"lib unknown type",
558
	ERROR_SEVERITY_ERROR,
559
	"${file name}: byte ${byte number}: library version number ${version number} is not supported in this implementation",
560
	NIL (GenericP)
561
    } UE,
562
    UB {
563
	"lib defined but not declared",
564
	ERROR_SEVERITY_ERROR,
565
	"${file name}: byte ${byte number}: external ${shape name} '${name}' is defined but not declared",
566
	NIL (GenericP)
567
    } UE,
568
    UB {
569
	"lib illegally mult defined",
570
	ERROR_SEVERITY_ERROR,
571
	"${file name}: byte ${byte number}: external ${shape name} '${name}' has the multiply defined bit set illegally",
572
	NIL (GenericP)
573
    } UE,
574
    UB {
575
	"lib bad usage",
576
	ERROR_SEVERITY_ERROR,
577
	"${file name}: byte ${byte number}: external ${shape name} '${name}' has usage ${usage} which has no meaning in this implementation",
578
	NIL (GenericP)
579
    } UE,
580
    UB {
581
	"lib multiply defined",
582
	ERROR_SEVERITY_ERROR,
583
	"${file name}: byte ${byte number}: external ${shape name} '${name}' is defined more than once in libraries (previous definition in '${previous file name}')",
584
	NIL (GenericP)
585
    } UE,
586
    UB {
587
	"capsule index too big",
588
	ERROR_SEVERITY_ERROR,
589
	"${file name}: byte ${byte number}: external ${shape name} '${name}' has capsule index ${capsule index} (should be less than ${num capsules})",
590
	NIL (GenericP)
591
    } UE,
592
    UB {
593
	"cannot hide shape",
594
	ERROR_SEVERITY_ERROR,
595
	"there are no external ${shape name} names to hide",
596
	NIL (GenericP)
597
    } UE,
598
    UB {
599
	"cannot hide",
600
	ERROR_SEVERITY_ERROR,
601
	"there is no external ${shape name} named '${name}' to hide",
602
	NIL (GenericP)
603
    } UE,
604
    UB {
605
	"cannot hide undefined",
606
	ERROR_SEVERITY_ERROR,
607
	"cannot hide undefined external ${shape name} named '${name}'",
608
	NIL (GenericP)
609
    } UE,
610
    UB {
611
	"cannot keep shape",
612
	ERROR_SEVERITY_ERROR,
613
	"there are no external ${shape name} names to keep",
614
	NIL (GenericP)
615
    } UE,
616
    UB {
617
	"cannot keep",
618
	ERROR_SEVERITY_ERROR,
619
	"there is no external ${shape name} named '${name}' to keep",
620
	NIL (GenericP)
621
    } UE,
622
    UB {
623
	"bad mode",
624
	ERROR_SEVERITY_FATAL,
625
	"illegal mode character '${mode}'; should be one of 'c', 'l', 't' or 'x'",
626
	NIL (GenericP)
627
    } UE,
628
    UB {
629
	"missing files",
630
	ERROR_SEVERITY_FATAL,
631
	"no files specified for processing",
632
	NIL (GenericP)
633
    } UE,
634
    UB {
635
	"no memory",
636
	ERROR_SEVERITY_FATAL,
637
	"cannot allocate memory",
638
	NIL (GenericP)
639
    } UE,
640
    UB {
641
	"read error",
642
	ERROR_SEVERITY_FATAL,
643
	"error reading from file '${file name}': ${system error}",
644
	NIL (GenericP)
645
    } UE,
646
    UB {
647
	"write error",
648
	ERROR_SEVERITY_FATAL,
649
	"error writing to file '${file name}': ${system error}",
650
	NIL (GenericP)
651
    } UE,
652
    UB {
653
	"cannot open input file",
654
	ERROR_SEVERITY_ERROR,
655
	"cannot open input file '${file name}': ${system error}",
656
	NIL (GenericP)
657
    } UE,
658
    UB {
659
	"cannot open output file",
660
	ERROR_SEVERITY_FATAL,
661
	"cannot open output file '${file name}': ${system error}",
662
	NIL (GenericP)
663
    } UE,
664
    UB {
665
	"cannot open library file",
666
	ERROR_SEVERITY_ERROR,
667
	"cannot open library file '${file name}': ${system error}",
668
	NIL (GenericP)
669
    } UE,
670
    UB {
671
	"illegal external name",
672
	ERROR_SEVERITY_ERROR,
673
	"illegal external name '${name}'",
674
	NIL (GenericP)
675
    } UE,
676
    UB {
677
	"no single definition",
678
	ERROR_SEVERITY_FATAL,
679
	"no single definition for ${shape name} '${name}'",
680
	NIL (GenericP)
681
    } UE,
682
    UB {
683
	"rename cycle",
684
	ERROR_SEVERITY_ERROR,
685
	"cycle in ${shape name} renaming including name '${name}'",
686
	NIL (GenericP)
687
    } UE,
688
    UB {
689
	"no definition found",
690
	ERROR_SEVERITY_WARNING,
691
	"no definition found for ${shape name} '${name}'",
692
	NIL (GenericP)
693
    } UE,
694
    UB {
695
	"cannot open rename file",
696
	ERROR_SEVERITY_ERROR,
697
	"cannot open rename file '${file name}': ${system error}",
698
	NIL (GenericP)
699
    } UE,
700
    UB {
701
	"rename expected shape",
702
	ERROR_SEVERITY_ERROR,
703
	"${file name}: ${line number}: expected shape name",
704
	NIL (GenericP)
705
    } UE,
706
    UB {
707
	"rename expected name",
708
	ERROR_SEVERITY_ERROR,
709
	"${file name}: ${line number}: expected external name",
710
	NIL (GenericP)
711
    } UE,
712
    UB {
713
	"rename expected semi",
714
	ERROR_SEVERITY_ERROR,
715
	"${file name}: ${line number}: expected semi colon",
716
	NIL (GenericP)
717
    } UE,
718
    UB {
719
	"rename unexpected eof",
720
	ERROR_SEVERITY_ERROR,
721
	"${file name}: ${line number}: unexpected end of file",
722
	NIL (GenericP)
723
    } UE,
724
    UB {
725
	"rename unexpected newline",
726
	ERROR_SEVERITY_ERROR,
727
	"${file name}: ${line number}: unexpected newline",
728
	NIL (GenericP)
729
    } UE,
730
    UB {
731
	"rename illegal escape",
732
	ERROR_SEVERITY_ERROR,
733
	"${file name}: ${line number}: illegal escape sequence",
734
	NIL (GenericP)
735
    } UE,
736
    UB {
737
	"rename illegal char",
738
	ERROR_SEVERITY_ERROR,
739
	"${file name}: ${line number}: illegal character '${character}'",
740
	NIL (GenericP)
741
    } UE,
742
    UB {
743
	"too many ids",
744
	ERROR_SEVERITY_FATAL,
745
	"too many identifiers for this implementation",
746
	NIL (GenericP)
747
    } UE,
748
    UB {
749
	"unexpected eof in tdf",
750
	ERROR_SEVERITY_ERROR,
751
	"${file name}: byte ${byte number}: unexpected end of file",
752
	NIL (GenericP)
753
    } UE,
754
    UB {
755
	"tdf integer too big in tdf",
756
	ERROR_SEVERITY_ERROR,
757
	"${file name}: byte ${byte number}: TDF integer is too large for this machine",
758
	NIL (GenericP)
759
    } UE,
760
    UB {
761
	"unsupported char size in tdf",
762
	ERROR_SEVERITY_ERROR,
763
	"${file name}: byte ${byte number}: string character size ${character size} is not supported on this machine",
764
	NIL (GenericP)
765
    } UE,
766
    UB {
767
	"bad name type in tdf",
768
	ERROR_SEVERITY_ERROR,
769
	"${file name}: byte ${byte number}: name type ${name type} is unknown",
770
	NIL (GenericP)
771
    } UE,
772
    UB {
773
	"expected eof in tdf",
774
	ERROR_SEVERITY_ERROR,
775
	"${file name}: byte ${byte number}: expected end of file",
776
	NIL (GenericP)
777
    } UE,
778
    ERROR_END_ERROR_LIST
779
};
780
 
781
struct ES_00000 {
782
    CStringP                  file_name;
783
    int                       system_error;
784
};
785
struct ES_00001 {
786
    NStringP                  shape_name;
787
    NameKeyP                  name;
788
};
789
struct ES_00002 {
790
    CStringP                  option;
791
    ArgUsageP                 usage;
792
};
793
struct ES_00003 {
794
    CStringP                  option;
795
    CStringP                  option_location;
796
    ArgUsageP                 usage;
797
};
798
struct ES_00004 {
799
    CStringP                  cap_name;
800
};
801
struct ES_00005 {
802
    CStringP                  file_name;
803
    unsigned                  line_number;
804
};
805
struct ES_00006 {
806
    CStringP                  file_name;
807
    NStringP                  unit_set_name;
808
};
809
struct ES_00007 {
810
    CStringP                  file_name;
811
};
812
struct ES_00008 {
813
    CStringP                  file_name;
814
    unsigned                  byte_number;
815
    NStringP                  magic_name;
816
    NStringP                  proper_magic_name;
817
};
818
struct ES_00009 {
819
    CStringP                  file_name;
820
    unsigned                  byte_number;
821
    unsigned                  major_version;
822
};
823
struct ES_00010 {
824
    CStringP                  file_name;
825
    unsigned                  byte_number;
826
    unsigned                  major_version;
827
    unsigned                  proper_major_version;
828
};
829
struct ES_00011 {
830
    CStringP                  file_name;
831
    unsigned                  byte_number;
832
    NStringP                  unit_set_name;
833
};
834
struct ES_00012 {
835
    CStringP                  file_name;
836
    unsigned                  byte_number;
837
    NStringP                  shape_name;
838
};
839
struct ES_00013 {
840
    CStringP                  file_name;
841
    unsigned                  byte_number;
842
    unsigned                  shape_count;
843
    unsigned                  name_count;
844
};
845
struct ES_00014 {
846
    CStringP                  file_name;
847
    unsigned                  byte_number;
848
    NStringP                  shape_name;
849
    NameKeyP                  name;
850
    unsigned                  identifier;
851
    unsigned                  identifier_limit;
852
};
853
struct ES_00015 {
854
    CStringP                  file_name;
855
    unsigned                  byte_number;
856
    NStringP                  shape_name;
857
    NameKeyP                  name;
858
    unsigned                  identifier;
859
};
860
struct ES_00016 {
861
    CStringP                  file_name;
862
    unsigned                  byte_number;
863
};
864
struct ES_00017 {
865
    CStringP                  file_name;
866
    unsigned                  byte_number;
867
    unsigned                  correct_offset;
868
    unsigned                  offset;
869
};
870
struct ES_00018 {
871
    CStringP                  file_name;
872
    unsigned                  byte_number;
873
    unsigned                  version_number;
874
};
875
struct ES_00019 {
876
    CStringP                  file_name;
877
    unsigned                  byte_number;
878
    unsigned                  unit_set_count;
879
    unsigned                  unit_count;
880
};
881
struct ES_00020 {
882
    CStringP                  file_name;
883
    unsigned                  byte_number;
884
    NStringP                  shape_name;
885
    NameKeyP                  name;
886
};
887
struct ES_00021 {
888
    CStringP                  file_name;
889
    unsigned                  byte_number;
890
    NStringP                  shape_name;
891
    NameKeyP                  name;
892
    unsigned                  usage;
893
};
894
struct ES_00022 {
895
    CStringP                  file_name;
896
    unsigned                  byte_number;
897
    NStringP                  shape_name;
898
    NameKeyP                  name;
899
    CStringP                  previous_file_name;
900
};
901
struct ES_00023 {
902
    CStringP                  file_name;
903
    unsigned                  byte_number;
904
    unsigned                  count_number;
905
    unsigned                  shape_number;
906
    unsigned                  unit_number;
907
    NStringP                  unit_set_name;
908
};
909
struct ES_00024 {
910
    CStringP                  file_name;
911
    unsigned                  byte_number;
912
    unsigned                  mapping_number;
913
    unsigned                  count_number;
914
    unsigned                  unit_number;
915
    NStringP                  unit_set_name;
916
};
917
struct ES_00025 {
918
    CStringP                  file_name;
919
    unsigned                  byte_number;
920
    unsigned                  identifier;
921
    unsigned                  identifier_limit;
922
    NStringP                  shape_name;
923
    unsigned                  unit_number;
924
    NStringP                  unit_set_name;
925
};
926
struct ES_00026 {
927
    CStringP                  file_name;
928
    unsigned                  line_number;
929
    CStringP                  builtin_name;
930
};
931
struct ES_00027 {
932
    CStringP                  file_name;
933
    unsigned                  line_number;
934
    char                      character;
935
};
936
struct ES_00028 {
937
    CStringP                  file_name;
938
    unsigned                  line_number;
939
    CStringP                  string_name;
940
};
941
struct ES_00029 {
942
    CStringP                  file_name;
943
    unsigned                  line_number;
944
    CStringP                  error_name;
945
};
946
struct ES_00030 {
947
    CStringP                  file_name;
948
    unsigned                  line_number;
949
    CStringP                  message;
950
};
951
struct ES_00031 {
952
    ExceptionP                except_name;
953
    CStringP                  file_name;
954
    unsigned                  line_number;
955
};
956
struct ES_00032 {
957
    CStringP                  assertion;
958
    CStringP                  file_name;
959
    unsigned                  line_number;
960
};
961
struct ES_00033 {
962
    GenericP                  block_address;
963
    CStringP                  file_name;
964
    unsigned                  line_number;
965
    CStringP                  allocation_file_name;
966
    unsigned                  allocation_line_number;
967
};
968
struct ES_00034 {
969
    GenericP                  block_address;
970
    CStringP                  file_name;
971
    unsigned                  line_number;
972
};
973
struct ES_00035 {
974
    CStringP                  file_name;
975
    unsigned                  byte_number;
976
    NStringP                  cap_name;
977
};
978
struct ES_00036 {
979
    CStringP                  cap_name;
980
    CStringP                  lib_name;
981
};
982
struct ES_00037 {
983
    CStringP                  cap_name;
984
    CStringP                  file_name;
985
};
986
struct ES_00038 {
987
    CStringP                  file_name;
988
    unsigned                  byte_number;
989
    NStringP                  shape_name;
990
    NameKeyP                  name;
991
    LibCapsuleP               previous_file_name;
992
};
993
struct ES_00039 {
994
    CStringP                  file_name;
995
    unsigned                  byte_number;
996
    NStringP                  shape_name;
997
    NameKeyP                  name;
998
    unsigned                  capsule_index;
999
    unsigned                  num_capsules;
1000
};
1001
struct ES_00040 {
1002
    NStringP                  shape_name;
1003
};
1004
struct ES_00041 {
1005
    char                      mode;
1006
};
1007
struct ES_00042 {
1008
    CStringP                  name;
1009
};
1010
struct ES_00043 {
1011
    CStringP                  file_name;
1012
    unsigned                  byte_number;
1013
    unsigned                  character_size;
1014
};
1015
struct ES_00044 {
1016
    CStringP                  file_name;
1017
    unsigned                  byte_number;
1018
    unsigned                  name_type;
1019
};
1020
 
1021
static void
1022
ET_00000 PROTO_N ((ostream, tag, gclosure))
1023
         PROTO_T (OStreamP ostream X
1024
                  ETagP    tag X
1025
                  GenericP gclosure)
1026
{
1027
    UNUSED (ostream);
1028
    UNUSED (tag);
1029
    UNUSED (gclosure);
1030
}
1031
static void
1032
ET_00001 PROTO_N ((ostream, tag, gclosure))
1033
         PROTO_T (OStreamP ostream X
1034
                  ETagP    tag X
1035
                  GenericP gclosure)
1036
{
1037
    struct ES_00000 *closure = (struct ES_00000 *) gclosure;
1038
 
1039
    if (tag == ET [0].tag) {
1040
	    write_cstring (ostream, closure->file_name);
1041
    } else if (tag == ET [1].tag) {
1042
	    write_system_error (ostream);
1043
    }
1044
}
1045
static void
1046
ET_00002 PROTO_N ((ostream, tag, gclosure))
1047
         PROTO_T (OStreamP ostream X
1048
                  ETagP    tag X
1049
                  GenericP gclosure)
1050
{
1051
    struct ES_00001 *closure = (struct ES_00001 *) gclosure;
1052
 
1053
    if (tag == ET [2].tag) {
1054
	    write_nstring (ostream, closure->shape_name);
1055
    } else if (tag == ET [3].tag) {
1056
	    write_name_key (ostream, closure->name);
1057
    }
1058
}
1059
static void
1060
ET_00003 PROTO_N ((ostream, tag, gclosure))
1061
         PROTO_T (OStreamP ostream X
1062
                  ETagP    tag X
1063
                  GenericP gclosure)
1064
{
1065
    struct ES_00002 *closure = (struct ES_00002 *) gclosure;
1066
 
1067
    if (tag == ET [4].tag) {
1068
	    write_cstring (ostream, closure->option);
1069
    } else if (tag == ET [5].tag) {
1070
	    write_arg_usage (ostream, closure->usage);
1071
    }
1072
}
1073
static void
1074
ET_00004 PROTO_N ((ostream, tag, gclosure))
1075
         PROTO_T (OStreamP ostream X
1076
                  ETagP    tag X
1077
                  GenericP gclosure)
1078
{
1079
    struct ES_00003 *closure = (struct ES_00003 *) gclosure;
1080
 
1081
    if (tag == ET [4].tag) {
1082
	    write_cstring (ostream, closure->option);
1083
    } else if (tag == ET [6].tag) {
1084
	    write_cstring (ostream, closure->option_location);
1085
    } else if (tag == ET [5].tag) {
1086
	    write_arg_usage (ostream, closure->usage);
1087
    }
1088
}
1089
static void
1090
ET_00005 PROTO_N ((ostream, tag, gclosure))
1091
         PROTO_T (OStreamP ostream X
1092
                  ETagP    tag X
1093
                  GenericP gclosure)
1094
{
1095
    struct ES_00004 *closure = (struct ES_00004 *) gclosure;
1096
 
1097
    if (tag == ET [7].tag) {
1098
	    write_cstring (ostream, closure->cap_name);
1099
    }
1100
}
1101
static void
1102
ET_00006 PROTO_N ((ostream, tag, gclosure))
1103
         PROTO_T (OStreamP ostream X
1104
                  ETagP    tag X
1105
                  GenericP gclosure)
1106
{
1107
    struct ES_00005 *closure = (struct ES_00005 *) gclosure;
1108
 
1109
    if (tag == ET [0].tag) {
1110
	    write_cstring (ostream, closure->file_name);
1111
    } else if (tag == ET [8].tag) {
1112
	    write_unsigned (ostream, closure->line_number);
1113
    }
1114
}
1115
static void
1116
ET_00007 PROTO_N ((ostream, tag, gclosure))
1117
         PROTO_T (OStreamP ostream X
1118
                  ETagP    tag X
1119
                  GenericP gclosure)
1120
{
1121
    struct ES_00006 *closure = (struct ES_00006 *) gclosure;
1122
 
1123
    if (tag == ET [0].tag) {
1124
	    write_cstring (ostream, closure->file_name);
1125
    } else if (tag == ET [9].tag) {
1126
	    write_nstring (ostream, closure->unit_set_name);
1127
    }
1128
}
1129
static void
1130
ET_00008 PROTO_N ((ostream, tag, gclosure))
1131
         PROTO_T (OStreamP ostream X
1132
                  ETagP    tag X
1133
                  GenericP gclosure)
1134
{
1135
    struct ES_00007 *closure = (struct ES_00007 *) gclosure;
1136
 
1137
    if (tag == ET [0].tag) {
1138
	    write_cstring (ostream, closure->file_name);
1139
    }
1140
}
1141
static void
1142
ET_00009 PROTO_N ((ostream, tag, gclosure))
1143
         PROTO_T (OStreamP ostream X
1144
                  ETagP    tag X
1145
                  GenericP gclosure)
1146
{
1147
    struct ES_00008 *closure = (struct ES_00008 *) gclosure;
1148
 
1149
    if (tag == ET [0].tag) {
1150
	    write_cstring (ostream, closure->file_name);
1151
    } else if (tag == ET [10].tag) {
1152
	    write_unsigned (ostream, closure->byte_number);
1153
    } else if (tag == ET [11].tag) {
1154
	    write_nstring (ostream, closure->magic_name);
1155
    } else if (tag == ET [12].tag) {
1156
	    write_nstring (ostream, closure->proper_magic_name);
1157
    }
1158
}
1159
static void
1160
ET_00010 PROTO_N ((ostream, tag, gclosure))
1161
         PROTO_T (OStreamP ostream X
1162
                  ETagP    tag X
1163
                  GenericP gclosure)
1164
{
1165
    struct ES_00009 *closure = (struct ES_00009 *) gclosure;
1166
 
1167
    if (tag == ET [0].tag) {
1168
	    write_cstring (ostream, closure->file_name);
1169
    } else if (tag == ET [10].tag) {
1170
	    write_unsigned (ostream, closure->byte_number);
1171
    } else if (tag == ET [13].tag) {
1172
	    write_unsigned (ostream, closure->major_version);
1173
    }
1174
}
1175
static void
1176
ET_00011 PROTO_N ((ostream, tag, gclosure))
1177
         PROTO_T (OStreamP ostream X
1178
                  ETagP    tag X
1179
                  GenericP gclosure)
1180
{
1181
    struct ES_00010 *closure = (struct ES_00010 *) gclosure;
1182
 
1183
    if (tag == ET [0].tag) {
1184
	    write_cstring (ostream, closure->file_name);
1185
    } else if (tag == ET [10].tag) {
1186
	    write_unsigned (ostream, closure->byte_number);
1187
    } else if (tag == ET [13].tag) {
1188
	    write_unsigned (ostream, closure->major_version);
1189
    } else if (tag == ET [14].tag) {
1190
	    write_unsigned (ostream, closure->proper_major_version);
1191
    }
1192
}
1193
static void
1194
ET_00012 PROTO_N ((ostream, tag, gclosure))
1195
         PROTO_T (OStreamP ostream X
1196
                  ETagP    tag X
1197
                  GenericP gclosure)
1198
{
1199
    struct ES_00011 *closure = (struct ES_00011 *) gclosure;
1200
 
1201
    if (tag == ET [0].tag) {
1202
	    write_cstring (ostream, closure->file_name);
1203
    } else if (tag == ET [10].tag) {
1204
	    write_unsigned (ostream, closure->byte_number);
1205
    } else if (tag == ET [9].tag) {
1206
	    write_nstring (ostream, closure->unit_set_name);
1207
    }
1208
}
1209
static void
1210
ET_00013 PROTO_N ((ostream, tag, gclosure))
1211
         PROTO_T (OStreamP ostream X
1212
                  ETagP    tag X
1213
                  GenericP gclosure)
1214
{
1215
    struct ES_00012 *closure = (struct ES_00012 *) gclosure;
1216
 
1217
    if (tag == ET [0].tag) {
1218
	    write_cstring (ostream, closure->file_name);
1219
    } else if (tag == ET [10].tag) {
1220
	    write_unsigned (ostream, closure->byte_number);
1221
    } else if (tag == ET [2].tag) {
1222
	    write_nstring (ostream, closure->shape_name);
1223
    }
1224
}
1225
static void
1226
ET_00014 PROTO_N ((ostream, tag, gclosure))
1227
         PROTO_T (OStreamP ostream X
1228
                  ETagP    tag X
1229
                  GenericP gclosure)
1230
{
1231
    struct ES_00013 *closure = (struct ES_00013 *) gclosure;
1232
 
1233
    if (tag == ET [0].tag) {
1234
	    write_cstring (ostream, closure->file_name);
1235
    } else if (tag == ET [10].tag) {
1236
	    write_unsigned (ostream, closure->byte_number);
1237
    } else if (tag == ET [15].tag) {
1238
	    write_unsigned (ostream, closure->shape_count);
1239
    } else if (tag == ET [16].tag) {
1240
	    write_unsigned (ostream, closure->name_count);
1241
    }
1242
}
1243
static void
1244
ET_00015 PROTO_N ((ostream, tag, gclosure))
1245
         PROTO_T (OStreamP ostream X
1246
                  ETagP    tag X
1247
                  GenericP gclosure)
1248
{
1249
    struct ES_00014 *closure = (struct ES_00014 *) gclosure;
1250
 
1251
    if (tag == ET [0].tag) {
1252
	    write_cstring (ostream, closure->file_name);
1253
    } else if (tag == ET [10].tag) {
1254
	    write_unsigned (ostream, closure->byte_number);
1255
    } else if (tag == ET [2].tag) {
1256
	    write_nstring (ostream, closure->shape_name);
1257
    } else if (tag == ET [3].tag) {
1258
	    write_name_key (ostream, closure->name);
1259
    } else if (tag == ET [17].tag) {
1260
	    write_unsigned (ostream, closure->identifier);
1261
    } else if (tag == ET [18].tag) {
1262
	    write_unsigned (ostream, closure->identifier_limit);
1263
    }
1264
}
1265
static void
1266
ET_00016 PROTO_N ((ostream, tag, gclosure))
1267
         PROTO_T (OStreamP ostream X
1268
                  ETagP    tag X
1269
                  GenericP gclosure)
1270
{
1271
    struct ES_00015 *closure = (struct ES_00015 *) gclosure;
1272
 
1273
    if (tag == ET [0].tag) {
1274
	    write_cstring (ostream, closure->file_name);
1275
    } else if (tag == ET [10].tag) {
1276
	    write_unsigned (ostream, closure->byte_number);
1277
    } else if (tag == ET [2].tag) {
1278
	    write_nstring (ostream, closure->shape_name);
1279
    } else if (tag == ET [3].tag) {
1280
	    write_name_key (ostream, closure->name);
1281
    } else if (tag == ET [17].tag) {
1282
	    write_unsigned (ostream, closure->identifier);
1283
    }
1284
}
1285
static void
1286
ET_00017 PROTO_N ((ostream, tag, gclosure))
1287
         PROTO_T (OStreamP ostream X
1288
                  ETagP    tag X
1289
                  GenericP gclosure)
1290
{
1291
    struct ES_00016 *closure = (struct ES_00016 *) gclosure;
1292
 
1293
    if (tag == ET [0].tag) {
1294
	    write_cstring (ostream, closure->file_name);
1295
    } else if (tag == ET [10].tag) {
1296
	    write_unsigned (ostream, closure->byte_number);
1297
    }
1298
}
1299
static void
1300
ET_00018 PROTO_N ((ostream, tag, gclosure))
1301
         PROTO_T (OStreamP ostream X
1302
                  ETagP    tag X
1303
                  GenericP gclosure)
1304
{
1305
    struct ES_00017 *closure = (struct ES_00017 *) gclosure;
1306
 
1307
    if (tag == ET [0].tag) {
1308
	    write_cstring (ostream, closure->file_name);
1309
    } else if (tag == ET [10].tag) {
1310
	    write_unsigned (ostream, closure->byte_number);
1311
    } else if (tag == ET [19].tag) {
1312
	    write_unsigned (ostream, closure->correct_offset);
1313
    } else if (tag == ET [20].tag) {
1314
	    write_unsigned (ostream, closure->offset);
1315
    }
1316
}
1317
static void
1318
ET_00019 PROTO_N ((ostream, tag, gclosure))
1319
         PROTO_T (OStreamP ostream X
1320
                  ETagP    tag X
1321
                  GenericP gclosure)
1322
{
1323
    struct ES_00018 *closure = (struct ES_00018 *) gclosure;
1324
 
1325
    if (tag == ET [0].tag) {
1326
	    write_cstring (ostream, closure->file_name);
1327
    } else if (tag == ET [10].tag) {
1328
	    write_unsigned (ostream, closure->byte_number);
1329
    } else if (tag == ET [21].tag) {
1330
	    write_unsigned (ostream, closure->version_number);
1331
    }
1332
}
1333
static void
1334
ET_00020 PROTO_N ((ostream, tag, gclosure))
1335
         PROTO_T (OStreamP ostream X
1336
                  ETagP    tag X
1337
                  GenericP gclosure)
1338
{
1339
    struct ES_00019 *closure = (struct ES_00019 *) gclosure;
1340
 
1341
    if (tag == ET [0].tag) {
1342
	    write_cstring (ostream, closure->file_name);
1343
    } else if (tag == ET [10].tag) {
1344
	    write_unsigned (ostream, closure->byte_number);
1345
    } else if (tag == ET [22].tag) {
1346
	    write_unsigned (ostream, closure->unit_set_count);
1347
    } else if (tag == ET [23].tag) {
1348
	    write_unsigned (ostream, closure->unit_count);
1349
    }
1350
}
1351
static void
1352
ET_00021 PROTO_N ((ostream, tag, gclosure))
1353
         PROTO_T (OStreamP ostream X
1354
                  ETagP    tag X
1355
                  GenericP gclosure)
1356
{
1357
    struct ES_00020 *closure = (struct ES_00020 *) gclosure;
1358
 
1359
    if (tag == ET [0].tag) {
1360
	    write_cstring (ostream, closure->file_name);
1361
    } else if (tag == ET [10].tag) {
1362
	    write_unsigned (ostream, closure->byte_number);
1363
    } else if (tag == ET [2].tag) {
1364
	    write_nstring (ostream, closure->shape_name);
1365
    } else if (tag == ET [3].tag) {
1366
	    write_name_key (ostream, closure->name);
1367
    }
1368
}
1369
static void
1370
ET_00022 PROTO_N ((ostream, tag, gclosure))
1371
         PROTO_T (OStreamP ostream X
1372
                  ETagP    tag X
1373
                  GenericP gclosure)
1374
{
1375
    struct ES_00021 *closure = (struct ES_00021 *) gclosure;
1376
 
1377
    if (tag == ET [0].tag) {
1378
	    write_cstring (ostream, closure->file_name);
1379
    } else if (tag == ET [10].tag) {
1380
	    write_unsigned (ostream, closure->byte_number);
1381
    } else if (tag == ET [2].tag) {
1382
	    write_nstring (ostream, closure->shape_name);
1383
    } else if (tag == ET [3].tag) {
1384
	    write_name_key (ostream, closure->name);
1385
    } else if (tag == ET [5].tag) {
1386
	    write_unsigned (ostream, closure->usage);
1387
    }
1388
}
1389
static void
1390
ET_00023 PROTO_N ((ostream, tag, gclosure))
1391
         PROTO_T (OStreamP ostream X
1392
                  ETagP    tag X
1393
                  GenericP gclosure)
1394
{
1395
    struct ES_00022 *closure = (struct ES_00022 *) gclosure;
1396
 
1397
    if (tag == ET [0].tag) {
1398
	    write_cstring (ostream, closure->file_name);
1399
    } else if (tag == ET [10].tag) {
1400
	    write_unsigned (ostream, closure->byte_number);
1401
    } else if (tag == ET [2].tag) {
1402
	    write_nstring (ostream, closure->shape_name);
1403
    } else if (tag == ET [3].tag) {
1404
	    write_name_key (ostream, closure->name);
1405
    } else if (tag == ET [24].tag) {
1406
	    write_cstring (ostream, closure->previous_file_name);
1407
    }
1408
}
1409
static void
1410
ET_00024 PROTO_N ((ostream, tag, gclosure))
1411
         PROTO_T (OStreamP ostream X
1412
                  ETagP    tag X
1413
                  GenericP gclosure)
1414
{
1415
    struct ES_00023 *closure = (struct ES_00023 *) gclosure;
1416
 
1417
    if (tag == ET [0].tag) {
1418
	    write_cstring (ostream, closure->file_name);
1419
    } else if (tag == ET [10].tag) {
1420
	    write_unsigned (ostream, closure->byte_number);
1421
    } else if (tag == ET [25].tag) {
1422
	    write_unsigned (ostream, closure->count_number);
1423
    } else if (tag == ET [26].tag) {
1424
	    write_unsigned (ostream, closure->shape_number);
1425
    } else if (tag == ET [27].tag) {
1426
	    write_unsigned (ostream, closure->unit_number);
1427
    } else if (tag == ET [9].tag) {
1428
	    write_nstring (ostream, closure->unit_set_name);
1429
    }
1430
}
1431
static void
1432
ET_00025 PROTO_N ((ostream, tag, gclosure))
1433
         PROTO_T (OStreamP ostream X
1434
                  ETagP    tag X
1435
                  GenericP gclosure)
1436
{
1437
    struct ES_00024 *closure = (struct ES_00024 *) gclosure;
1438
 
1439
    if (tag == ET [0].tag) {
1440
	    write_cstring (ostream, closure->file_name);
1441
    } else if (tag == ET [10].tag) {
1442
	    write_unsigned (ostream, closure->byte_number);
1443
    } else if (tag == ET [28].tag) {
1444
	    write_unsigned (ostream, closure->mapping_number);
1445
    } else if (tag == ET [25].tag) {
1446
	    write_unsigned (ostream, closure->count_number);
1447
    } else if (tag == ET [27].tag) {
1448
	    write_unsigned (ostream, closure->unit_number);
1449
    } else if (tag == ET [9].tag) {
1450
	    write_nstring (ostream, closure->unit_set_name);
1451
    }
1452
}
1453
static void
1454
ET_00026 PROTO_N ((ostream, tag, gclosure))
1455
         PROTO_T (OStreamP ostream X
1456
                  ETagP    tag X
1457
                  GenericP gclosure)
1458
{
1459
    struct ES_00025 *closure = (struct ES_00025 *) gclosure;
1460
 
1461
    if (tag == ET [0].tag) {
1462
	    write_cstring (ostream, closure->file_name);
1463
    } else if (tag == ET [10].tag) {
1464
	    write_unsigned (ostream, closure->byte_number);
1465
    } else if (tag == ET [17].tag) {
1466
	    write_unsigned (ostream, closure->identifier);
1467
    } else if (tag == ET [18].tag) {
1468
	    write_unsigned (ostream, closure->identifier_limit);
1469
    } else if (tag == ET [2].tag) {
1470
	    write_nstring (ostream, closure->shape_name);
1471
    } else if (tag == ET [27].tag) {
1472
	    write_unsigned (ostream, closure->unit_number);
1473
    } else if (tag == ET [9].tag) {
1474
	    write_nstring (ostream, closure->unit_set_name);
1475
    }
1476
}
1477
static void
1478
ET_00027 PROTO_N ((ostream, tag, gclosure))
1479
         PROTO_T (OStreamP ostream X
1480
                  ETagP    tag X
1481
                  GenericP gclosure)
1482
{
1483
    struct ES_00026 *closure = (struct ES_00026 *) gclosure;
1484
 
1485
    if (tag == ET [0].tag) {
1486
	    write_cstring (ostream, closure->file_name);
1487
    } else if (tag == ET [8].tag) {
1488
	    write_unsigned (ostream, closure->line_number);
1489
    } else if (tag == ET [29].tag) {
1490
	    write_cstring (ostream, closure->builtin_name);
1491
    }
1492
}
1493
static void
1494
ET_00028 PROTO_N ((ostream, tag, gclosure))
1495
         PROTO_T (OStreamP ostream X
1496
                  ETagP    tag X
1497
                  GenericP gclosure)
1498
{
1499
    struct ES_00027 *closure = (struct ES_00027 *) gclosure;
1500
 
1501
    if (tag == ET [0].tag) {
1502
	    write_cstring (ostream, closure->file_name);
1503
    } else if (tag == ET [8].tag) {
1504
	    write_unsigned (ostream, closure->line_number);
1505
    } else if (tag == ET [30].tag) {
1506
	    write_escaped_char (ostream, closure->character);
1507
    }
1508
}
1509
static void
1510
ET_00029 PROTO_N ((ostream, tag, gclosure))
1511
         PROTO_T (OStreamP ostream X
1512
                  ETagP    tag X
1513
                  GenericP gclosure)
1514
{
1515
    struct ES_00028 *closure = (struct ES_00028 *) gclosure;
1516
 
1517
    if (tag == ET [0].tag) {
1518
	    write_cstring (ostream, closure->file_name);
1519
    } else if (tag == ET [8].tag) {
1520
	    write_unsigned (ostream, closure->line_number);
1521
    } else if (tag == ET [31].tag) {
1522
	    write_cstring (ostream, closure->string_name);
1523
    }
1524
}
1525
static void
1526
ET_00030 PROTO_N ((ostream, tag, gclosure))
1527
         PROTO_T (OStreamP ostream X
1528
                  ETagP    tag X
1529
                  GenericP gclosure)
1530
{
1531
    struct ES_00029 *closure = (struct ES_00029 *) gclosure;
1532
 
1533
    if (tag == ET [0].tag) {
1534
	    write_cstring (ostream, closure->file_name);
1535
    } else if (tag == ET [8].tag) {
1536
	    write_unsigned (ostream, closure->line_number);
1537
    } else if (tag == ET [32].tag) {
1538
	    write_cstring (ostream, closure->error_name);
1539
    }
1540
}
1541
static void
1542
ET_00031 PROTO_N ((ostream, tag, gclosure))
1543
         PROTO_T (OStreamP ostream X
1544
                  ETagP    tag X
1545
                  GenericP gclosure)
1546
{
1547
    struct ES_00030 *closure = (struct ES_00030 *) gclosure;
1548
 
1549
    if (tag == ET [0].tag) {
1550
	    write_cstring (ostream, closure->file_name);
1551
    } else if (tag == ET [8].tag) {
1552
	    write_unsigned (ostream, closure->line_number);
1553
    } else if (tag == ET [33].tag) {
1554
	    write_cstring (ostream, closure->message);
1555
    }
1556
}
1557
static void
1558
ET_00032 PROTO_N ((ostream, tag, gclosure))
1559
         PROTO_T (OStreamP ostream X
1560
                  ETagP    tag X
1561
                  GenericP gclosure)
1562
{
1563
    struct ES_00031 *closure = (struct ES_00031 *) gclosure;
1564
 
1565
    if (tag == ET [34].tag) {
1566
	    write_cstring (ostream, exception_name (closure->except_name));
1567
    } else if (tag == ET [0].tag) {
1568
	    write_cstring (ostream, closure->file_name);
1569
    } else if (tag == ET [8].tag) {
1570
	    write_unsigned (ostream, closure->line_number);
1571
    }
1572
}
1573
static void
1574
ET_00033 PROTO_N ((ostream, tag, gclosure))
1575
         PROTO_T (OStreamP ostream X
1576
                  ETagP    tag X
1577
                  GenericP gclosure)
1578
{
1579
    struct ES_00032 *closure = (struct ES_00032 *) gclosure;
1580
 
1581
    if (tag == ET [35].tag) {
1582
	    write_cstring (ostream, closure->assertion);
1583
    } else if (tag == ET [0].tag) {
1584
	    write_cstring (ostream, closure->file_name);
1585
    } else if (tag == ET [8].tag) {
1586
	    write_unsigned (ostream, closure->line_number);
1587
    }
1588
}
1589
static void
1590
ET_00034 PROTO_N ((ostream, tag, gclosure))
1591
         PROTO_T (OStreamP ostream X
1592
                  ETagP    tag X
1593
                  GenericP gclosure)
1594
{
1595
    struct ES_00033 *closure = (struct ES_00033 *) gclosure;
1596
 
1597
    if (tag == ET [36].tag) {
1598
	    write_pointer (ostream, closure->block_address);
1599
    } else if (tag == ET [0].tag) {
1600
	    write_cstring (ostream, closure->file_name);
1601
    } else if (tag == ET [8].tag) {
1602
	    write_unsigned (ostream, closure->line_number);
1603
    } else if (tag == ET [37].tag) {
1604
	    write_cstring (ostream, closure->allocation_file_name);
1605
    } else if (tag == ET [38].tag) {
1606
	    write_unsigned (ostream, closure->allocation_line_number);
1607
    }
1608
}
1609
static void
1610
ET_00035 PROTO_N ((ostream, tag, gclosure))
1611
         PROTO_T (OStreamP ostream X
1612
                  ETagP    tag X
1613
                  GenericP gclosure)
1614
{
1615
    struct ES_00034 *closure = (struct ES_00034 *) gclosure;
1616
 
1617
    if (tag == ET [36].tag) {
1618
	    write_pointer (ostream, closure->block_address);
1619
    } else if (tag == ET [0].tag) {
1620
	    write_cstring (ostream, closure->file_name);
1621
    } else if (tag == ET [8].tag) {
1622
	    write_unsigned (ostream, closure->line_number);
1623
    }
1624
}
1625
static void
1626
ET_00036 PROTO_N ((ostream, tag, gclosure))
1627
         PROTO_T (OStreamP ostream X
1628
                  ETagP    tag X
1629
                  GenericP gclosure)
1630
{
1631
    struct ES_00035 *closure = (struct ES_00035 *) gclosure;
1632
 
1633
    if (tag == ET [0].tag) {
1634
	    write_cstring (ostream, closure->file_name);
1635
    } else if (tag == ET [10].tag) {
1636
	    write_unsigned (ostream, closure->byte_number);
1637
    } else if (tag == ET [7].tag) {
1638
	    write_nstring (ostream, closure->cap_name);
1639
    }
1640
}
1641
static void
1642
ET_00037 PROTO_N ((ostream, tag, gclosure))
1643
         PROTO_T (OStreamP ostream X
1644
                  ETagP    tag X
1645
                  GenericP gclosure)
1646
{
1647
    struct ES_00036 *closure = (struct ES_00036 *) gclosure;
1648
 
1649
    if (tag == ET [7].tag) {
1650
	    write_cstring (ostream, closure->cap_name);
1651
    } else if (tag == ET [39].tag) {
1652
	    write_cstring (ostream, closure->lib_name);
1653
    }
1654
}
1655
static void
1656
ET_00038 PROTO_N ((ostream, tag, gclosure))
1657
         PROTO_T (OStreamP ostream X
1658
                  ETagP    tag X
1659
                  GenericP gclosure)
1660
{
1661
    struct ES_00037 *closure = (struct ES_00037 *) gclosure;
1662
 
1663
    if (tag == ET [7].tag) {
1664
	    write_cstring (ostream, closure->cap_name);
1665
    } else if (tag == ET [0].tag) {
1666
	    write_cstring (ostream, closure->file_name);
1667
    }
1668
}
1669
static void
1670
ET_00039 PROTO_N ((ostream, tag, gclosure))
1671
         PROTO_T (OStreamP ostream X
1672
                  ETagP    tag X
1673
                  GenericP gclosure)
1674
{
1675
    struct ES_00038 *closure = (struct ES_00038 *) gclosure;
1676
 
1677
    if (tag == ET [0].tag) {
1678
	    write_cstring (ostream, closure->file_name);
1679
    } else if (tag == ET [10].tag) {
1680
	    write_unsigned (ostream, closure->byte_number);
1681
    } else if (tag == ET [2].tag) {
1682
	    write_nstring (ostream, closure->shape_name);
1683
    } else if (tag == ET [3].tag) {
1684
	    write_name_key (ostream, closure->name);
1685
    } else if (tag == ET [24].tag) {
1686
	    write_lib_capsule_full_name (ostream, closure->previous_file_name);
1687
    }
1688
}
1689
static void
1690
ET_00040 PROTO_N ((ostream, tag, gclosure))
1691
         PROTO_T (OStreamP ostream X
1692
                  ETagP    tag X
1693
                  GenericP gclosure)
1694
{
1695
    struct ES_00039 *closure = (struct ES_00039 *) gclosure;
1696
 
1697
    if (tag == ET [0].tag) {
1698
	    write_cstring (ostream, closure->file_name);
1699
    } else if (tag == ET [10].tag) {
1700
	    write_unsigned (ostream, closure->byte_number);
1701
    } else if (tag == ET [2].tag) {
1702
	    write_nstring (ostream, closure->shape_name);
1703
    } else if (tag == ET [3].tag) {
1704
	    write_name_key (ostream, closure->name);
1705
    } else if (tag == ET [40].tag) {
1706
	    write_unsigned (ostream, closure->capsule_index);
1707
    } else if (tag == ET [41].tag) {
1708
	    write_unsigned (ostream, closure->num_capsules);
1709
    }
1710
}
1711
static void
1712
ET_00041 PROTO_N ((ostream, tag, gclosure))
1713
         PROTO_T (OStreamP ostream X
1714
                  ETagP    tag X
1715
                  GenericP gclosure)
1716
{
1717
    struct ES_00040 *closure = (struct ES_00040 *) gclosure;
1718
 
1719
    if (tag == ET [2].tag) {
1720
	    write_nstring (ostream, closure->shape_name);
1721
    }
1722
}
1723
static void
1724
ET_00042 PROTO_N ((ostream, tag, gclosure))
1725
         PROTO_T (OStreamP ostream X
1726
                  ETagP    tag X
1727
                  GenericP gclosure)
1728
{
1729
    struct ES_00041 *closure = (struct ES_00041 *) gclosure;
1730
 
1731
    if (tag == ET [42].tag) {
1732
	    write_char (ostream, closure->mode);
1733
    }
1734
}
1735
static void
1736
ET_00043 PROTO_N ((ostream, tag, gclosure))
1737
         PROTO_T (OStreamP ostream X
1738
                  ETagP    tag X
1739
                  GenericP gclosure)
1740
{
1741
    struct ES_00042 *closure = (struct ES_00042 *) gclosure;
1742
 
1743
    if (tag == ET [3].tag) {
1744
	    write_cstring (ostream, closure->name);
1745
    }
1746
}
1747
static void
1748
ET_00044 PROTO_N ((ostream, tag, gclosure))
1749
         PROTO_T (OStreamP ostream X
1750
                  ETagP    tag X
1751
                  GenericP gclosure)
1752
{
1753
    struct ES_00043 *closure = (struct ES_00043 *) gclosure;
1754
 
1755
    if (tag == ET [0].tag) {
1756
	    write_cstring (ostream, closure->file_name);
1757
    } else if (tag == ET [10].tag) {
1758
	    write_unsigned (ostream, closure->byte_number);
1759
    } else if (tag == ET [43].tag) {
1760
	    write_unsigned (ostream, closure->character_size);
1761
    }
1762
}
1763
static void
1764
ET_00045 PROTO_N ((ostream, tag, gclosure))
1765
         PROTO_T (OStreamP ostream X
1766
                  ETagP    tag X
1767
                  GenericP gclosure)
1768
{
1769
    struct ES_00044 *closure = (struct ES_00044 *) gclosure;
1770
 
1771
    if (tag == ET [0].tag) {
1772
	    write_cstring (ostream, closure->file_name);
1773
    } else if (tag == ET [10].tag) {
1774
	    write_unsigned (ostream, closure->byte_number);
1775
    } else if (tag == ET [44].tag) {
1776
	    write_unsigned (ostream, closure->name_type);
1777
    }
1778
}
1779
 
1780
void
1781
E_tld_multiple_debug_files PROTO_Z ()
1782
{
1783
    error_call_init_proc ();
1784
    error_report (EE [0].error, ET_00000, NIL (GenericP));
1785
    UNREACHED;
1786
}
1787
void
1788
E_tld_cannot_open_debug_file PROTO_N ((file_name))
1789
                             PROTO_T (CStringP file_name)
1790
{
1791
    struct ES_00000 closure; 
1792
 
1793
    closure.file_name = file_name;
1794
    error_call_init_proc ();
1795
    error_report (EE [1].error, ET_00001, (GenericP) &closure);
1796
    UNREACHED;
1797
}
1798
void
1799
E_tld_multiple_output_files PROTO_Z ()
1800
{
1801
    error_call_init_proc ();
1802
    error_report (EE [2].error, ET_00000, NIL (GenericP));
1803
    UNREACHED;
1804
}
1805
void
1806
E_tld_multiple_unit_files PROTO_Z ()
1807
{
1808
    error_call_init_proc ();
1809
    error_report (EE [3].error, ET_00000, NIL (GenericP));
1810
    UNREACHED;
1811
}
1812
void
1813
E_multiply_renamed_name PROTO_N ((shape_name, name))
1814
                        PROTO_T (NStringP shape_name X
1815
                                 NameKeyP name)
1816
{
1817
    struct ES_00001 closure; 
1818
 
1819
    closure.shape_name = shape_name;
1820
    closure.name = name;
1821
    error_call_init_proc ();
1822
    error_report (EE [4].error, ET_00002, (GenericP) &closure);
1823
}
1824
void
1825
E_arg_parse_unknown_option PROTO_N ((option, usage))
1826
                           PROTO_T (CStringP option X
1827
                                    ArgUsageP usage)
1828
{
1829
    struct ES_00002 closure; 
1830
 
1831
    closure.option = option;
1832
    closure.usage = usage;
1833
    error_call_init_proc ();
1834
    error_report (EE [5].error, ET_00003, (GenericP) &closure);
1835
    UNREACHED;
1836
}
1837
void
1838
E_arg_parse_unknown_short_opt PROTO_N ((option, option_location, usage))
1839
                              PROTO_T (CStringP option X
1840
                                       CStringP option_location X
1841
                                       ArgUsageP usage)
1842
{
1843
    struct ES_00003 closure; 
1844
 
1845
    closure.option = option;
1846
    closure.option_location = option_location;
1847
    closure.usage = usage;
1848
    error_call_init_proc ();
1849
    error_report (EE [6].error, ET_00004, (GenericP) &closure);
1850
    UNREACHED;
1851
}
1852
void
1853
E_arg_parse_ambiguous_option PROTO_N ((option, usage))
1854
                             PROTO_T (CStringP option X
1855
                                      ArgUsageP usage)
1856
{
1857
    struct ES_00002 closure; 
1858
 
1859
    closure.option = option;
1860
    closure.usage = usage;
1861
    error_call_init_proc ();
1862
    error_report (EE [7].error, ET_00003, (GenericP) &closure);
1863
    UNREACHED;
1864
}
1865
void
1866
E_arg_parse_missing_argument PROTO_N ((option, usage))
1867
                             PROTO_T (CStringP option X
1868
                                      ArgUsageP usage)
1869
{
1870
    struct ES_00002 closure; 
1871
 
1872
    closure.option = option;
1873
    closure.usage = usage;
1874
    error_call_init_proc ();
1875
    error_report (EE [8].error, ET_00003, (GenericP) &closure);
1876
    UNREACHED;
1877
}
1878
void
1879
E_arg_parse_missing_short_arg PROTO_N ((option, option_location, usage))
1880
                              PROTO_T (CStringP option X
1881
                                       CStringP option_location X
1882
                                       ArgUsageP usage)
1883
{
1884
    struct ES_00003 closure; 
1885
 
1886
    closure.option = option;
1887
    closure.option_location = option_location;
1888
    closure.usage = usage;
1889
    error_call_init_proc ();
1890
    error_report (EE [9].error, ET_00004, (GenericP) &closure);
1891
    UNREACHED;
1892
}
1893
void
1894
E_duplicate_capsule_name PROTO_N ((cap_name))
1895
                         PROTO_T (CStringP cap_name)
1896
{
1897
    struct ES_00004 closure; 
1898
 
1899
    closure.cap_name = cap_name;
1900
    error_call_init_proc ();
1901
    error_report (EE [10].error, ET_00005, (GenericP) &closure);
1902
}
1903
void
1904
E_cannot_open_unit_set_file PROTO_N ((file_name))
1905
                            PROTO_T (CStringP file_name)
1906
{
1907
    struct ES_00000 closure; 
1908
 
1909
    closure.file_name = file_name;
1910
    error_call_init_proc ();
1911
    error_report (EE [11].error, ET_00001, (GenericP) &closure);
1912
    UNREACHED;
1913
}
1914
void
1915
E_unit_set_expected_quote PROTO_N ((istream))
1916
                          PROTO_T (IStreamP istream)
1917
{
1918
    struct ES_00005 closure; 
1919
 
1920
	    closure.file_name = istream_name (istream);
1921
	    closure.line_number = istream_line (istream);
1922
    error_call_init_proc ();
1923
    error_report (EE [12].error, ET_00006, (GenericP) &closure);
1924
    UNREACHED;
1925
}
1926
void
1927
E_unit_set_illegal_escape PROTO_N ((istream))
1928
                          PROTO_T (IStreamP istream)
1929
{
1930
    struct ES_00005 closure; 
1931
 
1932
	    closure.file_name = istream_name (istream);
1933
	    closure.line_number = istream_line (istream);
1934
    error_call_init_proc ();
1935
    error_report (EE [13].error, ET_00006, (GenericP) &closure);
1936
    UNREACHED;
1937
}
1938
void
1939
E_unit_set_eof_in_name PROTO_N ((istream))
1940
                       PROTO_T (IStreamP istream)
1941
{
1942
    struct ES_00005 closure; 
1943
 
1944
	    closure.file_name = istream_name (istream);
1945
	    closure.line_number = istream_line (istream);
1946
    error_call_init_proc ();
1947
    error_report (EE [14].error, ET_00006, (GenericP) &closure);
1948
    UNREACHED;
1949
}
1950
void
1951
E_unit_set_duplicate_name PROTO_N ((file_name, unit_set_name))
1952
                          PROTO_T (CStringP file_name X
1953
                                   NStringP unit_set_name)
1954
{
1955
    struct ES_00006 closure; 
1956
 
1957
    closure.file_name = file_name;
1958
    closure.unit_set_name = unit_set_name;
1959
    error_call_init_proc ();
1960
    error_report (EE [15].error, ET_00007, (GenericP) &closure);
1961
    UNREACHED;
1962
}
1963
void
1964
E_unit_set_no_tld_name PROTO_N ((file_name))
1965
                       PROTO_T (CStringP file_name)
1966
{
1967
    struct ES_00007 closure; 
1968
 
1969
    closure.file_name = file_name;
1970
    error_call_init_proc ();
1971
    error_report (EE [16].error, ET_00008, (GenericP) &closure);
1972
    UNREACHED;
1973
}
1974
void
1975
E_capsule_bad_magic PROTO_N ((capsule, magic_name, proper_magic_name))
1976
                    PROTO_T (CapsuleP capsule X
1977
                             NStringP magic_name X
1978
                             NStringP proper_magic_name)
1979
{
1980
    struct ES_00008 closure; 
1981
 
1982
	    closure.file_name = capsule_name (capsule);
1983
	    closure.byte_number = capsule_byte (capsule);
1984
    closure.magic_name = magic_name;
1985
    closure.proper_magic_name = proper_magic_name;
1986
    error_call_init_proc ();
1987
    error_report (EE [17].error, ET_00009, (GenericP) &closure);
1988
}
1989
void
1990
E_capsule_bad_version PROTO_N ((capsule, major_version))
1991
                      PROTO_T (CapsuleP capsule X
1992
                               unsigned major_version)
1993
{
1994
    struct ES_00009 closure; 
1995
 
1996
	    closure.file_name = capsule_name (capsule);
1997
	    closure.byte_number = capsule_byte (capsule);
1998
    closure.major_version = major_version;
1999
    error_call_init_proc ();
2000
    error_report (EE [18].error, ET_00010, (GenericP) &closure);
2001
}
2002
void
2003
E_capsule_version_mismatch PROTO_N ((capsule, major_version, proper_major_version))
2004
                           PROTO_T (CapsuleP capsule X
2005
                                    unsigned major_version X
2006
                                    unsigned proper_major_version)
2007
{
2008
    struct ES_00010 closure; 
2009
 
2010
	    closure.file_name = capsule_name (capsule);
2011
	    closure.byte_number = capsule_byte (capsule);
2012
    closure.major_version = major_version;
2013
    closure.proper_major_version = proper_major_version;
2014
    error_call_init_proc ();
2015
    error_report (EE [19].error, ET_00011, (GenericP) &closure);
2016
}
2017
void
2018
E_duplicate_unit_set_name PROTO_N ((capsule, unit_set_name))
2019
                          PROTO_T (CapsuleP capsule X
2020
                                   NStringP unit_set_name)
2021
{
2022
    struct ES_00011 closure; 
2023
 
2024
	    closure.file_name = capsule_name (capsule);
2025
	    closure.byte_number = capsule_byte (capsule);
2026
    closure.unit_set_name = unit_set_name;
2027
    error_call_init_proc ();
2028
    error_report (EE [20].error, ET_00012, (GenericP) &closure);
2029
}
2030
void
2031
E_out_of_order_unit_set_name PROTO_N ((capsule, unit_set_name))
2032
                             PROTO_T (CapsuleP capsule X
2033
                                      NStringP unit_set_name)
2034
{
2035
    struct ES_00011 closure; 
2036
 
2037
	    closure.file_name = capsule_name (capsule);
2038
	    closure.byte_number = capsule_byte (capsule);
2039
    closure.unit_set_name = unit_set_name;
2040
    error_call_init_proc ();
2041
    error_report (EE [21].error, ET_00012, (GenericP) &closure);
2042
}
2043
void
2044
E_unknown_unit_set_name PROTO_N ((capsule, unit_set_name))
2045
                        PROTO_T (CapsuleP capsule X
2046
                                 NStringP unit_set_name)
2047
{
2048
    struct ES_00011 closure; 
2049
 
2050
	    closure.file_name = capsule_name (capsule);
2051
	    closure.byte_number = capsule_byte (capsule);
2052
    closure.unit_set_name = unit_set_name;
2053
    error_call_init_proc ();
2054
    error_report (EE [22].error, ET_00012, (GenericP) &closure);
2055
}
2056
void
2057
E_duplicate_shape_name PROTO_N ((capsule, shape_name))
2058
                       PROTO_T (CapsuleP capsule X
2059
                                NStringP shape_name)
2060
{
2061
    struct ES_00012 closure; 
2062
 
2063
	    closure.file_name = capsule_name (capsule);
2064
	    closure.byte_number = capsule_byte (capsule);
2065
    closure.shape_name = shape_name;
2066
    error_call_init_proc ();
2067
    error_report (EE [23].error, ET_00013, (GenericP) &closure);
2068
}
2069
void
2070
E_shape_and_name_count_mismatch PROTO_N ((capsule, shape_count, name_count))
2071
                                PROTO_T (CapsuleP capsule X
2072
                                         unsigned shape_count X
2073
                                         unsigned name_count)
2074
{
2075
    struct ES_00013 closure; 
2076
 
2077
	    closure.file_name = capsule_name (capsule);
2078
	    closure.byte_number = capsule_byte (capsule);
2079
    closure.shape_count = shape_count;
2080
    closure.name_count = name_count;
2081
    error_call_init_proc ();
2082
    error_report (EE [24].error, ET_00014, (GenericP) &closure);
2083
}
2084
void
2085
E_name_id_out_of_range PROTO_N ((capsule, shape_name, name, identifier, identifier_limit))
2086
                       PROTO_T (CapsuleP capsule X
2087
                                NStringP shape_name X
2088
                                NameKeyP name X
2089
                                unsigned identifier X
2090
                                unsigned identifier_limit)
2091
{
2092
    struct ES_00014 closure; 
2093
 
2094
	    closure.file_name = capsule_name (capsule);
2095
	    closure.byte_number = capsule_byte (capsule);
2096
    closure.shape_name = shape_name;
2097
    closure.name = name;
2098
    closure.identifier = identifier;
2099
    closure.identifier_limit = identifier_limit;
2100
    error_call_init_proc ();
2101
    error_report (EE [25].error, ET_00015, (GenericP) &closure);
2102
}
2103
void
2104
E_name_id_used_multiple_times PROTO_N ((capsule, shape_name, name, identifier))
2105
                              PROTO_T (CapsuleP capsule X
2106
                                       NStringP shape_name X
2107
                                       NameKeyP name X
2108
                                       unsigned identifier)
2109
{
2110
    struct ES_00015 closure; 
2111
 
2112
	    closure.file_name = capsule_name (capsule);
2113
	    closure.byte_number = capsule_byte (capsule);
2114
    closure.shape_name = shape_name;
2115
    closure.name = name;
2116
    closure.identifier = identifier;
2117
    error_call_init_proc ();
2118
    error_report (EE [26].error, ET_00016, (GenericP) &closure);
2119
}
2120
void
2121
E_too_many_tld_units PROTO_N ((capsule))
2122
                     PROTO_T (CapsuleP capsule)
2123
{
2124
    struct ES_00016 closure; 
2125
 
2126
	    closure.file_name = capsule_name (capsule);
2127
	    closure.byte_number = capsule_byte (capsule);
2128
    error_call_init_proc ();
2129
    error_report (EE [27].error, ET_00017, (GenericP) &closure);
2130
}
2131
void
2132
E_tld2_unit_set_type_obsolete PROTO_N ((capsule))
2133
                              PROTO_T (CapsuleP capsule)
2134
{
2135
    struct ES_00016 closure; 
2136
 
2137
	    closure.file_name = capsule_name (capsule);
2138
	    closure.byte_number = capsule_byte (capsule);
2139
    error_call_init_proc ();
2140
    error_report (EE [28].error, ET_00017, (GenericP) &closure);
2141
}
2142
void
2143
E_too_many_tld_unit_counts PROTO_N ((capsule))
2144
                           PROTO_T (CapsuleP capsule)
2145
{
2146
    struct ES_00016 closure; 
2147
 
2148
	    closure.file_name = capsule_name (capsule);
2149
	    closure.byte_number = capsule_byte (capsule);
2150
    error_call_init_proc ();
2151
    error_report (EE [29].error, ET_00017, (GenericP) &closure);
2152
}
2153
void
2154
E_too_many_tld_unit_mappings PROTO_N ((capsule))
2155
                             PROTO_T (CapsuleP capsule)
2156
{
2157
    struct ES_00016 closure; 
2158
 
2159
	    closure.file_name = capsule_name (capsule);
2160
	    closure.byte_number = capsule_byte (capsule);
2161
    error_call_init_proc ();
2162
    error_report (EE [30].error, ET_00017, (GenericP) &closure);
2163
}
2164
void
2165
E_tld_unit_wrong_size PROTO_N ((capsule, correct_offset, offset))
2166
                      PROTO_T (CapsuleP capsule X
2167
                               unsigned correct_offset X
2168
                               unsigned offset)
2169
{
2170
    struct ES_00017 closure; 
2171
 
2172
	    closure.file_name = capsule_name (capsule);
2173
	    closure.byte_number = capsule_byte (capsule);
2174
    closure.correct_offset = correct_offset;
2175
    closure.offset = offset;
2176
    error_call_init_proc ();
2177
    error_report (EE [31].error, ET_00018, (GenericP) &closure);
2178
}
2179
void
2180
E_unknown_tld_unit_type PROTO_N ((capsule, version_number))
2181
                        PROTO_T (CapsuleP capsule X
2182
                                 unsigned version_number)
2183
{
2184
    struct ES_00018 closure; 
2185
 
2186
	    closure.file_name = capsule_name (capsule);
2187
	    closure.byte_number = capsule_byte (capsule);
2188
    closure.version_number = version_number;
2189
    error_call_init_proc ();
2190
    error_report (EE [32].error, ET_00019, (GenericP) &closure);
2191
}
2192
void
2193
E_unit_set_count_mismatch PROTO_N ((capsule, unit_set_count, unit_count))
2194
                          PROTO_T (CapsuleP capsule X
2195
                                   unsigned unit_set_count X
2196
                                   unsigned unit_count)
2197
{
2198
    struct ES_00019 closure; 
2199
 
2200
	    closure.file_name = capsule_name (capsule);
2201
	    closure.byte_number = capsule_byte (capsule);
2202
    closure.unit_set_count = unit_set_count;
2203
    closure.unit_count = unit_count;
2204
    error_call_init_proc ();
2205
    error_report (EE [33].error, ET_00020, (GenericP) &closure);
2206
}
2207
void
2208
E_missing_tld_unit_set PROTO_N ((file_name))
2209
                       PROTO_T (CStringP file_name)
2210
{
2211
    struct ES_00007 closure; 
2212
 
2213
    closure.file_name = file_name;
2214
    error_call_init_proc ();
2215
    error_report (EE [34].error, ET_00008, (GenericP) &closure);
2216
}
2217
void
2218
E_extra_tld_unit_set PROTO_N ((capsule))
2219
                     PROTO_T (CapsuleP capsule)
2220
{
2221
    struct ES_00016 closure; 
2222
 
2223
	    closure.file_name = capsule_name (capsule);
2224
	    closure.byte_number = capsule_byte (capsule);
2225
    error_call_init_proc ();
2226
    error_report (EE [35].error, ET_00017, (GenericP) &closure);
2227
}
2228
void
2229
E_defined_but_not_declared PROTO_N ((capsule, shape_name, name))
2230
                           PROTO_T (CapsuleP capsule X
2231
                                    NStringP shape_name X
2232
                                    NameKeyP name)
2233
{
2234
    struct ES_00020 closure; 
2235
 
2236
	    closure.file_name = capsule_name (capsule);
2237
	    closure.byte_number = capsule_byte (capsule);
2238
    closure.shape_name = shape_name;
2239
    closure.name = name;
2240
    error_call_init_proc ();
2241
    error_report (EE [36].error, ET_00021, (GenericP) &closure);
2242
}
2243
void
2244
E_illegally_multiply_defined PROTO_N ((capsule, shape_name, name))
2245
                             PROTO_T (CapsuleP capsule X
2246
                                      NStringP shape_name X
2247
                                      NameKeyP name)
2248
{
2249
    struct ES_00020 closure; 
2250
 
2251
	    closure.file_name = capsule_name (capsule);
2252
	    closure.byte_number = capsule_byte (capsule);
2253
    closure.shape_name = shape_name;
2254
    closure.name = name;
2255
    error_call_init_proc ();
2256
    error_report (EE [37].error, ET_00021, (GenericP) &closure);
2257
}
2258
void
2259
E_bad_usage PROTO_N ((capsule, shape_name, name, usage))
2260
            PROTO_T (CapsuleP capsule X
2261
                     NStringP shape_name X
2262
                     NameKeyP name X
2263
                     unsigned usage)
2264
{
2265
    struct ES_00021 closure; 
2266
 
2267
	    closure.file_name = capsule_name (capsule);
2268
	    closure.byte_number = capsule_byte (capsule);
2269
    closure.shape_name = shape_name;
2270
    closure.name = name;
2271
    closure.usage = usage;
2272
    error_call_init_proc ();
2273
    error_report (EE [38].error, ET_00022, (GenericP) &closure);
2274
}
2275
void
2276
E_multiply_defined PROTO_N ((capsule, shape_name, name, previous_file_name))
2277
                   PROTO_T (CapsuleP capsule X
2278
                            NStringP shape_name X
2279
                            NameKeyP name X
2280
                            CStringP previous_file_name)
2281
{
2282
    struct ES_00022 closure; 
2283
 
2284
	    closure.file_name = capsule_name (capsule);
2285
	    closure.byte_number = capsule_byte (capsule);
2286
    closure.shape_name = shape_name;
2287
    closure.name = name;
2288
    closure.previous_file_name = previous_file_name;
2289
    error_call_init_proc ();
2290
    error_report (EE [39].error, ET_00023, (GenericP) &closure);
2291
}
2292
void
2293
E_unit_count_num_mismatch PROTO_N ((capsule, count_number, shape_number, unit_number, unit_set_name))
2294
                          PROTO_T (CapsuleP capsule X
2295
                                   unsigned count_number X
2296
                                   unsigned shape_number X
2297
                                   unsigned unit_number X
2298
                                   NStringP unit_set_name)
2299
{
2300
    struct ES_00023 closure; 
2301
 
2302
	    closure.file_name = capsule_name (capsule);
2303
	    closure.byte_number = capsule_byte (capsule);
2304
    closure.count_number = count_number;
2305
    closure.shape_number = shape_number;
2306
    closure.unit_number = unit_number;
2307
    closure.unit_set_name = unit_set_name;
2308
    error_call_init_proc ();
2309
    error_report (EE [40].error, ET_00024, (GenericP) &closure);
2310
}
2311
void
2312
E_unit_mapping_num_mismatch PROTO_N ((capsule, mapping_number, count_number, unit_number, unit_set_name))
2313
                            PROTO_T (CapsuleP capsule X
2314
                                     unsigned mapping_number X
2315
                                     unsigned count_number X
2316
                                     unsigned unit_number X
2317
                                     NStringP unit_set_name)
2318
{
2319
    struct ES_00024 closure; 
2320
 
2321
	    closure.file_name = capsule_name (capsule);
2322
	    closure.byte_number = capsule_byte (capsule);
2323
    closure.mapping_number = mapping_number;
2324
    closure.count_number = count_number;
2325
    closure.unit_number = unit_number;
2326
    closure.unit_set_name = unit_set_name;
2327
    error_call_init_proc ();
2328
    error_report (EE [41].error, ET_00025, (GenericP) &closure);
2329
}
2330
void
2331
E_id_out_of_range PROTO_N ((capsule, identifier, identifier_limit, shape_name, unit_number, unit_set_name))
2332
                  PROTO_T (CapsuleP capsule X
2333
                           unsigned identifier X
2334
                           unsigned identifier_limit X
2335
                           NStringP shape_name X
2336
                           unsigned unit_number X
2337
                           NStringP unit_set_name)
2338
{
2339
    struct ES_00025 closure; 
2340
 
2341
	    closure.file_name = capsule_name (capsule);
2342
	    closure.byte_number = capsule_byte (capsule);
2343
    closure.identifier = identifier;
2344
    closure.identifier_limit = identifier_limit;
2345
    closure.shape_name = shape_name;
2346
    closure.unit_number = unit_number;
2347
    closure.unit_set_name = unit_set_name;
2348
    error_call_init_proc ();
2349
    error_report (EE [42].error, ET_00026, (GenericP) &closure);
2350
}
2351
void
2352
E_too_many_library_files PROTO_Z ()
2353
{
2354
    error_call_init_proc ();
2355
    error_report (EE [43].error, ET_00000, NIL (GenericP));
2356
    UNREACHED;
2357
}
2358
void
2359
E_errf_null_char_in_builtin PROTO_N ((istream))
2360
                            PROTO_T (IStreamP istream)
2361
{
2362
    struct ES_00005 closure; 
2363
 
2364
	    closure.file_name = istream_name (istream);
2365
	    closure.line_number = istream_line (istream);
2366
    error_call_init_proc ();
2367
    error_report (EE [44].error, ET_00006, (GenericP) &closure);
2368
    UNREACHED;
2369
}
2370
void
2371
E_errf_null_character_in_name PROTO_N ((istream))
2372
                              PROTO_T (IStreamP istream)
2373
{
2374
    struct ES_00005 closure; 
2375
 
2376
	    closure.file_name = istream_name (istream);
2377
	    closure.line_number = istream_line (istream);
2378
    error_call_init_proc ();
2379
    error_report (EE [45].error, ET_00006, (GenericP) &closure);
2380
    UNREACHED;
2381
}
2382
void
2383
E_errf_null_character_in_string PROTO_N ((istream))
2384
                                PROTO_T (IStreamP istream)
2385
{
2386
    struct ES_00005 closure; 
2387
 
2388
	    closure.file_name = istream_name (istream);
2389
	    closure.line_number = istream_line (istream);
2390
    error_call_init_proc ();
2391
    error_report (EE [46].error, ET_00006, (GenericP) &closure);
2392
    UNREACHED;
2393
}
2394
void
2395
E_errf_newline_in_builtin PROTO_N ((istream))
2396
                          PROTO_T (IStreamP istream)
2397
{
2398
    struct ES_00005 closure; 
2399
 
2400
	    closure.file_name = istream_name (istream);
2401
	    closure.line_number = istream_line (istream);
2402
    error_call_init_proc ();
2403
    error_report (EE [47].error, ET_00006, (GenericP) &closure);
2404
    UNREACHED;
2405
}
2406
void
2407
E_errf_newline_in_name PROTO_N ((istream))
2408
                       PROTO_T (IStreamP istream)
2409
{
2410
    struct ES_00005 closure; 
2411
 
2412
	    closure.file_name = istream_name (istream);
2413
	    closure.line_number = istream_line (istream);
2414
    error_call_init_proc ();
2415
    error_report (EE [48].error, ET_00006, (GenericP) &closure);
2416
    UNREACHED;
2417
}
2418
void
2419
E_errf_newline_in_string PROTO_N ((istream))
2420
                         PROTO_T (IStreamP istream)
2421
{
2422
    struct ES_00005 closure; 
2423
 
2424
	    closure.file_name = istream_name (istream);
2425
	    closure.line_number = istream_line (istream);
2426
    error_call_init_proc ();
2427
    error_report (EE [49].error, ET_00006, (GenericP) &closure);
2428
    UNREACHED;
2429
}
2430
void
2431
E_errf_eof_in_builtin PROTO_N ((istream))
2432
                      PROTO_T (IStreamP istream)
2433
{
2434
    struct ES_00005 closure; 
2435
 
2436
	    closure.file_name = istream_name (istream);
2437
	    closure.line_number = istream_line (istream);
2438
    error_call_init_proc ();
2439
    error_report (EE [50].error, ET_00006, (GenericP) &closure);
2440
    UNREACHED;
2441
}
2442
void
2443
E_errf_eof_in_name PROTO_N ((istream))
2444
                   PROTO_T (IStreamP istream)
2445
{
2446
    struct ES_00005 closure; 
2447
 
2448
	    closure.file_name = istream_name (istream);
2449
	    closure.line_number = istream_line (istream);
2450
    error_call_init_proc ();
2451
    error_report (EE [51].error, ET_00006, (GenericP) &closure);
2452
    UNREACHED;
2453
}
2454
void
2455
E_errf_eof_in_string PROTO_N ((istream))
2456
                     PROTO_T (IStreamP istream)
2457
{
2458
    struct ES_00005 closure; 
2459
 
2460
	    closure.file_name = istream_name (istream);
2461
	    closure.line_number = istream_line (istream);
2462
    error_call_init_proc ();
2463
    error_report (EE [52].error, ET_00006, (GenericP) &closure);
2464
    UNREACHED;
2465
}
2466
void
2467
E_errf_illegal_esc_in_builtin PROTO_N ((istream))
2468
                              PROTO_T (IStreamP istream)
2469
{
2470
    struct ES_00005 closure; 
2471
 
2472
	    closure.file_name = istream_name (istream);
2473
	    closure.line_number = istream_line (istream);
2474
    error_call_init_proc ();
2475
    error_report (EE [53].error, ET_00006, (GenericP) &closure);
2476
    UNREACHED;
2477
}
2478
void
2479
E_errf_illegal_escape_in_name PROTO_N ((istream))
2480
                              PROTO_T (IStreamP istream)
2481
{
2482
    struct ES_00005 closure; 
2483
 
2484
	    closure.file_name = istream_name (istream);
2485
	    closure.line_number = istream_line (istream);
2486
    error_call_init_proc ();
2487
    error_report (EE [54].error, ET_00006, (GenericP) &closure);
2488
    UNREACHED;
2489
}
2490
void
2491
E_errf_illegal_escape_in_string PROTO_N ((istream))
2492
                                PROTO_T (IStreamP istream)
2493
{
2494
    struct ES_00005 closure; 
2495
 
2496
	    closure.file_name = istream_name (istream);
2497
	    closure.line_number = istream_line (istream);
2498
    error_call_init_proc ();
2499
    error_report (EE [55].error, ET_00006, (GenericP) &closure);
2500
    UNREACHED;
2501
}
2502
void
2503
E_errf_unknown_builtin PROTO_N ((istream, builtin_name))
2504
                       PROTO_T (IStreamP istream X
2505
                                CStringP builtin_name)
2506
{
2507
    struct ES_00026 closure; 
2508
 
2509
	    closure.file_name = istream_name (istream);
2510
	    closure.line_number = istream_line (istream);
2511
    closure.builtin_name = builtin_name;
2512
    error_call_init_proc ();
2513
    error_report (EE [56].error, ET_00027, (GenericP) &closure);
2514
    UNREACHED;
2515
}
2516
void
2517
E_errf_illegal_character PROTO_N ((istream, character))
2518
                         PROTO_T (IStreamP istream X
2519
                                  char character)
2520
{
2521
    struct ES_00027 closure; 
2522
 
2523
	    closure.file_name = istream_name (istream);
2524
	    closure.line_number = istream_line (istream);
2525
    closure.character = character;
2526
    error_call_init_proc ();
2527
    error_report (EE [57].error, ET_00028, (GenericP) &closure);
2528
    UNREACHED;
2529
}
2530
void
2531
E_errf_expected_string PROTO_N ((istream))
2532
                       PROTO_T (IStreamP istream)
2533
{
2534
    struct ES_00005 closure; 
2535
 
2536
	    closure.file_name = istream_name (istream);
2537
	    closure.line_number = istream_line (istream);
2538
    error_call_init_proc ();
2539
    error_report (EE [58].error, ET_00006, (GenericP) &closure);
2540
    UNREACHED;
2541
}
2542
void
2543
E_errf_expected_section PROTO_N ((istream))
2544
                        PROTO_T (IStreamP istream)
2545
{
2546
    struct ES_00005 closure; 
2547
 
2548
	    closure.file_name = istream_name (istream);
2549
	    closure.line_number = istream_line (istream);
2550
    error_call_init_proc ();
2551
    error_report (EE [59].error, ET_00006, (GenericP) &closure);
2552
    UNREACHED;
2553
}
2554
void
2555
E_errf_unknown_string PROTO_N ((istream, string_name))
2556
                      PROTO_T (IStreamP istream X
2557
                               CStringP string_name)
2558
{
2559
    struct ES_00028 closure; 
2560
 
2561
	    closure.file_name = istream_name (istream);
2562
	    closure.line_number = istream_line (istream);
2563
    closure.string_name = string_name;
2564
    error_call_init_proc ();
2565
    error_report (EE [60].error, ET_00029, (GenericP) &closure);
2566
    UNREACHED;
2567
}
2568
void
2569
E_errf_unknown_error PROTO_N ((istream, error_name))
2570
                     PROTO_T (IStreamP istream X
2571
                              CStringP error_name)
2572
{
2573
    struct ES_00029 closure; 
2574
 
2575
	    closure.file_name = istream_name (istream);
2576
	    closure.line_number = istream_line (istream);
2577
    closure.error_name = error_name;
2578
    error_call_init_proc ();
2579
    error_report (EE [61].error, ET_00030, (GenericP) &closure);
2580
    UNREACHED;
2581
}
2582
void
2583
E_errf_illegal_message PROTO_N ((istream, message))
2584
                       PROTO_T (IStreamP istream X
2585
                                CStringP message)
2586
{
2587
    struct ES_00030 closure; 
2588
 
2589
	    closure.file_name = istream_name (istream);
2590
	    closure.line_number = istream_line (istream);
2591
    closure.message = message;
2592
    error_call_init_proc ();
2593
    error_report (EE [62].error, ET_00031, (GenericP) &closure);
2594
    UNREACHED;
2595
}
2596
void
2597
E_errf_cannot_open PROTO_N ((file_name))
2598
                   PROTO_T (CStringP file_name)
2599
{
2600
    struct ES_00000 closure; 
2601
 
2602
    closure.file_name = file_name;
2603
    error_call_init_proc ();
2604
    error_report (EE [63].error, ET_00001, (GenericP) &closure);
2605
    UNREACHED;
2606
}
2607
void
2608
E_all_specified_with_capsules PROTO_Z ()
2609
{
2610
    error_call_init_proc ();
2611
    error_report (EE [64].error, ET_00000, NIL (GenericP));
2612
    UNREACHED;
2613
}
2614
void
2615
E_no_capsules_specified PROTO_Z ()
2616
{
2617
    error_call_init_proc ();
2618
    error_report (EE [65].error, ET_00000, NIL (GenericP));
2619
    UNREACHED;
2620
}
2621
void
2622
E_exception_unhandled PROTO_N ((except_name, file_name, line_number))
2623
                      PROTO_T (ExceptionP except_name X
2624
                               CStringP file_name X
2625
                               unsigned line_number)
2626
{
2627
    struct ES_00031 closure; 
2628
 
2629
    closure.except_name = except_name;
2630
    closure.file_name = file_name;
2631
    closure.line_number = line_number;
2632
    error_call_init_proc ();
2633
    error_report (EE [66].error, ET_00032, (GenericP) &closure);
2634
    UNREACHED;
2635
}
2636
void
2637
E_exception_corrupt_handler PROTO_N ((file_name, line_number))
2638
                            PROTO_T (CStringP file_name X
2639
                                     unsigned line_number)
2640
{
2641
    struct ES_00005 closure; 
2642
 
2643
    closure.file_name = file_name;
2644
    closure.line_number = line_number;
2645
    error_call_init_proc ();
2646
    error_report (EE [67].error, ET_00006, (GenericP) &closure);
2647
    UNREACHED;
2648
}
2649
void
2650
E_assertion_failed PROTO_N ((assertion, file_name, line_number))
2651
                   PROTO_T (CStringP assertion X
2652
                            CStringP file_name X
2653
                            unsigned line_number)
2654
{
2655
    struct ES_00032 closure; 
2656
 
2657
    closure.assertion = assertion;
2658
    closure.file_name = file_name;
2659
    closure.line_number = line_number;
2660
    error_call_init_proc ();
2661
    error_report (EE [68].error, ET_00033, (GenericP) &closure);
2662
    UNREACHED;
2663
}
2664
void
2665
E_dalloc_multi_deallocate PROTO_N ((block_address, file_name, line_number, allocation_file_name, allocation_line_number))
2666
                          PROTO_T (GenericP block_address X
2667
                                   CStringP file_name X
2668
                                   unsigned line_number X
2669
                                   CStringP allocation_file_name X
2670
                                   unsigned allocation_line_number)
2671
{
2672
    struct ES_00033 closure; 
2673
 
2674
    closure.block_address = block_address;
2675
    closure.file_name = file_name;
2676
    closure.line_number = line_number;
2677
    closure.allocation_file_name = allocation_file_name;
2678
    closure.allocation_line_number = allocation_line_number;
2679
    error_call_init_proc ();
2680
    error_report (EE [69].error, ET_00034, (GenericP) &closure);
2681
    UNREACHED;
2682
}
2683
void
2684
E_dalloc_corrupt_block PROTO_N ((block_address, file_name, line_number))
2685
                       PROTO_T (GenericP block_address X
2686
                                CStringP file_name X
2687
                                unsigned line_number)
2688
{
2689
    struct ES_00034 closure; 
2690
 
2691
    closure.block_address = block_address;
2692
    closure.file_name = file_name;
2693
    closure.line_number = line_number;
2694
    error_call_init_proc ();
2695
    error_report (EE [70].error, ET_00035, (GenericP) &closure);
2696
    UNREACHED;
2697
}
2698
void
2699
E_library_bad_magic PROTO_N ((library, magic_name, proper_magic_name))
2700
                    PROTO_T (LibraryP library X
2701
                             NStringP magic_name X
2702
                             NStringP proper_magic_name)
2703
{
2704
    struct ES_00008 closure; 
2705
 
2706
	    closure.file_name = library_name (library);
2707
	    closure.byte_number = library_byte (library);
2708
    closure.magic_name = magic_name;
2709
    closure.proper_magic_name = proper_magic_name;
2710
    error_call_init_proc ();
2711
    error_report (EE [71].error, ET_00009, (GenericP) &closure);
2712
}
2713
void
2714
E_library_bad_version PROTO_N ((library, major_version))
2715
                      PROTO_T (LibraryP library X
2716
                               unsigned major_version)
2717
{
2718
    struct ES_00009 closure; 
2719
 
2720
	    closure.file_name = library_name (library);
2721
	    closure.byte_number = library_byte (library);
2722
    closure.major_version = major_version;
2723
    error_call_init_proc ();
2724
    error_report (EE [72].error, ET_00010, (GenericP) &closure);
2725
}
2726
void
2727
E_library_version_mismatch PROTO_N ((library, major_version, proper_major_version))
2728
                           PROTO_T (LibraryP library X
2729
                                    unsigned major_version X
2730
                                    unsigned proper_major_version)
2731
{
2732
    struct ES_00010 closure; 
2733
 
2734
	    closure.file_name = library_name (library);
2735
	    closure.byte_number = library_byte (library);
2736
    closure.major_version = major_version;
2737
    closure.proper_major_version = proper_major_version;
2738
    error_call_init_proc ();
2739
    error_report (EE [73].error, ET_00011, (GenericP) &closure);
2740
}
2741
void
2742
E_null_in_file_name PROTO_N ((library, cap_name))
2743
                    PROTO_T (LibraryP library X
2744
                             NStringP cap_name)
2745
{
2746
    struct ES_00035 closure; 
2747
 
2748
	    closure.file_name = library_name (library);
2749
	    closure.byte_number = library_byte (library);
2750
    closure.cap_name = cap_name;
2751
    error_call_init_proc ();
2752
    error_report (EE [74].error, ET_00036, (GenericP) &closure);
2753
}
2754
void
2755
E_capsule_not_found PROTO_N ((cap_name, lib_name))
2756
                    PROTO_T (CStringP cap_name X
2757
                             CStringP lib_name)
2758
{
2759
    struct ES_00036 closure; 
2760
 
2761
    closure.cap_name = cap_name;
2762
    closure.lib_name = lib_name;
2763
    error_call_init_proc ();
2764
    error_report (EE [75].error, ET_00037, (GenericP) &closure);
2765
}
2766
void
2767
E_extracting_capsule PROTO_N ((cap_name, file_name))
2768
                     PROTO_T (CStringP cap_name X
2769
                              CStringP file_name)
2770
{
2771
    struct ES_00037 closure; 
2772
 
2773
    closure.cap_name = cap_name;
2774
    closure.file_name = file_name;
2775
    error_call_init_proc ();
2776
    error_report (EE [76].error, ET_00038, (GenericP) &closure);
2777
}
2778
void
2779
E_lib_unknown_type PROTO_N ((library, version_number))
2780
                   PROTO_T (LibraryP library X
2781
                            unsigned version_number)
2782
{
2783
    struct ES_00018 closure; 
2784
 
2785
	    closure.file_name = library_name (library);
2786
	    closure.byte_number = library_byte (library);
2787
    closure.version_number = version_number;
2788
    error_call_init_proc ();
2789
    error_report (EE [77].error, ET_00019, (GenericP) &closure);
2790
}
2791
void
2792
E_lib_defined_but_not_declared PROTO_N ((library, shape_name, name))
2793
                               PROTO_T (LibraryP library X
2794
                                        NStringP shape_name X
2795
                                        NameKeyP name)
2796
{
2797
    struct ES_00020 closure; 
2798
 
2799
	    closure.file_name = library_name (library);
2800
	    closure.byte_number = library_byte (library);
2801
    closure.shape_name = shape_name;
2802
    closure.name = name;
2803
    error_call_init_proc ();
2804
    error_report (EE [78].error, ET_00021, (GenericP) &closure);
2805
}
2806
void
2807
E_lib_illegally_mult_defined PROTO_N ((library, shape_name, name))
2808
                             PROTO_T (LibraryP library X
2809
                                      NStringP shape_name X
2810
                                      NameKeyP name)
2811
{
2812
    struct ES_00020 closure; 
2813
 
2814
	    closure.file_name = library_name (library);
2815
	    closure.byte_number = library_byte (library);
2816
    closure.shape_name = shape_name;
2817
    closure.name = name;
2818
    error_call_init_proc ();
2819
    error_report (EE [79].error, ET_00021, (GenericP) &closure);
2820
}
2821
void
2822
E_lib_bad_usage PROTO_N ((library, shape_name, name, usage))
2823
                PROTO_T (LibraryP library X
2824
                         NStringP shape_name X
2825
                         NameKeyP name X
2826
                         unsigned usage)
2827
{
2828
    struct ES_00021 closure; 
2829
 
2830
	    closure.file_name = library_name (library);
2831
	    closure.byte_number = library_byte (library);
2832
    closure.shape_name = shape_name;
2833
    closure.name = name;
2834
    closure.usage = usage;
2835
    error_call_init_proc ();
2836
    error_report (EE [80].error, ET_00022, (GenericP) &closure);
2837
}
2838
void
2839
E_lib_multiply_defined PROTO_N ((library, shape_name, name, previous_file_name))
2840
                       PROTO_T (LibraryP library X
2841
                                NStringP shape_name X
2842
                                NameKeyP name X
2843
                                LibCapsuleP previous_file_name)
2844
{
2845
    struct ES_00038 closure; 
2846
 
2847
	    closure.file_name = library_name (library);
2848
	    closure.byte_number = library_byte (library);
2849
    closure.shape_name = shape_name;
2850
    closure.name = name;
2851
    closure.previous_file_name = previous_file_name;
2852
    error_call_init_proc ();
2853
    error_report (EE [81].error, ET_00039, (GenericP) &closure);
2854
}
2855
void
2856
E_capsule_index_too_big PROTO_N ((library, shape_name, name, capsule_index, num_capsules))
2857
                        PROTO_T (LibraryP library X
2858
                                 NStringP shape_name X
2859
                                 NameKeyP name X
2860
                                 unsigned capsule_index X
2861
                                 unsigned num_capsules)
2862
{
2863
    struct ES_00039 closure; 
2864
 
2865
	    closure.file_name = library_name (library);
2866
	    closure.byte_number = library_byte (library);
2867
    closure.shape_name = shape_name;
2868
    closure.name = name;
2869
    closure.capsule_index = capsule_index;
2870
    closure.num_capsules = num_capsules;
2871
    error_call_init_proc ();
2872
    error_report (EE [82].error, ET_00040, (GenericP) &closure);
2873
}
2874
void
2875
E_cannot_hide_shape PROTO_N ((shape_name))
2876
                    PROTO_T (NStringP shape_name)
2877
{
2878
    struct ES_00040 closure; 
2879
 
2880
    closure.shape_name = shape_name;
2881
    error_call_init_proc ();
2882
    error_report (EE [83].error, ET_00041, (GenericP) &closure);
2883
}
2884
void
2885
E_cannot_hide PROTO_N ((shape_name, name))
2886
              PROTO_T (NStringP shape_name X
2887
                       NameKeyP name)
2888
{
2889
    struct ES_00001 closure; 
2890
 
2891
    closure.shape_name = shape_name;
2892
    closure.name = name;
2893
    error_call_init_proc ();
2894
    error_report (EE [84].error, ET_00002, (GenericP) &closure);
2895
}
2896
void
2897
E_cannot_hide_undefined PROTO_N ((shape_name, name))
2898
                        PROTO_T (NStringP shape_name X
2899
                                 NameKeyP name)
2900
{
2901
    struct ES_00001 closure; 
2902
 
2903
    closure.shape_name = shape_name;
2904
    closure.name = name;
2905
    error_call_init_proc ();
2906
    error_report (EE [85].error, ET_00002, (GenericP) &closure);
2907
}
2908
void
2909
E_cannot_keep_shape PROTO_N ((shape_name))
2910
                    PROTO_T (NStringP shape_name)
2911
{
2912
    struct ES_00040 closure; 
2913
 
2914
    closure.shape_name = shape_name;
2915
    error_call_init_proc ();
2916
    error_report (EE [86].error, ET_00041, (GenericP) &closure);
2917
}
2918
void
2919
E_cannot_keep PROTO_N ((shape_name, name))
2920
              PROTO_T (NStringP shape_name X
2921
                       NameKeyP name)
2922
{
2923
    struct ES_00001 closure; 
2924
 
2925
    closure.shape_name = shape_name;
2926
    closure.name = name;
2927
    error_call_init_proc ();
2928
    error_report (EE [87].error, ET_00002, (GenericP) &closure);
2929
}
2930
void
2931
E_bad_mode PROTO_N ((mode))
2932
           PROTO_T (char mode)
2933
{
2934
    struct ES_00041 closure; 
2935
 
2936
    closure.mode = mode;
2937
    error_call_init_proc ();
2938
    error_report (EE [88].error, ET_00042, (GenericP) &closure);
2939
    UNREACHED;
2940
}
2941
void
2942
E_missing_files PROTO_Z ()
2943
{
2944
    error_call_init_proc ();
2945
    error_report (EE [89].error, ET_00000, NIL (GenericP));
2946
    UNREACHED;
2947
}
2948
void
2949
E_no_memory PROTO_Z ()
2950
{
2951
    error_call_init_proc ();
2952
    error_report (EE [90].error, ET_00000, NIL (GenericP));
2953
    UNREACHED;
2954
}
2955
void
2956
E_read_error PROTO_N ((file_name))
2957
             PROTO_T (CStringP file_name)
2958
{
2959
    struct ES_00000 closure; 
2960
 
2961
    closure.file_name = file_name;
2962
    error_call_init_proc ();
2963
    error_report (EE [91].error, ET_00001, (GenericP) &closure);
2964
    UNREACHED;
2965
}
2966
void
2967
E_write_error PROTO_N ((file_name))
2968
              PROTO_T (CStringP file_name)
2969
{
2970
    struct ES_00000 closure; 
2971
 
2972
    closure.file_name = file_name;
2973
    error_call_init_proc ();
2974
    error_report (EE [92].error, ET_00001, (GenericP) &closure);
2975
    UNREACHED;
2976
}
2977
void
2978
E_cannot_open_input_file PROTO_N ((file_name))
2979
                         PROTO_T (CStringP file_name)
2980
{
2981
    struct ES_00000 closure; 
2982
 
2983
    closure.file_name = file_name;
2984
    error_call_init_proc ();
2985
    error_report (EE [93].error, ET_00001, (GenericP) &closure);
2986
}
2987
void
2988
E_cannot_open_output_file PROTO_N ((file_name))
2989
                          PROTO_T (CStringP file_name)
2990
{
2991
    struct ES_00000 closure; 
2992
 
2993
    closure.file_name = file_name;
2994
    error_call_init_proc ();
2995
    error_report (EE [94].error, ET_00001, (GenericP) &closure);
2996
    UNREACHED;
2997
}
2998
void
2999
E_cannot_open_library_file PROTO_N ((file_name))
3000
                           PROTO_T (CStringP file_name)
3001
{
3002
    struct ES_00000 closure; 
3003
 
3004
    closure.file_name = file_name;
3005
    error_call_init_proc ();
3006
    error_report (EE [95].error, ET_00001, (GenericP) &closure);
3007
}
3008
void
3009
E_illegal_external_name PROTO_N ((name))
3010
                        PROTO_T (CStringP name)
3011
{
3012
    struct ES_00042 closure; 
3013
 
3014
    closure.name = name;
3015
    error_call_init_proc ();
3016
    error_report (EE [96].error, ET_00043, (GenericP) &closure);
3017
}
3018
void
3019
E_no_single_definition PROTO_N ((shape_name, name))
3020
                       PROTO_T (NStringP shape_name X
3021
                                NameKeyP name)
3022
{
3023
    struct ES_00001 closure; 
3024
 
3025
    closure.shape_name = shape_name;
3026
    closure.name = name;
3027
    error_call_init_proc ();
3028
    error_report (EE [97].error, ET_00002, (GenericP) &closure);
3029
    UNREACHED;
3030
}
3031
void
3032
E_rename_cycle PROTO_N ((shape_name, name))
3033
               PROTO_T (NStringP shape_name X
3034
                        NameKeyP name)
3035
{
3036
    struct ES_00001 closure; 
3037
 
3038
    closure.shape_name = shape_name;
3039
    closure.name = name;
3040
    error_call_init_proc ();
3041
    error_report (EE [98].error, ET_00002, (GenericP) &closure);
3042
}
3043
void
3044
E_no_definition_found PROTO_N ((shape_name, name))
3045
                      PROTO_T (NStringP shape_name X
3046
                               NameKeyP name)
3047
{
3048
    struct ES_00001 closure; 
3049
 
3050
    closure.shape_name = shape_name;
3051
    closure.name = name;
3052
    error_call_init_proc ();
3053
    error_report (EE [99].error, ET_00002, (GenericP) &closure);
3054
}
3055
void
3056
E_cannot_open_rename_file PROTO_N ((file_name))
3057
                          PROTO_T (CStringP file_name)
3058
{
3059
    struct ES_00000 closure; 
3060
 
3061
    closure.file_name = file_name;
3062
    error_call_init_proc ();
3063
    error_report (EE [100].error, ET_00001, (GenericP) &closure);
3064
}
3065
void
3066
E_rename_expected_shape PROTO_N ((istream))
3067
                        PROTO_T (IStreamP istream)
3068
{
3069
    struct ES_00005 closure; 
3070
 
3071
	    closure.file_name = istream_name (istream);
3072
	    closure.line_number = istream_line (istream);
3073
    error_call_init_proc ();
3074
    error_report (EE [101].error, ET_00006, (GenericP) &closure);
3075
}
3076
void
3077
E_rename_expected_name PROTO_N ((istream))
3078
                       PROTO_T (IStreamP istream)
3079
{
3080
    struct ES_00005 closure; 
3081
 
3082
	    closure.file_name = istream_name (istream);
3083
	    closure.line_number = istream_line (istream);
3084
    error_call_init_proc ();
3085
    error_report (EE [102].error, ET_00006, (GenericP) &closure);
3086
}
3087
void
3088
E_rename_expected_semi PROTO_N ((istream))
3089
                       PROTO_T (IStreamP istream)
3090
{
3091
    struct ES_00005 closure; 
3092
 
3093
	    closure.file_name = istream_name (istream);
3094
	    closure.line_number = istream_line (istream);
3095
    error_call_init_proc ();
3096
    error_report (EE [103].error, ET_00006, (GenericP) &closure);
3097
}
3098
void
3099
E_rename_unexpected_eof PROTO_N ((istream))
3100
                        PROTO_T (IStreamP istream)
3101
{
3102
    struct ES_00005 closure; 
3103
 
3104
	    closure.file_name = istream_name (istream);
3105
	    closure.line_number = istream_line (istream);
3106
    error_call_init_proc ();
3107
    error_report (EE [104].error, ET_00006, (GenericP) &closure);
3108
}
3109
void
3110
E_rename_unexpected_newline PROTO_N ((istream))
3111
                            PROTO_T (IStreamP istream)
3112
{
3113
    struct ES_00005 closure; 
3114
 
3115
	    closure.file_name = istream_name (istream);
3116
	    closure.line_number = istream_line (istream);
3117
    error_call_init_proc ();
3118
    error_report (EE [105].error, ET_00006, (GenericP) &closure);
3119
}
3120
void
3121
E_rename_illegal_escape PROTO_N ((istream))
3122
                        PROTO_T (IStreamP istream)
3123
{
3124
    struct ES_00005 closure; 
3125
 
3126
	    closure.file_name = istream_name (istream);
3127
	    closure.line_number = istream_line (istream);
3128
    error_call_init_proc ();
3129
    error_report (EE [106].error, ET_00006, (GenericP) &closure);
3130
}
3131
void
3132
E_rename_illegal_char PROTO_N ((istream, character))
3133
                      PROTO_T (IStreamP istream X
3134
                               char character)
3135
{
3136
    struct ES_00027 closure; 
3137
 
3138
	    closure.file_name = istream_name (istream);
3139
	    closure.line_number = istream_line (istream);
3140
    closure.character = character;
3141
    error_call_init_proc ();
3142
    error_report (EE [107].error, ET_00028, (GenericP) &closure);
3143
}
3144
void
3145
E_too_many_ids PROTO_Z ()
3146
{
3147
    error_call_init_proc ();
3148
    error_report (EE [108].error, ET_00000, NIL (GenericP));
3149
    UNREACHED;
3150
}
3151
void
3152
E_unexpected_eof_in_tdf PROTO_N ((reader))
3153
                        PROTO_T (TDFReaderP reader)
3154
{
3155
    struct ES_00016 closure; 
3156
 
3157
	    closure.file_name = tdf_reader_name (reader);
3158
	    closure.byte_number = tdf_reader_byte (reader);
3159
    error_call_init_proc ();
3160
    error_report (EE [109].error, ET_00017, (GenericP) &closure);
3161
}
3162
void
3163
E_tdf_integer_too_big_in_tdf PROTO_N ((reader))
3164
                             PROTO_T (TDFReaderP reader)
3165
{
3166
    struct ES_00016 closure; 
3167
 
3168
	    closure.file_name = tdf_reader_name (reader);
3169
	    closure.byte_number = tdf_reader_byte (reader);
3170
    error_call_init_proc ();
3171
    error_report (EE [110].error, ET_00017, (GenericP) &closure);
3172
}
3173
void
3174
E_unsupported_char_size_in_tdf PROTO_N ((reader, character_size))
3175
                               PROTO_T (TDFReaderP reader X
3176
                                        unsigned character_size)
3177
{
3178
    struct ES_00043 closure; 
3179
 
3180
	    closure.file_name = tdf_reader_name (reader);
3181
	    closure.byte_number = tdf_reader_byte (reader);
3182
    closure.character_size = character_size;
3183
    error_call_init_proc ();
3184
    error_report (EE [111].error, ET_00044, (GenericP) &closure);
3185
}
3186
void
3187
E_bad_name_type_in_tdf PROTO_N ((reader, name_type))
3188
                       PROTO_T (TDFReaderP reader X
3189
                                unsigned name_type)
3190
{
3191
    struct ES_00044 closure; 
3192
 
3193
	    closure.file_name = tdf_reader_name (reader);
3194
	    closure.byte_number = tdf_reader_byte (reader);
3195
    closure.name_type = name_type;
3196
    error_call_init_proc ();
3197
    error_report (EE [112].error, ET_00045, (GenericP) &closure);
3198
}
3199
void
3200
E_expected_eof_in_tdf PROTO_N ((reader))
3201
                      PROTO_T (TDFReaderP reader)
3202
{
3203
    struct ES_00016 closure; 
3204
 
3205
	    closure.file_name = tdf_reader_name (reader);
3206
	    closure.byte_number = tdf_reader_byte (reader);
3207
    error_call_init_proc ();
3208
    error_report (EE [113].error, ET_00017, (GenericP) &closure);
3209
}
3210
 
3211
void
3212
gen_errors_init_errors PROTO_Z ()
3213
{
3214
    error_intern_tags (ET);
3215
    error_intern_errors (EE);
3216
}