home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.sources
- Path: sparky!uunet!cis.ohio-state.edu!fly.cnuce.cnr.it!pot
- From: pot@fly.cnuce.cnr.it (Francesco Potorti`)
- Subject: upcase in doprnt
- Message-ID: <m0mpyy0-0001CkC@fly.cnuce.cnr.IT>
- Sender: daemon@cis.ohio-state.edu
- Reply-To: pot@cnuce.cnr.it
- Organization: Source only Discussion and requests in gnu.emacs.help.
- Distribution: gnu
- Date: Fri, 13 Nov 1992 13:13:00 GMT
- Lines: 32
-
- In all systems I've seen (a very small minority of all those supported
- by emacs :) the printf function knows about upcase formats X,E,G,
- beside the x,e,g ones. This is an extension with respect to K&R, but
- it is present in ANSI C and is probably widespread.
-
- I suggest the following improvement to doprnt:
-
- *** /local/src/gnu/emacs-18.59/src/Odoprnt.c Tue Jan 8 18:26:23 1991
- --- /local/src/gnu/emacs-18.59/src/doprnt.c Fri Nov 13 11:58:33 1992
- ***************
- *** 66,71 ****
- --- 66,74 ----
- case 'd':
- case 'o':
- case 'x':
- + #ifndef NO_UPCASE_IN_PRINTF_FORMAT_STRING
- + case 'X':
- + #endif
- if (cnt == nargs)
- error ("Format string wants too many arguments");
- sprintf (tembuf, fmtcpy, args[cnt++]);
-
- This would be a Changelog entry:
-
- Fri Nov 13 12:02:09 MET 1992 Francesco Potorti` (pot@cnuce.cnr.it)
-
- * doprnt.c (doprnt):
- allow the X format #ifndef NO_UPCASE_IN_PRINTF_FORMAT_STRING.
-
- Francesco Potorti` | pot@cnuce.cnr.IT (Internet)
- | 39369::pot (DECnet)
- | +39-50-593203 (voice)
-