diff options
author | Zack Weinberg <zack@codesourcery.com> | 2003-07-13 17:34:18 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2003-07-13 17:34:18 +0000 |
commit | 438396422cf866b96ccdb10c32875e425b37c0ac (patch) | |
tree | a7cccc1c8ac0a9c5388a19e98814b9a1cc541648 /gcc/cpphash.c | |
parent | 0acf4f8857224501ab8bd97bf0146f7cb766441e (diff) | |
download | gcc-438396422cf866b96ccdb10c32875e425b37c0ac.zip gcc-438396422cf866b96ccdb10c32875e425b37c0ac.tar.gz gcc-438396422cf866b96ccdb10c32875e425b37c0ac.tar.bz2 |
Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
* Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
(hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
list. Move these all together down by cpplib.
* cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
definition of CPPCHAR_SIGNED_T.
* cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
* cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
* line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
* cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
* cppinit.c (cpp_create_reader): Likewise.
* cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
* cpptrad.c: Likewise. All callers changed.
* cpplib.c: All callers changed.
* c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
* hashtable.h: Define GTY(x) to nothing here too.
From-SVN: r69298
Diffstat (limited to 'gcc/cpphash.c')
-rw-r--r-- | gcc/cpphash.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/cpphash.c b/gcc/cpphash.c index 01cd0a4..8016189 100644 --- a/gcc/cpphash.c +++ b/gcc/cpphash.c @@ -25,8 +25,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "config.h" #include "system.h" -#include "coretypes.h" -#include "tm.h" #include "cpplib.h" #include "cpphash.h" @@ -57,7 +55,10 @@ _cpp_init_hashtable (cpp_reader *pfile, hash_table *table) pfile->our_hashtable = 1; table = ht_create (13); /* 8K (=2^13) entries. */ table->alloc_node = (hashnode (*) (hash_table *)) alloc_node; - gcc_obstack_init (&pfile->hash_ob); + + _obstack_begin (&pfile->hash_ob, 0, 0, + (void *(*) (long)) xmalloc, + (void (*) (void *)) free); } table->pfile = pfile; |