diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-30 21:12:53 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-30 21:12:53 +0000 |
commit | 3fa3949da38e56a88feef5467a58ea52c3fea3be (patch) | |
tree | f8ad58ad599c110a4cb386319a9c1e0f7f184b64 /gcc/doc/tm.texi | |
parent | 6e9e3dbec65a8f70bf8c2db0047ee92349a14cd2 (diff) | |
download | gcc-3fa3949da38e56a88feef5467a58ea52c3fea3be.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123370 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc/tm.texi')
-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 9cdc869198b..0d4185de05c 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 |