From: ian Date: Thu, 7 Sep 2006 11:44:26 +0000 (+0000) Subject: working on new data arrangements X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=e4b7ab1b349f2d45314ccc6be4924639b491a858;p=trains.git working on new data arrangements --- 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 */