Skip to content
Permalink
Browse files
Allow "q" to quit calculator, too.
--HG--
branch : calculator-experiment
  • Loading branch information
icculus committed Feb 8, 2010
1 parent 699bb51 commit 759929226a602f857ed65818b66763880c339d84
Showing with 2 additions and 0 deletions.
  1. +2 −0 calculator.c
@@ -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);

0 comments on commit 7599292

Please sign in to comment.