~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_list.h

  • Committer: Eric Herman
  • Date: 2008-12-06 19:42:46 UTC
  • mto: (656.1.6 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: eric@mysql.com-20081206194246-5cdexuu81i366eek
removed trailing whitespace with simple script:

for file in $(find . -name "*.c") $(find . -name "*.cc") $(find . -name "*.h"); do ruby -pe 'gsub(/\s+$/, $/)' < $file > $file.out; mv $file.out $file; done;

Show diffs side-by-side

added added

removed removed

Lines of Context:
248
248
      check_list()
249
249
        name  Name to print to trace file
250
250
 
251
 
    RETURN 
 
251
    RETURN
252
252
      1  The list is Ok.
253
253
      0  List invariants are not met.
254
254
  */
304
304
    ls.elements= elm;
305
305
  }
306
306
public:
307
 
  base_list_iterator() 
 
307
  base_list_iterator()
308
308
    :list(0), el(0), prev(0), current(0)
309
309
  {}
310
310
 
311
 
  base_list_iterator(base_list &list_par) 
 
311
  base_list_iterator(base_list &list_par)
312
312
  { init(list_par); }
313
313
 
314
314
  inline void init(base_list &list_par)
498
498
  const char* key;
499
499
  const char* val;
500
500
  i_string_pair():key(0),val(0) { }
501
 
  i_string_pair(const char* key_arg, const char* val_arg) : 
 
501
  i_string_pair(const char* key_arg, const char* val_arg) :
502
502
    key(key_arg),val(val_arg) {}
503
503
};
504
504
 
569
569
public:
570
570
  I_List() :base_ilist()        {}
571
571
  inline void empty()           { base_ilist::empty(); }
572
 
  inline bool is_empty()        { return base_ilist::is_empty(); } 
 
572
  inline bool is_empty()        { return base_ilist::is_empty(); }
573
573
  inline void append(T* a)      { base_ilist::append(a); }
574
574
  inline void push_back(T* a)   { base_ilist::push_back(a); }
575
575
  inline T* get()               { return (T*) base_ilist::get(); }