Skip to main content
Homepage
Explore
Search or go to…
/
Register
Sign in
Explore
Primary navigation
Project
L
LabComm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
Anders Blomdell
LabComm
Commits
0c86cb8d
Commit
0c86cb8d
authored
Jan 28, 2015
by
Sven Gestegård Robertz
Browse files
Options
Downloads
Patches
Plain Diff
debugging / tests in progress
parent
c9724505
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/c/2014/labcomm_decoder.c
+14
-9
14 additions, 9 deletions
lib/c/2014/labcomm_decoder.c
with
14 additions
and
9 deletions
lib/c/2014/labcomm_decoder.c
+
14
−
9
View file @
0c86cb8d
...
...
@@ -184,16 +184,20 @@ static int decoder_skip(struct labcomm_decoder *d, int len, int tag)
static
int
decode_type_binding
(
struct
labcomm_decoder
*
d
,
int
kind
)
{
#if 0
int sample_index = labcomm_read_packed32(d->reader);
int
result
;
int
sample_index
=
result
=
labcomm_read_packed32
(
d
->
reader
);
if
(
d
->
reader
->
error
<
0
)
{
result
=
d
->
reader
->
error
;
goto
out
;
}
int
typedef_index
=
labcomm_read_packed32
(
d
->
reader
);
if
(
d
->
reader
->
error
<
0
)
{
result
=
d
->
reader
->
error
;
goto
out
;
}
printf
(
"type_binding: 0x%x -> 0x%x
\n
"
,
sample_index
,
typedef_index
);
#else
labcomm_read_packed32
(
d
->
reader
);
// sample_index
labcomm_read_packed32
(
d
->
reader
);
// typedef_index
#endif
int
result
=
kind
;
out:
fprintf
(
stderr
,
"[type_binding: %d]"
,
result
);
return
result
;
}
static
int
decode_type_def
(
struct
labcomm_decoder
*
d
,
int
kind
){
...
...
@@ -452,6 +456,7 @@ int labcomm_decoder_decode_one(struct labcomm_decoder *d)
result
=
decode_and_handle
(
d
,
d
,
remote_index
);
}
out:
fprintf
(
stderr
,
"
\n
decode_one returns %d
\n
"
,
result
);
return
result
;
}
...
...
...
...
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