Commit 7a3d1a76 authored by Sven Gestegård Robertz's avatar Sven Gestegård Robertz
Browse files

C library ver 2006 works with examples/simple

parent 588a5ccc
......@@ -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;
}
......
......@@ -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
}
}
......
......@@ -346,7 +346,7 @@ struct labcomm2006_writer {
int labcomm2006_writer_alloc(struct labcomm2006_writer *w,
struct labcomm2006_writer_action_context *action_context,
char *labcomm2006_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,
......
......@@ -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/labcomm2006_scheduler.o \
2006/labcomm2006_encoder.o 2006/labcomm2006_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/labcomm2006_fd_writer.o \
2006/labcomm2006_pthread_scheduler.o
OBJS=labcomm_memory.o \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment