Lines Matching refs:d
48 void show(dict *d) { in show() argument
50 if (d->rehashidx != -1) { in show()
52 for (j = 0; j < d->rehashidx; j++) in show()
57 showBuckets(d->ht[0]); in show()
59 showBuckets(d->ht[1]); in show()
71 void stressGetKeys(dict *d, int times, int *perfect_run, int *approx_run) { in stressGetKeys() argument
74 dictEntry **des = zmalloc(sizeof(dictEntry*)*dictSize(d)); in stressGetKeys()
76 int requested = rand() % (dictSize(d)+1); in stressGetKeys()
77 int returned = dictGetSomeKeys(d, des, requested); in stressGetKeys()
102 dict *d = dictCreate(&dictTypeTest,NULL); in main() local
107 dictAdd(d,(void*)i,NULL); in main()
108 show(d); in main()
110 printf("Size: %d\n", (int)dictSize(d)); in main()
113 dictDelete(d,(void*)i); in main()
114 dictResize(d); in main()
115 show(d); in main()
117 dictRelease(d); in main()
119 d = dictCreate(&dictTypeTest,NULL); in main()
125 dictAdd(d,(void*)i,NULL); in main()
126 stressGetKeys(d,100,&perfect_run,&approx_run); in main()
130 dictDelete(d,(void*)i); in main()
131 dictResize(d); in main()
132 stressGetKeys(d,100,&perfect_run,&approx_run); in main()
138 dictRelease(d); in main()