X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/charset/blobdiff_plain/5930e9efcc276c14e876e05e22aedbc0cd3013db..c2cf6b7ade4f244a31b83030856b0502ec90db9e:/iso2022.c diff --git a/iso2022.c b/iso2022.c index 56c4b1d..6e527dd 100644 --- a/iso2022.c +++ b/iso2022.c @@ -81,8 +81,7 @@ typedef int (*to_dbcs_planar_t)(long int, int *, int *, int *); * * We are permitted to use ?:, however, and that works quite well * since the actual result of the sizeof expression _is_ evaluable - * at compile time. So here's my final answer, with the unfortunate - * remaining problem of evaluating its arguments multiple times: + * at compile time. So here's my final answer: */ #define TYPECHECK(x,y) ( sizeof((x)) == sizeof((x)) ? (y) : (y) ) #define DEPLANARISE(x) TYPECHECK((x) == (to_dbcs_planar_t)NULL, (to_dbcs_t)(x))