Added basic compression on input

This commit is contained in:
Devine Lu Linvega 2024-04-07 15:32:53 -07:00
parent 6cb6c810d9
commit 4798fe53a5
1 changed files with 2 additions and 4 deletions

View File

@ -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;