* cpplib.c (run_directive): Set pfile->directive.
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 27 May 2001 18:06:00 +0000 (18:06 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 27 May 2001 18:06:00 +0000 (18:06 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42661 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cpplib.c

index 55f566e..2d49273 100644 (file)
@@ -1,3 +1,7 @@
+2001-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * cpplib.c (run_directive): Set pfile->directive.
+
 2001-05-23  Theodore Papadopoulo  <Theodore.Papadopoulo@sophia.inria.fr>
 
        * c-tree.texi: Reformat the manual as a single chapter now
index 96d296f..cb49310 100644 (file)
@@ -422,7 +422,8 @@ run_directive (pfile, dir_no, type, buf, count)
 
   start_directive (pfile);
   pfile->state.prevent_expansion++;
-  (void) (*dtable[dir_no].handler) (pfile);
+  pfile->directive = &dtable[dir_no];
+  (void) (*pfile->directive->handler) (pfile);
   pfile->state.prevent_expansion--;
   check_eol (pfile);
   end_directive (pfile, 1);