1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-11 23:53:30 +00:00

Avoid name space collision for the global variables PC, SP and BC when readline is dynamically loaded.

This commit is contained in:
Peter Kooiman 2025-04-05 17:10:49 +02:00
parent b036821a68
commit 2e0d51e9e9
7 changed files with 24 additions and 1 deletions

View File

@ -40,3 +40,6 @@
#define STOP_IBKPT 3 /* breakpoint */
#define STOP_OPCODE 4
/* Rename of global BC and SP variables to avoid namespace conflicts on some platforms */
#define BC BC_Global
#define SP SP_Global

View File

@ -31,6 +31,11 @@
#include <string.h>
#include "sim_defs.h" /* simulator defns */
/* Rename of global PC, BC and SP variables to avoid namespace conflicts on some platforms */
#define PC PC_Global
#define BC BC_Global
#define SP SP_Global
#define SET_XACK(VAL) (xack = VAL)
#define I3214_NUM 0

View File

@ -31,6 +31,10 @@
#include "sim_defs.h" /* simulator defns */
/* Rename of global PC variable to avoid namespace conflicts on some platforms */
#define PC PC_Global
#if defined(USE_INT64) || defined(USE_ADDR64)
#error "LGP-30 does not support 64b values!"
#endif

View File

@ -51,6 +51,9 @@
#include "sim_defs.h" /* simulator defns */
/* Rename of global SP variable to avoid namespace conflicts on some platforms */
#define SP SP_Global
#if (defined(USE_INT64) && !defined(ECLIPSE)) || defined(USE_ADDR64)
#error "Nova does not support 64b values!"
#endif

View File

@ -30,6 +30,9 @@
#include "sim_defs.h" /* simulator defns */
/* Rename of global PC variable to avoid namespace conflicts on some platforms */
#define PC PC_Global
#if defined(USE_ADDR64)
#error "PDP-10 does not support 64b addresses!"
#endif

View File

@ -34,6 +34,10 @@
#include "sim_defs.h" /* simulator defns */
/* Rename of global PC variable to avoid namespace conflicts on some platforms */
#define PC PC_Global
#if defined(USE_INT64) || defined(USE_ADDR64)
#error "Sigma 32b does not support 64b values!"
#endif

View File

@ -27,9 +27,10 @@ Copyright (c) 2005-2012, William Beech
#include <ctype.h>
#include "sim_defs.h" // simulator defs
/* Rename of global PC variable to avoid namespace conflicts on some platforms */
/* Rename of global PC and SP variables to avoid namespace conflicts on some platforms */
#define PC PC_Global
#define SP SP_Global
//#define DONT_USE_INTERNAL_ROM 1