mirror of
https://github.com/2003scape/deep-c-rsc.git
synced 2024-03-22 05:49:51 -04:00
627 lines
18 KiB
C
627 lines
18 KiB
C
/* DO NOT EDIT THIS FILE - it is machine generated (JCGO_116) */
|
|
|
|
#ifdef JCGO_SEPARATED
|
|
#define JCGO_116
|
|
#include "jcgortl.h"
|
|
#include "Main.h"
|
|
#endif
|
|
|
|
#ifdef JCGO_116
|
|
|
|
#ifdef CHKALL_java_util_Hashtable
|
|
#include "jcgobchk.h"
|
|
#endif
|
|
|
|
JCGO_NOSEP_INLINE java_util_Hashtable CFASTCALL
|
|
java_util_Hashtable__this__I( java_util_Hashtable This, jint initialCapacity
|
|
)
|
|
{
|
|
{
|
|
(java_util_Dictionary__this__((java_util_Dictionary)This));
|
|
if (initialCapacity < 0)
|
|
{
|
|
JCGO_THROW_EXC((java_lang_IllegalArgumentException__new__Ls(
|
|
java_lang_VMSystem__concat0X__LsLs(
|
|
JCGO_STRREF_OF(jcgo_string2_Hshtbl), (java_lang_String__valueOf__I(
|
|
initialCapacity))))));
|
|
}
|
|
if (initialCapacity == 0)
|
|
{
|
|
initialCapacity= (jint)1;
|
|
}
|
|
JCGO_FIELD_NZACCESS(This, buckets)= (jObjectArr)jcgo_newArray(JCGO_CLASSREF_OF(java_util_Hashtable_HashEntry__class),
|
|
0, initialCapacity);
|
|
JCGO_FIELD_NZACCESS(This, loadFactor)= (jfloat)0.75;
|
|
JCGO_FIELD_NZACCESS(This, loadFactorPercent)= (jint)75;
|
|
JCGO_FIELD_NZACCESS(This, threshold)= initialCapacity - JCGO_SHR_F((initialCapacity +
|
|
(jint)3), (jint)2);
|
|
}
|
|
return This;
|
|
}
|
|
|
|
JCGO_NOSEP_INLINE void CFASTCALL
|
|
java_util_Hashtable__rehash__( java_util_Hashtable This )
|
|
{
|
|
{
|
|
jObjectArr oldBuckets;
|
|
jObjectArr buckets;
|
|
jint newcapacity;
|
|
jint intFactor;
|
|
oldBuckets= JCGO_FIELD_NZACCESS(This, buckets);
|
|
newcapacity= JCGO_SHL_F(JCGO_ARRAY_LENGTH(oldBuckets), (jint)1) +
|
|
(jint)1;
|
|
intFactor= JCGO_FIELD_NZACCESS(This, loadFactorPercent);
|
|
if (intFactor > 0)
|
|
{
|
|
JCGO_FIELD_NZACCESS(This, threshold)= jcgo_div(JCGO_USHR_F((-(jint)1),
|
|
(jint)1), intFactor) >= newcapacity? newcapacity * intFactor /
|
|
(jint)100 : (newcapacity / (jint)100 + (jint)1) * intFactor;
|
|
}
|
|
else
|
|
{
|
|
JCGO_FIELD_NZACCESS(This, threshold)= JCGO_JFLOAT_TOJINT(((jfloat)newcapacity *
|
|
JCGO_FIELD_NZACCESS(This, loadFactor)));
|
|
}
|
|
buckets= (jObjectArr)jcgo_newArray(JCGO_CLASSREF_OF(java_util_Hashtable_HashEntry__class),
|
|
0, newcapacity);
|
|
JCGO_FIELD_NZACCESS(This, buckets)= buckets;
|
|
{
|
|
jint i;
|
|
i= JCGO_ARRAY_NZLENGTH(oldBuckets) - (jint)1;
|
|
for (; i >= 0; i--)
|
|
{
|
|
java_util_Hashtable_HashEntry e;
|
|
e= ((java_util_Hashtable_HashEntry)JCGO_ARRAY_NZLACCESS(oldBuckets,
|
|
i));
|
|
while (e != jnull)
|
|
{
|
|
java_util_Hashtable_HashEntry next;
|
|
jint idx;
|
|
idx= jcgo_mod((JCGO_FIELD_NZACCESS(e, hash) & JCGO_USHR_F((-(jint)1),
|
|
(jint)1)), newcapacity);
|
|
next= JCGO_FIELD_NZACCESS(e, next);
|
|
JCGO_FIELD_NZACCESS(e, next)= ((java_util_Hashtable_HashEntry)JCGO_ARRAY_NZLACCESS(buckets,
|
|
idx));
|
|
*(java_util_Hashtable_HashEntry*)&JCGO_ARRAY_NZLACCESS(buckets,
|
|
idx)= e;
|
|
e= next;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_INLINE java_util_Set CFASTCALL
|
|
java_util_Hashtable__entrySet__( java_util_Hashtable This )
|
|
{
|
|
{
|
|
if (JCGO_FIELD_NZACCESS(This, entries) == jnull)
|
|
{
|
|
java_util_Set r;
|
|
r= (java_util_Set)(java_util_Hashtable_3__new__L76hud(
|
|
This));
|
|
JCGO_FIELD_NZACCESS(This, entries)= (java_util_Set)(java_util_Collections_SynchronizedSet__new__LoL1x914(
|
|
(java_lang_Object)This, r));
|
|
}
|
|
return JCGO_FIELD_NZACCESS(This, entries);
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_INLINE java_util_Hashtable CFASTCALL
|
|
java_util_Hashtable__this__( java_util_Hashtable This )
|
|
{
|
|
{
|
|
(java_util_Hashtable__this__I((java_util_Hashtable)This, java_util_Hashtable__DEFAULT_CAPACITY));
|
|
}
|
|
return This;
|
|
}
|
|
|
|
JCGO_NOSEP_INLINE jboolean CFASTCALL
|
|
java_util_Hashtable__isEmpty__( java_util_Hashtable This )
|
|
{
|
|
JCGO_SYNC_BLOCKSAFENZ(This)
|
|
{
|
|
{
|
|
jboolean jcgo_retval= (jboolean)(JCGO_FIELD_NZACCESS(This, size) ==
|
|
0);
|
|
#ifndef JCGO_SEHTRY
|
|
JCGO_SYNC_JUMPLEAVE(0);
|
|
#endif
|
|
return jcgo_retval;
|
|
}
|
|
}
|
|
JCGO_SYNC_ENDUNREACH
|
|
}
|
|
|
|
JCGO_NOSEP_INLINE java_lang_Object CFASTCALL
|
|
java_util_Hashtable__get__Lo( java_util_Hashtable This, java_lang_Object
|
|
key )
|
|
{
|
|
JCGO_SYNC_BLOCKSAFENZ(This)
|
|
{
|
|
java_util_Hashtable_HashEntry e;
|
|
jint hash;
|
|
hash= (JCGO_CALL_VFUNC(key)->hashCode__(
|
|
key));
|
|
e= ((java_util_Hashtable_HashEntry)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
|
|
buckets), jcgo_mod((hash & JCGO_USHR_F((-(jint)1), (jint)1)), JCGO_ARRAY_LENGTH(JCGO_FIELD_NZACCESS(This,
|
|
buckets)))));
|
|
while (e != jnull)
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
if (JCGO_FIELD_NZACCESS(e, hash) == hash && (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(e,
|
|
key), JCGO_CALL_VFUNC((java_lang_Object)jcgo_rcvrL1)->equals__Lo(
|
|
(java_lang_Object)jcgo_rcvrL1, key)))
|
|
{
|
|
{
|
|
java_lang_Object jcgo_retval= JCGO_FIELD_NZACCESS(e, value);
|
|
#ifndef JCGO_SEHTRY
|
|
JCGO_SYNC_JUMPLEAVE(0);
|
|
#endif
|
|
return jcgo_retval;
|
|
}
|
|
}
|
|
e= JCGO_FIELD_NZACCESS(e, next);
|
|
}
|
|
#ifndef JCGO_SEHTRY
|
|
JCGO_SYNC_JUMPLEAVE(0);
|
|
#endif
|
|
return (java_lang_Object)jnull;
|
|
}
|
|
JCGO_SYNC_ENDUNREACH
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC java_lang_Object CFASTCALL
|
|
java_util_Hashtable__put__LoLo( java_util_Hashtable This, java_lang_Object
|
|
key, java_lang_Object value )
|
|
{
|
|
JCGO_SYNC_BLOCKSAFENZ(This)
|
|
{
|
|
java_util_Hashtable_HashEntry e;
|
|
jint hash;
|
|
jint idx;
|
|
jint jcgo_rcvrI1;
|
|
hash= (JCGO_CALL_VFUNC(key)->hashCode__(
|
|
key));
|
|
if (value == jnull)
|
|
{
|
|
JCGO_THROW_EXC(java_lang_NullPointerException__new__());
|
|
}
|
|
idx= jcgo_mod((hash & JCGO_USHR_F((-(jint)1), (jint)1)), JCGO_ARRAY_LENGTH(JCGO_FIELD_NZACCESS(This,
|
|
buckets)));
|
|
e= ((java_util_Hashtable_HashEntry)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
|
|
buckets), idx));
|
|
while (e != jnull)
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
if (JCGO_FIELD_NZACCESS(e, hash) == hash && (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(e,
|
|
key), JCGO_CALL_VFUNC((java_lang_Object)jcgo_rcvrL1)->equals__Lo(
|
|
(java_lang_Object)jcgo_rcvrL1, key)))
|
|
{
|
|
java_lang_Object r;
|
|
r= JCGO_FIELD_NZACCESS(e, value);
|
|
JCGO_FIELD_NZACCESS(e, value)= value;
|
|
#ifndef JCGO_SEHTRY
|
|
JCGO_SYNC_JUMPLEAVE(0);
|
|
#endif
|
|
return r;
|
|
}
|
|
else
|
|
{
|
|
e= JCGO_FIELD_NZACCESS(e, next);
|
|
}
|
|
}
|
|
JCGO_FIELD_NZACCESS(This, modCount)++;
|
|
if ((jcgo_rcvrI1= ++JCGO_FIELD_NZACCESS(This, size), jcgo_rcvrI1 >
|
|
JCGO_FIELD_NZACCESS(This, threshold)))
|
|
{
|
|
(java_util_Hashtable__rehash__(
|
|
This));
|
|
idx= jcgo_mod((hash & JCGO_USHR_F((-(jint)1), (jint)1)), JCGO_ARRAY_LENGTH(JCGO_FIELD_NZACCESS(This,
|
|
buckets)));
|
|
}
|
|
e= (java_util_Hashtable_HashEntry__new__LoLoI(
|
|
key, value, hash));
|
|
JCGO_FIELD_NZACCESS(e, next)= ((java_util_Hashtable_HashEntry)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
|
|
buckets), idx));
|
|
*(java_util_Hashtable_HashEntry*)&JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
|
|
buckets), idx)= e;
|
|
#ifndef JCGO_SEHTRY
|
|
JCGO_SYNC_JUMPLEAVE(0);
|
|
#endif
|
|
return (java_lang_Object)jnull;
|
|
}
|
|
JCGO_SYNC_ENDUNREACH
|
|
}
|
|
|
|
JCGO_NOSEP_INLINE java_lang_Object CFASTCALL
|
|
java_util_Hashtable__remove__Lo( java_util_Hashtable This, java_lang_Object
|
|
key )
|
|
{
|
|
JCGO_SYNC_BLOCKSAFENZ(This)
|
|
{
|
|
java_util_Hashtable_HashEntry e;
|
|
java_util_Hashtable_HashEntry last;
|
|
jint hash;
|
|
jint idx;
|
|
hash= (JCGO_CALL_VFUNC(key)->hashCode__(
|
|
key));
|
|
idx= jcgo_mod((hash & JCGO_USHR_F((-(jint)1), (jint)1)), JCGO_ARRAY_LENGTH(JCGO_FIELD_NZACCESS(This,
|
|
buckets)));
|
|
e= ((java_util_Hashtable_HashEntry)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
|
|
buckets), idx));
|
|
last= (java_util_Hashtable_HashEntry)jnull;
|
|
while (e != jnull)
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
if (JCGO_FIELD_NZACCESS(e, hash) == hash && (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(e,
|
|
key), JCGO_CALL_VFUNC((java_lang_Object)jcgo_rcvrL1)->equals__Lo(
|
|
(java_lang_Object)jcgo_rcvrL1, key)))
|
|
{
|
|
JCGO_FIELD_NZACCESS(This, modCount)++;
|
|
if (last == jnull)
|
|
{
|
|
*(java_util_Hashtable_HashEntry*)&JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
|
|
buckets), idx)= JCGO_FIELD_NZACCESS(e, next);
|
|
}
|
|
else
|
|
{
|
|
JCGO_FIELD_NZACCESS(last, next)= JCGO_FIELD_NZACCESS(e, next);
|
|
}
|
|
JCGO_FIELD_NZACCESS(This, size)--;
|
|
{
|
|
java_lang_Object jcgo_retval= JCGO_FIELD_NZACCESS(e, value);
|
|
#ifndef JCGO_SEHTRY
|
|
JCGO_SYNC_JUMPLEAVE(0);
|
|
#endif
|
|
return jcgo_retval;
|
|
}
|
|
}
|
|
last= e;
|
|
e= JCGO_FIELD_NZACCESS(e, next);
|
|
}
|
|
#ifndef JCGO_SEHTRY
|
|
JCGO_SYNC_JUMPLEAVE(0);
|
|
#endif
|
|
return (java_lang_Object)jnull;
|
|
}
|
|
JCGO_SYNC_ENDUNREACH
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC java_lang_Object CFASTCALL
|
|
java_util_Hashtable__clone__( java_util_Hashtable This )
|
|
{
|
|
JCGO_SYNC_BLOCKSAFENZ(This)
|
|
{
|
|
java_util_Hashtable JCGO_TRY_VOLATILE copy;
|
|
jObjectArr copyBuckets;
|
|
jint idx;
|
|
jint count;
|
|
copy= (java_util_Hashtable)jnull;
|
|
{
|
|
JCGO_TRY_BLOCK
|
|
{
|
|
copy= (java_util_Hashtable)JCGO_CAST_OBJECT0(OBJT_java_util_Hashtable,
|
|
MAXT_java_util_Hashtable, (java_lang_Object__clone__(
|
|
(java_lang_Object)This)));
|
|
}
|
|
JCGO_TRY_LEAVE
|
|
JCGO_TRY_CATCHES(1)
|
|
JCGO_TRY_CATCH(OBJT_java_lang_CloneNotSupportedException, MAXT_java_lang_CloneNotSupportedException)
|
|
{
|
|
}
|
|
JCGO_TRY_RETHROW(1)
|
|
}
|
|
JCGO_FIELD_ACCESS(java_util_Hashtable, copy, keys)= (java_util_Set)jnull;
|
|
JCGO_FIELD_NZACCESS(copy, values)= (java_util_Collection)jnull;
|
|
JCGO_FIELD_NZACCESS(copy, entries)= (java_util_Set)jnull;
|
|
idx= JCGO_ARRAY_LENGTH(JCGO_FIELD_NZACCESS(This, buckets));
|
|
copyBuckets= (jObjectArr)jcgo_newArray(JCGO_CLASSREF_OF(java_util_Hashtable_HashEntry__class),
|
|
0, idx);
|
|
JCGO_FIELD_NZACCESS(copy, buckets)= copyBuckets;
|
|
count= JCGO_FIELD_NZACCESS(This, size);
|
|
while (count > 0)
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
{
|
|
java_util_Hashtable_HashEntry e;
|
|
e= (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, buckets), (java_util_Hashtable_HashEntry)JCGO_ARRAY_LACCESS((jObjectArr)jcgo_rcvrL1,
|
|
--idx));
|
|
for (; e != jnull; e= JCGO_FIELD_NZACCESS(e, next))
|
|
{
|
|
java_util_Hashtable_HashEntry he;
|
|
he= (java_util_Hashtable_HashEntry__new__LoLoI(
|
|
JCGO_FIELD_NZACCESS(e, key), JCGO_FIELD_NZACCESS(e, value), JCGO_FIELD_NZACCESS(e,
|
|
hash)));
|
|
JCGO_FIELD_NZACCESS(he, next)= ((java_util_Hashtable_HashEntry)JCGO_ARRAY_NZLACCESS(copyBuckets,
|
|
idx));
|
|
*(java_util_Hashtable_HashEntry*)&JCGO_ARRAY_NZLACCESS(copyBuckets,
|
|
idx)= he;
|
|
count--;
|
|
}
|
|
}
|
|
}
|
|
#ifndef JCGO_SEHTRY
|
|
JCGO_SYNC_JUMPLEAVE(0);
|
|
#endif
|
|
return (java_lang_Object)copy;
|
|
}
|
|
JCGO_SYNC_ENDUNREACH
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC java_lang_String CFASTCALL
|
|
java_util_Hashtable__toString__( java_util_Hashtable This )
|
|
{
|
|
JCGO_SYNC_BLOCKSAFENZ(This)
|
|
{
|
|
java_util_Iterator entries;
|
|
java_lang_StringBuilder r;
|
|
struct java_util_Hashtable_EntryIterator_s jcgo_stackobj1;
|
|
struct java_lang_StringBuilder_s jcgo_stackobj2;
|
|
entries= (java_util_Iterator)(java_util_Hashtable_EntryIterator__this__L76hud(
|
|
JCGO_STACKOBJ_NEW(jcgo_stackobj1, java_util_Hashtable_EntryIterator_methods),
|
|
This));
|
|
r= (java_lang_StringBuilder__this__Ls(
|
|
JCGO_STACKOBJ_NEW(jcgo_stackobj2, java_lang_StringBuilder_methods),
|
|
JCGO_STRREF_OF(jcgo_string3_Hshtbl)));
|
|
{
|
|
jint pos;
|
|
pos= JCGO_FIELD_NZACCESS(This, size);
|
|
for (; pos > 0; pos--)
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
struct java_lang_String_s jcgo_stackobj3;
|
|
(java_lang_StringBuilder__append__Ls(
|
|
r, (jcgo_rcvrL1= (jObject)(java_util_Hashtable_EntryIterator__next__(
|
|
(java_util_Hashtable_EntryIterator)entries)), JCGO_CALL_FINALF((java_util_Hashtable_HashEntry)jcgo_rcvrL1)
|
|
java_util_Hashtable_HashEntry__toString__X(
|
|
(java_util_Hashtable_HashEntry)jcgo_rcvrL1, JCGO_STACKOBJ_NEW(jcgo_stackobj3,
|
|
java_lang_String_methods)))));
|
|
if (pos > (jint)1)
|
|
{
|
|
(java_lang_StringBuilder__append__Ls(
|
|
r, JCGO_STRREF_OF(jcgo_string4_Hshtbl)));
|
|
}
|
|
}
|
|
}
|
|
(java_lang_StringBuilder__append__C(
|
|
r, (jchar)125/*'}'*/));
|
|
{
|
|
java_lang_String jcgo_retval= (java_lang_StringBuilder__toString__(
|
|
r));
|
|
#ifndef JCGO_SEHTRY
|
|
JCGO_SYNC_JUMPLEAVE(0);
|
|
#endif
|
|
return jcgo_retval;
|
|
}
|
|
}
|
|
JCGO_SYNC_ENDUNREACH
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC jboolean CFASTCALL
|
|
java_util_Hashtable__equals__Lo( java_util_Hashtable This, java_lang_Object
|
|
o )
|
|
{
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
if (o == (java_lang_Object)This)
|
|
{
|
|
return (jboolean)jtrue;
|
|
}
|
|
if (!jcgo_instanceOf(OBJT_java_util_Map, MAXT_java_util_Map, ~0,
|
|
(jObject)o))
|
|
{
|
|
return (jboolean)jfalse;
|
|
}
|
|
return (jboolean)(jcgo_rcvrL1= (jObject)(java_util_Hashtable__entrySet__(
|
|
This)), JCGO_CALL_VFUNC((java_util_Set)jcgo_rcvrL1)->equals__Lo(
|
|
(java_util_Set)jcgo_rcvrL1, (java_lang_Object)(JCGO_CALL_NZVFUNC(((java_util_Map)o))->entrySet__(
|
|
((java_util_Map)o)))));
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC jint CFASTCALL
|
|
java_util_Hashtable__hashCode__( java_util_Hashtable This )
|
|
{
|
|
JCGO_SYNC_BLOCKSAFENZ(This)
|
|
{
|
|
jint hashcode;
|
|
hashcode= 0;
|
|
if (JCGO_FIELD_NZACCESS(This, size) > 0 && JCGO_FIELD_NZACCESS(This,
|
|
loadFactorPercent) >= 0)
|
|
{
|
|
java_util_Iterator itr;
|
|
struct java_util_Hashtable_EntryIterator_s jcgo_stackobj1;
|
|
JCGO_FIELD_NZACCESS(This, loadFactorPercent)= ~JCGO_FIELD_NZACCESS(This,
|
|
loadFactorPercent);
|
|
itr= (java_util_Iterator)(java_util_Hashtable_EntryIterator__this__L76hud(
|
|
JCGO_STACKOBJ_NEW(jcgo_stackobj1, java_util_Hashtable_EntryIterator_methods),
|
|
This));
|
|
{
|
|
jint pos;
|
|
pos= JCGO_FIELD_NZACCESS(This, size);
|
|
for (; pos > 0; pos--)
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
hashcode+= (jcgo_rcvrL1= (jObject)(java_util_Hashtable_EntryIterator__next__(
|
|
(java_util_Hashtable_EntryIterator)itr)), JCGO_CALL_FINALF((java_util_Hashtable_HashEntry)jcgo_rcvrL1)
|
|
java_util_Hashtable_HashEntry__hashCode__(
|
|
(java_util_Hashtable_HashEntry)jcgo_rcvrL1));
|
|
}
|
|
}
|
|
JCGO_FIELD_NZACCESS(This, loadFactorPercent)= ~JCGO_FIELD_NZACCESS(This,
|
|
loadFactorPercent);
|
|
}
|
|
#ifndef JCGO_SEHTRY
|
|
JCGO_SYNC_JUMPLEAVE(0);
|
|
#endif
|
|
return hashcode;
|
|
}
|
|
JCGO_SYNC_ENDUNREACH
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC java_util_Hashtable_HashEntry CFASTCALL
|
|
java_util_Hashtable__getEntry__Lo( java_util_Hashtable This, java_lang_Object
|
|
o )
|
|
{
|
|
{
|
|
java_lang_Object key;
|
|
java_util_Hashtable_HashEntry e;
|
|
jint hash;
|
|
if (!jcgo_instanceOf(OBJT_java_util_Map_Entry, MAXT_java_util_Map_Entry,
|
|
~0, (jObject)o))
|
|
{
|
|
return (java_util_Hashtable_HashEntry)jnull;
|
|
}
|
|
key= (JCGO_CALL_NZVFUNC(((java_util_Map_Entry)o))->getKey__(
|
|
((java_util_Map_Entry)o)));
|
|
if (key == jnull)
|
|
{
|
|
return (java_util_Hashtable_HashEntry)jnull;
|
|
}
|
|
hash= (JCGO_CALL_NZVFUNC(key)->hashCode__(
|
|
key));
|
|
e= ((java_util_Hashtable_HashEntry)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
|
|
buckets), jcgo_mod((hash & JCGO_USHR_F((-(jint)1), (jint)1)), JCGO_ARRAY_LENGTH(JCGO_FIELD_NZACCESS(This,
|
|
buckets)))));
|
|
while (e != jnull)
|
|
{
|
|
if (JCGO_FIELD_NZACCESS(e, hash) == hash && (java_util_Hashtable_HashEntry__equals__Lo(
|
|
e, o)))
|
|
{
|
|
return e;
|
|
}
|
|
e= JCGO_FIELD_NZACCESS(e, next);
|
|
}
|
|
return (java_util_Hashtable_HashEntry)jnull;
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_DATA CONST struct java_util_Hashtable_methods_s java_util_Hashtable_methods=
|
|
{
|
|
JCGO_CLASSREF_OF(java_util_Hashtable__class),
|
|
JCGO_GCJDESCR_INIT(java_util_Hashtable_s, entries)
|
|
OBJT_java_util_Hashtable,
|
|
(JCGO_OBJSIZE_T)sizeof(struct java_util_Hashtable_s),
|
|
NULL,
|
|
JCGO_CLINIT_INIT(0)
|
|
java_util_Hashtable__this__,
|
|
java_util_Hashtable__equals__Lo,
|
|
java_util_Hashtable__hashCode__,
|
|
java_util_Hashtable__toString__,
|
|
java_lang_Object__finalize__,
|
|
java_util_Hashtable__entrySet__,
|
|
java_util_Hashtable__isEmpty__
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_util_Hashtable_class_s
|
|
java_util_Hashtable__class JCGO_THRD_ATTRNONGC=
|
|
{
|
|
{
|
|
&java_lang_Class_methods,
|
|
JCGO_MON_INIT
|
|
JCGO_OBJREF_OF(*(java_lang_Object)&java_util_Hashtable_methods),
|
|
JCGO_STRREF_OF(jcgo_string1_Hshtbl),
|
|
JCGO_CLASSREF_OF(java_util_Dictionary__class),
|
|
((jObjectArr)JCGO_OBJREF_OF(jcgo_array5_Hshtbl)),
|
|
0x1
|
|
}
|
|
};
|
|
|
|
JCGO_NOSEP_DATA CONST jcgo_arrtype5_Hshtbl jcgo_array5_Hshtbl=
|
|
{
|
|
(jvtable)&jObjectArr_methods,
|
|
JCGO_MON_INIT
|
|
2,
|
|
JCGO_CLASSREF_OF(java_lang_Class__class),
|
|
{
|
|
(jObject)JCGO_CLASSREF_OF(java_util_Map__class), (jObject)JCGO_CLASSREF_OF(java_lang_Cloneable__class)
|
|
}
|
|
};
|
|
|
|
JCGO_NOSEP_DATA CONST jcgo_arrtype80_GmCnnctn jcgo_array6_Hshtbl=
|
|
{
|
|
(jvtable)&jbyteArr_methods,
|
|
JCGO_MON_INIT
|
|
21,
|
|
{
|
|
(jbyte)(jchar)106/*'j'*/, (jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)118/*'v'*/,
|
|
(jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)46/*'.'*/, (jbyte)(jchar)117/*'u'*/,
|
|
(jbyte)(jchar)116/*'t'*/, (jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)108/*'l'*/,
|
|
(jbyte)(jchar)46/*'.'*/, (jbyte)(jchar)72/*'H'*/, (jbyte)(jchar)97/*'a'*/,
|
|
(jbyte)(jchar)115/*'s'*/, (jbyte)(jchar)104/*'h'*/, (jbyte)(jchar)116/*'t'*/,
|
|
(jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)98/*'b'*/, (jbyte)(jchar)108/*'l'*/,
|
|
(jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)36/*'$'*/, (jbyte)(jchar)51/*'3'*/
|
|
}
|
|
};
|
|
|
|
JCGO_NOSEP_DATA CONST jcgo_arrtype82_GmCnnctn jcgo_array7_Hshtbl=
|
|
{
|
|
(jvtable)&jbyteArr_methods,
|
|
JCGO_MON_INIT
|
|
18,
|
|
{
|
|
(jbyte)(jchar)73/*'I'*/, (jbyte)(jchar)108/*'l'*/, (jbyte)(jchar)108/*'l'*/,
|
|
(jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)103/*'g'*/, (jbyte)(jchar)97/*'a'*/,
|
|
(jbyte)(jchar)108/*'l'*/, (jbyte)(jchar)32/*' '*/, (jbyte)(jchar)67/*'C'*/,
|
|
(jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)112/*'p'*/, (jbyte)(jchar)97/*'a'*/,
|
|
(jbyte)(jchar)99/*'c'*/, (jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)116/*'t'*/,
|
|
(jbyte)(jchar)121/*'y'*/, (jbyte)(jchar)58/*':'*/, (jbyte)(jchar)32/*' '*/
|
|
}
|
|
};
|
|
|
|
JCGO_NOSEP_DATA CONST jcgo_arrtype28_Object jcgo_array8_Hshtbl=
|
|
{
|
|
(jvtable)&jbyteArr_methods,
|
|
JCGO_MON_INIT
|
|
11,
|
|
{
|
|
(jbyte)(jchar)44/*','*/, (jbyte)(jchar)32/*' '*/, (jbyte)(jchar)101/*'e'*/,
|
|
(jbyte)(jchar)110/*'n'*/, (jbyte)(jchar)100/*'d'*/, (jbyte)(jchar)109/*'m'*/,
|
|
(jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)116/*'t'*/, (jbyte)(jchar)99/*'c'*/,
|
|
(jbyte)(jchar)104/*'h'*/, (jbyte)(jchar)61/*'='*/
|
|
}
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string1_Hshtbl
|
|
JCGO_THRD_ATTRNONGC=
|
|
{
|
|
&java_lang_String_methods,
|
|
JCGO_MON_INIT
|
|
(java_lang_Object)JCGO_OBJREF_OF(jcgo_array6_Hshtbl),
|
|
0, 19, (jint)0x261e61c0L
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string2_Hshtbl
|
|
JCGO_THRD_ATTRNONGC=
|
|
{
|
|
&java_lang_String_methods,
|
|
JCGO_MON_INIT
|
|
(java_lang_Object)JCGO_OBJREF_OF(jcgo_array7_Hshtbl),
|
|
0, 18, (jint)0x179c0c8aL
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string3_Hshtbl
|
|
JCGO_THRD_ATTRNONGC=
|
|
{
|
|
&java_lang_String_methods,
|
|
JCGO_MON_INIT
|
|
(java_lang_Object)JCGO_OBJREF_OF(jcgo_array49_GameShll),
|
|
77, 1, (jint)0x7bL
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string4_Hshtbl
|
|
JCGO_THRD_ATTRNONGC=
|
|
{
|
|
&java_lang_String_methods,
|
|
JCGO_MON_INIT
|
|
(java_lang_Object)JCGO_OBJREF_OF(jcgo_array8_Hshtbl),
|
|
0, 2, (jint)0x574L
|
|
};
|
|
|
|
#ifdef CHKALL_java_util_Hashtable
|
|
#include "jcgochke.h"
|
|
#endif
|
|
|
|
#endif
|