updated check_expr via 8322 (refactoring of expression checking impl); elfring contributed a nice code reorg, I contributed some time to get it working again, better messages
"Trouble? Unterminated double quote found at line %d\n",
global_lineno);
}
else{
oplen=1;
break;
case'>':
case'<':
case'!':
if((*(cp+1)=='=')
&&(((cp>buffer)&&(*(cp-1)!=''))||(*(cp+2)!='')))
{
charmsg[200];
snprintf(msg,
sizeof(msg),
"WARNING: line %d: '%c%c' operator not separated by spaces. This may lead to confusion. You may wish to use double quotes to quote the grouping it is in. Please check!\n",
global_lineno,*cp,*(cp+1));
strcat(error_report,msg);
++global_warn_count;
++warn_found;
}
break;
if((cp>buffer&&*(cp-1)!='')||*(cp+oplen)!=''){
chartbuf[1000];
if(oplen==1)
sprintf(tbuf,"WARNING: line %d, '%c' operator not separated by spaces. This may lead to confusion. You may wish to use double quotes to quote the grouping it is in. Please check!\n",
global_lineno,*cp);
else
sprintf(tbuf,"WARNING: line %d, '%c%c' operator not separated by spaces. This may lead to confusion. You may wish to use double quotes to quote the grouping it is in. Please check!\n",
global_lineno,*cp,*(cp+1));
strcat(error_report,tbuf);
global_warn_count++;
warn_found++;
case'|':
case'&':
case'=':
case'+':
case'-':
case'*':
case'/':
case'%':
case'?':
case':':
if(((cp>buffer)&&(*(cp-1)!=''))||(*(cp+1)!=''))
{
charmsg[200];
snprintf(msg,
sizeof(msg),
"WARNING: line %d: '%c' operator not separated by spaces. This may lead to confusion. You may wish to use double quotes to quote the grouping it is in. Please check!\n",