X-Git-Url: https://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/268cd12f990b95d82d00e639288563c6c6ce9452..926b8d8fb3ecffe60f3eaefcd5ec40a5273251ce:/src/main.c diff --git a/src/main.c b/src/main.c index b0e7505..81b22f1 100644 --- a/src/main.c +++ b/src/main.c @@ -3492,13 +3492,13 @@ open_files(void) if (file_sep != 0) sep[0] = file_sep; outfilephbase = g_strconcat (fullfilebase, sep, "private.h", NULL); - outfileph = g_strconcat (outfilephbase, no_touch ? "#gob#" : "", NULL); + outfileph = g_strconcat (outfilephbase, no_touch_headers ? "#gob#" : "", NULL); } else { outfilephbase = NULL; outfileph = NULL; } - + if ( ! no_write) { out = fopen (outfile, "w"); if (out == NULL) { @@ -4964,15 +4964,16 @@ main(int argc, char *argv[]) if (outph) fclose (outph); - if (! no_write) { + if (!no_write) { if (no_touch) { - compare_and_move (outfilebase); + compare_and_move(outfilebase); + } + if (no_touch_headers) { + compare_and_move(outfilehbase); if (outfilephbase) - compare_and_move (outfilephbase); + compare_and_move(outfilephbase); } - if (no_touch_headers) - compare_and_move (outfilehbase); } - + return 0; }