Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmp_tool
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
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dominik Loidolt
cmp_tool
Commits
3d5610f9
Commit
3d5610f9
authored
2 years ago
by
Dominik Loidolt
Browse files
Options
Downloads
Patches
Plain Diff
-b can now also be used for binary mode as --binary
parent
ac2dc81e
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!20
-b can now also be used for binary mode as --binary
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+1
-1
1 addition, 1 deletion
CHANGELOG.md
cmp_tool.c
+5
-6
5 additions, 6 deletions
cmp_tool.c
lib/cmp_io.c
+1
-1
1 addition, 1 deletion
lib/cmp_io.c
with
7 additions
and
8 deletions
CHANGELOG.md
+
1
−
1
View file @
3d5610f9
...
@@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file.
...
@@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file.
## [Unreleased]
## [Unreleased]
### Added
### Added
-
add --binary option for read and write files in binary format
-
add
-b or
--binary option for read and write files in binary format
-
add cross compile file for sparc
-
add cross compile file for sparc
-
add tests for the compression entity
-
add tests for the compression entity
-
add test for cmp_rdcu_cfg.c
-
add test for cmp_rdcu_cfg.c
...
...
This diff is collapsed.
Click to expand it.
cmp_tool.c
+
5
−
6
View file @
3d5610f9
...
@@ -73,7 +73,6 @@ enum {
...
@@ -73,7 +73,6 @@ enum {
NO_HEADER
,
NO_HEADER
,
MODEL_ID
,
MODEL_ID
,
MODEL_COUTER
,
MODEL_COUTER
,
BINARY_IO
,
};
};
static
const
struct
option
long_options
[]
=
{
static
const
struct
option
long_options
[]
=
{
...
@@ -90,7 +89,7 @@ static const struct option long_options[] = {
...
@@ -90,7 +89,7 @@ static const struct option long_options[] = {
{
"no_header"
,
no_argument
,
NULL
,
NO_HEADER
},
{
"no_header"
,
no_argument
,
NULL
,
NO_HEADER
},
{
"model_id"
,
required_argument
,
NULL
,
MODEL_ID
},
{
"model_id"
,
required_argument
,
NULL
,
MODEL_ID
},
{
"model_counter"
,
required_argument
,
NULL
,
MODEL_COUTER
},
{
"model_counter"
,
required_argument
,
NULL
,
MODEL_COUTER
},
{
"binary"
,
no_argument
,
NULL
,
BINARY_IO
},
{
"binary"
,
no_argument
,
NULL
,
'b'
},
{
NULL
,
0
,
NULL
,
0
}
{
NULL
,
0
,
NULL
,
0
}
};
};
...
@@ -165,12 +164,15 @@ int main(int argc, char **argv)
...
@@ -165,12 +164,15 @@ int main(int argc, char **argv)
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
}
}
while
((
opt
=
getopt_long
(
argc
,
argv
,
"ac:d:hi:m:no:vV"
,
long_options
,
while
((
opt
=
getopt_long
(
argc
,
argv
,
"a
b
c:d:hi:m:no:vV"
,
long_options
,
NULL
))
!=
-
1
)
{
NULL
))
!=
-
1
)
{
switch
(
opt
)
{
switch
(
opt
)
{
case
'a'
:
/* --rdcu_par */
case
'a'
:
/* --rdcu_par */
add_rdcu_pars
=
1
;
add_rdcu_pars
=
1
;
break
;
break
;
case
'b'
:
io_flags
|=
CMP_IO_BINARY
;
break
;
case
'c'
:
case
'c'
:
cmp_operation
=
1
;
cmp_operation
=
1
;
cfg_file_name
=
optarg
;
cfg_file_name
=
optarg
;
...
@@ -233,9 +235,6 @@ int main(int argc, char **argv)
...
@@ -233,9 +235,6 @@ int main(int argc, char **argv)
case
MODEL_COUTER
:
case
MODEL_COUTER
:
model_counter_str
=
optarg
;
model_counter_str
=
optarg
;
break
;
break
;
case
BINARY_IO
:
io_flags
|=
CMP_IO_BINARY
;
break
;
default:
default:
print_help
(
program_name
);
print_help
(
program_name
);
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
...
...
This diff is collapsed.
Click to expand it.
lib/cmp_io.c
+
1
−
1
View file @
3d5610f9
...
@@ -81,7 +81,7 @@ void print_help(const char *program_name)
...
@@ -81,7 +81,7 @@ void print_help(const char *program_name)
printf
(
" -o <prefix> Use the <prefix> for output files
\n
"
);
printf
(
" -o <prefix> Use the <prefix> for output files
\n
"
);
printf
(
" -n, --model_cfg Print a default model configuration and exit
\n
"
);
printf
(
" -n, --model_cfg Print a default model configuration and exit
\n
"
);
printf
(
" --diff_cfg Print a default 1d-differencing configuration and exit
\n
"
);
printf
(
" --diff_cfg Print a default 1d-differencing configuration and exit
\n
"
);
printf
(
" --binary
Read and write files in binary format
\n
"
);
printf
(
"
-b,
--binary Read and write files in binary format
\n
"
);
printf
(
" --no_header Do not add a compression entity header in front of the compressed data
\n
"
);
printf
(
" --no_header Do not add a compression entity header in front of the compressed data
\n
"
);
printf
(
" -a, --rdcu_par Add additional RDCU control parameters
\n
"
);
printf
(
" -a, --rdcu_par Add additional RDCU control parameters
\n
"
);
printf
(
" -V, --version Print program version and exit
\n
"
);
printf
(
" -V, --version Print program version and exit
\n
"
);
...
...
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