~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/csv/transparent_file.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:
18
18
#include "transparent_file.h"
19
19
 
20
20
Transparent_file::Transparent_file() : lower_bound(0), buff_size(IO_SIZE)
21
 
22
 
  buff= (unsigned char *) my_malloc(buff_size*sizeof(unsigned char),  MYF(MY_WME)); 
 
21
{
 
22
  buff= (unsigned char *) my_malloc(buff_size*sizeof(unsigned char),  MYF(MY_WME));
23
23
}
24
24
 
25
25
Transparent_file::~Transparent_file()
26
 
27
 
  free((unsigned char*)buff); 
 
26
{
 
27
  free((unsigned char*)buff);
28
28
}
29
29
 
30
30
void Transparent_file::init_buff(File filedes_arg)
38
38
}
39
39
 
40
40
unsigned char *Transparent_file::ptr()
41
 
42
 
  return buff; 
 
41
{
 
42
  return buff;
43
43
}
44
44
 
45
45
off_t Transparent_file::start()
46
 
47
 
  return lower_bound; 
 
46
{
 
47
  return lower_bound;
48
48
}
49
49
 
50
50
off_t Transparent_file::end()
51
 
52
 
  return upper_bound; 
 
51
{
 
52
  return upper_bound;
53
53
}
54
54
 
55
55
off_t Transparent_file::read_next()