delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/06/09/13:17:46

Date: Sat, 09 Jun 2001 20:15:06 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <5567-Sat09Jun2001201505+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com
In-reply-to: <200106091641.SAA03429@mother.ludd.luth.se> (message from Martin
Str|mberg on Sat, 9 Jun 2001 18:41:15 +0200 (MEST))
Subject: Re: Compiler options for djdev build
References: <200106091641 DOT SAA03429 AT mother DOT ludd DOT luth DOT se>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
> Date: Sat, 9 Jun 2001 18:41:15 +0200 (MEST)
> 
> According to Eli Zaretskii:
> > > And you seem to say *fmt is an int?
> > 
> > No.  *fmt is a char, and it will be promoted to int when a call to
> > `todigit' is made.
> 
> It shouldn't be as the declaration of todigit is before the call to it.

We are out of sync.  Let's back up, shall we?

What I was saying was that if you change `todigit' to accept an int as
an argument, *fmt will be promoted to an int when it is passed to
`todigit'.  This promotion is done by default if `todigit's
declaration is not visible to the compiler.

If you want an example of such function, look at `tolower'.

Okay?

- Raw text -


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