Changeset 08e103d4 in mainline for uspace/lib/pcut/src
- Timestamp:
- 2019-02-05T18:26:05Z (7 years ago)
- 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)
- Location:
- uspace/lib/pcut/src
- Files:
-
- 6 edited
-
assert.c (modified) (1 diff)
-
internal.h (modified) (1 diff)
-
main.c (modified) (1 diff)
-
os/helenos.c (modified) (1 diff)
-
os/stdc.c (modified) (1 diff)
-
report/report.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcut/src/assert.c
rd066259 r08e103d4 70 70 71 71 pcut_snprintf(current_buffer, MAX_MESSAGE_LENGTH, "%s:%d: ", filename, line); 72 offset = pcut_str_ size(current_buffer);72 offset = pcut_str_bytes(current_buffer); 73 73 74 74 if (offset + 1 < MAX_MESSAGE_LENGTH) { -
uspace/lib/pcut/src/internal.h
rd066259 r08e103d4 166 166 * @return Size of @p s in bytes. 167 167 */ 168 int pcut_str_ size(const char *s);168 int pcut_str_bytes(const char *s); 169 169 170 170 /** Convert string to integer. -
uspace/lib/pcut/src/main.c
rd066259 r08e103d4 62 62 */ 63 63 int pcut_is_arg_with_number(const char *arg, const char *opt, int *value) { 64 int opt_len = pcut_str_ size(opt);64 int opt_len = pcut_str_bytes(opt); 65 65 if (! pcut_str_start_equals(arg, opt, opt_len)) { 66 66 return 0; -
uspace/lib/pcut/src/os/helenos.c
rd066259 r08e103d4 55 55 } 56 56 57 int pcut_str_ size(const char *s) {58 return str_ size(s);57 int pcut_str_bytes(const char *s) { 58 return str_bytes(s); 59 59 } 60 60 -
uspace/lib/pcut/src/os/stdc.c
rd066259 r08e103d4 46 46 } 47 47 48 int pcut_str_ size(const char *s) {48 int pcut_str_bytes(const char *s) { 49 49 return strlen(s); 50 50 } -
uspace/lib/pcut/src/report/report.c
rd066259 r08e103d4 78 78 return; 79 79 } 80 if (pcut_str_ size(msg) == 0) {80 if (pcut_str_bytes(msg) == 0) { 81 81 return; 82 82 } … … 130 130 131 131 /* Determine the length of the text after the zeros. */ 132 message_length = pcut_str_ size(full_output);132 message_length = pcut_str_bytes(full_output); 133 133 134 134 if (cont_zeros_count < 2) {
Note:
See TracChangeset
for help on using the changeset viewer.
