Skip to content

Commit 697df8c

Browse files
code tag
1 parent 42d796a commit 697df8c

File tree

5 files changed

+456
-23
lines changed

5 files changed

+456
-23
lines changed

include/memcached/types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct iovec {
3838
#define SUPPORT_BOP_SMGET
3939
#define JHPARK_OLD_SMGET_INTERFACE
4040
#define MAX_EFLAG_COMPARE_COUNT 100
41-
41+
#define CMD_IN_SECOND 1
4242

4343
#ifdef __cplusplus
4444
extern "C" {

m4/c99-backport.m4

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,19 @@ test_varargs (const char *format, ...)
8686
while (*format)
8787
{
8888
switch (*format++)
89-
{
90-
case 's': // string
91-
str = va_arg (args_copy, const char *);
92-
break;
93-
case 'd': // int
94-
number = va_arg (args_copy, int);
95-
break;
96-
case 'f': // float
97-
fnumber = va_arg (args_copy, double);
98-
break;
99-
default:
100-
break;
101-
}
89+
{
90+
case 's': // string
91+
str = va_arg (args_copy, const char *);
92+
break;
93+
case 'd': // int
94+
number = va_arg (args_copy, int);
95+
break;
96+
case 'f': // float
97+
fnumber = va_arg (args_copy, double);
98+
break;
99+
default:
100+
break;
101+
}
102102
}
103103
va_end (args_copy);
104104
va_end (args);
@@ -138,22 +138,22 @@ test_varargs (const char *format, ...)
138138
139139
// work around unused variable warnings
140140
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
141-
|| dynamic_array[ni.number - 1] != 543);
141+
|| dynamic_array[ni.number - 1] != 543);
142142
]],
143143
dnl Try
144-
dnl GCC -std=gnu99 (unused restrictive modes: -std=c99 -std=iso9899:1999)
145-
dnl AIX -qlanglvl=extc99 (unused restrictive mode: -qlanglvl=stdc99)
146-
dnl Intel ICC -c99
147-
dnl IRIX -c99
148-
dnl Solaris (unused because it causes the compiler to assume C99 semantics for
149-
dnl library functions, and this is invalid before Solaris 10: -xc99)
150-
dnl Tru64 -c99
144+
dnl GCC -std=gnu99 (unused restrictive modes: -std=c99 -std=iso9899:1999)
145+
dnl AIX -qlanglvl=extc99 (unused restrictive mode: -qlanglvl=stdc99)
146+
dnl Intel ICC -c99
147+
dnl IRIX -c99
148+
dnl Solaris (unused because it causes the compiler to assume C99 semantics for
149+
dnl library functions, and this is invalid before Solaris 10: -xc99)
150+
dnl Tru64 -c99
151151
dnl with extended modes being tried first.
152152
[[-std=gnu99 -c99 -qlanglvl=extc99]], [$1], [$2])[]dnl
153153
])# AC_PROG_CC_C99
154154

155155
# AC_C_STD_TRY(STANDARD, TEST-PROLOGUE, TEST-BODY, OPTION-LIST,
156-
# ACTION-IF-AVAILABLE, ACTION-IF-UNAVAILABLE)
156+
# ACTION-IF-AVAILABLE, ACTION-IF-UNAVAILABLE)
157157
# --------------------------------------------------------------
158158
# Check whether the C compiler accepts features of STANDARD (e.g `c89', `c99')
159159
# by trying to compile a program of TEST-PROLOGUE and TEST-BODY. If this fails,

0 commit comments

Comments
 (0)