Skip to content

Commit

Permalink
Allow "q" to quit calculator, too.
Browse files Browse the repository at this point in the history
--HG--
branch : calculator-experiment
  • Loading branch information
icculus committed Feb 8, 2010
1 parent 699bb51 commit 7599292
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions calculator.c
Expand Up @@ -414,6 +414,8 @@ int main(int argc, char **argv)
{
if ((len == 5) && (memcmp(ln, "quit\n", 5) == 0))
break;
else if ((len == 2) && (memcmp(ln, "q\n", 2) == 0))
break;

MOJOSHADER_compile(filename, ln, (unsigned int) len,
NULL, 0, NULL, NULL, NULL, NULL, NULL);
Expand Down

0 comments on commit 7599292

Please sign in to comment.