Skip to content
Snippets Groups Projects
Commit 8823785d7597 authored by Lasse Collin's avatar Lasse Collin
Browse files

Rename process_file() to coder_run().

parent 2148381ffd95
No related branches found
No related tags found
No related merge requests found
......@@ -277,7 +277,7 @@
}
// Replace the "-" with a special pointer, which is
// recognized by process_file() and other things.
// recognized by coder_run() and other things.
// This way error messages get a proper filename
// string and the code still knows that it is
// handling the special case of stdin.
......@@ -285,7 +285,7 @@
}
// Do the actual compression or uncompression.
process_file(args.arg_names[i]);
coder_run(args.arg_names[i]);
}
// If --files or --files0 was used, process the filenames from the
......@@ -301,7 +301,7 @@
// read_name() doesn't return empty names.
assert(name[0] != '\0');
process_file(name);
coder_run(name);
}
if (args.files_name != stdin_filename)
......
......@@ -317,7 +317,7 @@
static bool
coder_run(file_pair *pair)
coder_main(file_pair *pair)
{
// Buffers to hold input and output data.
uint8_t in_buf[IO_BUFFER_SIZE];
......@@ -464,7 +464,7 @@
extern void
process_file(const char *filename)
coder_run(const char *filename)
{
// First try initializing the coder. If it fails, it's useless to try
// opening the file. Check also for user_abort just in case if we had
......@@ -478,7 +478,7 @@
return;
// Do the actual coding.
const bool success = coder_run(pair);
const bool success = coder_main(pair);
// Close the file pair. It needs to know if coding was successful to
// know if the source or target file should be unlinked.
......
......@@ -53,6 +53,5 @@
///
extern void coder_set_compression_settings(void);
extern void process_init(void);
extern void process_file(const char *filename);
/// Compress or decompress the given file
extern void coder_run(const char *filename);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment