1
0
mirror of https://github.com/open-simh/simh.git synced 2026-05-05 23:54:03 +00:00

SCP: Add ability to descriptively name UNITs

This allows a device simulator to specifically name the units that it uses
for different purposes.  This info is visible in the output of SHOW QUEUE
and debug output.

Once specified or dynamically determined (as previously occurred with
each call to sim_uname()), that name is saved for fast delivery on subsequent
calls.  This will remove some overhead when running with debugging on.
This commit is contained in:
Mark Pizzolato
2017-02-06 10:27:01 -08:00
parent 7050a1aef5
commit 692b9abe5f
3 changed files with 18 additions and 5 deletions

1
scp.h
View File

@@ -144,6 +144,7 @@ t_stat reset_all (uint32 start_device);
t_stat reset_all_p (uint32 start_device);
const char *sim_dname (DEVICE *dptr);
const char *sim_uname (UNIT *dptr);
const char *sim_set_uname (UNIT *uptr, const char *uname);
t_stat get_yn (const char *ques, t_stat deflt);
int sim_isspace (char c);
int sim_islower (char c);