diff options
| author | Paul Eggert | 2019-07-07 12:29:27 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-07-07 12:33:35 -0700 |
| commit | 8f522efe9a963cd3523ea6863f9bd44881cdf6b7 (patch) | |
| tree | 10ba28c937e142395bcc4d81580d24fa334e1227 /src/timefns.c | |
| parent | bda8a57141e6cb5455e1246c6ab394791fd6c582 (diff) | |
| download | emacs-8f522efe9a963cd3523ea6863f9bd44881cdf6b7.tar.gz emacs-8f522efe9a963cd3523ea6863f9bd44881cdf6b7.zip | |
Remove printmax_t etc.
printmax_t etc. were needed only for platforms that lacked
support for printing intmax_t. These platforms are now so
obsolete that they are no longer practical porting targets.
* src/image.c (gs_load): Fix unlikely buffer overrun
discovered while making these changes. It was introduced in
2011-07-17T00:34:43!eggert@cs.ucla.edu.
* src/lisp.h (printmax_t, uprintmax_t, pMd, pMu, pMx):
Remove. All uses replaced by their standard counterparts
intmax_t, uintmax_t, PRIdMAX, PRIuMAX, PRIxMAX.
Diffstat (limited to 'src/timefns.c')
| -rw-r--r-- | src/timefns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timefns.c b/src/timefns.c index 7b5af6a5d24..3b7ed460222 100644 --- a/src/timefns.c +++ b/src/timefns.c | |||
| @@ -1573,9 +1573,9 @@ without consideration for daylight saving time. */) | |||
| 1573 | static char const mon_name[][4] = | 1573 | static char const mon_name[][4] = |
| 1574 | { "Jan", "Feb", "Mar", "Apr", "May", "Jun", | 1574 | { "Jan", "Feb", "Mar", "Apr", "May", "Jun", |
| 1575 | "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; | 1575 | "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; |
| 1576 | printmax_t year_base = TM_YEAR_BASE; | 1576 | intmax_t year_base = TM_YEAR_BASE; |
| 1577 | char buf[sizeof "Mon Apr 30 12:49:17 " + INT_STRLEN_BOUND (int) + 1]; | 1577 | char buf[sizeof "Mon Apr 30 12:49:17 " + INT_STRLEN_BOUND (int) + 1]; |
| 1578 | int len = sprintf (buf, "%s %s%3d %02d:%02d:%02d %"pMd, | 1578 | int len = sprintf (buf, "%s %s%3d %02d:%02d:%02d %"PRIdMAX, |
| 1579 | wday_name[tm.tm_wday], mon_name[tm.tm_mon], tm.tm_mday, | 1579 | wday_name[tm.tm_wday], mon_name[tm.tm_mon], tm.tm_mday, |
| 1580 | tm.tm_hour, tm.tm_min, tm.tm_sec, | 1580 | tm.tm_hour, tm.tm_min, tm.tm_sec, |
| 1581 | tm.tm_year + year_base); | 1581 | tm.tm_year + year_base); |