Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sven Gestegård Robertz
LabComm
Commits
1d01446e
Commit
1d01446e
authored
Jan 31, 2015
by
Sven Gestegård Robertz
Browse files
(partial) cleanup
parent
2f426104
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/c/2014/labcomm_decoder.c
View file @
1d01446e
...
...
@@ -199,6 +199,7 @@ static int decode_type_binding(struct labcomm_decoder *d, int kind)
out:
return
result
;
}
#ifdef OLD_TYPEDEF_DECODING_TEST_CODE
static
int
decode_type_def
(
struct
labcomm_decoder
*
d
,
int
kind
){
int
i
,
remote_index
,
result
;
char
*
name
;
...
...
@@ -241,6 +242,7 @@ free_signature_name:
out:
return
result
;
}
#endif
static
int
decode_sample_def_or_ref
(
struct
labcomm_decoder
*
d
,
int
kind
)
{
...
...
@@ -444,9 +446,13 @@ int labcomm_decoder_decode_one(struct labcomm_decoder *d)
result
=
decode_sample_def_or_ref
(
d
,
LABCOMM_SAMPLE_REF
);
}
else
if
(
remote_index
==
LABCOMM_TYPE_DEF
)
{
result
=
decode_and_handle
(
d
,
d
,
remote_index
);
if
(
result
==
-
ENOENT
)
{
printf
(
"*** no handler for typedef..."
);
if
(
result
==
-
ENOENT
)
{
//No handler for typedefs, skip
#ifdef OLD_TYPEDEF_DECODING_TEST_CODE
result
=
decode_type_def
(
d
,
LABCOMM_TYPE_DEF
);
#else
result
=
decoder_skip
(
d
,
length
,
remote_index
);
#endif
}
}
else
if
(
remote_index
==
LABCOMM_TYPE_BINDING
)
{
result
=
decode_type_binding
(
d
,
LABCOMM_TYPE_BINDING
);
...
...
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