Added basic compression on input
This commit is contained in:
parent
6cb6c810d9
commit
4798fe53a5
|
@ -226,10 +226,8 @@ main(int argc, char **argv)
|
|||
return !printf("Invalid Modal file: %s.\n", argv[1]);
|
||||
while(fread(&c, 1, 1, f)) {
|
||||
if(w > bank_a) {
|
||||
/* if(c == ')' && *(w - 1) == ' ') w--; */
|
||||
/* if(c == '(' && *(w - 1) == ' ') w--; */
|
||||
/* if(c == ' ' && *(w - 1) == '(') continue; */
|
||||
/* if(c == ' ' && *(w - 1) == ')') continue; */
|
||||
if(c == ' ' && *(w - 1) == '(') continue;
|
||||
if(c == ')' && *(w - 1) == ' ') w--;
|
||||
if(c == ' ' && *(w - 1) == ' ') w--;
|
||||
}
|
||||
*w++ = c;
|
||||
|
|
Loading…
Reference in New Issue