Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LabComm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Jansson
LabComm
Commits
5340978e
Commit
5340978e
authored
10 years ago
by
Sven Gestegård Robertz
Browse files
Options
Downloads
Patches
Plain Diff
small tweak of decoder_skip
parent
1279cb03
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/c/labcomm_decoder.c
+6
-5
6 additions, 5 deletions
lib/c/labcomm_decoder.c
with
6 additions
and
5 deletions
lib/c/labcomm_decoder.c
+
6
−
5
View file @
5340978e
...
...
@@ -230,7 +230,7 @@ out:
return
result
;
}
static
int
decoder_skip
(
struct
labcomm_decoder
*
d
,
int
len
)
static
int
decoder_skip
(
struct
labcomm_decoder
*
d
,
int
len
,
int
tag
)
{
int
i
;
printf
(
"skipping %d bytes
\n
"
,
len
);
...
...
@@ -240,7 +240,7 @@ static int decoder_skip(struct labcomm_decoder *d, int len)
return
d
->
reader
->
error
;
}
}
return
0
;
return
tag
;
}
static
int
decode_pragma
(
struct
labcomm_decoder
*
d
,
int
len
)
{
...
...
@@ -280,7 +280,7 @@ static int decode_pragma(struct labcomm_decoder *d, int len)
internal_labcomm_decoder_free
(
pd
);
result
=
0
;
}
else
{
result
=
decoder_skip
(
d
,
psize
);
result
=
decoder_skip
(
d
,
psize
,
LABCOMM_PRAGMA
);
}
out:
return
result
;
...
...
@@ -311,8 +311,9 @@ int labcomm_decoder_decode_one(struct labcomm_decoder *d)
}
else
if
(
remote_index
==
LABCOMM_PRAGMA
){
result
=
decode_pragma
(
d
,
length
);
}
else
if
(
remote_index
<
LABCOMM_USER
)
{
fprintf
(
stderr
,
"SKIP %d %d
\n
"
,
remote_index
,
length
);
result
=
remote_index
;
//fprintf(stderr, "SKIP %d %d\n", remote_index, length);
//result = remote_index;
result
=
decoder_skip
(
d
,
length
,
remote_index
);
}
else
{
int
*
local_index
;
struct
call_handler_context
wrap
=
{
...
...
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