all: assorted updates and cleanups

This commit is contained in:
Markus F.X.J. Oberhumer
2023-02-05 17:20:32 +01:00
parent 163377d1a0
commit b8d9c2b755
56 changed files with 691 additions and 853 deletions
+4 -3
View File
@@ -25,9 +25,10 @@
<markus@oberhumer.com> <ezerotven+github@gmail.com>
*/
// work.cpp implements the central loop, and it uses class PackMaster to
// This file implements the central loop, and it uses class PackMaster to
// dispatch. PackMaster by itself will instatiate a concrete subclass
// of class Packer which then does the actual work.
// And see p_com.cpp for a simple executable format.
#include "conf.h"
#include "file.h"
@@ -155,7 +156,7 @@ void do_one_file(const char *iname, char *oname) {
}
}
// handle command
// handle command - actual work is here
PackMaster pm(&fi, opt);
if (opt->cmd == CMD_COMPRESS)
pm.pack(&fo);
@@ -258,7 +259,7 @@ static void unlink_ofile(char *oname) {
IGNORE_ERROR(r);
#endif
if (unlink(oname) == 0)
oname[0] = 0;
oname[0] = 0; // done with oname
}
}