diff options
author | bapt <bapt@FreeBSD.org> | 2012-04-30 21:02:57 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-04-30 21:02:57 +0000 |
commit | 0ab5229941284beb42ae9a306ce80110115de611 (patch) | |
tree | 6a7631ea9113427fdd8d9feb9e81d7dfcde5c62d /usr.bin/m4 | |
parent | dbcc3abc523ff7cb6a79aff875fce65fdb715261 (diff) | |
download | FreeBSD-src-0ab5229941284beb42ae9a306ce80110115de611.zip FreeBSD-src-0ab5229941284beb42ae9a306ce80110115de611.tar.gz |
Respect mathematical operation order piority with the exponent gnu extension
Obtained from: OpenBSD
Approved by: des (mentor)
Diffstat (limited to 'usr.bin/m4')
-rw-r--r-- | usr.bin/m4/parser.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/m4/parser.y b/usr.bin/m4/parser.y index deda962..21243bb 100644 --- a/usr.bin/m4/parser.y +++ b/usr.bin/m4/parser.y @@ -17,8 +17,8 @@ * * $FreeBSD$ */ -#include <stdint.h> #include <math.h> +#include <stdint.h> #define YYSTYPE int32_t extern int32_t end_result; extern int yylex(void); @@ -35,9 +35,9 @@ extern int yyparse(void); %left EQ NE %left '<' LE '>' GE %left LSHIFT RSHIFT -%right EXPONENT %left '+' '-' %left '*' '/' '%' +%right EXPONENT %right UMINUS UPLUS '!' '~' %% |