~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1996, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (C) 1996, 2010, 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
109
112
UNIV_INTERN
110
113
void
111
114
pars_get_lex_chars(
521
524
 
522
525
char buf[8];
523
526
mach_write_to_8(buf, val);
524
 
pars_info_add_literal(info, name, buf, 8, DATA_BINARY, 0);
 
527
pars_info_add_literal(info, name, buf, 8, DATA_FIXBINARY, 0);
525
528
 
526
529
except that the buffer is dynamically allocated from the info struct's
527
530
heap. */
528
531
UNIV_INTERN
529
532
void
530
 
pars_info_add_dulint_literal(
531
 
/*=========================*/
 
533
pars_info_add_ull_literal(
 
534
/*======================*/
532
535
        pars_info_t*    info,           /*!< in: info struct */
533
536
        const char*     name,           /*!< in: name */
534
 
        dulint          val);           /*!< in: value */
 
537
        ib_uint64_t     val);           /*!< in: value */
535
538
/****************************************************************//**
536
539
Add user function. */
537
540
UNIV_INTERN
585
588
 
586
589
/******************************************************************//**
587
590
Release any resources used by the lexer. */
 
591
#ifdef __cplusplus
 
592
extern "C"
 
593
#endif
588
594
UNIV_INTERN
589
595
void
590
596
pars_lexer_close(void);
630
636
/** Struct used to denote a reserved word in a parsing tree */
631
637
struct pars_res_word_struct{
632
638
        int     code;   /*!< the token code for the reserved word from
633
 
                        pars0grm.h */
 
639
                        pars0grm.hh */
634
640
};
635
641
 
636
642
/** A predefined function or operator node in a parsing tree; this construct
638
644
struct func_node_struct{
639
645
        que_common_t    common; /*!< type: QUE_NODE_FUNC */
640
646
        int             func;   /*!< token code of the function name */
641
 
        ulint           class;  /*!< class of the function */
 
647
        ulint           func_class;     /*!< class of the function */
642
648
        que_node_t*     args;   /*!< argument(s) of the function */
643
649
        UT_LIST_NODE_T(func_node_t) cond_list;
644
650
                                /*!< list of comparison conditions; defined