summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3-main.h
diff options
context:
space:
mode:
authorjosh.macdonald <jmacd@users.noreply.github.com>2007-02-01 06:15:10 +0000
committerjosh.macdonald <jmacd@users.noreply.github.com>2007-02-01 06:15:10 +0000
commit9f465a9db201b97c43d69778eabd222d4fc09fd5 (patch)
tree140ea8f63e3dbfb1f9747395f4e9dcfce922ea25 /xdelta3/xdelta3-main.h
parente394dd3491d609868860d01456786f438a542618 (diff)
Fixes build on Cygwin, some work on -regtest.py
Diffstat (limited to 'xdelta3/xdelta3-main.h')
-rwxr-xr-xxdelta3/xdelta3-main.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/xdelta3/xdelta3-main.h b/xdelta3/xdelta3-main.h
index 702b6b6..1f55636 100755
--- a/xdelta3/xdelta3-main.h
+++ b/xdelta3/xdelta3-main.h
@@ -357,7 +357,7 @@ main_config (void)
357} 357}
358 358
359static void 359static void
360reset_defaults() 360reset_defaults(void)
361{ 361{
362 option_stdout = 0; 362 option_stdout = 0;
363 option_force = 0; 363 option_force = 0;
@@ -665,15 +665,6 @@ main_file_init (main_file *xfile)
665#endif 665#endif
666} 666}
667 667
668static void
669main_file_cleanup (main_file *xfile)
670{
671 if (xfile->filename_copy != NULL) {
672 main_free(xfile->filename_copy);
673 xfile->filename_copy = NULL;
674 }
675}
676
677static int 668static int
678main_file_isopen (main_file *xfile) 669main_file_isopen (main_file *xfile)
679{ 670{
@@ -717,6 +708,19 @@ main_file_close (main_file *xfile)
717 return ret; 708 return ret;
718} 709}
719 710
711static void
712main_file_cleanup (main_file *xfile)
713{
714 if (main_file_isopen (xfile)) {
715 main_file_close (xfile);
716 }
717
718 if (xfile->filename_copy != NULL) {
719 main_free(xfile->filename_copy);
720 xfile->filename_copy = NULL;
721 }
722}
723
720static int 724static int
721main_file_open (main_file *xfile, const char* name, int mode) 725main_file_open (main_file *xfile, const char* name, int mode)
722{ 726{