Changeset 08e103d4 in mainline for uspace/dist/src/c/demos/tetris


Ignore:
Timestamp:
2019-02-05T18:26:05Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
1d2f85e
Parents:
d066259
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 16:16:55)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 18:26:05)
Message:

Use clearer naming for string length functions

This and the following commit change the names of functions, as well as
their documentation, to use unambiguous terms "bytes" and "code points"
instead of ambiguous terms "size", "length", and "characters".

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

Legend:

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

    rd066259 r08e103d4  
    321321void scr_msg(char *s, bool set)
    322322{
    323         int l = str_size(s);
     323        int l = str_bytes(s);
    324324
    325325        moveto(Rows - 2, ((Cols - l) >> 1) - 1);
  • uspace/dist/src/c/demos/tetris/tetris.c

    rd066259 r08e103d4  
    270270                        break;
    271271                case 'k':
    272                         if (str_size(keys = optarg) != 6)
     272                        if (str_bytes(keys = optarg) != 6)
    273273                                usage();
    274274                        break;
Note: See TracChangeset for help on using the changeset viewer.