From: Andy Moreton <andrewjmoreton@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#8435: misuse of error ("...%d...", ...) on 64-bit hosts
Date: Thu, 07 Apr 2011 13:29:39 +0100 [thread overview]
Message-ID: <vz162qq453g.fsf@gmail.com> (raw)
In-Reply-To: <4D9CC60D.2090301@cs.ucla.edu>
On Thu 07 Apr 2011, Paul Eggert wrote:
> Attached is the patch I'd like to install, after more testing.
>
> This patch affects the Windows build by removing src/doprnt.c.
>
> This patch assumes that vsnprintf works. This is true of the oldest,
> cruftiest host I could get my hands on (a Solaris 8 box; Sun itself
> stopped fixing Solaris 8 more than two years ago). However, if Emacs
> is still supposed to run on even-older (roughly, pre-1999) platforms
> that lack vsnprintf then I can add the gnulib vsnprintf module, which
> will provide a vsnprintf replacement for these ancient hosts. I
> assume that vsnprintf works on Windows, so the presence or absence of
> the vsnprintf module shouldn't matter for Windows.
You define a pEd macro to be inserted in the format string to print an
appropriately integer sized type. Would it not be better to use a C99
print format macro name from <inttypes.h> ?
It may be necesary to provide the macros where <inttypes.h> is not
available, but at least the macro names are well known.
AndyM
next prev parent reply other threads:[~2011-04-07 12:29 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-06 19:59 bug#8435: misuse of error ("...%d...", ...) on 64-bit hosts Paul Eggert
[not found] ` <handler.8435.B.130211997010029.ack@debbugs.gnu.org>
2011-04-07 7:33 ` Paul Eggert
2011-04-07 12:29 ` Andy Moreton [this message]
2011-04-07 18:31 ` Eli Zaretskii
2011-04-07 20:43 ` Paul Eggert
2011-04-08 8:58 ` Eli Zaretskii
2011-04-08 23:34 ` Paul Eggert
2011-04-09 7:20 ` Eli Zaretskii
2011-04-09 18:24 ` Paul Eggert
2011-04-09 18:32 ` Eli Zaretskii
2011-04-09 19:39 ` Paul Eggert
2011-04-09 20:21 ` Eli Zaretskii
2011-04-10 3:52 ` Stefan Monnier
2011-04-10 5:19 ` Eli Zaretskii
2011-04-11 1:44 ` Stefan Monnier
2011-04-11 2:54 ` Eli Zaretskii
2011-04-10 17:03 ` Paul Eggert
2011-04-09 19:28 ` Eli Zaretskii
2011-04-09 19:43 ` Paul Eggert
2011-04-08 23:37 ` Paul Eggert
2011-04-25 0:59 ` Daniel Colascione
2011-04-25 6:42 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vz162qq453g.fsf@gmail.com \
--to=andrewjmoreton@gmail.com \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.