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
7a3d1a76
Commit
7a3d1a76
authored
Feb 14, 2014
by
Sven Gestegård Robertz
Browse files
C library ver 2006 works with examples/simple
parent
588a5ccc
Changes
4
Hide whitespace changes
Inline
Side-by-side
lib/c/2006/labcomm2006_fd_reader.c
View file @
7a3d1a76
...
...
@@ -51,6 +51,10 @@ static int fd_alloc(struct labcomm2006_reader *r,
r
->
data_size
=
BUFFER_SIZE
;
result
=
r
->
data_size
;
#if 0
// in-band version is not included in version 2006.
// This may be a place for version checking and/or printing
// a warning message
if (version && version[0]) {
char *tmp;
...
...
@@ -62,6 +66,7 @@ static int fd_alloc(struct labcomm2006_reader *r,
}
labcomm2006_memory_free(r->memory, 1, tmp);
}
#endif
}
return
result
;
}
...
...
lib/c/2006/labcomm2006_fd_writer.c
View file @
7a3d1a76
...
...
@@ -54,8 +54,10 @@ static int fd_alloc(struct labcomm2006_writer *w,
w
->
count
=
BUFFER_SIZE
;
w
->
pos
=
0
;
if
(
version
&&
version
[
0
])
{
#if 0
labcomm2006_write_string(w, version);
fd_flush(w, action_context);
#endif
}
}
...
...
lib/c/2006/labcomm2006_private.h
View file @
7a3d1a76
...
...
@@ -346,7 +346,7 @@ struct labcomm2006_writer {
int
labcomm2006_writer_alloc
(
struct
labcomm2006_writer
*
w
,
struct
labcomm2006_writer_action_context
*
action_context
,
char
*
labcomm
2006
_version
);
char
*
labcomm_version
);
int
labcomm2006_writer_free
(
struct
labcomm2006_writer
*
w
,
struct
labcomm2006_writer_action_context
*
action_context
);
int
labcomm2006_writer_start
(
struct
labcomm2006_writer
*
w
,
...
...
lib/c/Makefile
View file @
7a3d1a76
...
...
@@ -23,11 +23,11 @@ OBJS2006=2006/labcomm2006_memory.o \
2006/labcomm2006_default_error_handler.o
\
2006/labcomm2006_default_memory.o
\
2006/labcomm2006_default_scheduler.o
\
2006/labcomm2006_time.o labcomm_scheduler.o
\
2006/labcomm2006_encoder.o labcomm_decoder.o
\
2006/labcomm2006_time.o
2006/
labcomm
2006
_scheduler.o
\
2006/labcomm2006_encoder.o
2006/
labcomm
2006
_decoder.o
\
2006/labcomm2006.o
\
2006/labcomm2006_dynamic_buffer_writer.o
\
2006/labcomm2006_fd_reader.o labcomm_fd_writer.o
\
2006/labcomm2006_fd_reader.o
2006/
labcomm
2006
_fd_writer.o
\
2006/labcomm2006_pthread_scheduler.o
OBJS
=
labcomm_memory.o
\
...
...
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