Differences From Artifact [17e9f0f3a2]:
- File class.c — part of check-in [3a5d5440cc] at 2022-04-24 20:33:00 on branch trunk — Implement (Rook), (Bishop), and (Queen) blocks in class definition blocks. (user: user, size: 93450) [annotate] [blame] [check-ins using]
To Artifact [565233454d]:
- File class.c — part of check-in [e6ec7babc9] at 2022-04-26 23:18:42 on branch trunk — Ensure that undef_message is set when loading message numbers from the CLASS.DEF lump. (user: user, size: 93494) [annotate] [blame] [check-ins using]
| ︙ | |||
2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 | 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 | + |
i+=2;
p=data+i;
while(i<size && data[i++]);
if(i==size && data[i-1]) fatal("Malformed CLASS.DEF lump\n");
if(messages[n]) fatal("Duplicate message number %d\n",n+256);
messages[n]=strdup(p);
if(!messages[n]) fatal("Allocation failed\n");
if(n>=undef_message) undef_message=n+1;
}
free(data);
}
static void parse_order_block(void) {
// OP_MISC1, OP_MISC1_C, etc = properties (_C=reverse)
// 0x1000...0x10FF = Have flag
|
| ︙ |