ESQL/C 5.0.UC2 preprocessor bug
Posted in 1993
andrew.shaw — — source: Informix-list mailing list archive (1991-1998)
Consider 2 files: j.ec: $include j.h; main() {} j.h: $ifndef j_h; $define j_h "j_h"; $include sqltypes; $endif; Running "esql j.ec" gives: esql: <$INFORMIXDIR>/incl/esql/sqltypes.h: line 141: error -33062: Missing ENDIF Well, naturally the only ifndef/endif pair in sqltypes.h is balanced, contrary to the implications of the error message. Of course, it is true that there is an outstanding ifndef from the including file when the included file EOF is reached, but so what? Has informix now decided that conditional inclusion should not be supported? This construct worked perfectly in 4.1. Any workarounds for this obnoxious BUG? Andrew Shaw AT&T Bell Labs ashaw@cbnewsg.cb.att.com