Changeset b7fd2a0 in mainline for uspace/dist/src/c/demos/tetris
- Timestamp:
- 2018-01-13T03:10:29Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- Location:
- uspace/dist/src/c/demos/tetris
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/dist/src/c/demos/tetris/scores.c
r36f0738 rb7fd2a0 206 206 } 207 207 208 int loadscores(void)208 errno_t loadscores(void) 209 209 { 210 210 FILE *f; 211 211 size_t cnt; 212 int rc;212 errno_t rc; 213 213 214 214 f = fopen("/data/tetris.sco", "rb"); … … 229 229 FILE *f; 230 230 size_t cnt; 231 int rc;231 errno_t rc; 232 232 233 233 f = fopen("/data/tetris.sco", "wb"); -
uspace/dist/src/c/demos/tetris/scores.h
r36f0738 rb7fd2a0 72 72 extern void initscores(void); 73 73 extern void insertscore(int score, int level); 74 extern int loadscores(void);74 extern errno_t loadscores(void); 75 75 extern void savescores(void); 76 76 -
uspace/dist/src/c/demos/tetris/screen.c
r36f0738 rb7fd2a0 147 147 { 148 148 sysarg_t ccap; 149 int rc = console_get_color_cap(console, &ccap);149 errno_t rc = console_get_color_cap(console, &ccap); 150 150 151 151 if (rc != 0) … … 353 353 * 354 354 */ 355 int tgetchar(void)355 errno_t tgetchar(void) 356 356 { 357 357 /* … … 392 392 * 393 393 */ 394 int twait(void)394 errno_t twait(void) 395 395 { 396 396 wchar_t c = 0; -
uspace/dist/src/c/demos/tetris/screen.h
r36f0738 rb7fd2a0 71 71 extern void clear_screen(void); 72 72 73 extern int put(int);73 extern errno_t put(int); 74 74 extern void scr_clear(void); 75 75 extern void scr_end(void); … … 80 80 81 81 extern void tsleep(void); 82 extern int tgetchar(void);83 extern int twait(void);82 extern errno_t tgetchar(void); 83 extern errno_t twait(void); 84 84 85 85 /** @} -
uspace/dist/src/c/demos/tetris/shapes.c
r36f0738 rb7fd2a0 93 93 * taking the current board into account. 94 94 */ 95 int fits_in(const struct shape *shape, int pos)95 errno_t fits_in(const struct shape *shape, int pos) 96 96 { 97 97 const int *o = shape->off; -
uspace/dist/src/c/demos/tetris/tetris.h
r36f0738 rb7fd2a0 194 194 extern int classic; 195 195 196 extern int fits_in(const struct shape *, int);196 extern errno_t fits_in(const struct shape *, int); 197 197 extern void place(const struct shape *, int, int); 198 198 extern void stop(const char *);
Note:
See TracChangeset
for help on using the changeset viewer.
