delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/26/09:38:02

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 26 May 2010 15:37:50 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin-1.7.5: intptr_t/uintptr_t types and PRI?PTR/SCI?PTR format specfiers are inconsistent
Message-ID: <20100526133750.GK10652@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <AANLkTinavzQEuRTesWoomRcNngGcxXiKk2m2Tv2HArIo AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <AANLkTinavzQEuRTesWoomRcNngGcxXiKk2m2Tv2HArIo@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On May 24 14:19, Matthew Fluet wrote:
> /usr/include/stdint.h typedefs intptr_t as "int" and uintptr_t as
> "unsigned int".
> /usr/include/inttypes.h #defines PRIdPTR as "ld" and PRIoPTR as "lo".
> These and the other PRI?PTR and SCN?PTR format specifiers are meant to
> be used for the intptr_t and uintptr_t types (thus, making them usable
> without needing to know their exact type definitions).
> 
> This inconsistency leads to warnings from gcc.  (There is also a
> potential calling-convention mismatch, though not on x86.)

intptr_t and uintptr_t in stdint.h have been changed back in 2009 to
avoid some inconsistencies with the original definition.  Unfortunaltey
we missed out on inttypes.h.  I checked in a fix.


Thanks for the report,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019