diff options
| author | Richard M. Stallman | 1995-05-05 22:55:29 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-05-05 22:55:29 +0000 |
| commit | 12c091cc0c1d05c4eaf839e894ddc854307a6b3d (patch) | |
| tree | be8d1881b80ac712d0889504882ebc99f8479aa2 /src | |
| parent | d65666d51d755d2ee7ddf56fc1f2c180e50e733f (diff) | |
| download | emacs-12c091cc0c1d05c4eaf839e894ddc854307a6b3d.tar.gz emacs-12c091cc0c1d05c4eaf839e894ddc854307a6b3d.zip | |
(days_per_month): Move variable to top level.
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/editfns.c b/src/editfns.c index f2ed73c5aec..8640b89db53 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -735,6 +735,9 @@ ZONE is an integer indicating the number of seconds east of Greenwich.\n\ | |||
| 735 | return Flist (9, list_args); | 735 | return Flist (9, list_args); |
| 736 | } | 736 | } |
| 737 | 737 | ||
| 738 | static char days_per_month[11] | ||
| 739 | = { 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 31 }; | ||
| 740 | |||
| 738 | DEFUN ("encode-time", Fencode_time, Sencode_time, 6, 7, 0, | 741 | DEFUN ("encode-time", Fencode_time, Sencode_time, 6, 7, 0, |
| 739 | "Convert SEC, MINUTE, HOUR, DAY, MONTH, YEAR and ZONE to internal time.\n\ | 742 | "Convert SEC, MINUTE, HOUR, DAY, MONTH, YEAR and ZONE to internal time.\n\ |
| 740 | This is the reverse operation of `decode-time', which see. ZONE defaults\n\ | 743 | This is the reverse operation of `decode-time', which see. ZONE defaults\n\ |
| @@ -749,7 +752,6 @@ If you them to stand for years above 1900, you must do that yourself.") | |||
| 749 | { | 752 | { |
| 750 | time_t time; | 753 | time_t time; |
| 751 | int fullyear, mon, days, seconds, tz = 0; | 754 | int fullyear, mon, days, seconds, tz = 0; |
| 752 | static char days_per_month[11] = { 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 31 }; | ||
| 753 | 755 | ||
| 754 | CHECK_NATNUM (sec, 0); | 756 | CHECK_NATNUM (sec, 0); |
| 755 | CHECK_NATNUM (minute, 1); | 757 | CHECK_NATNUM (minute, 1); |