Get rid of extra %noyyalloc etc. stuff.
Change-Id: I2af498202981a43d0f50cf014fba9116875d2819 Reviewed-on: https://code.wireshark.org/review/14824 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
dae23a107f
commit
8faeee79a4
|
@ -33,8 +33,9 @@
|
|||
* "unused argument" warnings from the yyscanner argument (which
|
||||
* we don't use, as we have a global memory allocator).
|
||||
*
|
||||
* We provide our own versions of the routines generated by Flex, which
|
||||
* have a "yes, this is unused, don't complain about it" flag for yyscanner.
|
||||
* We provide, as macros, our own versions of the routines generated by Flex,
|
||||
* which just call malloc()/realloc()/free() (as the Flex versions do),
|
||||
* discarding the extra argument.
|
||||
*/
|
||||
%option noyyalloc
|
||||
%option noyyrealloc
|
||||
|
@ -46,19 +47,6 @@
|
|||
*/
|
||||
%option prefix="uat_load_"
|
||||
|
||||
/*
|
||||
* We have to override the memory allocators so that we don't get
|
||||
* "unused argument" warnings from the yyscanner argument (which
|
||||
* we don't use, as we have a global memory allocator).
|
||||
*
|
||||
* We provide, as macros, our own versions of the routines generated by Flex,
|
||||
* which just call malloc()/realloc()/free() (as the Flex versions do),
|
||||
* discarding the extra argument.
|
||||
*/
|
||||
%option noyyalloc
|
||||
%option noyyrealloc
|
||||
%option noyyfree
|
||||
|
||||
%{
|
||||
/*
|
||||
* uat_load.l
|
||||
|
|
Loading…
Reference in New Issue