diff options
author | Akim Demaille <demaille@gostai.com> | 2012-02-17 15:49:03 +0100 |
---|---|---|
committer | Akim Demaille <demaille@gostai.com> | 2012-02-17 15:49:52 +0100 |
commit | 578e34133a8b51febc66f715b7567a3d2cf30b8e (patch) | |
tree | 64888a9cfd77dfaa44833352fed1a32eb2ff028f | |
parent | 5a9c6b89d0cd97f514383bc555a2c14f59bd9c3b (diff) | |
download | bison-578e34133a8b51febc66f715b7567a3d2cf30b8e.tar.gz |
doc: mfcalc: fix includes.
* doc/bison.texinfo: math.h is needed early.
-rw-r--r-- | doc/bison.texinfo | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/bison.texinfo b/doc/bison.texinfo index f39f79ec..cd687b90 100644 --- 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 @}, |