X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fvm%2Ftables.c;h=40b880e64371dd7fc0289f8c9bc19c7bc1d8e9cd;hb=4f021ace4cbb48cb8d75e5445929a01f61ca756a;hp=a0dd1052e43043f3bd625aedcf004bc992ec7b9e;hpb=f6459b5133bc492d0eda0443a20759003697441a;p=cacao.git diff --git a/src/vm/tables.c b/src/vm/tables.c index a0dd1052e..40b880e64 100644 --- a/src/vm/tables.c +++ b/src/vm/tables.c @@ -36,7 +36,7 @@ - the heap - additional support functions - $Id: tables.c 3239 2005-09-21 14:09:22Z twisti $ + $Id: tables.c 3679 2005-11-16 12:12:02Z twisti $ */ @@ -98,20 +98,17 @@ void init_hashtable(hashtable *hash, u4 size) } -/*********************** function: tables_init ***************************** +/* tables_init ***************************************************************** - creates hashtables for symboltables - (called once at startup) + Creates hashtables for symboltables (called once at startup). -*****************************************************************************/ +*******************************************************************************/ -void tables_init() +bool tables_init(void) { init_hashtable(&utf_hash, UTF_HASHSTART); /* hashtable for utf8-symbols */ init_hashtable(&string_hash, HASHSTART); /* hashtable for javastrings */ - classcache_init(); - /* if (opt_eager) */ /* list_init(&unlinkedclasses, OFFSET(classinfo, listnode)); */ @@ -119,6 +116,10 @@ void tables_init() if (opt_stat) count_utf_len += sizeof(utf*) * utf_hash.size; #endif + + /* everything's ok */ + + return true; }