* cpplib.c (run_directive): Set pfile->directive.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Sun, 27 May 2001 18:06:00 +0000 (18:06 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 27 May 2001 18:06:00 +0000 (18:06 +0000)
From-SVN: r42661

gcc/ChangeLog
gcc/cpplib.c

index 55f566eb40f1cec36680d9ceb42c802d584703aa..2d49273cad9a02e984e8fef0fbc61e1147047236 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 96d296f3b5aab2fb4f988f92c83a5da030c14c85..cb493105ae94e2461cd3dbe975e3bed40e0fee82 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);