ECPG only copied #include statements instead of processing them according to
Michael Meskes <meskes@postgresql.org>
ECPG only copied #include statements instead of processing them according to commandline option "-i". This change fixes this and adds a test case. It also honors #include_next, although this is probably never used for embedded SQL.
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/ecpg/preproc/pgc.l | modified | +34 −5 |
| src/interfaces/ecpg/test/compat_informix/rnull.pgc | modified | +1 −1 |
| src/interfaces/ecpg/test/compat_informix/test_informix.pgc | modified | +1 −1 |
| src/interfaces/ecpg/test/expected/compat_informix-rnull.c | modified | +1 −1 |
| src/interfaces/ecpg/test/expected/compat_informix-test_informix.c | modified | +1 −1 |
| src/interfaces/ecpg/test/expected/preproc-strings.c | modified | +10 −11 |
| src/interfaces/ecpg/test/expected/preproc-strings.stderr | modified | +18 −18 |
| src/interfaces/ecpg/test/preproc/Makefile | modified | +2 −0 |
| src/interfaces/ecpg/test/preproc/strings.h | added | +1 −0 |
| src/interfaces/ecpg/test/preproc/strings.pgc | modified | +3 −5 |