~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzle.cc

  • 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:
1115
1115
 
1116
1116
  glob_buffer= new string();
1117
1117
  glob_buffer->reserve(512);
1118
 
  
 
1118
 
1119
1119
  char * output_buff= (char *)malloc(512);
1120
1120
  memset(output_buff, '\0', 512);
1121
1121
 
2505
2505
    cmd_buf.append("help '");
2506
2506
    cmd_buf.append(help_arg, end_arg-help_arg);
2507
2507
    cmd_buf.append("'");
2508
 
  
 
2508
 
2509
2509
    server_cmd= cmd_buf.c_str();
2510
2510
  }
2511
2511
 
2924
2924
  DRIZZLE_FIELD   *field;
2925
2925
  bool          *num_flag;
2926
2926
  string separator;
2927
 
  
 
2927
 
2928
2928
  separator.reserve(256);
2929
2929
 
2930
2930
  num_flag=(bool*) malloc(sizeof(bool)*drizzle_num_fields(result));
2968
2968
      tee_fprintf(PAGER, " %-*s |",(int) min(display_length,
2969
2969
                                             MAX_COLUMN_LENGTH),
2970
2970
                  field->name);
2971
 
      num_flag[off]= ((field->type <= DRIZZLE_TYPE_LONGLONG) || 
 
2971
      num_flag[off]= ((field->type <= DRIZZLE_TYPE_LONGLONG) ||
2972
2972
                      (field->type == DRIZZLE_TYPE_NEWDECIMAL));
2973
2973
    }
2974
2974
    (void) tee_fputs("\n", PAGER);
3160
3160
  DRIZZLE_RES    *result;
3161
3161
  DRIZZLE_ROW    cur;
3162
3162
  uint64_t num_rows;
3163
 
 
 
3163
 
3164
3164
  /* Save current error before calling "show warnings" */
3165
3165
  uint error= drizzle_errno(&drizzle);
3166
3166