From 96512043bd60d06e306ab064a65a61a105d9ee93 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 14 Feb 2022 01:32:18 -0800 Subject: [PATCH] SCP: Fix UDATA initialization macro to include newly added UNIT member --- sim_defs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim_defs.h b/sim_defs.h index 9bbb99e4..256e7d97 100644 --- a/sim_defs.h +++ b/sim_defs.h @@ -579,13 +579,13 @@ struct UNIT { char *filename; /* open file name */ FILE *fileref; /* file reference */ void *filebuf; /* memory buffer */ + void *filebuf2; /* copy of initial memory buffer */ uint32 hwmark; /* high water mark */ int32 time; /* time out */ uint32 flags; /* flags */ uint32 dynflags; /* dynamic flags */ t_addr capac; /* capacity */ t_addr pos; /* file position */ - void *filebuf2; /* copy of initial memory buffer */ void (*io_flush)(UNIT *up); /* io flush routine */ uint32 iostarttime; /* I/O start time */ int32 buf; /* buffer */ @@ -900,7 +900,7 @@ struct MEMFILE { */ -#define UDATA(act,fl,cap) NULL,act,NULL,NULL,NULL,0,0,(fl),0,(cap),0,NULL,0,0 +#define UDATA(act,fl,cap) NULL,act,NULL,NULL,NULL,NULL,0,0,(fl),0,(cap),0,NULL,0,0 /* Internal use ONLY (see below) Generic Register declaration for all fields */ #define _REGDATANF(nm,loc,rdx,wd,off,dep,desc,flds,qptr,siz,elesiz,macro) \