Fix breakpoint bug
This commit is contained in:
7
bfckr.c
7
bfckr.c
@@ -53,6 +53,7 @@ char *colortheme[] = {
|
||||
"\e[1;32m-\e[0m", // green -
|
||||
"\e[1;31m.\e[0m", // red .
|
||||
"\e[1;31m,\e[0m", // red ,
|
||||
"\e[1;31m#\e[0m", // red #
|
||||
};
|
||||
|
||||
// Colorize instructions
|
||||
@@ -85,6 +86,9 @@ char *colorize(char c)
|
||||
case ',':
|
||||
cs = colortheme[7];
|
||||
break;
|
||||
default:
|
||||
cs = colortheme[8];
|
||||
break;
|
||||
}
|
||||
|
||||
return cs;
|
||||
@@ -359,6 +363,9 @@ int main(int argc, char* argv[])
|
||||
// try to interpret it
|
||||
bfuck_execute(&bf);
|
||||
|
||||
// test
|
||||
printf("\n");
|
||||
|
||||
// exit
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user