Changeset 08e103d4 in mainline for kernel/generic/src/main/kinit.c


Ignore:
Timestamp:
2019-02-05T18:26:05Z (6 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".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/kinit.c

    rd066259 r08e103d4  
    193193        for (i = 0; i < init.cnt; i++) {
    194194                const char *arguments = init.tasks[i].arguments;
    195                 if (str_length(arguments) == 0)
    196                         continue;
    197                 if (str_length(init.tasks[i].name) == 0)
    198                         continue;
    199                 size_t arguments_size = str_size(arguments);
     195                if (str_code_points(arguments) == 0)
     196                        continue;
     197                if (str_code_points(init.tasks[i].name) == 0)
     198                        continue;
     199                size_t arguments_size = str_bytes(arguments);
    200200
    201201                void *arguments_copy = malloc(arguments_size);
Note: See TracChangeset for help on using the changeset viewer.