aboutsummaryrefslogtreecommitdiffstats
path: root/src/deps.mk
diff options
context:
space:
mode:
authorEli Zaretskii2011-04-23 13:33:28 +0300
committerEli Zaretskii2011-04-23 13:33:28 +0300
commite6c3da2065ac72cc4e1a2bef22d367cd75401892 (patch)
tree1f6fcbee1e12f63096d2221a89f5436b831862a9 /src/deps.mk
parent4ffd0d6b569d252e4e807d4e9c9d6a5bd5b08640 (diff)
downloademacs-e6c3da2065ac72cc4e1a2bef22d367cd75401892.tar.gz
emacs-e6c3da2065ac72cc4e1a2bef22d367cd75401892.zip
Fix doprnt so it could be used safely in `verror'. (Bug#8435)
src/doprnt.c: Include limits.h. (SIZE_MAX): New macro. (doprnt): Return a size_t value. 2nd arg is now size_t. Many local variables are now size_t instead of int or unsigned. Improve overflow protection. Support `l' modifier for integer conversions. Support %l conversion. Don't assume an EMACS_INT argument for integer conversions and for %c. src/lisp.h (doprnt): Restore prototype. src/makefile.w32-in ($(BLD)/callint.$(O)): Depend on $(SRC)/character.h. src/Makefile.in (base_obj): Add back doprnt.o. src/deps.mk (doprnt.o): Add back prerequisites. (callint.o): Depend on character.h. src/eval.c (internal_lisp_condition_case): Include the handler representation in the error message. (verror): Call doprnt instead of vsnprintf. Fix an off-by-one bug when breaking from the loop. src/xdisp.c (vmessage): Call doprnt instead of vsnprintf. src/callint.c (Fcall_interactively): When displaying error message about invalid control letter, pass the character's codepoint, not a pointer to its multibyte form. Improve display of the character in octal and display also its hex code. src/character.c (char_string): Use %x to display the (unsigned) codepoint of an invalid character, to avoid displaying a bogus negative value. src/font.c (check_otf_features): Pass SDATA of SYMBOL_NAME to `error', not SYMBOL_NAME itself. src/coding.c (Fencode_sjis_char, Fencode_big5_char): Use %c for character arguments to `error'. src/charset.c (check_iso_charset_parameter): Fix incorrect argument to `error' in error message about FINAL_CHAR argument. Make sure FINAL_CHAR is a character, and use %c when it is passed as argument to `error'.
Diffstat (limited to 'src/deps.mk')
-rw-r--r--src/deps.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/deps.mk b/src/deps.mk
index 2df1577ef78..8d0e0e69589 100644
--- a/src/deps.mk
+++ b/src/deps.mk
@@ -44,7 +44,8 @@ buffer.o: buffer.c buffer.h region-cache.h commands.h window.h \
44 $(INTERVALS_H) blockinput.h atimer.h systime.h character.h ../lib/unistd.h \ 44 $(INTERVALS_H) blockinput.h atimer.h systime.h character.h ../lib/unistd.h \
45 indent.h keyboard.h coding.h keymap.h frame.h lisp.h globals.h $(config_h) 45 indent.h keyboard.h coding.h keymap.h frame.h lisp.h globals.h $(config_h)
46callint.o: callint.c window.h commands.h buffer.h keymap.h globals.h msdos.h \ 46callint.o: callint.c window.h commands.h buffer.h keymap.h globals.h msdos.h \
47 keyboard.h dispextern.h systime.h coding.h composite.h lisp.h $(config_h) 47 keyboard.h dispextern.h systime.h coding.h composite.h lisp.h \
48 character.h $(config_h)
48callproc.o: callproc.c epaths.h buffer.h commands.h lisp.h $(config_h) \ 49callproc.o: callproc.c epaths.h buffer.h commands.h lisp.h $(config_h) \
49 process.h systty.h syssignal.h character.h coding.h ccl.h msdos.h \ 50 process.h systty.h syssignal.h character.h coding.h ccl.h msdos.h \
50 composite.h w32.h blockinput.h atimer.h systime.h frame.h termhooks.h \ 51 composite.h w32.h blockinput.h atimer.h systime.h frame.h termhooks.h \
@@ -82,6 +83,7 @@ dispnew.o: dispnew.c systime.h commands.h process.h frame.h coding.h \
82# doc.o's dependency on buildobj.h is in src/Makefile.in. 83# doc.o's dependency on buildobj.h is in src/Makefile.in.
83doc.o: doc.c lisp.h $(config_h) buffer.h keyboard.h keymap.h \ 84doc.o: doc.c lisp.h $(config_h) buffer.h keyboard.h keymap.h \
84 character.h systime.h coding.h composite.h ../lib/unistd.h globals.h 85 character.h systime.h coding.h composite.h ../lib/unistd.h globals.h
86doprnt.o: doprnt.c character.h lisp.h globals.h ../lib/unistd.h $(config_h)
85dosfns.o: buffer.h termchar.h termhooks.h frame.h blockinput.h window.h \ 87dosfns.o: buffer.h termchar.h termhooks.h frame.h blockinput.h window.h \
86 msdos.h dosfns.h dispextern.h charset.h coding.h atimer.h systime.h \ 88 msdos.h dosfns.h dispextern.h charset.h coding.h atimer.h systime.h \
87 lisp.h $(config_h) 89 lisp.h $(config_h)