Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
12c091cc
Commit
12c091cc
authored
May 05, 1995
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(days_per_month): Move variable to top level.
parent
d65666d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/editfns.c
src/editfns.c
+3
-1
No files found.
src/editfns.c
View file @
12c091cc
...
...
@@ -735,6 +735,9 @@ ZONE is an integer indicating the number of seconds east of Greenwich.\n\
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 @@ If you them to stand for years above 1900, you must do that yourself.")
{
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment