diff options
author | josh.macdonald <jmacd@users.noreply.github.com> | 2007-02-01 06:15:10 +0000 |
---|---|---|
committer | josh.macdonald <jmacd@users.noreply.github.com> | 2007-02-01 06:15:10 +0000 |
commit | 9f465a9db201b97c43d69778eabd222d4fc09fd5 (patch) | |
tree | 140ea8f63e3dbfb1f9747395f4e9dcfce922ea25 /xdelta3/xdelta3-main.h | |
parent | e394dd3491d609868860d01456786f438a542618 (diff) |
Fixes build on Cygwin, some work on -regtest.py
Diffstat (limited to 'xdelta3/xdelta3-main.h')
-rwxr-xr-x | xdelta3/xdelta3-main.h | 24 |
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 | ||
359 | static void | 359 | static void |
360 | reset_defaults() | 360 | reset_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 | ||
668 | static void | ||
669 | main_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 | |||
677 | static int | 668 | static int |
678 | main_file_isopen (main_file *xfile) | 669 | main_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 | ||
711 | static void | ||
712 | main_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 | |||
720 | static int | 724 | static int |
721 | main_file_open (main_file *xfile, const char* name, int mode) | 725 | main_file_open (main_file *xfile, const char* name, int mode) |
722 | { | 726 | { |