aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog4
-rw-r--r--src/strftime.c23
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 @@
12010-07-04 Juanma Barranquero <lekktu@gmail.com> 12010-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
52010-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
369static CHAR_T * 369static CHAR_T *
370memcpy_lowcase (char *dest, const char *src, size_t len) 370memcpy_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
380static CHAR_T * 384static CHAR_T *
381memcpy_uppcase (char *dest, const char *src, size_t len) 385memcpy_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
431static int 439static int
432iso_week_days (int yday, int wday) 440iso_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. */
1466size_t 1476size_t
1467emacs_strftimeu (char *s, size_t maxsize, const char *format, const struct tm *tp, int ut) 1477emacs_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}