~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/pars0pars.h

  • Committer: Brian Aker
  • Date: 2010-10-13 02:49:48 UTC
  • mto: This revision was merged to the branch mainline in revision 1853.
  • Revision ID: brian@tangent.org-20101013024948-xwel5qe6z7j21w73
Cleans up namespace for locks (now per user).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (C) 1996, 2010, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1996, 2009, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
106
106
        const char*     str);   /*!< in: SQL string */
107
107
/*************************************************************//**
108
108
Retrieves characters to the lexical analyzer. */
109
 
#ifdef __cplusplus
110
 
extern "C"
111
 
#endif
112
109
UNIV_INTERN
113
110
void
114
111
pars_get_lex_chars(
524
521
 
525
522
char buf[8];
526
523
mach_write_to_8(buf, val);
527
 
pars_info_add_literal(info, name, buf, 8, DATA_FIXBINARY, 0);
 
524
pars_info_add_literal(info, name, buf, 8, DATA_BINARY, 0);
528
525
 
529
526
except that the buffer is dynamically allocated from the info struct's
530
527
heap. */
531
528
UNIV_INTERN
532
529
void
533
 
pars_info_add_ull_literal(
534
 
/*======================*/
 
530
pars_info_add_dulint_literal(
 
531
/*=========================*/
535
532
        pars_info_t*    info,           /*!< in: info struct */
536
533
        const char*     name,           /*!< in: name */
537
 
        ib_uint64_t     val);           /*!< in: value */
 
534
        dulint          val);           /*!< in: value */
538
535
/****************************************************************//**
539
536
Add user function. */
540
537
UNIV_INTERN
586
583
        pars_info_t*            info,   /*!< in: info struct */
587
584
        const char*             name);  /*!< in: bound id name to find */
588
585
 
589
 
/******************************************************************//**
590
 
Release any resources used by the lexer. */
591
 
#ifdef __cplusplus
592
 
extern "C"
593
 
#endif
594
 
UNIV_INTERN
595
 
void
596
 
pars_lexer_close(void);
597
 
/*==================*/
598
586
 
599
587
/** Extra information supplied for pars_sql(). */
600
588
struct pars_info_struct {
636
624
/** Struct used to denote a reserved word in a parsing tree */
637
625
struct pars_res_word_struct{
638
626
        int     code;   /*!< the token code for the reserved word from
639
 
                        pars0grm.hh */
 
627
                        pars0grm.h */
640
628
};
641
629
 
642
630
/** A predefined function or operator node in a parsing tree; this construct
644
632
struct func_node_struct{
645
633
        que_common_t    common; /*!< type: QUE_NODE_FUNC */
646
634
        int             func;   /*!< token code of the function name */
647
 
        ulint           func_class;     /*!< class of the function */
 
635
        ulint           class;  /*!< class of the function */
648
636
        que_node_t*     args;   /*!< argument(s) of the function */
649
637
        UT_LIST_NODE_T(func_node_t) cond_list;
650
638
                                /*!< list of comparison conditions; defined