Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
tools
xz
Commits
8823785d7597
Commit
8823785d7597
authored
16 years ago
by
Lasse Collin
Browse files
Options
Downloads
Patches
Plain Diff
Rename process_file() to coder_run().
parent
2148381ffd95
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/xz/main.c
+3
-3
3 additions, 3 deletions
src/xz/main.c
src/xz/process.c
+3
-3
3 additions, 3 deletions
src/xz/process.c
src/xz/process.h
+2
-3
2 additions, 3 deletions
src/xz/process.h
with
8 additions
and
9 deletions
src/xz/main.c
+
3
−
3
View file @
8823785d
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
src/xz/process.c
+
3
−
3
View file @
8823785d
...
...
@@ -317,7 +317,7 @@
static
bool
coder_
ru
n
(
file_pair
*
pair
)
coder_
mai
n
(
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_
ru
n
(
pair
);
const
bool
success
=
coder_
mai
n
(
pair
);
// Close the file pair. It needs to know if coding was successful to
// know if the source or target file should be unlinked.
...
...
This diff is collapsed.
Click to expand it.
src/xz/process.h
+
2
−
3
View file @
8823785d
...
...
@@ -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
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment