Browse Source

Test

etomic
jl777 8 years ago
parent
commit
3736a2f09f
  1. 4
      iguana/iguana_json.c

4
iguana/iguana_json.c

@ -86,7 +86,6 @@ cJSON *SuperNET_helpjson()
cJSON *array=0,*json,*agents;
json = cJSON_CreateObject();
agents = cJSON_CreateArray();
#ifndef WIN32
#define IGUANA_ARGS json,array,agents
#define IGUANA_HELP0(agent,name) array = helpjson(IGUANA_ARGS,#agent,#name,0)
#define IGUANA_HELP_S(agent,name,str) array = helpjson(IGUANA_ARGS,#agent,#name,helparray(cJSON_CreateArray(),helpitem(#str,"string")))
@ -195,7 +194,6 @@ cJSON *SuperNET_helpjson()
#undef IGUANA_ARGS
#undef _IGUANA_APIDEC_H_
#include "../includes/iguana_apiundefs.h"
#endif
if ( array != 0 )
jadd(json,"API",array);
@ -649,4 +647,4 @@ char *SuperNET_parser2(struct supernet_info *myinfo, char *agentstr, char *metho
return(clonestr(errstr));
}
#endif
#endif

Loading…
Cancel
Save