Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
61c7069b
Commit
61c7069b
authored
Sep 08, 2004
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed assert state
parent
1004aa94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
13 deletions
+2
-13
libasn1compiler/asn1c_out.c
libasn1compiler/asn1c_out.c
+0
-3
libasn1compiler/asn1c_out.h
libasn1compiler/asn1c_out.h
+2
-10
No files found.
libasn1compiler/asn1c_out.c
View file @
61c7069b
...
...
@@ -18,9 +18,6 @@ asn1c_compiled_output(arg_t *arg, const char *fmt, ...) {
switch
(
arg
->
target
->
target
)
{
case
OT_IGNORE
:
return
0
;
case
OT_ASSERT
:
assert
(
arg
->
target
->
target
!=
OT_ASSERT
);
return
-
1
;
default:
dst
=
&
arg
->
target
->
destination
[
arg
->
target
->
target
];
break
;
...
...
libasn1compiler/asn1c_out.h
View file @
61c7069b
...
...
@@ -13,8 +13,7 @@ typedef struct out_chunk {
typedef
struct
compiler_streams
{
enum
{
OT_IGNORE
=
-
1
,
OT_ASSERT
=
0
,
OT_IGNORE
,
/* Ignore this output */
OT_INCLUDES
,
/* #include files */
OT_DEPS
,
/* Dependencies (other than #includes) */
OT_TYPE_DECLS
,
/* Type declarations */
...
...
@@ -33,7 +32,7 @@ typedef struct compiler_streams {
}
compiler_streams_t
;
static
char
*
_compiler_stream2str
[]
__attribute__
((
unused
))
=
{
"
ASSERT
"
,
"INCLUDES"
,
"DEPS"
,
"TYPE-DECLS"
,
"FUNC-DECLS"
,
"CTABLES"
,
"CODE"
,
"STAT-DEFS"
};
=
{
"
IGNORE
"
,
"INCLUDES"
,
"DEPS"
,
"TYPE-DECLS"
,
"FUNC-DECLS"
,
"CTABLES"
,
"CODE"
,
"STAT-DEFS"
};
int
asn1c_compiled_output
(
arg_t
*
arg
,
const
char
*
fmt
,
...);
...
...
@@ -53,13 +52,6 @@ int asn1c_compiled_output(arg_t *arg, const char *fmt, ...);
INDENT(-1); \
} while(0)
#define FLAT(code) do { \
int _il = INDENT_LEVEL; \
INDENT_LEVEL = 0; \
do { code; } while(0); \
INDENT_LEVEL = _il; \
} while(0)
#define EMBED(ev) do { \
int saved_target = arg->target->target; \
REDIR(OT_TYPE_DECLS); \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment