• zack's avatar
    2000-08-20 Zack Weinberg <zack@wolery.cumb.org> · bad6bf53
    zack authored
    	* cppinit.c (cpp_init): Set global flag when called.
    	(cpp_reader_init): Bomb out if cpp_init hasn't been called.
    
    Sun Aug 20 01:41:35 MSD 2000 Dennis Chernoivanov <cdi@sparc.spb.su>
    
            * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
            before `process_directive' so that newlines won't be missed
            for directives.
            (cpp_printf): Increment `print->lineno' when newline is emitted.
    
            * cppmain.c (cb_ident): Likewise.
            (cb_define): Likewise.
            (cb_undef): Likewise.
            (cb_include): Likewise.
            (cb_def_pragma): Likewise.
            (dump_macros_helper): Likewise.
    
    	* gcc.dg/cpp/pragma-1.c: New test.
    	* gcc.dg/cpp/pragma-2.c: New test.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35825 138bc75d-0d04-0410-961f-82ee72b054a4
    bad6bf53
cppmain.c 7.85 KB