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

Elimianted silly comparison in SKIP_CHAR macro.

parent d24168f3
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ typedef struct { ...@@ -142,7 +142,7 @@ typedef struct {
/* ASCIIZ char* parsing helper macros */ /* ASCIIZ char* parsing helper macros */
#define SKIP_WHITESPACE(p) while(*p && isspace(*p)) p++; #define SKIP_WHITESPACE(p) while(*p && isspace(*p)) p++;
#define FIND_WHITESPACE(p) while(*p && !isspace(*p)) p++; #define FIND_WHITESPACE(p) while(*p && !isspace(*p)) p++;
#define SKIP_CHAR(p,c) while(*p && *p==c) p++; #define SKIP_CHAR(p,c) while(*p==c) p++;
#define FIND_CHAR(p,c) while(*p && *p!=c) p++; #define FIND_CHAR(p,c) while(*p && *p!=c) p++;
#define SKIP_CHARSET(p,s) while(*p && strchr(s,*p)!=NULL) p++; #define SKIP_CHARSET(p,s) while(*p && strchr(s,*p)!=NULL) p++;
#define FIND_CHARSET(p,s) while(*p && strchr(s,*p)==NULL) p++; #define FIND_CHARSET(p,s) while(*p && strchr(s,*p)==NULL) p++;
......
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