Revision 1107 trunk/src/df1b2-separable/smartbuf.cpp

smartbuf.cpp (revision 1107)
2 2
 * $Id$
3 3
 *
4 4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California 
5
 * Copyright (c) 2008-2012 Regents of the University of California
6 6
 */
7 7
/**
8 8
 * \file
......
14 14
#ifdef __MSVC32__
15 15
  #define lseek _lseek
16 16
  #define  read _read
17
  #define write _write 
17
  #define write _write
18 18
  #include <sys\stat.h>
19 19
#endif
20 20

  
......
27 27
  #if (__GNUC__ >3)
28 28
     #include <iostream>
29 29
     using namespace std;
30
  #else   
30
  #else
31 31
    #include <iostream.h>
32 32
  #endif
33 33
#include <fcntl.h>
......
70 70
  #if (__GNUC__ >3)
71 71
     #include <iostream>
72 72
     using namespace std;
73
  #else   
73
  #else
74 74
    #include <iostream.h>
75 75
  #endif
76 76
#include <fcntl.h>
......
137 137
    {
138 138
      if ( (on=option_match(ad_comm::argc,ad_comm::argv,"-slave",nopt))>-1)
139 139
      {
140
        if (nopt ==1)	    
141
        {	      
140
        if (nopt ==1)
141
        {
142 142
          {
143 143
            int ierr=make_sub_directory(ad_comm::argv[on+1]);
144 144
            ad_comm::subdir=ad_comm::argv[on+1];
......
152 152
            " you have " << nopt << endl;		
153 153
          ad_exit(1);
154 154
        }	
155
      }   
155
      }
156 156
    }
157 157
#endif
158 158

  
......
265 265
  { cerr << "Error rewinding file in ad_sbuffer:fread"<<endl;
266 266
    ad_exit(1);
267 267
  }
268
    //cout << " trying to read buff_size = " << buff_size 
268
    //cout << " trying to read buff_size = " << buff_size
269 269
      //   << " from cmpdif file" << endl;
270 270
  //cout << "offset before read is " << lseek(file_ptr,0,SEEK_CUR)<< endl;
271 271
  if (read(file_ptr,buff,buff_size)<buff_size)
......
287 287
 */
288 288
  void ad_sbuffer::write_cmpdif_stack_buffer(void)
289 289
  {
290
    //cout << " trying to write buff_size = " << buff_size 
290
    //cout << " trying to write buff_size = " << buff_size
291 291
      //   << " into cmpdif file" << endl;
292
    //clogf << " trying to write buff_size = " << buff_size 
292
    //clogf << " trying to write buff_size = " << buff_size
293 293
         //<< " into cmpdif file" << endl;
294 294
    //cout << "offset before write is " << lseek(file_ptr,0,SEEK_CUR)<< endl;
295 295
    //if (write(file_ptr,buff,buff_size)<buff_size)

Also available in: Unified diff