1
0
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:
Mark Pizzolato 2015-01-11 15:22:47 -08:00
parent f5dcb2e2e5
commit c2cef3c051
10 changed files with 40 additions and 0 deletions

View File

@ -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.
*/

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 */

View File

@ -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!! */

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,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