- Timestamp:
- 2006-06-16T21:20:51Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d3cd9774
- Parents:
- 153a209
- Location:
- tetris
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tetris/input.c
r153a209 r501a8ba 109 109 } else 110 110 s = NULL; 111 again: 111 112 112 if (!lastchar) { 113 113 if (!getchar_inprog) … … 143 143 { 144 144 struct timeval tv; 145 char c;146 145 147 146 tv.tv_sec = 0; -
tetris/screen.c
r153a209 r501a8ba 62 62 static int curscore; 63 63 static int isset; /* true => terminal is in game mode */ 64 static void (*tstp)(int);65 66 static void scr_stop(int);67 static void stopset(int);68 69 static char70 *CEstr; /* clear to end of line */71 64 72 65 … … 147 140 { 148 141 return async_req_2(con_phone, CONSOLE_GETSIZE, 0, 0, &ws->ws_row, &ws->ws_col); 149 }150 151 static void152 scr_stop(int sig)153 {154 155 scr_end();156 scr_set();157 scr_msg(key_msg, 1);158 142 } 159 143 -
tetris/tetris.c
r153a209 r501a8ba 164 164 gettimeofday(&tv, NULL); 165 165 srandom(tv.tv_sec + tv.tv_usec / 100000); 166 }167 168 static void tetris_scores(int firstgame)169 {170 166 } 171 167 … … 260 256 int level = 2; 261 257 char key_write[6][10]; 262 const char *errstr; 263 int ch, i, j; 258 int i, j; 264 259 265 260 keys = "jkl pq"; … … 451 446 */ 452 447 scr_end(); 453 exit(0); 448 449 return 0; 454 450 } 455 451
Note:
See TracChangeset
for help on using the changeset viewer.
