Changeset 7c3fb9b in mainline for kernel/generic/src/lib
- Timestamp:
- 2018-05-17T08:29:01Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff23ff
- Parents:
- fac0ac7
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
- Location:
- kernel/generic/src/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/lib/str.c
rfac0ac7 r7c3fb9b 225 225 return EINVAL; 226 226 227 /* Unsigned version of ch (bit operations should only be done 228 on unsigned types). */ 227 /* 228 * Unsigned version of ch (bit operations should only be done 229 * on unsigned types). 230 */ 229 231 uint32_t cc = (uint32_t) ch; 230 232 … … 735 737 * @param ch Character to insert to. 736 738 * @param pos Character index where to insert. 737 @@param max_pos Characters in the buffer.739 * @param max_pos Characters in the buffer. 738 740 * 739 741 * @return True if the insertion was sucessful, false if the position … … 934 936 return EINVAL; 935 937 936 /* Check whether we are at the end of 937 the string in strict mode */ 938 /* 939 * Check whether we are at the end of 940 * the string in strict mode 941 */ 938 942 if ((strict) && (*lendptr != 0)) 939 943 return EINVAL; -
kernel/generic/src/lib/str_error.c
rfac0ac7 r7c3fb9b 31 31 #include <str.h> 32 32 33 /* The arrays below are automatically generated from the same file that 33 /* 34 * The arrays below are automatically generated from the same file that 34 35 * errno.h constants are generated from. Triple-include of the same list 35 36 * with redefinitions of __errno() macro are used to ensure that the … … 61 62 static int find_errno(errno_t e) 62 63 { 63 /* Just a dumb linear search. 64 /* 65 * Just a dumb linear search. 64 66 * There too few entries to warrant anything smarter. 65 67 */
Note:
See TracChangeset
for help on using the changeset viewer.