c-pragma.h (pragma_handler_1arg, [...]): New handler.
authorPierre Vittet <piervit@pvittet.com>
Mon, 20 Jun 2011 08:05:02 +0000 (08:05 +0000)
committerBasile Starynkevitch <bstarynk@gcc.gnu.org>
Mon, 20 Jun 2011 08:05:02 +0000 (08:05 +0000)
commitdfb43cd5bd5ff69f865d7be6fb190d405719e15d
treef39694d61707ef7b710af0ef103468e59865e2f3
parent3bae1d98650efce91703cc4cb37231bf8c12ef94
c-pragma.h (pragma_handler_1arg, [...]): New handler.

2011-06-20  Pierre Vittet  <piervit@pvittet.com>

* c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
handler.
(gen_pragma_handler): New union.
(internal_pragma_handler): New type.
(c_register_pragma_with_data)
(c_register_pragma_with_expansion_and_data): New functions.

* c-pragma.c (registered_pragmas, c_register_pragma_1)
(c_register_pragma, c_register_pragma_with_expansion)
(c_invoke_pragma_handler): Changed to work with
internal_pragma_handler.
(c_register_pragma_with_data)
(c_register_pragma_with_expansion_and_data): New functions.

From-SVN: r175202
gcc/c-family/ChangeLog
gcc/c-family/c-pragma.c
gcc/c-family/c-pragma.h