mirror of
https://github.com/simh/simh.git
synced 2026-01-11 23:52:58 +00:00
ALL: Avoid name space collision for the global variable PC when readline is dynamically loaded in many simulators.
This commit is contained in:
parent
f5dcb2e2e5
commit
c2cef3c051
@ -34,6 +34,10 @@
|
||||
#include "scp.h"
|
||||
#include <setjmp.h>
|
||||
|
||||
/* Rename of global PC variable to avoid namespace conflicts on some platforms */
|
||||
|
||||
#define PC PC_Global
|
||||
|
||||
/*
|
||||
* Memory.
|
||||
*/
|
||||
|
||||
@ -79,6 +79,10 @@
|
||||
|
||||
#include "sim_defs.h" /* simulator defns */
|
||||
|
||||
/* Rename of global PC variable to avoid namespace conflicts on some platforms */
|
||||
|
||||
#define PC PC_Global
|
||||
|
||||
|
||||
/* The following pragmas quell clang warnings that are on by default but should
|
||||
not be, in my opinion. They warn about the use of perfectly valid code and
|
||||
|
||||
@ -38,6 +38,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_ADDR64)
|
||||
#error "7094 does not support 64b addresses!"
|
||||
#endif
|
||||
|
||||
@ -41,6 +41,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 "Interdata 16/32 does not support 64b values!"
|
||||
#endif
|
||||
|
||||
@ -54,6 +54,10 @@
|
||||
|
||||
#include "sim_defs.h"
|
||||
|
||||
/* Rename of global PC variable to avoid namespace conflicts on some platforms */
|
||||
|
||||
#define PC PC_Global
|
||||
|
||||
#if defined(USE_INT64) || defined(USE_ADDR64)
|
||||
#error "PDP-1 does not support 64b values!"
|
||||
#endif
|
||||
|
||||
@ -55,6 +55,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 "18b PDP's do not support 64b values!"
|
||||
#endif
|
||||
|
||||
@ -42,6 +42,10 @@
|
||||
|
||||
#include "sim_defs.h"
|
||||
|
||||
/* Rename of global PC variable to avoid namespace conflicts on some platforms */
|
||||
|
||||
#define PC PC_Global
|
||||
|
||||
/* Simulator stop codes */
|
||||
#define STOP_RSRV 1 /* must be 1 */
|
||||
#define STOP_HALT 2 /* HALT */
|
||||
|
||||
@ -36,6 +36,10 @@
|
||||
|
||||
#define INLINE
|
||||
|
||||
/* Rename of global PC variable to avoid namespace conflicts on some platforms */
|
||||
|
||||
#define PC PC_Global
|
||||
|
||||
/* Configuration */
|
||||
|
||||
#define INITMEMSIZE (1 << 24) /* !!debug!! */
|
||||
|
||||
@ -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
|
||||
|
||||
@ -27,6 +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 */
|
||||
|
||||
#define PC PC_Global
|
||||
|
||||
/* Memory */
|
||||
|
||||
#define MAXMEMSIZE 65536 // max memory size
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user