From 75ce3d489ce44d6eeb8e59d88d76eb6d4682bbd1 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sat, 26 Nov 2005 14:31:12 -0800 Subject: c-lex.c (pragma_lex): Rename from c_lex. * c-lex.c (pragma_lex): Rename from c_lex. * c-pch.c: Update for pragma_lex rename. * c-pragma.c, c-pragma.h, config/ia64/ia64-c.c: Likewise. * config/m32c/m32c-pragma.c, config/darwin-c.c: Likewise. * config/rs6000/rs6000-c.c, config/c4x/c4x-c.c: Likewise. * config/sol2-c.c, config/v850/v850-c.c: Likewise. * doc/tm.texi: Likewise. cp/ * lex.c: Update for pragma_lex rename. * parser.c: Likewise. From-SVN: r107544 --- gcc/doc/tm.texi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/doc/tm.texi') diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index b736855..35bd5c3 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -9160,7 +9160,7 @@ pragma of the form @code{NULL} to put the pragma in the global namespace. The callback routine receives @var{pfile} as its first argument, which can be passed on to cpplib's functions if necessary. You can lex tokens after the -@var{name} by calling @code{c_lex}. Tokens that are not read by the +@var{name} by calling @code{pragma_lex}. Tokens that are not read by the callback will be silently ignored. The end of the line is indicated by a token of type @code{CPP_EOF}. Macro expansion occurs on the arguments of pragmas registered with @@ -9170,15 +9170,15 @@ pragmas registered with @code{c_register_pragma}. For an example use of this routine, see @file{c4x.h} and the callback routines defined in @file{c4x-c.c}. -Note that the use of @code{c_lex} is specific to the C and C++ +Note that the use of @code{pragma_lex} is specific to the C and C++ compilers. It will not work in the Java or Fortran compilers, or any -other language compilers for that matter. Thus if @code{c_lex} is going +other language compilers for that matter. Thus if @code{pragma_lex} is going to be called from target-specific code, it must only be done so when building the C and C++ compilers. This can be done by defining the variables @code{c_target_objs} and @code{cxx_target_objs} in the target entry in the @file{config.gcc} file. These variables should name the target-specific, language-specific object file which contains the -code that uses @code{c_lex}. Note it will also be necessary to add a +code that uses @code{pragma_lex}. Note it will also be necessary to add a rule to the makefile fragment pointed to by @code{tmake_file} that shows how to build this object file. @end deftypefun -- cgit v1.1