Skip to content
Snippets Groups Projects
Commit 2991b02e authored by rswindell's avatar rswindell
Browse files

FREE_AR and nular are not required for SCFG now.

parent d37f64e0
No related branches found
No related tags found
No related merge requests found
......@@ -52,17 +52,17 @@ extern "C" {
#endif
extern const char* scfgnulstr;
extern const uchar* nular;
#define FREE_AND_NULL(x) if(x!=NULL) { FREE(x); x=NULL; }
/* allocated with arstr() */
#define FREE_AR(x) if(x!=NULL && x!=nular) { FREE(x); x=NULL; }
#if defined(SCFG) /* Don't compile AR strings for SCFG */
#define ARSTR(str,cfg) NULL
#define FREE_AR(x)
#else
extern const uchar* nular;
#define ARSTR(str,cfg) arstr(NULL,str,cfg)
/* allocated with arstr() */
#define FREE_AR(x) if(x!=NULL && x!=nular) { FREE(x); x=NULL; }
#endif
char* get_alloc(long *offset, char *outstr, int maxlen, FILE *instream);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment