delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <000701bfe7b2$17c059a0$0100000a@TIMYX18EWDT6RQ> |
From: | "Tim Prince" <tprince AT computer DOT org> |
To: | <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | pre-K&R C trouble recognizing EOF |
Date: | Thu, 6 Jul 2000 18:24:26 -0700 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.00.2919.5600 |
X-MIMEOLE: | Produced By Microsoft MimeOLE V5.00.2919.5600 |
I am trying again to port some legacy C code (struct) to cygwin. It runs OK under gcc on Unix and linux, without the -traditional option, which cygwin doesn't support (const used in stdio.h, for example). It looks a lot closer to working than it used to be with cygwin. The problem appears to be a failure to recognize EOF, which could well be a problem comparing a value promoted from char with EOF, which is defined as (-1). Is this a newlib problem, or does gcc have unsigned char defaults in cygwin? Tim Prince -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |