diff options
author | Richard Henderson <rth@redhat.com> | 2007-03-30 14:12:53 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2007-03-30 14:12:53 -0700 |
commit | 121de39fc0ebadfbf9ef9f1721aa3cac42ac92e1 (patch) | |
tree | f8ad58ad599c110a4cb386319a9c1e0f7f184b64 /gcc/doc | |
parent | 6c7ac15dc63e3435b7cec32baa37e48d86c381e3 (diff) | |
download | gcc-121de39fc0ebadfbf9ef9f1721aa3cac42ac92e1.zip gcc-121de39fc0ebadfbf9ef9f1721aa3cac42ac92e1.tar.gz gcc-121de39fc0ebadfbf9ef9f1721aa3cac42ac92e1.tar.bz2 |
directives.c (lex_macro_node_from_str): New.
libcpp/
* directives.c (lex_macro_node_from_str): New.
(cpp_push_definition, cpp_pop_definition): New.
* include/cpplib.h (cpp_push_definition, cpp_pop_definition): Declare.
gcc/
* c-pragma.c (struct def_pragma_macro_value): New.
(struct def_pragma_macro): New.
(pushed_macro_table): New.
(dpm_hash, dpm_eq): New.
(handle_pragma_push_macro, handle_pragma_pop_macro): New.
(init_pragma): Install them.
* doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
Co-Authored-By: Kai Tietz <kai.tietz@onevision.com>
From-SVN: r123370
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/tm.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 9cdc869..0d4185d 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -9719,6 +9719,18 @@ This must be a value that would also be valid to use with @samp{#pragma pack()} (that is, a small power of two). @end defmac +@findex #pragma +@findex pragma +@defmac HANDLE_PRAGMA_PUSH_POP_MACRO +Define this macro if you want to support the Win32 style pragmas +@samp{#pragma push_macro(macro-name-as-string)} and @samp{#pragma +pop_macro(macro-name-as-string)}. The @samp{#pragma push_macro( +macro-name-as-string)} pragma saves the named macro and via +@samp{#pragma pop_macro(macro-name-as-string)} it will return to the +previous value. +@end defmac + + @defmac DOLLARS_IN_IDENTIFIERS Define this macro to control use of the character @samp{$} in identifier names for the C family of languages. 0 means @samp{$} is |