~thomir-deactivatedaccount/drizzle/drizzle-fix-bug653747

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2010-10-10 02:07:52 UTC
  • mfrom: (1827.2.3 staging)
  • Revision ID: brian@tangent.org-20101010020752-ktv73isay5dxtvp3
Merge in switch on table_share_instance inheritance.

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
 
}