From: xchaos Date: Sat, 29 Dec 2007 00:17:11 +0000 (+0000) Subject: odstranen warning: suggest parentheses around && within || X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=c51ba0ed88286567e6ff1904a6dcae0e06a324d1;p=svn%2FPrometheus-QoS%2F.git odstranen warning: suggest parentheses around && within || git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@27 251d49ef-1d17-4917-a970-b30cf55b089b --- diff --git a/cll1.h b/cll1.h index 6f07bd6..3b7f748 100644 --- a/cll1.h +++ b/cll1.h @@ -76,7 +76,7 @@ #define duplicate(A,B) if(A) { string(B,strlen(A)+1); strcpy(B,A); } #define concatenate(A,B,C) if (A && B) { string(C,strlen(A)+strlen(B)+1); strcpy(C,A); strcat(C,B); } #define suffix(A,B,C) (((A=strrchr(B,C))&&!(*(A++)=0))||(A=B)) -#define prefix(A,B,C) ((A=B)&&((B=strchr(B,C))&&!(*(B++)=0)||(B=A))) +#define prefix(A,B,C) ((A=B)&&(((B=strchr(B,C))&&!(*(B++)=0))||(B=A))) #define gotoalpha(CHAR) if(CHAR)while(*CHAR && !isalpha(*CHAR))CHAR++ #define goto_alpha(CHAR) if(CHAR)while(*CHAR && !isalpha(*CHAR) && *CHAR!='_')CHAR++ #define gotoalnum(CHAR) if(CHAR)while(*CHAR && !isalnum(*CHAR))CHAR++