Changeset 08e103d4 in mainline for uspace/lib/hound/src


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".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/hound/src/protocol.c

    rd066259 r08e103d4  
    131131
    132132        if (ret == EOK)
    133                 ret = async_data_write_start(exch, name, str_size(name));
     133                ret = async_data_write_start(exch, name, str_bytes(name));
    134134        else
    135135                async_forget(mid);
     
    194194        if (mid && connection)
    195195                ret = async_data_write_start(exch, connection,
    196                     str_size(connection));
     196                    str_bytes(connection));
    197197
    198198        if (ret == EOK)
     
    261261        errno_t ret = id ? EOK : EPARTY;
    262262        if (ret == EOK)
    263                 ret = async_data_write_start(exch, source, str_size(source));
     263                ret = async_data_write_start(exch, source, str_bytes(source));
    264264        if (ret == EOK)
    265                 ret = async_data_write_start(exch, sink, str_size(sink));
     265                ret = async_data_write_start(exch, sink, str_bytes(sink));
    266266        async_wait_for(id, &ret);
    267267        async_exchange_end(exch);
     
    287287        errno_t ret = id ? EOK : EPARTY;
    288288        if (ret == EOK)
    289                 ret = async_data_write_start(exch, source, str_size(source));
     289                ret = async_data_write_start(exch, source, str_bytes(source));
    290290        if (ret == EOK)
    291                 ret = async_data_write_start(exch, sink, str_size(sink));
     291                ret = async_data_write_start(exch, sink, str_bytes(sink));
    292292        async_wait_for(id, &ret);
    293293        async_exchange_end(exch);
     
    486486                        /* Prepare sizes table */
    487487                        for (unsigned i = 0; i < count; ++i)
    488                                 sizes[i] = str_size(list[i]);
     488                                sizes[i] = str_bytes(list[i]);
    489489
    490490                        /* Send sizes table */
     
    498498                        /* Proceed to send names */
    499499                        for (unsigned i = 0; i < count; ++i) {
    500                                 size_t size = str_size(list[i]);
     500                                size_t size = str_bytes(list[i]);
    501501                                ipc_call_t id;
    502502                                if (ret == EOK &&
Note: See TracChangeset for help on using the changeset viewer.