~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/pars/lexyy.c

  • Committer: Monty Taylor
  • Date: 2008-07-05 22:08:52 UTC
  • mto: This revision was merged to the branch mainline in revision 77.
  • Revision ID: monty@inaugust.com-20080705220852-cqd9t6tfkhvlcf73
Removed HAVE_LONG_LONG, as this is now assumed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2600
2600
 
2601
2601
/* Accessor  methods (get/set functions) to struct members. */
2602
2602
 
 
2603
/** Get the current line number.
 
2604
 * 
 
2605
 */
 
2606
int yyget_lineno  (void)
 
2607
{
 
2608
        
 
2609
    return yylineno;
 
2610
}
 
2611
 
 
2612
/** Get the input stream.
 
2613
 * 
 
2614
 */
 
2615
FILE *yyget_in  (void)
 
2616
{
 
2617
        return yyin;
 
2618
}
 
2619
 
 
2620
/** Get the output stream.
 
2621
 * 
 
2622
 */
 
2623
FILE *yyget_out  (void)
 
2624
{
 
2625
        return yyout;
 
2626
}
 
2627
 
 
2628
/** Get the length of the current token.
 
2629
 * 
 
2630
 */
 
2631
int yyget_leng  (void)
 
2632
{
 
2633
        return yyleng;
 
2634
}
 
2635
 
 
2636
/** Get the current token.
 
2637
 * 
 
2638
 */
 
2639
 
 
2640
char *yyget_text  (void)
 
2641
{
 
2642
        return yytext;
 
2643
}
 
2644
 
 
2645
/** Set the current line number.
 
2646
 * @param line_number
 
2647
 * 
 
2648
 */
 
2649
void yyset_lineno (int  line_number )
 
2650
{
 
2651
    
 
2652
    yylineno = line_number;
 
2653
}
 
2654
 
 
2655
/** Set the input stream. This does not discard the current
 
2656
 * input buffer.
 
2657
 * @param in_str A readable stream.
 
2658
 * 
 
2659
 * @see yy_switch_to_buffer
 
2660
 */
 
2661
void yyset_in (FILE *  in_str )
 
2662
{
 
2663
        yyin = in_str ;
 
2664
}
 
2665
 
 
2666
void yyset_out (FILE *  out_str )
 
2667
{
 
2668
        yyout = out_str ;
 
2669
}
 
2670
 
 
2671
int yyget_debug  (void)
 
2672
{
 
2673
        return yy_flex_debug;
 
2674
}
 
2675
 
 
2676
void yyset_debug (int  bdebug )
 
2677
{
 
2678
        yy_flex_debug = bdebug ;
 
2679
}
 
2680
 
 
2681
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
 
2682
int yylex_destroy  (void)
 
2683
{
 
2684
    
 
2685
    /* Pop the buffer stack, destroying each element. */
 
2686
        while(YY_CURRENT_BUFFER){
 
2687
                yy_delete_buffer(YY_CURRENT_BUFFER  );
 
2688
                YY_CURRENT_BUFFER_LVALUE = NULL;
 
2689
                yypop_buffer_state();
 
2690
        }
 
2691
 
 
2692
        /* Destroy the stack itself. */
 
2693
        yyfree((yy_buffer_stack) );
 
2694
        (yy_buffer_stack) = NULL;
 
2695
 
 
2696
    return 0;
 
2697
}
2603
2698
 
2604
2699
/*
2605
2700
 * Internal utility routines.