Changeset 08e103d4 in mainline for uspace/lib/trackmod/xm.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
  • uspace/lib/trackmod/xm.c

    rd066259 r08e103d4  
    289289        xm_smp_t smp;
    290290        size_t samples;
    291         size_t instr_size;
     291        size_t instr_bytes;
    292292        size_t smp_size;
    293293        size_t smp_hdr_size = 0;  /* GCC false alarm on uninitialized */
     
    314314
    315315                samples = uint16_t_le2host(instr.samples);
    316                 instr_size = (size_t)uint32_t_le2host(instr.size);
     316                instr_bytes = (size_t)uint32_t_le2host(instr.size);
    317317
    318318                if (samples > 0) {
     
    339339                }
    340340
    341                 if (fseek(f, pos + instr_size, SEEK_SET) < 0) {
     341                if (fseek(f, pos + instr_bytes, SEEK_SET) < 0) {
    342342                        rc = EIO;
    343343                        goto error;
Note: See TracChangeset for help on using the changeset viewer.