[PATCH 2 of 2] parsers: use appropriate format to avoid unnecessary cast operations

Matt Mackall mpm at selenic.com
Thu Apr 18 15:34:36 CDT 2013


On Thu, 2013-04-18 at 21:15 +0200, André Sintzoff wrote:
> 2013/4/18 Matt Mackall <mpm at selenic.com>:
> > On Thu, 2013-04-18 at 20:33 +0200, André Sintzoff wrote:
> >> # HG changeset patch
> >> # User André Sintzoff <andre.sintzoff at gmail.com>
> >> # Date 1366309741 -7200
> >> #      Jeu avr 18 20:29:01 2013 +0200
> >> # Node ID 66bd60964fc93c39177cfbaa7ecc3222249c7527
> >> # Parent  3a57c20af0527025bf5ffefd6f5dbd6e0b4fcd94
> >> parsers: use appropriate format to avoid unnecessary cast operations
> >
> > Any idea how compilers other than GCC will feel about this? We don't
> > have any "%z"s yet and we have users on machines from Windows to VMS.
> 
> It seems that even version 2012 of M$ Visual Studio does not support "%z".
> http://msdn.microsoft.com/en-us/library/tcxf1dw6.aspx
> 
> So let's drop these patches.
> 
> Which version(s) of C do we need to support? Only C89?

Using post-C89 features is asking for trouble. Though we probably can't
avoid using a 'long long' of some sort.

Python has some header file support for masking some of these issues, I
think.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list