projects
/
bison.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5a9c6b8
)
doc: mfcalc: fix includes.
author
Akim Demaille
<demaille@gostai.com>
Fri, 17 Feb 2012 14:49:03 +0000
(15:49 +0100)
committer
Akim Demaille
<demaille@gostai.com>
Fri, 17 Feb 2012 14:49:52 +0000
(15:49 +0100)
* doc/bison.texinfo: math.h is needed early.
doc/bison.texinfo
patch
|
blob
|
blame
|
history
diff --git
a/doc/bison.texinfo
b/doc/bison.texinfo
index f39f79ec0bb16718294d1d1d620c74cc40b23ae1..cd687b90c29fc606e112c8b63d113229ce52fbdc 100644
(file)
--- a/
doc/bison.texinfo
+++ b/
doc/bison.texinfo
@@
-2336,6
+2336,7
@@
Here are the C and Bison declarations for the multi-function calculator.
@group
%@{
#include <stdio.h> /* For printf, etc. */
+ #include <math.h> /* For pow, used in the grammar. */
#include "calc.h" /* Contains definition of `symrec'. */
int yylex (void);
void yyerror (char const *);
@@
-2484,7
+2485,6
@@
struct init
@end group
@group
-#include <math.h> /* Math functions, cos(), sin(), etc. */
struct init const arith_fncts[] =
@{
@{ "atan", atan @},