From 759929226a602f857ed65818b66763880c339d84 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 8 Feb 2010 03:33:12 -0500 Subject: [PATCH] Allow "q" to quit calculator, too. --HG-- branch : calculator-experiment --- calculator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/calculator.c b/calculator.c index d284de40..ef1fee3d 100644 --- a/calculator.c +++ b/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);