From e4b7ab1b349f2d45314ccc6be4924639b491a858 Mon Sep 17 00:00:00 2001 From: ian Date: Thu, 7 Sep 2006 11:44:26 +0000 Subject: [PATCH] working on new data arrangements --- hostside/record.c | 11 +++++++++++ hostside/safety.h | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 hostside/record.c diff --git a/hostside/record.c b/hostside/record.c new file mode 100644 index 0000000..b025692 --- /dev/null +++ b/hostside/record.c @@ -0,0 +1,11 @@ +/* + * ASCII-format record and config file reader/writer + * + * File format: + * + * train at [-]:+- + * seg has [-]|$ + * train is # ++ + * train step = / + */ + diff --git a/hostside/safety.h b/hostside/safety.h index b1c88fa..2cb34c3 100644 --- a/hostside/safety.h +++ b/hostside/safety.h @@ -31,7 +31,7 @@ typedef struct { fixme call init_fixed_train; int addr; Distance head, detectable, tail; - SegmentNum foredetect; /* train's detectable part is at most maxinto */ + Segment *foredetect; /* train's detectable part is at most maxinto */ Distance maxinto, uncertainty; /* into foredetect but train may be */ unsigned /* uncertainty less far advanced */ backwards:1, /* train is moving backwards wrt its own front and back */ -- 2.30.2