Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 103e0bd1 authored by deuce's avatar deuce

Nested macro goodness.

parent b3f366ff
......@@ -126,14 +126,14 @@ extern int thread_suid_broken; /* NPTL is no longer broken */
{ \
size_t len; \
size_t pos; \
const jschar *val; \
const jschar *strval; \
\
ret=NULL; \
if(str != NULL) { \
if((val=JS_GetStringCharsAndLength(cx, str, &len))) { \
if((strval=JS_GetStringCharsAndLength(cx, str, &len))) { \
if((ret=(char *)alloca(len+1))) { \
for(pos=0; pos<len; pos++) \
ret[pos]=val[pos]; \
ret[pos]=strval[pos]; \
ret[len]=0; \
} \
} \
......@@ -142,7 +142,7 @@ extern int thread_suid_broken; /* NPTL is no longer broken */
#define JSVALUE_TO_STRING(cx, val, ret) \
{ \
JSString str=JS_ValueToString(cx, val); \
JSString *str=JS_ValueToString(cx, val); \
JSSTRING_TO_STRING(cx, str, ret); \
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment