emacs/src/m
Paul Eggert 5fdb398c4b error: Print 32- and 64-bit integers portably (Bug#8435).
Without this change, on typical 64-bit hosts error ("...%d...", N)
was used to print both 32- and 64-bit integers N, which relied on
undefined behavior.
* lisp.h, src/m/amdx86-64.h, src/m/ia64.h, src/m/ibms390x.h (pEd):
New macro.
* lisp.h (error, verror): Mark as printf-like functions.
* eval.c (verror): Use vsnprintf, not doprnt, to do the real work.
Report overflow in size calculations when allocating printf buffer.
Do not truncate output string at its first null byte.
* xdisp.c (vmessage): Use vsnprintf, not doprnt, to do the real work.
Truncate the output at a character boundary, since vsnprintf does not
do that.
* charset.c (check_iso_charset_parameter): Convert internal
character to string before calling 'error', since %c now has the
printf meaning.
* coding.c (Fdecode_sjis_char, Fdecode_big5_char): Avoid int
overflow when computing char to be passed to 'error'.  Do not
pass Lisp_Object to 'error'; pass the integer instead.
* nsfns.m (Fns_do_applescript): Use int, not long, since it's
formatted with plain %d.
2011-04-06 20:34:05 -07:00
..
alpha.h Import getloadavg module from gnulib. 2011-02-15 16:33:44 -08:00
amdx86-64.h error: Print 32- and 64-bit integers portably (Bug#8435). 2011-04-06 20:34:05 -07:00
ia64.h error: Print 32- and 64-bit integers portably (Bug#8435). 2011-04-06 20:34:05 -07:00
ibmrs6000.h Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
ibms390.h Import getloadavg module from gnulib. 2011-02-15 16:33:44 -08:00
ibms390x.h error: Print 32- and 64-bit integers portably (Bug#8435). 2011-04-06 20:34:05 -07:00
intel386.h Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
iris4d.h Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
m68k.h Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
macppc.h Import getloadavg module from gnulib. 2011-02-15 16:33:44 -08:00
README
sparc.h Import getloadavg module from gnulib. 2011-02-15 16:33:44 -08:00
template.h Import getloadavg module from gnulib. 2011-02-15 16:33:44 -08:00
vax.h Import getloadavg module from gnulib. 2011-02-15 16:33:44 -08:00

This directory contains C header files containing machine-specific
definitions.  Each file describes a particular machine.  The emacs
configuration script edits ../config.h to include the appropriate one of
these files, and then each emacs source file includes config.h.

template.h is a generic template for machine descriptions; it
describes the parameters a machine file can specify.