diff options
| author | Juanma Barranquero | 2010-07-04 22:42:36 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-07-04 22:42:36 +0200 |
| commit | e6cb2cbb4a9c67ecdeb9ba7f7bdc255cfc878eef (patch) | |
| tree | 0472f62594f6c081c28c7ba9e695d89c9182e749 | |
| parent | 5b98e31f69e0889cf83603785c297333720143ca (diff) | |
| download | emacs-e6cb2cbb4a9c67ecdeb9ba7f7bdc255cfc878eef.tar.gz emacs-e6cb2cbb4a9c67ecdeb9ba7f7bdc255cfc878eef.zip | |
* strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/strftime.c | 23 |
2 files changed, 23 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d4a411b1d5e..6364deb2db1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2010-07-04 Juanma Barranquero <lekktu@gmail.com> | 1 | 2010-07-04 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 2 | ||
| 3 | * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu). | ||
| 4 | |||
| 5 | 2010-07-04 Juanma Barranquero <lekktu@gmail.com> | ||
| 6 | |||
| 3 | Fix prototypes. | 7 | Fix prototypes. |
| 4 | 8 | ||
| 5 | * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval. | 9 | * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval. |
diff --git a/src/strftime.c b/src/strftime.c index e07d89fb509..a7617427793 100644 --- a/src/strftime.c +++ b/src/strftime.c | |||
| @@ -367,7 +367,11 @@ 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 (char *dest, const char *src, size_t len) | 370 | memcpy_lowcase (dest, src, len LOCALE_PARAM) |
| 371 | CHAR_T *dest; | ||
| 372 | const CHAR_T *src; | ||
| 373 | size_t len; | ||
| 374 | LOCALE_PARAM_DECL | ||
| 371 | { | 375 | { |
| 372 | while (len-- > 0) | 376 | while (len-- > 0) |
| 373 | dest[len] = TOLOWER ((UCHAR_T) src[len], loc); | 377 | dest[len] = TOLOWER ((UCHAR_T) src[len], loc); |
| @@ -378,7 +382,11 @@ static CHAR_T *memcpy_uppcase (CHAR_T *dest, const CHAR_T *src, | |||
| 378 | size_t len LOCALE_PARAM_PROTO); | 382 | size_t len LOCALE_PARAM_PROTO); |
| 379 | 383 | ||
| 380 | static CHAR_T * | 384 | static CHAR_T * |
| 381 | memcpy_uppcase (char *dest, const char *src, size_t len) | 385 | memcpy_uppcase (dest, src, len LOCALE_PARAM) |
| 386 | CHAR_T *dest; | ||
| 387 | const CHAR_T *src; | ||
| 388 | size_t len; | ||
| 389 | LOCALE_PARAM_DECL | ||
| 382 | { | 390 | { |
| 383 | while (len-- > 0) | 391 | while (len-- > 0) |
| 384 | dest[len] = TOUPPER ((UCHAR_T) src[len], loc); | 392 | dest[len] = TOUPPER ((UCHAR_T) src[len], loc); |
| @@ -429,7 +437,9 @@ static int iso_week_days (int, int); | |||
| 429 | __inline__ | 437 | __inline__ |
| 430 | #endif | 438 | #endif |
| 431 | static int | 439 | static int |
| 432 | iso_week_days (int yday, int wday) | 440 | iso_week_days (yday, wday) |
| 441 | int yday; | ||
| 442 | int wday; | ||
| 433 | { | 443 | { |
| 434 | /* Add enough to the first operand of % to make it nonnegative. */ | 444 | /* Add enough to the first operand of % to make it nonnegative. */ |
| 435 | int big_enough_multiple_of_7 = (-YDAY_MINIMUM / 7 + 2) * 7; | 445 | int big_enough_multiple_of_7 = (-YDAY_MINIMUM / 7 + 2) * 7; |
| @@ -1464,7 +1474,12 @@ libc_hidden_def (my_strftime) | |||
| 1464 | /* For Emacs we have a separate interface which corresponds to the normal | 1474 | /* For Emacs we have a separate interface which corresponds to the normal |
| 1465 | strftime function plus the ut argument, but without the ns argument. */ | 1475 | strftime function plus the ut argument, but without the ns argument. */ |
| 1466 | size_t | 1476 | size_t |
| 1467 | emacs_strftimeu (char *s, size_t maxsize, const char *format, const struct tm *tp, int ut) | 1477 | emacs_strftimeu (s, maxsize, format, tp, ut) |
| 1478 | char *s; | ||
| 1479 | size_t maxsize; | ||
| 1480 | const char *format; | ||
| 1481 | const struct tm *tp; | ||
| 1482 | int ut; | ||
| 1468 | { | 1483 | { |
| 1469 | return my_strftime (s, maxsize, format, tp, ut, 0); | 1484 | return my_strftime (s, maxsize, format, tp, ut, 0); |
| 1470 | } | 1485 | } |