Trying, tyring
This commit is contained in:
parent
97fab40dd3
commit
2cbfbb835f
@ -74,7 +74,7 @@ void read_input(LinkedNode** head){
|
|||||||
push(head, buff[i]);}
|
push(head, buff[i]);}
|
||||||
if(buff[i] == '>' || buff[i] == '}' || buff[i] == ']' || buff[i] == ')'){
|
if(buff[i] == '>' || buff[i] == '}' || buff[i] == ']' || buff[i] == ')'){
|
||||||
if(*head == NULL){
|
if(*head == NULL){
|
||||||
printf("Read %sUnexpected closing bracket %c in %d\n", buff, buff[i], i);
|
printf("Read: %sUnexpected closing bracket %c in %d\n", buff, buff[i], i);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
char popped = pop(head);
|
char popped = pop(head);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user