8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 06:03:02 +01:00
This commit is contained in:
asfernandes 2008-01-29 02:28:06 +00:00
parent de8771570f
commit f82ea85c3c
2 changed files with 5 additions and 5 deletions

View File

@ -50,7 +50,7 @@ static Firebird::GlobalPtr<Firebird::Mutex> hash_mutex;
**/ **/
void HSHD_init(void) void HSHD_init()
{ {
UCHAR* p = (UCHAR *) gds__alloc(sizeof(DSQL_SYM) * HASH_SIZE); UCHAR* p = (UCHAR *) gds__alloc(sizeof(DSQL_SYM) * HASH_SIZE);
// This is appropriate to throw exception here, callers check for it // This is appropriate to throw exception here, callers check for it
@ -78,7 +78,7 @@ void HSHD_init(void)
**/ **/
void HSHD_debug(void) void HSHD_debug()
{ {
Firebird::MutexLockGuard guard(hash_mutex); Firebird::MutexLockGuard guard(hash_mutex);
@ -114,7 +114,7 @@ void HSHD_debug(void)
**/ **/
void HSHD_fini(void) void HSHD_fini()
{ {
for (SSHORT i = 0; i < HASH_SIZE; i++) for (SSHORT i = 0; i < HASH_SIZE; i++)
{ {

View File

@ -24,9 +24,9 @@
#ifndef DSQL_HSH_PROTO_H #ifndef DSQL_HSH_PROTO_H
#define DSQL_HSH_PROTO_H #define DSQL_HSH_PROTO_H
void HSHD_fini(void); void HSHD_fini();
void HSHD_finish(const void*); void HSHD_finish(const void*);
void HSHD_init(void); void HSHD_init();
void HSHD_insert(dsql_sym*); void HSHD_insert(dsql_sym*);
DSQL_SYM HSHD_lookup(const void*, const TEXT*, SSHORT, SYM_TYPE, USHORT); DSQL_SYM HSHD_lookup(const void*, const TEXT*, SSHORT, SYM_TYPE, USHORT);
void HSHD_remove(dsql_sym*); void HSHD_remove(dsql_sym*);