Changeset 76d0981d in mainline for uspace/dist/src


Ignore:
Timestamp:
2018-04-12T12:57:20Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3bacee1
Parents:
9c514be
git-author:
Jiri Svoboda <jiri@…> (2018-04-11 18:18:43)
git-committer:
Jiri Svoboda <jiri@…> (2018-04-12 12:57:20)
Message:

Use proper boolean constant in while loops.

Location:
uspace/dist/src/c/demos/tetris
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/dist/src/c/demos/tetris/scores.c

    r9c514be r76d0981d  
    6464#include <io/keycode.h>
    6565#include <vfs/vfs.h>
     66#include <stdbool.h>
    6667#include <stdlib.h>
    6768#include <err.h>
     
    139140            "........................................");
    140141
    141         while (1) {
     142        while (true) {
    142143                console_flush(console);
    143144                if (!console_get_event(console, &ev))
  • uspace/dist/src/c/demos/tetris/tetris.c

    r9c514be r76d0981d  
    5858#include <err.h>
    5959#include <errno.h>
     60#include <stdbool.h>
    6061#include <stdio.h>
    6162#include <stdlib.h>
     
    201202{
    202203        tetris_menu_draw(*level);
    203         while (1) {
     204        while (true) {
    204205                int i = getchar();
    205206
     
    326327                scr_msg(key_msg, 1);
    327328
    328                 while (1) {
     329                while (true) {
    329330                        place(curshape, pos, 1);
    330331                        scr_update();
Note: See TracChangeset for help on using the changeset viewer.