diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-04-19 10:48:07 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-04-19 10:48:07 +0000 |
commit | 95094606112ebb3f0313e5eecc28e293bba3d6bc (patch) | |
tree | d4b76c94319da94c0c4021ac292270dfe9b1e2db /math/moo/files/patch-moo.y | |
parent | - Update to 2.9.1 (diff) |
moo is a simple calculator that accepts C-like syntax as input.
Calculations are done on expr, if given. Otherwise, the standard input is used.
Numbers can be entered in hexadecimal (0xbeef), decimal (1984), octal (007),
and binary (0b1001). All numerical operators (+, -, *, /, %), bit operators
(|, ^, &, ~, <<, >>), and logical operators (==, !=, <, >, <=, >=, !, &&, ||)
are supported.
WWW: http://cyth.net/~ray/moo/
PR: ports/111824
Submitted by: Steven Kreuzer <skreuzer at f2o.org>
Notes
Notes:
svn path=/head/; revision=190340
Diffstat (limited to 'math/moo/files/patch-moo.y')
-rw-r--r-- | math/moo/files/patch-moo.y | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/math/moo/files/patch-moo.y b/math/moo/files/patch-moo.y new file mode 100644 index 000000000000..14776a3a6668 --- /dev/null +++ b/math/moo/files/patch-moo.y @@ -0,0 +1,11 @@ +--- moo.y.orig Thu Apr 5 14:14:22 2007 ++++ moo.y Thu Apr 5 14:14:29 2007 +@@ -37,7 +37,7 @@ + + static void divbyzero(void); + static void printnum(int64_t); +-__dead static void usage(void); ++__dead2 static void usage(void); + void yyerror(char *); + int yylex(void); + int yyparse(void); |