Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

t_stub.c

Go to the documentation of this file.
00001 /*  -*- c-file-style: "linux" -*-
00002  * 
00003  * Copyright (C) 2001, 2002 by Martin Pool <mbp@samba.org>
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006    it under the terms of the GNU General Public License as published by
00007    the Free Software Foundation; either version 2 of the License, or
00008    (at your option) any later version.
00009    
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013    GNU General Public License for more details.
00014    
00015    You should have received a copy of the GNU General Public License
00016    along with this program; if not, write to the Free Software
00017    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018 */
00019 
00020 #include "rsync.h"
00021 
00022 /**
00023  * @file t_stub.c
00024  *
00025  * This file contains really simple implementations for rsync global
00026  * functions, so that module test harnesses can run standalone.
00027  **/
00028 
00029 int modify_window = 0;
00030 
00031  void rprintf(enum logcode UNUSED(code), const char *format, ...)
00032 {
00033         va_list ap;
00034         va_start(ap, format);
00035         vfprintf(stderr, format, ap);
00036         va_end(ap);
00037 }
00038 
00039  void _exit_cleanup(int code, const char *file, int line)
00040 {
00041         fprintf(stderr, "exit(%d): %s(%d)\n",
00042                 code, file, line);
00043         exit(code);
00044 }

Generated on Tue Apr 16 12:37:37 2002 for rsync by doxygen1.2.15