* cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
commitb0a314a73abe1bac45a3d39d1e91bed457b2410d
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Jul 2000 14:37:47 +0000 (12 14:37 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Jul 2000 14:37:47 +0000 (12 14:37 +0000)
tree72b34acb36220595f92d8f0fb9b891d3aafb73a4
parente8785647e0a501b2e28a2d11e40a6f640049a5bf
* cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
* cpplex.c (TOKEN_SPELL) Move to cpphash.h.

* cpphash.c: (struct macro_info, alloc_macro, free_macro,
struct toklist_dummy): New.
(cpp_free_definition): Free macros with free_macro.
(count_params): Don't save paramter spellings.  Save macro
information in a struct macro_info.
(parse_define): Don't allocate a token list.
(save_expansion): Allocate the macro's token list, and
save parameter spellings if necessary.  Use TOKEN_SPELL.
(cpp_create_definition): Make list const.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34985 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cpphash.c
gcc/cpphash.h
gcc/cpplex.c