Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #162970

Re: Preprocessor <-> compiler

Path csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups comp.lang.c
Subject Re: Preprocessor <-> compiler
Date Sun, 03 Oct 2021 14:12:35 -0700
Organization None to speak of
Lines 27
Message-ID <87zgrpg6d8.fsf@nosuchdomain.example.com> (permalink)
References <68d48f9f-4268-47e4-8728-a158cbf9c2ccn@googlegroups.com> <sjclfk$e3c$1@dont-email.me> <0e8f856f-696b-4f32-9b05-f44e04c2ffffn@googlegroups.com> <sjctg9$bim$1@dont-email.me> <cd93ffc7-8fd3-43de-b320-f70a993506d9n@googlegroups.com> <sjd09h$t1$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain
Injection-Info reader02.eternal-september.org; posting-host="c2d6cdc050f73b1d409dee830d1f9cb0"; logging-data="6399"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Ox+YtCPwxKYeEL6AKbFPa"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock sha1:A6JAukHAQClNB4vYpqngLLu+jTM= sha1:fpJBM2N1oUeTbOfXMxXXW/WOjVs=
Xref csiph.com comp.lang.c:162970

Show key headers only | View raw


Bart <bc@freeuk.com> writes:
[...]
> However this rings a bell ... yes, I've put sizeof() into my own
> preprocessor, so that this is possible:
>
>   #if sizeof(int) == 4
>
> but with the aforementioned problems using int32_t.

From a comp.std.c post in 1998:

    > You are right.  It was nice back in the days when things like
    >
    > #if (sizeof(int) == 8)
    >
    > actually worked (on some compilers).

    Must have been before my time.

         Dennis

Yes, the poster was Dennis Ritchie.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Philips
void Void(void) { Void(); } /* The recursive call of the void */

Back to comp.lang.c | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Preprocessor <-> compiler Thiago Adams <thiago.adams@gmail.com> - 2021-10-03 06:47 -0700
  Re: Preprocessor <-> compiler Thiago Adams <thiago.adams@gmail.com> - 2021-10-03 08:38 -0700
  Re: Preprocessor <-> compiler Bart <bc@freeuk.com> - 2021-10-03 17:24 +0100
    Re: Preprocessor <-> compiler Thiago Adams <thiago.adams@gmail.com> - 2021-10-03 10:55 -0700
      Re: Preprocessor <-> compiler Bart <bc@freeuk.com> - 2021-10-03 19:41 +0100
        Re: Preprocessor <-> compiler Thiago Adams <thiago.adams@gmail.com> - 2021-10-03 12:16 -0700
          Re: Preprocessor <-> compiler Bart <bc@freeuk.com> - 2021-10-03 20:28 +0100
            Re: Preprocessor <-> compiler Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2021-10-03 14:12 -0700
  Re: Preprocessor <-> compiler Andrey Tarasevich <andreytarasevich@hotmail.com> - 2021-10-06 08:41 -0700
    Re: Preprocessor <-> compiler Thiago Adams <thiago.adams@gmail.com> - 2021-10-06 10:56 -0700

csiph-web