doc: mfcalc: fix includes.
[bison.git] / 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 @},