~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2010-04-19 17:51:52 UTC
  • Revision ID: brian@gaz-20100419175152-lar9fncw9vhhav0d
Updates to confine memroot

Show diffs side-by-side

added added

removed removed

Lines of Context:
367
367
  enum enum_mark_columns mark_used_columns;
368
368
  inline void* alloc(size_t size)
369
369
  {
370
 
    return alloc_root(mem_root,size);
 
370
    return mem_root->alloc_root(size);
371
371
  }
372
372
  inline void* calloc(size_t size)
373
373
  {
374
374
    void *ptr;
375
 
    if ((ptr= alloc_root(mem_root,size)))
 
375
    if ((ptr= mem_root->alloc_root(size)))
376
376
      memset(ptr, 0, size);
377
377
    return ptr;
378
378
  }
391
391
  inline void *memdup_w_gap(const void *str, size_t size, uint32_t gap)
392
392
  {
393
393
    void *ptr;
394
 
    if ((ptr= alloc_root(mem_root,size+gap)))
 
394
    if ((ptr= mem_root->alloc_root(size + gap)))
395
395
      memcpy(ptr,str,size);
396
396
    return ptr;
397
397
  }