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
53f8c2c7
Commit
53f8c2c7
authored
Mar 27, 2009
by
antirez
Browse files
now Redis is C99-ok
parent
17be1a4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
53f8c2c7
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# This file is released under the BSD license, see the COPYING file
# This file is released under the BSD license, see the COPYING file
DEBUG
?=
-g
DEBUG
?=
-g
CFLAGS
?=
-O2
-Wall
-W
-DSDS_ABORT_ON_OOM
CFLAGS
?=
-std
=
c99
-pedantic
-O2
-Wall
-W
-DSDS_ABORT_ON_OOM
CCOPT
=
$(CFLAGS)
CCOPT
=
$(CFLAGS)
OBJ
=
adlist.o ae.o anet.o dict.o redis.o sds.o zmalloc.o
OBJ
=
adlist.o ae.o anet.o dict.o redis.o sds.o zmalloc.o
...
...
sds.h
View file @
53f8c2c7
...
@@ -38,7 +38,7 @@ typedef char *sds;
...
@@ -38,7 +38,7 @@ typedef char *sds;
struct
sdshdr
{
struct
sdshdr
{
long
len
;
long
len
;
long
free
;
long
free
;
char
buf
[
0
];
char
buf
[];
};
};
sds
sdsnewlen
(
const
void
*
init
,
size_t
initlen
);
sds
sdsnewlen
(
const
void
*
init
,
size_t
initlen
);
...
...
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