From 8b525f59c38ee52e806d46bc416d8e8ed4097ebc Mon Sep 17 00:00:00 2001 From: carl Date: Sun, 17 Mar 2019 22:42:20 +0800 Subject: [PATCH] + ANSI C conversion --- util/int/data.h | 30 ++++++++++++++++++++++++++++++ util/int/dump.h | 17 +++++++++++++++++ util/int/io.h | 16 ++++++++++++++++ util/int/m_sigtrp.h | 15 +++++++++++++++ 4 files changed, 78 insertions(+) create mode 100644 util/int/data.h create mode 100644 util/int/dump.h create mode 100644 util/int/io.h create mode 100644 util/int/m_sigtrp.h diff --git a/util/int/data.h b/util/int/data.h new file mode 100644 index 000000000..5cbb97ff2 --- /dev/null +++ b/util/int/data.h @@ -0,0 +1,30 @@ +/* Copyright (c) 2019 ACK Project. + * See the copyright notice in the ACK home directory, + * in the file "Copyright". + * + */ +#ifndef DATA_H_ +#define DATA_H_ + +#include "global.h" + + +void init_data(ptr hb); +void newHP(ptr ap); +void dt_stdp(register ptr addr, ptr ap); +void dt_stn(register ptr addr, long al, size n); +void dt_stw(register ptr addr, long al); +void dt_stip(register ptr addr, ptr ap); +#ifndef NOFLOAT +void dt_stf(register ptr addr, double f, register size n); +#endif + +ptr dt_lddp(register ptr addr); +unsigned long dt_ldu(register ptr addr, size n); +unsigned long dt_lduw(register ptr addr); +long dt_lds(register ptr addr, size n); +long dt_ldsw(register ptr addr); +void dt_mvd(ptr d2, ptr d1, size n); +void dt_mvs(ptr d, ptr s, size n); + +#endif /* DATA_H_ */ diff --git a/util/int/dump.h b/util/int/dump.h new file mode 100644 index 000000000..6c98573dd --- /dev/null +++ b/util/int/dump.h @@ -0,0 +1,17 @@ +/* Copyright (c) 2019 ACK Project. + * See the copyright notice in the ACK home directory, + * in the file "Copyright". + * + * Created on: 2019-03-16 + * + */ +#ifndef DUMP_H_ +#define DUMP_H_ + +#ifdef LOGGING +void std_all(long, int); +void gdad_all(ptr, ptr); +void hpd_all(void); +#endif + +#endif /* DUMP_H_ */ diff --git a/util/int/io.h b/util/int/io.h new file mode 100644 index 000000000..46f9bde36 --- /dev/null +++ b/util/int/io.h @@ -0,0 +1,16 @@ +/* Copyright (c) 2019 ACK Project. + * See the copyright notice in the ACK home directory, + * in the file "Copyright". + * + * Created on: 2019-03-16 + * + */ +#ifndef IO_H_ +#define IO_H_ + +void fatal(char *fmt, ...); +void message(char *fmt, ...); +void init_ofiles(int firsttime); +void close_down(int rc); + +#endif /* IO_H_ */ diff --git a/util/int/m_sigtrp.h b/util/int/m_sigtrp.h new file mode 100644 index 000000000..fa5eaa269 --- /dev/null +++ b/util/int/m_sigtrp.h @@ -0,0 +1,15 @@ +/* Copyright (c) 2019 ACK Project. + * See the copyright notice in the ACK home directory, + * in the file "Copyright". + * + * Created on: 2019-03-17 + * + */ +#ifndef M_SIGTRP_H_ +#define M_SIGTRP_H_ + +void init_signals(void); +int do_sigtrp(int tn, int sn); +void trap_signal(void); + +#endif /* M_SIGTRP_H_ */