- Timestamp:
- 2023-10-27T17:53:21Z (20 months ago)
- Branches:
- master, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 55c5cb05
- Parents:
- 44e8541
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-27 17:38:24)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-27 17:53:21)
- Location:
- common
- Files:
-
- 7 moved
Legend:
- Unmodified
- Added
- Removed
-
common/include/str.h
r44e8541 rfdfb24e 45 45 #include <mem.h> 46 46 #include <_bits/decls.h> 47 #include <_bits/uchar.h> 47 48 48 49 #ifndef __cplusplus … … 50 51 /* Common Unicode characters */ 51 52 #define U_SPECIAL '?' 53 54 #define U_LEFT_ARROW 0x2190 55 #define U_UP_ARROW 0x2191 56 #define U_RIGHT_ARROW 0x2192 57 #define U_DOWN_ARROW 0x2193 58 59 #define U_PAGE_UP 0x21de 60 #define U_PAGE_DOWN 0x21df 61 62 #define U_HOME_ARROW 0x21f1 63 #define U_END_ARROW 0x21f2 64 65 #define U_NULL 0x2400 66 #define U_ESCAPE 0x241b 67 #define U_DELETE 0x2421 68 69 #define U_CURSOR 0x2588 52 70 53 71 /** No size limit constant */ -
common/str_error.c
r44e8541 rfdfb24e 28 28 */ 29 29 30 #include <str_error.h> 31 30 32 #include <errno.h> 31 #include <str.h> 33 #include <stddef.h> 34 32 35 33 36 /* … … 64 67 /* 65 68 * Just a dumb linear search. 66 * There too few entries to warrant anything smarter.69 * There are too few entries to warrant anything smarter. 67 70 */ 68 71 … … 86 89 } 87 90 88 return "(unknown)";91 return NULL; 89 92 } 90 93 … … 97 100 } 98 101 99 return "Unknown error code";102 return NULL; 100 103 } -
common/strtol.c
r44e8541 rfdfb24e 269 269 long strtol(const char *nptr, char **endptr, int base) 270 270 { 271 #if !__STDC_HOSTED__ 272 errno_t errno; 273 #endif 274 271 275 return _strtosigned(nptr, endptr, base, LONG_MIN, LONG_MAX, &errno, false); 272 276 } … … 287 291 unsigned long strtoul(const char *nptr, char **endptr, int base) 288 292 { 293 #if !__STDC_HOSTED__ 294 errno_t errno; 295 #endif 296 289 297 return _strtounsigned(nptr, endptr, base, ULONG_MAX, &errno, false); 290 298 } … … 292 300 long long strtoll(const char *nptr, char **endptr, int base) 293 301 { 302 #if !__STDC_HOSTED__ 303 errno_t errno; 304 #endif 305 294 306 return _strtosigned(nptr, endptr, base, LLONG_MIN, LLONG_MAX, &errno, false); 295 307 } … … 297 309 unsigned long long strtoull(const char *nptr, char **endptr, int base) 298 310 { 311 #if !__STDC_HOSTED__ 312 errno_t errno; 313 #endif 314 299 315 return _strtounsigned(nptr, endptr, base, ULLONG_MAX, &errno, false); 300 316 } … … 302 318 intmax_t strtoimax(const char *nptr, char **endptr, int base) 303 319 { 320 #if !__STDC_HOSTED__ 321 errno_t errno; 322 #endif 323 304 324 return _strtosigned(nptr, endptr, base, INTMAX_MIN, INTMAX_MAX, &errno, false); 305 325 } … … 307 327 uintmax_t strtoumax(const char *nptr, char **endptr, int base) 308 328 { 329 #if !__STDC_HOSTED__ 330 errno_t errno; 331 #endif 332 309 333 return _strtounsigned(nptr, endptr, base, UINTMAX_MAX, &errno, false); 310 334 }
Note:
See TracChangeset
for help on using the changeset viewer.