| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; q=dns; s= | |
| default; b=wpSKMEJ3XOLYBt6/2ubcxQG392qJxzg1OSoE3/0iNBYzNM3XTpBP6 | |
| EpjH9AbPsidMEKjxbOMNMUuGzVEhKrZprGLjO9LP05TXov5qSBl4n70t1O4ITqf7 | |
| fcfcWYmKsK9AGtN1SYcLRTEbGc4zd+WzYGADK/ePqbd8wi+cNwCvoc= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; s=default; | |
| bh=0dlRiB5zm7Mx7Gi0cgorwQQo0ZQ=; b=oZMYWdWVW8dI5JfR2HZ+JMjdkr4Q | |
| 17Y8JhS27ydb3xGEZ8wG0owy0mqOrAco0f7dCX6KU8Rs89ymEwx+bZ/47LnAWtMD | |
| YV+FUsM33SS48CZDwRn7enok+5YF0JSm32+gSPdBdK9i+zuOQV9+BWcjP75k2qzd | |
| MK2u71vE9FFW0eU= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.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 |
| X-Spam-SWARE-Status: | No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 |
| Date: | Thu, 25 Apr 2013 11:57:37 +0200 |
| From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Porting to 64 bit Cygwin (was Re: Difference in 32/64-bit curl.) |
| Message-ID: | <20130425095737.GA2875@calimero.vinschen.de> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <51766C22 DOT 10702 AT bahnhof DOT se> <51770372 DOT 4070408 AT t-online DOT de> <20130424125930 DOT GQ26397 AT calimero DOT vinschen DOT de> <20130424134749 DOT GR26397 AT calimero DOT vinschen DOT de> <517803D9 DOT 3060504 AT t-online DOT de> <20130424174401 DOT GY26397 AT calimero DOT vinschen DOT de> <51783547 DOT 9010002 AT t-online DOT de> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <51783547.9010002@t-online.de> |
| User-Agent: | Mutt/1.5.21 (2010-09-15) |
On Apr 24 21:40, Christian Franke wrote:
> Corinna Vinschen wrote:
> >>- DON'T forget to add casts if such Win32 API types are used with
> >>printf(). This:
> >>
> >> printf("Win32 Error=%lu\n", GetLastError());
> >>
> >>worked for all i686 and Windows x86_64, but fails now on Cygwin x86_64.
> >I skipped that because the FAQ entry is not exactly what I wrote in my
> >mail. Do you still think this is necessary?
>
> No - these cases would be reported by compiler if -W[error=]format
> is enabled.
>
> Yes - the knowledge that there is no portable way to pass DWORD,
> LONG, ... to printf() without a cast might help to write correct
> code without test builds on all platforms :-)
I extended the FAQ entry and added two more:
http://cygwin.com/faq-nochunks.html#faq.programming.64bitporting
http://cygwin.com/faq-nochunks.html#faq.programming.64bitporting-fail
http://cygwin.com/faq-nochunks.html#faq.programming.64bitporting-cygwin64
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |