Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ab531b66
Commit
ab531b66
authored
Jul 08, 2012
by
Paul Eggert
Browse files
* systime.h (EMACS_SUB_TIME): Clarify behavior with unsigned time_t.
See <
http://bugs.gnu.org/11825#29
>.
parent
0ccb0b09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
src/ChangeLog
src/ChangeLog
+5
-0
src/systime.h
src/systime.h
+2
-1
No files found.
src/ChangeLog
View file @
ab531b66
2012-07-08 Paul Eggert <eggert@cs.ucla.edu>
* systime.h (EMACS_SUB_TIME): Clarify behavior with unsigned time_t.
See <http://bugs.gnu.org/11825#29>.
2012-07-08 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (fill_glyphless_glyph_string): If the face of the glyph
...
...
src/systime.h
View file @
ab531b66
...
...
@@ -80,7 +80,8 @@ typedef unsigned long Time;
#define EMACS_GET_TIME(time) gettime (&(time))
/* Put into DEST the result of adding SRC1 to SRC2, or of subtracting
SRC2 from SRC1. On overflow, store an extremal value. */
SRC2 from SRC1. On overflow, store an extremal value: ergo, if
time_t is unsigned, return 0 if the true answer would be negative. */
#define EMACS_ADD_TIME(dest, src1, src2) ((dest) = timespec_add (src1, src2))
#define EMACS_SUB_TIME(dest, src1, src2) ((dest) = timespec_sub (src1, src2))
...
...
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