Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.glorb.com!feeder.erje.net!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Jens Schweikhardt Newsgroups: comp.std.c Subject: Re: PRI* considered harmful Date: 19 Jul 2011 19:28:33 GMT Lines: 25 Sender: Jens Schweikhardt Message-ID: <98m471F8m4U1@mid.individual.net> References: <87mxgqhk3x.fsf@once.weird.com> <8762ndhnfs.fsf@once.weird.com> <87oc15g10i.fsf@once.weird.com> <87zkkpef5z.fsf@once.weird.com> <87r560c6pp.fsf@once.weird.com> X-Trace: individual.net zkU8SAN+hjwQ0eIXdwJw9AMg88M2NcpEVi8E8rhjYKBcLW+o9v X-Orig-Path: not-for-mail Cancel-Lock: sha1:Dc2e8LdTM1UgU/nAsGeuuxOTEI0= User-Agent: tin/1.9.6-20101126 ("Burnside") (UNIX) (FreeBSD/9.0-CURRENT (i386)) Xref: x330-a1.tempe.blueboxinc.net comp.std.c:732 Greg A. Woods wrote in <87r560c6pp.fsf@once.weird.com>: ... # Well, for me personally (as opposed to all those I see trying to use # PRI* poorly), the problem extends to every other typedef name that one # might define in any application which one hopes to be portable and easy # to maintain. That's easy to do portably. For every typedef int32_t foo_t; have a corresponding #define PRIFOO PRId32 #define SCNFOO SCNd32 in your code (or whatever PRI* corresponds to your typedef.) Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped)