flex lexer - lex : How to override YY_BUF_SIZE -
according manual yy_buf_size 16k , need override it. however, manual not specify how override it, nor find command line option this. can please indicate how change this. in generated source yy_buf_size defined follows:
#ifndef yy_buf_size #define yy_buf_size 16384 #endif so there may way override before this.
in own code, #define yy_buf_size whatever value want. long compile code compiler sees definition first, #ifndef guard prevent default value being set.
Comments
Post a Comment