Window type not recognized tid (trunk only)
Fix the grammar error that results when a binary with one window system compiled in is explicitly told to use another.
This commit is contained in:
+9
-3
@@ -111,9 +111,15 @@ const char *s;
|
|||||||
if (!windowprocs.win_raw_print)
|
if (!windowprocs.win_raw_print)
|
||||||
windowprocs.win_raw_print = def_raw_print;
|
windowprocs.win_raw_print = def_raw_print;
|
||||||
|
|
||||||
raw_printf("Window type %s not recognized. Choices are:", s);
|
if(!winchoices[0].procs) impossible("no window types?");
|
||||||
for(i=0; winchoices[i].procs; i++)
|
if(!winchoices[1].procs){
|
||||||
raw_printf(" %s", winchoices[i].procs->name);
|
raw_printf("Window type %s not recognized. The only choice is: %s.",
|
||||||
|
s, winchoices[0].procs->name);
|
||||||
|
} else {
|
||||||
|
raw_printf("Window type %s not recognized. Choices are:", s);
|
||||||
|
for(i=0; winchoices[i].procs; i++)
|
||||||
|
raw_printf(" %s", winchoices[i].procs->name);
|
||||||
|
}
|
||||||
|
|
||||||
if (windowprocs.win_raw_print == def_raw_print)
|
if (windowprocs.win_raw_print == def_raw_print)
|
||||||
terminate(EXIT_SUCCESS);
|
terminate(EXIT_SUCCESS);
|
||||||
|
|||||||
Reference in New Issue
Block a user