~fallenpegasus/drizzle/logcsv

« back to all changes in this revision

Viewing changes to plugin/innobase/pars/pars0lex.l

  • Committer: lbieber at stabletransit
  • Date: 2010-10-13 16:20:08 UTC
  • mfrom: (1843.1.3 build)
  • Revision ID: lbieber@drizzle-build-n02.wc1.dfw1.stabletransit.com-20101013162008-qi2e6k5yvfm16964
Merge Stewart - update innobase plugin to be based on innodb_plugin 1.0.6
Merge Monty - more valgrind cleanup
Merge Monty - Moved libdrizzle api listings from doxygen to sphinx

Show diffs side-by-side

added added

removed removed

Lines of Context:
647
647
}
648
648
 
649
649
%%
 
650
 
 
651
/* yylex_destroy() is not defined before Flex 2.5.9
 
652
   so we attempt to define something that should be good enough
 
653
   for old Flex - such as that found on CentOS 5
 
654
*/
 
655
#if !defined(YY_FLEX_MAJOR_VERSION) || YY_FLEX_MAJOR_VERSION < 2 \
 
656
  || (YY_FLEX_MAJOR_VERSION == 2                                        \
 
657
      && (!defined(YY_FLEX_MINOR_VERSION) || YY_FLEX_MINOR_VERSION < 5  \
 
658
          || (YY_FLEX_MINOR_VERSION == 5                                \
 
659
              && (!defined(YY_FLEX_SUBMINOR_VERSION)                    \
 
660
                  || YY_FLEX_SUBMINOR_VERSION < 9))))
 
661
# define yylex_destroy() yy_delete_buffer(YY_CURRENT_BUFFER)
 
662
#endif
 
663
 
 
664
/**********************************************************************
 
665
Release any resources used by the lexer. */
 
666
UNIV_INTERN
 
667
void
 
668
pars_lexer_close(void)
 
669
/*==================*/
 
670
{
 
671
        yylex_destroy();
 
672
        free(stringbuf);
 
673
        stringbuf = NULL;
 
674
        stringbuf_len_alloc = stringbuf_len = 0;
 
675
}