diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cpplib.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 55f566e..2d49273 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 96d296f..cb49310 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -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); |