changeset 11711:b7b7ce1f0908

(days_per_month): Move variable to top level.
author Richard M. Stallman <rms@gnu.org>
date Fri, 05 May 1995 22:55:29 +0000
parents 0652683b14e6
children e1f527e99a2f
files src/editfns.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Fri May 05 22:54:04 1995 +0000
+++ b/src/editfns.c	Fri May 05 22:55:29 1995 +0000
@@ -735,6 +735,9 @@
   return Flist (9, list_args);
 }
 
+static char days_per_month[11]
+  = { 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 31 };
+
 DEFUN ("encode-time", Fencode_time, Sencode_time, 6, 7, 0,
   "Convert SEC, MINUTE, HOUR, DAY, MONTH, YEAR and ZONE to internal time.\n\
 This is the reverse operation of `decode-time', which see.  ZONE defaults\n\
@@ -749,7 +752,6 @@
 {
   time_t time;
   int fullyear, mon, days, seconds, tz = 0;
-  static char days_per_month[11] = { 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 31 };
 
   CHECK_NATNUM (sec, 0);
   CHECK_NATNUM (minute, 1);