www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/24/17:11:34

Message-ID: <001201b9fa34$1cc33d80$b7f9c6c3@johans-dator>
From: "Johan Henriksson" <johan DOT he AT telia DOT com>
To: <djgpp AT delorie DOT com>
Subject: Re: Preprocessor hates sizeof
Date: Fri, 24 Mar 1995 23:10:44 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

from Johan Henriksson, Sweden    HTTP://come.to/jhewok  |
Primary mail: johan DOT he AT telia DOT com                  #UIN 12035895
Second: jhe75 AT hotmail DOT com    Third: johan_he AT yahoo DOT com
Leadprogrammer and FX-specialist at Real software
http://come.to/real_software
*************************************************************************
-----Original Message-----
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com <djgpp AT delorie DOT com>
Date: Wednesday, March 24, 1999 6:48 PM
Subject: Re: Preprocessor hates sizeof


>In article <Pine DOT GSO DOT 3 DOT 96 DOT 990324144841 DOT 28874A-100000 AT delta DOT ds2 DOT pg DOT gda DOT pl>
you wrote:
>> Hi
>
>> I wonder why the following line does not compile and how to make it work:
>
>> #if sizeof(long int)==sizeof(int)

How do you think that would work!? Of course, a long int != int. Or?

>
>> (Borland likes it)
>
>Preprocessors are *not* allowed to like that line. Borland is
>violating the definition of C if it accepts that line and does what
>you think it should.
>
>So Borland is in error, here, not DJGPP.
>
>--
>Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
>Even if all the snow were burnt, ashes would remain.
>

hm? I thought snow was water. Maybe I should start all over with the
chemistry. hm...

- Raw text -


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