some clarification

This commit is contained in:
2022-10-23 02:20:19 -04:00
parent 370857104a
commit c2c34e0f85
4 changed files with 9 additions and 7 deletions
+5 -5
View File
@@ -44,11 +44,11 @@ check_arg(char **argv){
return 0; /* syntax error */
break;
default: /* >= INLPAREN */
if(SCMPFLAT(*argv, R_PAREN)){
--s;
terms += s == NORMAL;
}else if(SCMPFLAT(*argv, L_PAREN)) /* ineligant */
++s;
if(argv[0][1] == '\0'){
s -= (argv[0][0] == R_PAREN);
terms += (argv[0][0] == R_PAREN && s == NORMAL);
s += (argv[0][0] == L_PAREN);
}
break;
}