From 578e34133a8b51febc66f715b7567a3d2cf30b8e Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 17 Feb 2012 15:49:03 +0100 Subject: [PATCH] doc: mfcalc: fix includes. * doc/bison.texinfo: math.h is needed early. --- doc/bison.texinfo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 /* For printf, etc. */ + #include /* 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 functions, cos(), sin(), etc. */ struct init const arith_fncts[] = @{ @{ "atan", atan @}, -- 2.47.2