mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 10:13:03 +00:00
doc: mfcalc: fix includes.
* doc/bison.texinfo: math.h is needed early.
This commit is contained in:
@@ -2336,6 +2336,7 @@ Here are the C and Bison declarations for the multi-function calculator.
|
|||||||
@group
|
@group
|
||||||
%@{
|
%@{
|
||||||
#include <stdio.h> /* For printf, etc. */
|
#include <stdio.h> /* For printf, etc. */
|
||||||
|
#include <math.h> /* For pow, used in the grammar. */
|
||||||
#include "calc.h" /* Contains definition of `symrec'. */
|
#include "calc.h" /* Contains definition of `symrec'. */
|
||||||
int yylex (void);
|
int yylex (void);
|
||||||
void yyerror (char const *);
|
void yyerror (char const *);
|
||||||
@@ -2484,7 +2485,6 @@ struct init
|
|||||||
@end group
|
@end group
|
||||||
|
|
||||||
@group
|
@group
|
||||||
#include <math.h> /* Math functions, cos(), sin(), etc. */
|
|
||||||
struct init const arith_fncts[] =
|
struct init const arith_fncts[] =
|
||||||
@{
|
@{
|
||||||
@{ "atan", atan @},
|
@{ "atan", atan @},
|
||||||
|
|||||||
Reference in New Issue
Block a user