diff options
Diffstat (limited to 'src/strftime.c')
| -rw-r--r-- | src/strftime.c | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/src/strftime.c b/src/strftime.c index a7617427793..e07d89fb509 100644 --- a/src/strftime.c +++ b/src/strftime.c | |||
| @@ -367,11 +367,7 @@ static CHAR_T *memcpy_lowcase (CHAR_T *dest, const CHAR_T *src, | |||
| 367 | size_t len LOCALE_PARAM_PROTO); | 367 | size_t len LOCALE_PARAM_PROTO); |
| 368 | 368 | ||
| 369 | static CHAR_T * | 369 | static CHAR_T * |
| 370 | memcpy_lowcase (dest, src, len LOCALE_PARAM) | 370 | memcpy_lowcase (char *dest, const char *src, size_t len) |
| 371 | CHAR_T *dest; | ||
| 372 | const CHAR_T *src; | ||
| 373 | size_t len; | ||
| 374 | LOCALE_PARAM_DECL | ||
| 375 | { | 371 | { |
| 376 | while (len-- > 0) | 372 | while (len-- > 0) |
| 377 | dest[len] = TOLOWER ((UCHAR_T) src[len], loc); | 373 | dest[len] = TOLOWER ((UCHAR_T) src[len], loc); |
| @@ -382,11 +378,7 @@ static CHAR_T *memcpy_uppcase (CHAR_T *dest, const CHAR_T *src, | |||
| 382 | size_t len LOCALE_PARAM_PROTO); | 378 | size_t len LOCALE_PARAM_PROTO); |
| 383 | 379 | ||
| 384 | static CHAR_T * | 380 | static CHAR_T * |
| 385 | memcpy_uppcase (dest, src, len LOCALE_PARAM) | 381 | memcpy_uppcase (char *dest, const char *src, size_t len) |
| 386 | CHAR_T *dest; | ||
| 387 | const CHAR_T *src; | ||
| 388 | size_t len; | ||
| 389 | LOCALE_PARAM_DECL | ||
| 390 | { | 382 | { |
| 391 | while (len-- > 0) | 383 | while (len-- > 0) |
| 392 | dest[len] = TOUPPER ((UCHAR_T) src[len], loc); | 384 | dest[len] = TOUPPER ((UCHAR_T) src[len], loc); |
| @@ -437,9 +429,7 @@ static int iso_week_days (int, int); | |||
| 437 | __inline__ | 429 | __inline__ |
| 438 | #endif | 430 | #endif |
| 439 | static int | 431 | static int |
| 440 | iso_week_days (yday, wday) | 432 | iso_week_days (int yday, int wday) |
| 441 | int yday; | ||
| 442 | int wday; | ||
| 443 | { | 433 | { |
| 444 | /* Add enough to the first operand of % to make it nonnegative. */ | 434 | /* Add enough to the first operand of % to make it nonnegative. */ |
| 445 | int big_enough_multiple_of_7 = (-YDAY_MINIMUM / 7 + 2) * 7; | 435 | int big_enough_multiple_of_7 = (-YDAY_MINIMUM / 7 + 2) * 7; |
| @@ -1474,12 +1464,7 @@ libc_hidden_def (my_strftime) | |||
| 1474 | /* For Emacs we have a separate interface which corresponds to the normal | 1464 | /* For Emacs we have a separate interface which corresponds to the normal |
| 1475 | strftime function plus the ut argument, but without the ns argument. */ | 1465 | strftime function plus the ut argument, but without the ns argument. */ |
| 1476 | size_t | 1466 | size_t |
| 1477 | emacs_strftimeu (s, maxsize, format, tp, ut) | 1467 | emacs_strftimeu (char *s, size_t maxsize, const char *format, const struct tm *tp, int ut) |
| 1478 | char *s; | ||
| 1479 | size_t maxsize; | ||
| 1480 | const char *format; | ||
| 1481 | const struct tm *tp; | ||
| 1482 | int ut; | ||
| 1483 | { | 1468 | { |
| 1484 | return my_strftime (s, maxsize, format, tp, ut, 0); | 1469 | return my_strftime (s, maxsize, format, tp, ut, 0); |
| 1485 | } | 1470 | } |