Go to the source code of this file.
Functions | |
void | prompt (void) |
void | get_input (void) |
int | white (char c) |
void | parse_input (void) |
int | equals (char *s1, char *s2) |
void | show_vars () |
char * | rank (int x) |
void | show_score (void) |
void | print_commands (void) |
void | do_cmd (void) |
void | interface (void) |
|
|
|
Definition at line 186 of file input.c. References upper(). Referenced by audio_config(), channel_config(), control_config(), do_cmd(), get_config(), mux_config(), mux_table_config(), set_config(), side_config(), strtobch_type(), and video_config(). 00190 { 00191 int i=0; 00192 while ((s1[i]!='\0') && (s2[i]!='\0') && (upper(s1[i])==upper(s2[i]))) 00193 i++; 00194 if (s1[i]==s2[i]) 00195 return 1; 00196 else 00197 return 0; 00198 }
|
|
|
|
Definition at line 179 of file interface.c. References Cont, do_cmd(), error(), get_clock(), get_input(), mode, Next, parse_input(), prompt(), Prompt, Quit, and Run. Referenced by main_loop(). 00180 { 00181 switch (mode) { 00182 case Prompt: break; 00183 case Run: break; 00184 case Cont: 00185 if (get_clock() == breakpoint) 00186 mode = Prompt; 00187 break; 00188 case Next: 00189 if (get_clock() == stop) 00190 mode = Prompt; 00191 break; 00192 case Quit: 00193 break; 00194 default: 00195 error("interface","invalid mode"); 00196 } 00197 00198 while (mode == Prompt) { 00199 prompt(); 00200 get_input(); 00201 parse_input(); 00202 do_cmd(); 00203 } 00204 }
|
|
|
|
|
|
|
|
Referenced by show_score(). |
|
|
|
|
|
Referenced by parse_input(). |