| 1 |
#ifndef _ACODE_H_ |
| 2 |
#define _ACODE_H_ |
| 3 |
|
| 4 |
#define ACODEEXTENSION ".a3c" |
| 5 |
|
| 6 |
|
| 7 |
#include <stddef.h> |
| 8 |
#include <stdint.h> |
| 9 |
|
| 10 |
typedef uint32_t Aptr; |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
typedef uint32_t Aword; |
| 18 |
typedef uint32_t Aaddr; |
| 19 |
typedef uint32_t Aid; |
| 20 |
typedef uint32_t Abool; |
| 21 |
typedef uint32_t Aset; |
| 22 |
typedef int32_t Aint; |
| 23 |
typedef int32_t CodeValue; |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
#define BLOCKLEN 256L |
| 28 |
#define BLOCKSIZE (BLOCKLEN*sizeof(Aword)) |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
#define VALUEBITS 16 |
| 33 |
|
| 34 |
#define EOFChar 256 |
| 35 |
#define TOPVALUE (((CodeValue)1<<VALUEBITS) - 1) |
| 36 |
|
| 37 |
|
| 38 |
#define ONEQUARTER (TOPVALUE/4+1) |
| 39 |
#define HALF (2*ONEQUARTER) |
| 40 |
#define THREEQUARTER (3*ONEQUARTER) |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
typedef int WordKind; |
| 45 |
#define SYNONYM_WORD 0 |
| 46 |
#define SYNONYM_BIT (((Aword)1)<<SYNONYM_WORD) |
| 47 |
|
| 48 |
#define ADJECTIVE_WORD (SYNONYM_WORD+1) |
| 49 |
#define ADJECTIVE_BIT (((Aword)1)<<ADJECTIVE_WORD) |
| 50 |
|
| 51 |
#define ALL_WORD (ADJECTIVE_WORD+1) |
| 52 |
#define ALL_BIT (((Aword)1)<<ALL_WORD) |
| 53 |
|
| 54 |
#define EXCEPT_WORD (ALL_WORD+1) |
| 55 |
#define EXCEPT_BIT (((Aword)1)<<EXCEPT_WORD) |
| 56 |
|
| 57 |
#define CONJUNCTION_WORD (EXCEPT_WORD+1) |
| 58 |
#define CONJUNCTION_BIT (((Aword)1)<<CONJUNCTION_WORD) |
| 59 |
|
| 60 |
#define PREPOSITION_WORD (CONJUNCTION_WORD+1) |
| 61 |
#define PREPOSITION_BIT (((Aword)1)<<PREPOSITION_WORD) |
| 62 |
|
| 63 |
#define DIRECTION_WORD (PREPOSITION_WORD+1) |
| 64 |
#define DIRECTION_BIT (((Aword)1)<<DIRECTION_WORD) |
| 65 |
|
| 66 |
#define IT_WORD (DIRECTION_WORD+1) |
| 67 |
#define IT_BIT (((Aword)1)<<IT_WORD) |
| 68 |
|
| 69 |
#define NOISE_WORD (IT_WORD+1) |
| 70 |
#define NOISE_BIT (((Aword)1)<<NOISE_WORD) |
| 71 |
|
| 72 |
#define NOUN_WORD (NOISE_WORD+1) |
| 73 |
#define NOUN_BIT (((Aword)1)<<NOUN_WORD) |
| 74 |
|
| 75 |
#define THEM_WORD (NOUN_WORD+1) |
| 76 |
#define THEM_BIT (((Aword)1)<<THEM_WORD) |
| 77 |
|
| 78 |
#define VERB_WORD (THEM_WORD+1) |
| 79 |
#define VERB_BIT (((Aword)1)<<VERB_WORD) |
| 80 |
|
| 81 |
#define PRONOUN_WORD (VERB_WORD+1) |
| 82 |
#define PRONOUN_BIT (((Aword)1)<<PRONOUN_WORD) |
| 83 |
|
| 84 |
#define WRD_CLASSES (PRONOUN_WORD+1) |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
#define NO_LOCATION 0 |
| 89 |
#define NOWHERE 1 |
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
#define EOS (-2) |
| 94 |
|
| 95 |
|
| 96 |
#define MULTIPLEBIT 0x1 |
| 97 |
#define OMNIBIT 0x2 |
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
typedef enum ClaKind { |
| 102 |
CLA_OBJ = 1, |
| 103 |
CLA_CNT = (int)CLA_OBJ<<1, |
| 104 |
CLA_ACT = (int)CLA_CNT<<1, |
| 105 |
CLA_NUM = (int)CLA_ACT<<1, |
| 106 |
CLA_STR = (int)CLA_NUM<<1, |
| 107 |
CLA_COBJ = (int)CLA_STR<<1, |
| 108 |
CLA_CACT = (int)CLA_COBJ<<1 |
| 109 |
} ClaKind; |
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
typedef enum QualClass { |
| 114 |
Q_DEFAULT, |
| 115 |
Q_AFTER, |
| 116 |
Q_BEFORE, |
| 117 |
Q_ONLY |
| 118 |
} QualClass; |
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
typedef enum OpClass { |
| 123 |
C_CONST, |
| 124 |
C_STMOP, |
| 125 |
C_CURVAR |
| 126 |
} OpClass; |
| 127 |
|
| 128 |
|
| 129 |
typedef enum TextStyle { |
| 130 |
NORMAL_STYLE, |
| 131 |
EMPHASIZED_STYLE, |
| 132 |
PREFORMATTED_STYLE, |
| 133 |
ALERT_STYLE, |
| 134 |
QUOTE_STYLE |
| 135 |
} TextStyle; |
| 136 |
|
| 137 |
|
| 138 |
#define CONSTANT(op) ((Aword)op) |
| 139 |
#define INSTRUCTION(op) ((((Aword)C_STMOP)<<28)|((Aword)op)) |
| 140 |
#define CURVAR(op) ((((Aword)C_CURVAR)<<28)|((Aword)op)) |
| 141 |
|
| 142 |
typedef enum InstClass { |
| 143 |
I_LINE, |
| 144 |
I_PRINT, |
| 145 |
I_STYLE, |
| 146 |
I_QUIT, |
| 147 |
I_LOOK, |
| 148 |
I_SAVE, |
| 149 |
I_RESTORE, |
| 150 |
I_LIST, |
| 151 |
I_EMPTY, |
| 152 |
I_SCORE, |
| 153 |
I_VISITS, |
| 154 |
I_SCHEDULE, |
| 155 |
I_CANCEL, |
| 156 |
I_LOCATE, |
| 157 |
I_MAKE, |
| 158 |
|
| 159 |
I_SET, |
| 160 |
|
| 161 |
I_SETSTR, |
| 162 |
|
| 163 |
|
| 164 |
I_SETSET, |
| 165 |
|
| 166 |
|
| 167 |
I_NEWSET, |
| 168 |
I_ATTRIBUTE, |
| 169 |
I_ATTRSTR, |
| 170 |
I_ATTRSET, |
| 171 |
I_UNION, |
| 172 |
|
| 173 |
I_GETSTR, |
| 174 |
|
| 175 |
|
| 176 |
I_INCR, |
| 177 |
I_DECR, |
| 178 |
I_INCLUDE, |
| 179 |
I_EXCLUDE, |
| 180 |
I_SETSIZE, |
| 181 |
I_SETMEMB, |
| 182 |
|
| 183 |
I_CONTSIZE, |
| 184 |
I_CONTMEMB, |
| 185 |
|
| 186 |
I_USE, |
| 187 |
I_STOP, |
| 188 |
I_AT, |
| 189 |
I_IN, |
| 190 |
I_INSET, |
| 191 |
I_HERE, |
| 192 |
I_NEARBY, |
| 193 |
I_NEAR, |
| 194 |
I_WHERE, |
| 195 |
I_LOCATION, |
| 196 |
I_DESCRIBE, |
| 197 |
I_SAY, |
| 198 |
I_SAYINT, |
| 199 |
I_SAYSTR, |
| 200 |
I_IF, |
| 201 |
I_ELSE, |
| 202 |
I_ENDIF, |
| 203 |
I_AND, |
| 204 |
I_OR, |
| 205 |
I_NE, |
| 206 |
I_EQ, |
| 207 |
I_STREQ, |
| 208 |
I_STREXACT, |
| 209 |
I_LE, |
| 210 |
I_GE, |
| 211 |
I_LT, |
| 212 |
I_GT, |
| 213 |
I_PLUS, |
| 214 |
I_MINUS, |
| 215 |
I_MULT, |
| 216 |
I_DIV, |
| 217 |
I_NOT, |
| 218 |
I_UMINUS, |
| 219 |
I_RND, |
| 220 |
I_RETURN, |
| 221 |
I_SYSTEM, |
| 222 |
I_RESTART, |
| 223 |
I_BTW, |
| 224 |
I_CONTAINS, |
| 225 |
I_DUP, |
| 226 |
I_DEPEND, |
| 227 |
I_DEPCASE, |
| 228 |
I_DEPEXEC, |
| 229 |
I_DEPELSE, |
| 230 |
I_ENDDEP, |
| 231 |
I_ISA, |
| 232 |
I_FRAME, |
| 233 |
I_SETLOCAL, |
| 234 |
I_GETLOCAL, |
| 235 |
I_ENDFRAME, |
| 236 |
I_LOOP, |
| 237 |
I_LOOPNEXT, |
| 238 |
I_LOOPEND, |
| 239 |
I_SUM, |
| 240 |
I_MAX, |
| 241 |
I_MIN, |
| 242 |
I_COUNT, |
| 243 |
I_SHOW, |
| 244 |
I_PLAY, |
| 245 |
I_CONCAT, |
| 246 |
I_STRIP, |
| 247 |
I_POP, |
| 248 |
I_TRANSCRIPT, |
| 249 |
I_DUPSTR |
| 250 |
} InstClass; |
| 251 |
|
| 252 |
typedef enum SayForm { |
| 253 |
SAY_SIMPLE, |
| 254 |
SAY_DEFINITE, |
| 255 |
SAY_INDEFINITE, |
| 256 |
SAY_NEGATIVE, |
| 257 |
SAY_PRONOUN |
| 258 |
} SayForm; |
| 259 |
|
| 260 |
typedef enum VarClass { |
| 261 |
V_PARAM, |
| 262 |
V_CURLOC, |
| 263 |
V_CURACT, |
| 264 |
V_CURVRB, |
| 265 |
V_SCORE, |
| 266 |
V_CURRENT_INSTANCE, |
| 267 |
V_MAX_INSTANCE |
| 268 |
} VarClass; |
| 269 |
|
| 270 |
|
| 271 |
typedef enum { |
| 272 |
TRANSITIVE = 0, |
| 273 |
DIRECT = 1, |
| 274 |
INDIRECT = 2 |
| 275 |
} ATrans; |
| 276 |
|
| 277 |
|
| 278 |
|
| 279 |
#define OPAQUEATTRIBUTE 1 |
| 280 |
#define VISITSATTRIBUTE 1 |
| 281 |
#define PREDEFINEDATTRIBUTES OPAQUEATTRIBUTE |
| 282 |
|
| 283 |
#define I_CLASS(x) ((x)>>28) |
| 284 |
#define I_OP(x) ((x&0x08000000)?(x)|0xf0000000:(x)&0x0fffffff) |
| 285 |
|
| 286 |
|
| 287 |
|
| 288 |
|
| 289 |
#define AwordSizeOf(x) (sizeof(x)/sizeof(Aword)) |
| 290 |
|
| 291 |
typedef struct ArticleEntry { |
| 292 |
Aaddr address; |
| 293 |
Abool isForm; |
| 294 |
} ArticleEntry; |
| 295 |
|
| 296 |
typedef struct ClassEntry { |
| 297 |
Aword code; |
| 298 |
Aaddr id; |
| 299 |
Aint parent; |
| 300 |
Aaddr name; |
| 301 |
Aint pronoun; |
| 302 |
Aaddr initialize; |
| 303 |
Aaddr descriptionChecks; |
| 304 |
Aaddr description; |
| 305 |
ArticleEntry definite; |
| 306 |
ArticleEntry indefinite; |
| 307 |
ArticleEntry negative; |
| 308 |
Aaddr mentioned; |
| 309 |
Aaddr verbs; |
| 310 |
Aaddr entered; |
| 311 |
} ClassEntry; |
| 312 |
|
| 313 |
typedef struct InstanceEntry { |
| 314 |
Aint code; |
| 315 |
Aaddr id; |
| 316 |
Aint parent; |
| 317 |
Aaddr name; |
| 318 |
Aint pronoun; |
| 319 |
Aint initialLocation; |
| 320 |
Aaddr initialize; |
| 321 |
Aint container; |
| 322 |
Aaddr initialAttributes; |
| 323 |
Aaddr checks; |
| 324 |
Aaddr description; |
| 325 |
ArticleEntry definite; |
| 326 |
ArticleEntry indefinite; |
| 327 |
ArticleEntry negative; |
| 328 |
Aaddr mentioned; |
| 329 |
Aaddr verbs; |
| 330 |
Aaddr entered; |
| 331 |
Aaddr exits; |
| 332 |
} InstanceEntry; |
| 333 |
|
| 334 |
typedef struct AttributeEntry { |
| 335 |
Aint code; |
| 336 |
Aptr value; |
| 337 |
|
| 338 |
|
| 339 |
Aaddr id; |
| 340 |
} AttributeEntry; |
| 341 |
|
| 342 |
typedef struct AttributeHeaderEntry { |
| 343 |
Aint code; |
| 344 |
Aword value; |
| 345 |
|
| 346 |
|
| 347 |
Aaddr id; |
| 348 |
} AttributeHeaderEntry; |
| 349 |
|
| 350 |
typedef struct ExitEntry { |
| 351 |
Aword code; |
| 352 |
Aaddr checks; |
| 353 |
Aaddr action; |
| 354 |
Aword target; |
| 355 |
} ExitEntry; |
| 356 |
|
| 357 |
|
| 358 |
typedef struct RuleEntry { |
| 359 |
Abool alreadyRun; |
| 360 |
Aaddr exp; |
| 361 |
Aaddr stms; |
| 362 |
} RuleEntry; |
| 363 |
|
| 364 |
|
| 365 |
#define RESTRICTIONCLASS_CONTAINER (-2) |
| 366 |
#define RESTRICTIONCLASS_INTEGER (-3) |
| 367 |
#define RESTRICTIONCLASS_STRING (-4) |
| 368 |
|
| 369 |
typedef struct RestrictionEntry { |
| 370 |
Aint parameterNumber; |
| 371 |
Aint class; |
| 372 |
Aaddr stms; |
| 373 |
} RestrictionEntry; |
| 374 |
|
| 375 |
typedef struct ContainerEntry { |
| 376 |
Aword owner; |
| 377 |
Aint class; |
| 378 |
Aaddr limits; |
| 379 |
Aaddr header; |
| 380 |
Aaddr empty; |
| 381 |
Aaddr extractChecks; |
| 382 |
Aaddr extractStatements; |
| 383 |
} ContainerEntry; |
| 384 |
|
| 385 |
|
| 386 |
typedef struct ElementEntry { |
| 387 |
Aint code; |
| 388 |
Aword flags; |
| 389 |
Aaddr next; |
| 390 |
|
| 391 |
} ElementEntry; |
| 392 |
|
| 393 |
typedef struct SyntaxEntryPreBeta2 { |
| 394 |
Aint code; |
| 395 |
Aaddr elms; |
| 396 |
} SyntaxEntryPreBeta2; |
| 397 |
|
| 398 |
typedef struct SyntaxEntry { |
| 399 |
Aint code; |
| 400 |
Aaddr elms; |
| 401 |
Aaddr parameterNameTable; |
| 402 |
} SyntaxEntry; |
| 403 |
|
| 404 |
typedef struct ParameterMapEntry { |
| 405 |
Aint syntaxNumber; |
| 406 |
Aaddr parameterMapping; |
| 407 |
Aint verbCode; |
| 408 |
} ParameterMapEntry; |
| 409 |
|
| 410 |
typedef struct EventEntry { |
| 411 |
Aaddr id; |
| 412 |
Aaddr code; |
| 413 |
} EventEntry; |
| 414 |
|
| 415 |
typedef struct ScriptEntry { |
| 416 |
Aaddr id; |
| 417 |
Aint code; |
| 418 |
Aaddr description; |
| 419 |
Aaddr steps; |
| 420 |
} ScriptEntry; |
| 421 |
|
| 422 |
typedef struct StepEntry { |
| 423 |
Aaddr after; |
| 424 |
Aaddr exp; |
| 425 |
Aaddr stms; |
| 426 |
} StepEntry; |
| 427 |
|
| 428 |
typedef struct AltEntry { |
| 429 |
Aword qual; |
| 430 |
Aint param; |
| 431 |
Aaddr checks; |
| 432 |
Aaddr action; |
| 433 |
} AltEntry; |
| 434 |
|
| 435 |
typedef struct SourceFileEntry { |
| 436 |
Aint fpos; |
| 437 |
Aint len; |
| 438 |
} SourceFileEntry; |
| 439 |
|
| 440 |
typedef struct SourceLineEntry { |
| 441 |
Aint file; |
| 442 |
Aint line; |
| 443 |
} SourceLineEntry; |
| 444 |
|
| 445 |
typedef struct StringInitEntry { |
| 446 |
Aword fpos; |
| 447 |
Aword len; |
| 448 |
Aint instanceCode; |
| 449 |
Aint attributeCode; |
| 450 |
} StringInitEntry; |
| 451 |
|
| 452 |
typedef struct SetInitEntry { |
| 453 |
Aint size; |
| 454 |
Aword setAddress; |
| 455 |
Aint instanceCode; |
| 456 |
Aint attributeCode; |
| 457 |
} SetInitEntry; |
| 458 |
|
| 459 |
typedef struct DictionaryEntry { |
| 460 |
Aaddr string; |
| 461 |
Aword classBits; |
| 462 |
Aword code; |
| 463 |
Aaddr adjectiveRefs; |
| 464 |
Aaddr nounRefs; |
| 465 |
Aaddr pronounRefs; |
| 466 |
} DictionaryEntry; |
| 467 |
|
| 468 |
typedef struct IfidEntry { |
| 469 |
Aaddr nameAddress; |
| 470 |
Aaddr valueAddress; |
| 471 |
} IfidEntry; |
| 472 |
|
| 473 |
|
| 474 |
|
| 475 |
|
| 476 |
|
| 477 |
typedef struct ACodeHeader { |
| 478 |
|
| 479 |
char tag[4]; |
| 480 |
char version[4]; |
| 481 |
Aword uid; |
| 482 |
Aword size; |
| 483 |
|
| 484 |
Abool pack; |
| 485 |
Aword stringOffset; |
| 486 |
Aword pageLength; |
| 487 |
Aword pageWidth; |
| 488 |
Aword debug; |
| 489 |
|
| 490 |
Aaddr classTableAddress; |
| 491 |
Aword classMax; |
| 492 |
Aword entityClassId; |
| 493 |
Aword thingClassId; |
| 494 |
Aword objectClassId; |
| 495 |
Aword locationClassId; |
| 496 |
Aword actorClassId; |
| 497 |
Aword literalClassId; |
| 498 |
Aword integerClassId; |
| 499 |
Aword stringClassId; |
| 500 |
Aaddr instanceTableAddress; |
| 501 |
Aword instanceMax; |
| 502 |
Aword theHero; |
| 503 |
Aaddr containerTableAddress; |
| 504 |
Aword containerMax; |
| 505 |
Aaddr scriptTableAddress; |
| 506 |
Aword scriptMax; |
| 507 |
Aaddr eventTableAddress; |
| 508 |
Aword eventMax; |
| 509 |
Aaddr syntaxTableAddress; |
| 510 |
Aaddr parameterMapAddress; |
| 511 |
Aword syntaxMax; |
| 512 |
Aaddr dictionary; |
| 513 |
Aaddr verbTableAddress; |
| 514 |
Aaddr ruleTableAddress; |
| 515 |
Aaddr messageTableAddress; |
| 516 |
|
| 517 |
Aint attributesAreaSize; |
| 518 |
Aint maxParameters; |
| 519 |
Aaddr stringInitTable; |
| 520 |
Aaddr setInitTable; |
| 521 |
Aaddr start; |
| 522 |
Aword maximumScore; |
| 523 |
Aaddr scores; |
| 524 |
Aint scoreCount; |
| 525 |
Aaddr sourceFileTable; |
| 526 |
Aaddr sourceLineTable; |
| 527 |
Aaddr freq; |
| 528 |
Aword acdcrc; |
| 529 |
Aword txtcrc; |
| 530 |
Aaddr ifids; |
| 531 |
Aaddr prompt; |
| 532 |
} ACodeHeader; |
| 533 |
|
| 534 |
typedef struct Pre3_0beta2Header { |
| 535 |
|
| 536 |
char tag[4]; |
| 537 |
char version[4]; |
| 538 |
Aword uid; |
| 539 |
Aword size; |
| 540 |
|
| 541 |
Abool pack; |
| 542 |
Aword stringOffset; |
| 543 |
Aword pageLength; |
| 544 |
Aword pageWidth; |
| 545 |
Aword debug; |
| 546 |
|
| 547 |
Aaddr classTableAddress; |
| 548 |
Aword classMax; |
| 549 |
Aword entityClassId; |
| 550 |
Aword thingClassId; |
| 551 |
Aword objectClassId; |
| 552 |
Aword locationClassId; |
| 553 |
Aword actorClassId; |
| 554 |
Aword literalClassId; |
| 555 |
Aword integerClassId; |
| 556 |
Aword stringClassId; |
| 557 |
Aaddr instanceTableAddress; |
| 558 |
Aword instanceMax; |
| 559 |
Aword theHero; |
| 560 |
Aaddr containerTableAddress; |
| 561 |
Aword containerMax; |
| 562 |
Aaddr scriptTableAddress; |
| 563 |
Aword scriptMax; |
| 564 |
Aaddr eventTableAddress; |
| 565 |
Aword eventMax; |
| 566 |
Aaddr syntaxTableAddress; |
| 567 |
Aaddr parameterMapAddress; |
| 568 |
Aword syntaxMax; |
| 569 |
Aaddr dictionary; |
| 570 |
Aaddr verbTableAddress; |
| 571 |
Aaddr ruleTableAddress; |
| 572 |
Aaddr messageTableAddress; |
| 573 |
|
| 574 |
Aint attributesAreaSize; |
| 575 |
Aint maxParameters; |
| 576 |
Aaddr stringInitTable; |
| 577 |
Aaddr setInitTable; |
| 578 |
Aaddr start; |
| 579 |
Aword maximumScore; |
| 580 |
Aaddr scores; |
| 581 |
Aint scoreCount; |
| 582 |
Aaddr sourceFileTable; |
| 583 |
Aaddr sourceLineTable; |
| 584 |
Aaddr freq; |
| 585 |
Aword acdcrc; |
| 586 |
Aword txtcrc; |
| 587 |
Aaddr ifids; |
| 588 |
} Pre3_0beta2Header; |
| 589 |
|
| 590 |
typedef struct Pre3_0alpha5Header { |
| 591 |
|
| 592 |
char tag[4]; |
| 593 |
char version[4]; |
| 594 |
Aword uid; |
| 595 |
Aword size; |
| 596 |
|
| 597 |
Abool pack; |
| 598 |
Aword stringOffset; |
| 599 |
Aword pageLength; |
| 600 |
Aword pageWidth; |
| 601 |
Aword debug; |
| 602 |
|
| 603 |
Aaddr classTableAddress; |
| 604 |
Aword classMax; |
| 605 |
Aword entityClassId; |
| 606 |
Aword thingClassId; |
| 607 |
Aword objectClassId; |
| 608 |
Aword locationClassId; |
| 609 |
Aword actorClassId; |
| 610 |
Aword literalClassId; |
| 611 |
Aword integerClassId; |
| 612 |
Aword stringClassId; |
| 613 |
Aaddr instanceTableAddress; |
| 614 |
Aword instanceMax; |
| 615 |
Aword theHero; |
| 616 |
Aaddr containerTableAddress; |
| 617 |
Aword containerMax; |
| 618 |
Aaddr scriptTableAddress; |
| 619 |
Aword scriptMax; |
| 620 |
Aaddr eventTableAddress; |
| 621 |
Aword eventMax; |
| 622 |
Aaddr syntaxTableAddress; |
| 623 |
Aaddr parameterMapAddress; |
| 624 |
Aword syntaxMax; |
| 625 |
Aaddr dictionary; |
| 626 |
Aaddr verbTableAddress; |
| 627 |
Aaddr ruleTableAddress; |
| 628 |
Aaddr messageTableAddress; |
| 629 |
|
| 630 |
Aint attributesAreaSize; |
| 631 |
Aint maxParameters; |
| 632 |
Aaddr stringInitTable; |
| 633 |
Aaddr setInitTable; |
| 634 |
Aaddr start; |
| 635 |
Aword maximumScore; |
| 636 |
Aaddr scores; |
| 637 |
Aint scoreCount; |
| 638 |
Aaddr sourceFileTable; |
| 639 |
Aaddr sourceLineTable; |
| 640 |
Aaddr freq; |
| 641 |
Aword acdcrc; |
| 642 |
Aword txtcrc; |
| 643 |
} Pre3_0alpha5Header; |
| 644 |
|
| 645 |
|
| 646 |
typedef enum MsgKind { |
| 647 |
M_UNKNOWN_WORD, |
| 648 |
M_WHAT, |
| 649 |
M_WHAT_WORD, |
| 650 |
M_MULTIPLE, |
| 651 |
M_NOUN, |
| 652 |
M_AFTER_BUT, |
| 653 |
M_BUT_ALL, |
| 654 |
M_NOT_MUCH, |
| 655 |
M_WHICH_ONE_START, |
| 656 |
M_WHICH_ONE_COMMA, |
| 657 |
M_WHICH_ONE_OR, |
| 658 |
M_NO_SUCH, |
| 659 |
M_NO_WAY, |
| 660 |
M_CANT0, |
| 661 |
M_SEE_START, |
| 662 |
M_SEE_COMMA, |
| 663 |
M_SEE_AND, |
| 664 |
M_SEE_END, |
| 665 |
M_CONTAINS, |
| 666 |
M_CARRIES, |
| 667 |
M_CONTAINS_COMMA, |
| 668 |
M_CONTAINS_AND, |
| 669 |
M_CONTAINS_END, |
| 670 |
M_EMPTY, |
| 671 |
M_EMPTYHANDED, |
| 672 |
M_CANNOTCONTAIN, |
| 673 |
M_SCORE, |
| 674 |
M_MORE, |
| 675 |
M_AGAIN, |
| 676 |
M_SAVEWHERE, |
| 677 |
M_SAVEOVERWRITE, |
| 678 |
M_SAVEFAILED, |
| 679 |
M_RESTOREFROM, |
| 680 |
M_SAVEMISSING, |
| 681 |
M_NOTASAVEFILE, |
| 682 |
M_SAVEVERS, |
| 683 |
M_SAVENAME, |
| 684 |
M_REALLY, |
| 685 |
M_QUITACTION, |
| 686 |
M_UNDONE, |
| 687 |
M_NO_UNDO, |
| 688 |
M_WHICH_PRONOUN_START, |
| 689 |
M_WHICH_PRONOUN_FIRST, |
| 690 |
M_IMPOSSIBLE_WITH, |
| 691 |
M_CONTAINMENT_LOOP, |
| 692 |
M_CONTAINMENT_LOOP2, |
| 693 |
MSGMAX |
| 694 |
} MsgKind; |
| 695 |
|
| 696 |
#define NO_MSG MSGMAX |
| 697 |
|
| 698 |
#endif |