|
From: | Paul Eggert |
Subject: | Re: determine base type of a typedef |
Date: | Mon, 26 Oct 2020 15:58:07 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 10/26/20 8:48 AM, Bob Friesenhahn wrote:
The approach that Paul Eggert suggests is very interesting, but it might not provide absolute proof of the C type since the compiler/linker might allow success if the types are the same size.
Not a problem in practice. The C standard requires a diagnostic if the types don't match, and this sort of type checking should be the same checking that the compiler uses for printf.
[Prev in Thread] | Current Thread | [Next in Thread] |