aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorPaul Eggert2019-07-07 12:29:27 -0700
committerPaul Eggert2019-07-07 12:33:35 -0700
commit8f522efe9a963cd3523ea6863f9bd44881cdf6b7 (patch)
tree10ba28c937e142395bcc4d81580d24fa334e1227 /doc/lispref
parentbda8a57141e6cb5455e1246c6ab394791fd6c582 (diff)
downloademacs-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 'doc/lispref')
-rw-r--r--doc/lispref/internals.texi7
1 files changed, 2 insertions, 5 deletions
diff --git a/doc/lispref/internals.texi b/doc/lispref/internals.texi
index f1f2ea215a5..72066d34f44 100644
--- a/doc/lispref/internals.texi
+++ b/doc/lispref/internals.texi
@@ -2662,13 +2662,10 @@ signed, unless this assumption is known to be safe. For example,
2662although @code{off_t} is always signed, @code{time_t} need not be. 2662although @code{off_t} is always signed, @code{time_t} need not be.
2663 2663
2664@item 2664@item
2665Prefer the Emacs-defined type @code{printmax_t} for representing
2666values that might be any signed integer that can be printed,
2667using a @code{printf}-family function.
2668
2669@item
2670Prefer @code{intmax_t} for representing values that might be any 2665Prefer @code{intmax_t} for representing values that might be any
2671signed integer value. 2666signed integer value.
2667A @code{printf}-family function can print such a value
2668via a format like @code{"%"PRIdMAX}.
2672 2669
2673@item 2670@item
2674Prefer @code{bool}, @code{false} and @code{true} for booleans. 2671Prefer @code{bool}, @code{false} and @code{true} for booleans.