From ec48dcb2e1736fdf632ebc46425256565e3fb25a Mon Sep 17 00:00:00 2001 From: Paul Koning Date: Thu, 18 May 2023 12:46:01 -0400 Subject: [PATCH] Common: Remove extraneous content from README.md. Remove unused files sim_inttypes.h and sim_printf_fmts.h --- README.md | 6 ---- sim_inttypes.h | 27 -------------- sim_printf_fmts.h | 92 ----------------------------------------------- 3 files changed, 125 deletions(-) delete mode 100644 sim_inttypes.h delete mode 100644 sim_printf_fmts.h diff --git a/README.md b/README.md index 9625e42b..5ed30c36 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,3 @@ -Github Actions CI/CD status: - - master branch: ![master](https://github.com/bscottm/open-simh/actions/workflows/build.yml/badge.svg) - - cmake branch: ![cmake](https://github.com/bscottm/open-simh/actions/workflows/build.yml/badge.svg?branch=cmake) - # Open SIMH machine simulator This is the codebase of SIMH, a framework and collection of computer system simulators. diff --git a/sim_inttypes.h b/sim_inttypes.h deleted file mode 100644 index a9fef95d..00000000 --- a/sim_inttypes.h +++ /dev/null @@ -1,27 +0,0 @@ -#if !defined(SIM_INTTYPES_H) -/* Length specific integer declarations */ - -/* Handle the special/unusual cases first with everything else leveraging stdints.h */ -#if defined (VMS) -#include -#elif defined(_MSC_VER) && (_MSC_VER < 1600) -typedef __int8 int8; -typedef __int16 int16; -typedef __int32 int32; -typedef unsigned __int8 uint8; -typedef unsigned __int16 uint16; -typedef unsigned __int32 uint32; -#else -/* All modern/standard compiler environments */ -/* any other environment needa a special case above */ -#include -typedef int8_t int8; -typedef int16_t int16; -typedef int32_t int32; -typedef uint8_t uint8; -typedef uint16_t uint16; -typedef uint32_t uint32; -#endif /* end standard integers */ - -#define SIM_INTTYPES_H -#endif \ No newline at end of file diff --git a/sim_printf_fmts.h b/sim_printf_fmts.h deleted file mode 100644 index 8657bc73..00000000 --- a/sim_printf_fmts.h +++ /dev/null @@ -1,92 +0,0 @@ -/*~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ - * sim_printf_fmts.h - * - * Cross-platform printf() formats for simh data types. Refactored out to - * this header so that these formats are avaiable to more than SCP. - * - * Author: B. Scott Michel - * - * "scooter me fecit" - *~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~*/ - -#pragma once -#if !defined(SIM_PRINTF_H) - -/* cross-platform printf() format specifiers: - * - * Note: MS apparently does recognize "ll" as "l" in its printf() routines, but "I64" is - * preferred for 64-bit types. - * - * MinGW note: __MINGW64__ and __MINGW32__ are both defined by 64-bit gcc. Check - * for __MINGW64__ before __MINGW32__. - */ - -#if defined (_WIN32) || defined(_WIN64) -# if defined(__MINGW64__) -# define LL_FMT "I64" -# elif defined(_MSC_VER) || defined(__MINGW32__) -# define LL_FMT "ll" -# else -# define LL_FMT "ll" -# endif -#elif defined (__VAX) /* No 64 bit ints on VAX */ -# define LL_FMT "l" -#else -# define LL_FMT "ll" -#endif - -#if defined(_WIN32) || defined(_WIN64) - -# if defined(__MINGW64__) -# define SIZE_T_FMT "I64" -# elif defined(_MSC_VER) || defined(__MINGW32__) -# define SIZE_T_FMT "z" -# endif - -# if defined(_WIN64) -# define SOCKET_FMT "I64" -# else -# define SOCKET_FMT "I32" -# endif - -# define T_UINT64_FMT "I64" -# define T_INT64_FMT "I64" -# define NTOHL_FMT "l" -# define IP_SADDR_FMT "l" -# define POINTER_FMT "p" -#elif defined(__GNU_LIBRARY__) || defined(__GLIBC__) || defined(__GLIBC_MINOR__) -/* glibc (basically, most Linuxen) */ -# define SIZE_T_FMT "z" -# define T_UINT64_FMT "ll" -# define T_INT64_FMT "ll" -# define NTOHL_FMT "" -# define IP_SADDR_FMT "" -# define SOCKET_FMT "" -# define POINTER_FMT "p" -#else -/* 32-bit platform, no 64 bit quantities */ -# define SIZE_T_FMT "" -# define T_UINT64_FMT "" -# define T_INT64_FMT "" -# define NTOHL_FMT "l" -# define IP_SADDR_FMT "l" -# define SOCKET_FMT "l" -# define POINTER_FMT "" -#endif - -#if defined (USE_INT64) && defined (USE_ADDR64) -# define T_ADDR_FMT T_UINT64_FMT -#else -# define T_ADDR_FMT "" -#endif - -#if defined (USE_INT64) -# define T_VALUE_FMT T_UINT64_FMT -# define T_SVALUE_FMT T_INT64_FMT -#else -# define T_VALUE_FMT "" -# define T_SVALUE_FMT "" -#endif - -#define SIM_PRINTF_H -#endif