doc: mfcalc: fix includes.
authorAkim Demaille <demaille@gostai.com>
Fri, 17 Feb 2012 14:49:03 +0000 (15:49 +0100)
committerAkim 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

index f39f79ec0bb16718294d1d1d620c74cc40b23ae1..cd687b90c29fc606e112c8b63d113229ce52fbdc 100644 (file)
@@ -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 @},