diff options
author | Arnaud Charlet <charlet@adacore.com> | 2009-11-20 08:18:16 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2009-11-20 09:18:16 +0100 |
commit | 3de8a540d8905f8820166960754bb6bb39bfbb44 (patch) | |
tree | d1a4b34f3473096402637027d37a05d9064c3507 /libcpp/directives.c | |
parent | 9f29c05e324de7a69a317e3f5ce2b1e214652dca (diff) | |
download | gcc-3de8a540d8905f8820166960754bb6bb39bfbb44.zip gcc-3de8a540d8905f8820166960754bb6bb39bfbb44.tar.gz gcc-3de8a540d8905f8820166960754bb6bb39bfbb44.tar.bz2 |
macro.c (enter_macro_context): Call cb.used callback if defined.
* macro.c (enter_macro_context): Call cb.used callback if defined.
* directives.c (do_idef, do_ifndef): Ditto.
* include/cpplib.h (struct cpp_callbacks): Add used callback.
From-SVN: r154359
Diffstat (limited to 'libcpp/directives.c')
-rw-r--r-- | libcpp/directives.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcpp/directives.c b/libcpp/directives.c index aed940e..409d908 100644 --- a/libcpp/directives.c +++ b/libcpp/directives.c @@ -1808,6 +1808,8 @@ do_ifdef (cpp_reader *pfile) pfile->cb.used_undef (pfile, pfile->directive_line, node); } } + if (pfile->cb.used) + pfile->cb.used (pfile, pfile->directive_line, node); check_eol (pfile, false); } } @@ -1844,6 +1846,8 @@ do_ifndef (cpp_reader *pfile) pfile->cb.used_undef (pfile, pfile->directive_line, node); } } + if (pfile->cb.used) + pfile->cb.used (pfile, pfile->directive_line, node); check_eol (pfile, false); } } |