• Bruce Momjian's avatar
    When a macro is replaced by the preprocessor, pgc.l reaches a end of · 811f7df2
    Bruce Momjian authored
    file, which is not the actual end of the file. One side effect of that
    is that if you are i n a ifdef block, you get a wrong error telling you
    that a endif is missing.
    
    This patch corrects pgc.l and also adds a test of this problem to
    test1.pgc. To  convince you apply the patch to test1.pgc first then try
    to compile the test the n apply the patch to pgc.l.
    
    The patch moves the test of the scope of an ifdef block to the end of
    the file b eeing parsed, including all includes files, ... .
    
    Nicolas Bazin
    811f7df2
pgc.l 24.5 KB