diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/systime.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 98a4f978830..95c8ce2cb51 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-07-08 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * systime.h (EMACS_SUB_TIME): Clarify behavior with unsigned time_t. | ||
| 4 | See <http://bugs.gnu.org/11825#29>. | ||
| 5 | |||
| 1 | 2012-07-08 Eli Zaretskii <eliz@gnu.org> | 6 | 2012-07-08 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * xdisp.c (fill_glyphless_glyph_string): If the face of the glyph | 8 | * xdisp.c (fill_glyphless_glyph_string): If the face of the glyph |
diff --git a/src/systime.h b/src/systime.h index 938083a5ffc..a03630cf936 100644 --- a/src/systime.h +++ b/src/systime.h | |||
| @@ -80,7 +80,8 @@ typedef unsigned long Time; | |||
| 80 | #define EMACS_GET_TIME(time) gettime (&(time)) | 80 | #define EMACS_GET_TIME(time) gettime (&(time)) |
| 81 | 81 | ||
| 82 | /* Put into DEST the result of adding SRC1 to SRC2, or of subtracting | 82 | /* Put into DEST the result of adding SRC1 to SRC2, or of subtracting |
| 83 | SRC2 from SRC1. On overflow, store an extremal value. */ | 83 | SRC2 from SRC1. On overflow, store an extremal value: ergo, if |
| 84 | time_t is unsigned, return 0 if the true answer would be negative. */ | ||
| 84 | #define EMACS_ADD_TIME(dest, src1, src2) ((dest) = timespec_add (src1, src2)) | 85 | #define EMACS_ADD_TIME(dest, src1, src2) ((dest) = timespec_add (src1, src2)) |
| 85 | #define EMACS_SUB_TIME(dest, src1, src2) ((dest) = timespec_sub (src1, src2)) | 86 | #define EMACS_SUB_TIME(dest, src1, src2) ((dest) = timespec_sub (src1, src2)) |
| 86 | 87 | ||