src/mess/tools/imgtool/filtbas.c
| r2615 | r2616 | |
| 12 | 12 | #include "imgtool.h" |
| 13 | 13 | #include "utils.h" |
| 14 | 14 | |
| 15 | |
| 16 | /*************************************************************************** |
| 17 | CONSTANTS |
| 18 | ***************************************************************************/ |
| 19 | |
| 15 | 20 | #define EOLN (CRLF == 1 ? "\r" : (CRLF == 2 ? "\n" : (CRLF == 3 ? "\r\n" : NULL))) |
| 16 | 21 | |
| 22 | |
| 23 | |
| 24 | /*************************************************************************** |
| 25 | TYPE DEFINITIONS |
| 26 | ***************************************************************************/ |
| 27 | |
| 17 | 28 | typedef struct _basictoken_tableent basictoken_tableent; |
| 18 | 29 | struct _basictoken_tableent |
| 19 | 30 | { |
| r2615 | r2616 | |
| 23 | 34 | int num_tokens; |
| 24 | 35 | }; |
| 25 | 36 | |
| 37 | |
| 38 | |
| 26 | 39 | typedef struct _basictokens basictokens; |
| 27 | 40 | struct _basictokens |
| 28 | 41 | { |
| r2615 | r2616 | |
| 35 | 48 | |
| 36 | 49 | |
| 37 | 50 | |
| 51 | /*************************************************************************** |
| 52 | IMPLEMENTATION |
| 53 | ***************************************************************************/ |
| 54 | |
| 38 | 55 | static imgtoolerr_t basic_readfile(const basictokens *tokens, |
| 39 | 56 | imgtool_partition *partition, const char *filename, |
| 40 | 57 | const char *fork, imgtool_stream *destf) |
| r2615 | r2616 | |
| 238 | 255 | "BACKUP", /* 0xdd */ |
| 239 | 256 | "COPY", /* 0xde */ |
| 240 | 257 | "DSKI$", /* 0xdf */ |
| 241 | | "DSKO$" /* 0xe0 */ |
| 258 | "DSKO$", /* 0xe0 */ |
| 242 | 259 | "DOS", /* 0xe1 */ |
| 243 | 260 | "WIDTH", /* 0xe2 */ |
| 244 | 261 | "PALETTE", /* 0xe3 */ |