Open the given file, read & merge the colormap, convert the tiles. */
| 110 | |
| 111 | /* Open the given file, read & merge the colormap, convert the tiles. */ |
| 112 | static void |
| 113 | process_file(char *fname) |
| 114 | { |
| 115 | unsigned long count; |
| 116 | |
| 117 | if (!fopen_text_file(fname, RDTMODE)) { |
| 118 | Fprintf(stderr, "can't open file \"%s\"\n", fname); |
| 119 | exit(1); |
| 120 | } |
| 121 | merge_text_colormap(); |
| 122 | count = convert_tiles(&curr_tb, header.ntiles); |
| 123 | Fprintf(stdout, "%s: %lu tiles\n", fname, count); |
| 124 | header.ntiles += count; |
| 125 | fclose_text_file(); |
| 126 | } |
| 127 | |
| 128 | #ifdef USE_XPM |
| 129 | static int |
no test coverage detected