delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/06/14/11:56:17

Date: Mon, 14 Jun 1999 18:53:52 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Morten Welinder <terra AT diku DOT dk>
cc: djgpp-workers AT delorie DOT com
Subject: Re: strtol
In-Reply-To: <199906141539.RAA01441@tyr.diku.dk>
Message-ID: <Pine.SUN.3.91.990614184743.27347A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 14 Jun 1999, Morten Welinder wrote:

> It should work, but don't forget strtod, strtoul, ...

I changed them all already (and then some), I just didn't want to send 
all the diffs, as they are very similar.

> Basically, just grep for isspace, isdigit, isal, and so on.

Yep, did something like that:

    M-x grep RET grep -n -e is[sdahcgulp] djgpp/src/.../*.c RET

(and another run for touper/tolower).

> The easiest fix typically is to make the string "unsigned char *".
> (Or copy it into such a local pointer if it happens to be the
> argument.)

Unfortunately, some of the code is too complicated to allow such easy 
fixes without risking to break something.  doscan.c gave me some 
headache, in particular.  But I did use the cast whenever possible.

Thanks for the feedback.

- Raw text -


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