~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/decimal.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:
748
748
  beg= ROUND_UP(beg + 1) - 1;
749
749
  end= ROUND_UP(end) - 1;
750
750
  assert(new_point >= 0);
751
 
  
 
751
 
752
752
  /* We don't want negative new_point below */
753
753
  if (new_point != 0)
754
754
    new_point= ROUND_UP(new_point) - 1;
962
962
 
963
963
  rc = decimal2string(from, strbuf, &len, 0, 0, 0);
964
964
  end= strbuf + len;
965
 
  
 
965
 
966
966
  *to= my_strtod(strbuf, &end, &error);
967
 
             
 
967
 
968
968
  return (rc != E_DEC_OK) ? rc : (error ? E_DEC_OVERFLOW : E_DEC_OK);
969
969
}
970
970