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
dcbea31a
Commit
dcbea31a
authored
Oct 25, 2014
by
Sven Gestegård Robertz
Browse files
put back more pragma stuff, c encoder working as before
parent
d6c8fa44
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/c/labcomm_encoder.c
View file @
dcbea31a
...
...
@@ -216,7 +216,7 @@ free_encoder:
#endif
int
labcomm_internal_encoder_reg
ister
(
static
int
labcomm_internal_encoder_reg
_type
(
struct
labcomm_encoder
*
e
,
struct
labcomm_signature
*
signature
,
labcomm_encoder_function
encode
)
...
...
@@ -257,6 +257,18 @@ out:
return
result
;
}
int
labcomm_internal_encoder_register
(
struct
labcomm_encoder
*
e
,
struct
labcomm_signature
*
signature
,
labcomm_encoder_function
encode
)
{
if
(
e
->
context_type
==
LABCOMM_PRAGMA
&&
e
->
context
){
e
=
((
struct
pragma_packet_builder
*
)
e
->
context
)
->
parent
;
}
return
labcomm_internal_encoder_reg_type
(
e
,
signature
,
encode
);
}
int
labcomm_internal_encode
(
struct
labcomm_encoder
*
e
,
struct
labcomm_signature
*
signature
,
...
...
Write
Preview
Supports
Markdown
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