Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asn1c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
gaoridong
asn1c
Commits
5ba113b0
Commit
5ba113b0
authored
19 years ago
by
Lev Walkin
Browse files
Options
Downloads
Patches
Plain Diff
macro to enable default output
parent
4cd4304f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
skeletons/asn-decoder-template.c
+11
-1
11 additions, 1 deletion
skeletons/asn-decoder-template.c
with
11 additions
and
1 deletion
skeletons/asn-decoder-template.c
+
11
−
1
View file @
5ba113b0
...
@@ -76,6 +76,7 @@ main(int ac, char **av) {
...
@@ -76,6 +76,7 @@ main(int ac, char **av) {
}
}
break
;
break
;
case
'p'
:
case
'p'
:
opt_toxml
=
0
;
/* Override '-x' */
opt_print
++
;
opt_print
++
;
break
;
break
;
case
's'
:
case
's'
:
...
@@ -88,6 +89,7 @@ main(int ac, char **av) {
...
@@ -88,6 +89,7 @@ main(int ac, char **av) {
}
}
break
;
break
;
case
'x'
:
case
'x'
:
opt_print
=
0
;
/* Override '-p' */
opt_toxml
++
;
opt_toxml
++
;
break
;
break
;
case
'h'
:
case
'h'
:
...
@@ -101,7 +103,11 @@ main(int ac, char **av) {
...
@@ -101,7 +103,11 @@ main(int ac, char **av) {
" -n <num> Process files <num> times
\n
"
" -n <num> Process files <num> times
\n
"
" -s <size> Set the stack usage limit
\n
"
" -s <size> Set the stack usage limit
\n
"
" -p Print out the decoded contents
\n
"
" -p Print out the decoded contents
\n
"
" -x Print out as XML
\n
"
" -x Print out as XML"
#ifdef ASN_DECODER_DEFAULT_OUTPUT_XML
" (default)"
#endif
"
\n
"
,
av
[
0
],
(
long
)
suggested_bufsize
);
,
av
[
0
],
(
long
)
suggested_bufsize
);
exit
(
EX_USAGE
);
exit
(
EX_USAGE
);
}
}
...
@@ -114,6 +120,10 @@ main(int ac, char **av) {
...
@@ -114,6 +120,10 @@ main(int ac, char **av) {
exit
(
EX_USAGE
);
exit
(
EX_USAGE
);
}
}
#ifdef ASN_DECODER_DEFAULT_OUTPUT_XML
if
(
!
opt_print
)
opt_toxml
++
;
#endif
setvbuf
(
stdout
,
0
,
_IOLBF
,
0
);
setvbuf
(
stdout
,
0
,
_IOLBF
,
0
);
for
(
num
=
0
;
num
<
number_of_iterations
;
num
++
)
{
for
(
num
=
0
;
num
<
number_of_iterations
;
num
++
)
{
...
...
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