Go to the source code of this file.
◆ copyTable()
◆ htable_Print()
Definition at line 107 of file htable.cc.
108{
113 int cnt=0;int cnt2=0;
114 for(
int i=0;
i<lt->
max;
i++)
115 {
117 {
118 cnt++;
120 while(
p!=
NULL) { cnt2++;
p=
p->next;}
121 }
122 }
123 Print(
"%d columns, %d entries, size:%d",cnt,cnt2,lt->
max);
124}
const CanonicalForm int s
char * stringTable(stablerec *t)
void PrintS(const char *s)
◆ stringTable()
Definition at line 48 of file htable.cc.
49{
52 for(
int i=t->
max-1;
i>=0;
i--)
53 {
56 {
64 }
65 }
67}
void StringSetS(const char *st)
void StringAppendS(const char *st)
◆ t_addTable()
add a new entry (key s, data v) to table t, eats s, copies v
add a new entry (key s, data v) to table t
Definition at line 92 of file htable.cc.
93{
100 p->val.data=
v->CopyD();
105}
const Variable & v
< [in] a sqrfree bivariate poly
uint32_t hashlittle(const void *key, size_t length)
◆ t_createTable()
◆ t_destroyTable()
Definition at line 20 of file htable.cc.
21{
24 {
25 for(
int i=t->
max-1;
i>=0;
i--)
26 {
29 {
35 }
36 }
39 }
40}
#define omFreeSize(addr, size)
◆ t_findTabelVal()
find the data to key s
Definition at line 84 of file htable.cc.
85{
89}
telem t_findTable(stablerec *t, const char *s)
find the entry to key s
◆ t_findTable()
find the entry to key s
Definition at line 70 of file htable.cc.
71{
76 {
77 if (strcmp(
s,
p->key)==0)
return p;
79 }
81}