~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/pars/pars0pars.c

  • Committer: Lee Bieber
  • Date: 2010-12-03 01:16:19 UTC
  • mfrom: (1819.9.81 update-innobase)
  • Revision ID: kalebral@gmail.com-20101203011619-n6v584rijwdet05b
Merge Stewart - update Innobase plugin based on InnoDB 1.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
2034
2034
Equivalent to:
2035
2035
 
2036
2036
char buf[8];
2037
 
mach_write_ull(buf, val);
2038
 
pars_info_add_literal(info, name, buf, 8, DATA_INT, 0);
2039
 
 
2040
 
except that the buffer is dynamically allocated from the info struct's
2041
 
heap. */
2042
 
UNIV_INTERN
2043
 
void
2044
 
pars_info_add_uint64_literal(
2045
 
/*=========================*/
2046
 
        pars_info_t*    info,           /*!< in: info struct */
2047
 
        const char*     name,           /*!< in: name */
2048
 
        ib_uint64_t     val)            /*!< in: value */
2049
 
{
2050
 
        byte*   buf = mem_heap_alloc(info->heap, 8);
2051
 
 
2052
 
        mach_write_ull(buf, val);
2053
 
        pars_info_add_literal(info, name, buf, 8, DATA_INT, 0);
2054
 
}
2055
 
 
2056
 
/****************************************************************//**
2057
 
Equivalent to:
2058
 
 
2059
 
char buf[8];
2060
2037
mach_write_to_8(buf, val);
2061
2038
pars_info_add_literal(info, name, buf, 8, DATA_FIXBINARY, 0);
2062
2039
 
2064
2041
heap. */
2065
2042
UNIV_INTERN
2066
2043
void
2067
 
pars_info_add_dulint_literal(
2068
 
/*=========================*/
 
2044
pars_info_add_ull_literal(
 
2045
/*======================*/
2069
2046
        pars_info_t*    info,           /*!< in: info struct */
2070
2047
        const char*     name,           /*!< in: name */
2071
 
        dulint          val)            /*!< in: value */
 
2048
        ib_uint64_t     val)            /*!< in: value */
2072
2049
{
2073
2050
        byte*   buf = mem_heap_alloc(info->heap, 8);
2074
2051