Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson 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> References: <68d48f9f-4268-47e4-8728-a158cbf9c2ccn@googlegroups.com> <0e8f856f-696b-4f32-9b05-f44e04c2ffffn@googlegroups.com> 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 Bart 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 */