From 4f2ae90b2826d2b87c2ff50ba13c0a0c7bb18eb0 Mon Sep 17 00:00:00 2001 From: Will Estes Date: Wed, 5 Aug 2015 15:27:37 -0400 Subject: add %{...%} block to example in manual --- doc/flex.texi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/flex.texi b/doc/flex.texi index 825add3..c7edce6 100644 --- a/doc/flex.texi +++ b/doc/flex.texi @@ -4910,8 +4910,10 @@ custom allocator through @code{yyextra}. %option reentrant /* Initialize the allocator. */ +%{ #define YY_EXTRA_TYPE struct allocator* #define YY_USER_INIT yyextra = allocator_create(); +%} %% .|\n ; -- cgit v1.2.3