emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r100718: * strftime.c: Revert convers


From: Juanma Barranquero
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r100718: * strftime.c: Revert conversion to standard C (revno:100708).
Date: Sun, 04 Jul 2010 22:42:36 +0200
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 100718
committer: Juanma Barranquero <address@hidden>
branch nick: trunk
timestamp: Sun 2010-07-04 22:42:36 +0200
message:
  * strftime.c: Revert conversion to standard C (revno:100708).
modified:
  src/ChangeLog
  src/strftime.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-07-04 16:07:11 +0000
+++ b/src/ChangeLog     2010-07-04 20:42:36 +0000
@@ -1,5 +1,9 @@
 2010-07-04  Juanma Barranquero  <address@hidden>
 
+       * strftime.c: Revert conversion to standard C (revno:100708).
+
+2010-07-04  Juanma Barranquero  <address@hidden>
+
        Fix prototypes.
 
        * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.

=== modified file 'src/strftime.c'
--- a/src/strftime.c    2010-07-04 07:50:25 +0000
+++ b/src/strftime.c    2010-07-04 20:42:36 +0000
@@ -367,7 +367,11 @@
                                size_t len LOCALE_PARAM_PROTO);
 
 static CHAR_T *
-memcpy_lowcase (char *dest, const char *src, size_t len)
+memcpy_lowcase (dest, src, len LOCALE_PARAM)
+     CHAR_T *dest;
+     const CHAR_T *src;
+     size_t len;
+     LOCALE_PARAM_DECL
 {
   while (len-- > 0)
     dest[len] = TOLOWER ((UCHAR_T) src[len], loc);
@@ -378,7 +382,11 @@
                                size_t len LOCALE_PARAM_PROTO);
 
 static CHAR_T *
-memcpy_uppcase (char *dest, const char *src, size_t len)
+memcpy_uppcase (dest, src, len LOCALE_PARAM)
+     CHAR_T *dest;
+     const CHAR_T *src;
+     size_t len;
+     LOCALE_PARAM_DECL
 {
   while (len-- > 0)
     dest[len] = TOUPPER ((UCHAR_T) src[len], loc);
@@ -429,7 +437,9 @@
 __inline__
 #endif
 static int
-iso_week_days (int yday, int wday)
+iso_week_days (yday, wday)
+     int yday;
+     int wday;
 {
   /* Add enough to the first operand of % to make it nonnegative.  */
   int big_enough_multiple_of_7 = (-YDAY_MINIMUM / 7 + 2) * 7;
@@ -1464,7 +1474,12 @@
 /* For Emacs we have a separate interface which corresponds to the normal
    strftime function plus the ut argument, but without the ns argument.  */
 size_t
-emacs_strftimeu (char *s, size_t maxsize, const char *format, const struct tm 
*tp, int ut)
+emacs_strftimeu (s, maxsize, format, tp, ut)
+      char *s;
+      size_t maxsize;
+      const char *format;
+      const struct tm *tp;
+      int ut;
 {
   return my_strftime (s, maxsize, format, tp, ut, 0);
 }


reply via email to

[Prev in Thread] Current Thread [Next in Thread]