aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2004-09-08 00:28:47 +0000
committerLev Walkin <vlm@lionet.info>2004-09-08 00:28:47 +0000
commit61c7069bd61751d286be99234a29a178c125af56 (patch)
treec666362091aa019c9a7c1ec69c51cece31a684c6
parent1004aa946290392496309e927cd515adea93fdda (diff)
removed assert state
-rw-r--r--libasn1compiler/asn1c_out.c3
-rw-r--r--libasn1compiler/asn1c_out.h12
2 files changed, 2 insertions, 13 deletions
diff --git a/libasn1compiler/asn1c_out.c b/libasn1compiler/asn1c_out.c
index fb418711..ebf2fb14 100644
--- a/libasn1compiler/asn1c_out.c
+++ b/libasn1compiler/asn1c_out.c
@@ -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;
diff --git a/libasn1compiler/asn1c_out.h b/libasn1compiler/asn1c_out.h
index 7e2abfd8..4c3fc415 100644
--- a/libasn1compiler/asn1c_out.h
+++ b/libasn1compiler/asn1c_out.h
@@ -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); \