faubackup2/src/rsync rsync++_calls.cpp,1.3,1.4 rsync.cpp,1.9,1.10

Martin Waitz <[email protected]> Tue, 14 Jun 2005 20:23:37 +0000
Newsgroups gmane.comp.sysutils.backup.faubackup.cvs
Message-ID <[email protected]>
Update of /cvsroot/faubackup/faubackup2/src/rsync
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21140/src/rsync

Modified Files:
	rsync++_calls.cpp rsync.cpp 
Log Message:
cleanup include files.

use #include "foo" for our own headers
use #include <bar> for system headers

the header declaring the api for the current file is included first
to make sure that the header file is self-contained

all other headers are sorted: <sys/> is first, then <netinet/>
and other subdirectory includes, then standard C and C++ headers.
internal headers come last.


Index: rsync.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/rsync/rsync.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** rsync.cpp	8 Jun 2005 19:29:05 -0000	1.9
--- rsync.cpp	14 Jun 2005 20:23:35 -0000	1.10
***************
*** 1,11 ****
  #include "support.h"
  
! #include <rsync/rsync.hpp>
! #include <common/common.hpp>
! #include <rsync/rsync_wrapper.h>
  #include <cmath>
  #include <cstring>
  #define STAT_CHAR_ARRAY_SIZE 200
  #define MIN_RSYNC_BLOCKSIZE 2048
  extern "C"
  {
--- 1,16 ----
  #include "support.h"
  
! #include "rsync/rsync.hpp"
! 
  #include <cmath>
  #include <cstring>
+ 
+ #include "common/common.hpp"
+ #include "rsync/rsync_wrapper.h"
+ 
+ 
  #define STAT_CHAR_ARRAY_SIZE 200
  #define MIN_RSYNC_BLOCKSIZE 2048
+ 
  extern "C"
  {

Index: rsync++_calls.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/rsync/rsync++_calls.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** rsync++_calls.cpp	8 Jun 2005 19:29:05 -0000	1.3
--- rsync++_calls.cpp	14 Jun 2005 20:23:35 -0000	1.4
***************
*** 1,7 ****
  #include "support.h"
  
! #include <rsync/rsync++_calls.hpp>
  
- #include <common/common.hpp>
  
  #define R_BUFSIZE 32768
--- 1,8 ----
  #include "support.h"
  
! #include "rsync/rsync++_calls.hpp"
! 
! #include "common/common.hpp"
  
  
  #define R_BUFSIZE 32768



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click