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
88bc7687
Commit
88bc7687
authored
Jan 19, 2023
by
Vitaly Arbuzov
Browse files
remove typedef from concrete dictEntry declaration
parent
394f6aaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dict.c
View file @
88bc7687
...
@@ -60,7 +60,7 @@ static dictResizeEnable dict_can_resize = DICT_RESIZE_ENABLE;
...
@@ -60,7 +60,7 @@ static dictResizeEnable dict_can_resize = DICT_RESIZE_ENABLE;
static
unsigned
int
dict_force_resize_ratio
=
5
;
static
unsigned
int
dict_force_resize_ratio
=
5
;
/* -------------------------- types ----------------------------------------- */
/* -------------------------- types ----------------------------------------- */
typedef
struct
dictEntry
{
struct
dictEntry
{
void
*
key
;
void
*
key
;
union
{
union
{
void
*
val
;
void
*
val
;
...
@@ -69,7 +69,7 @@ typedef struct dictEntry {
...
@@ -69,7 +69,7 @@ typedef struct dictEntry {
double
d
;
double
d
;
}
v
;
}
v
;
struct
dictEntry
*
next
;
/* Next entry in the same hash bucket. */
struct
dictEntry
*
next
;
/* Next entry in the same hash bucket. */
}
dictEntry
;
};
typedef
struct
{
typedef
struct
{
void
*
key
;
void
*
key
;
...
...
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