Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
d786fb6e
Commit
d786fb6e
authored
May 18, 2012
by
xiaoyu
Committed by
antirez
Aug 18, 2014
Browse files
Clarify argument to dict macro
d is more clear because the type of argument is dict not dictht Closes #513
parent
6a7a32a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dict.h
View file @
d786fb6e
...
...
@@ -142,7 +142,7 @@ typedef void (dictScanFunction)(void *privdata, const dictEntry *de);
#define dictGetDoubleVal(he) ((he)->v.d)
#define dictSlots(d) ((d)->ht[0].size+(d)->ht[1].size)
#define dictSize(d) ((d)->ht[0].used+(d)->ht[1].used)
#define dictIsRehashing(
ht
) ((
ht
)->rehashidx != -1)
#define dictIsRehashing(
d
) ((
d
)->rehashidx != -1)
/* API */
dict
*
dictCreate
(
dictType
*
type
,
void
*
privDataPtr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment