summaryrefslogtreecommitdiff
path: root/rsc/source/rscpp
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-18 10:14:23 +0200
committerNoel Grandin <noel@peralex.com>2014-09-19 08:36:54 +0200
commitb4b2b434362d5854cddef1e576c4a6a7c51b45ef (patch)
tree49ac9df71366c623311b544e308b73705b10c2bb /rsc/source/rscpp
parent2b97ae3221f9759f6253540214e9ff2a52a76efb (diff)
rsc: remove support for DECUS
and consequently unused define "nomacargs" Change-Id: Ica5da9cf03ad63bf07b3385995ebf420ffb28089
Diffstat (limited to 'rsc/source/rscpp')
-rw-r--r--rsc/source/rscpp/cpp.h25
-rw-r--r--rsc/source/rscpp/cpp5.c9
-rw-r--r--rsc/source/rscpp/cppdef.h4
3 files changed, 0 insertions, 38 deletions
diff --git a/rsc/source/rscpp/cpp.h b/rsc/source/rscpp/cpp.h
index 250b0dc1eb51..7f453756e61e 100644
--- a/rsc/source/rscpp/cpp.h
+++ b/rsc/source/rscpp/cpp.h
@@ -38,12 +38,7 @@ extern FILE *pDefOut; /* ER */
/* limit for reading commandfiles */
#define PARALIMIT 100
-#ifndef EOS
-/*
- * This is predefined in Decus C
- */
#define EOS '\0' /* End of string */
-#endif
#define EOF_CHAR 0 /* Returned by get() on eof */
#define NULLST ((char *) NULL) /* Pointer to nowhere (linted) */
#define DEF_NOARGS (-1) /* #define foo vs #define foo() */
@@ -202,35 +197,15 @@ typedef struct sizes {
int size; /* this is the datum size value */
int psize; /* this is the pointer size */
} SIZES;
-/*
- * nomacarg is a built-in #define on Decus C.
- */
-#ifdef nomacarg
-#define cput output /* cput concatenates tokens */
-#else
#define cput(c) { if (c != TOK_SEP) PUTCHAR(c); }
-#endif
-
-#ifndef nomacarg
#define streq(s1, s2) (strcmp(s1, s2) == 0)
-#endif
/*
* Error codes.
- * Decus C codes are defined in stdio.h.
- * Others are cooked to order.
*/
-
-/*
- * Note: IO_NORMAL and IO_ERROR are defined in the Decus C stdio.h file
- */
-#ifndef IO_NORMAL
#define IO_NORMAL 0
-#endif
-#ifndef IO_ERROR
#define IO_ERROR 1
-#endif
/*
* Externs
diff --git a/rsc/source/rscpp/cpp5.c b/rsc/source/rscpp/cpp5.c
index 7d26842c4dde..62d8f4b0f44d 100644
--- a/rsc/source/rscpp/cpp5.c
+++ b/rsc/source/rscpp/cpp5.c
@@ -87,16 +87,7 @@ typedef struct optab {
} OPTAB;
static int evalue; /* Current value from evallex() */
-#ifdef nomacargs
-FILE_LOCAL int
-isbinary(op)
-int op;
-{
- return (op >= FIRST_BINOP && op <= LAST_BINOP);
-}
-#else
#define isbinary(op) (op >= FIRST_BINOP && op <= LAST_BINOP)
-#endif
/*
* The following definitions are used to specify basic variable sizes.
diff --git a/rsc/source/rscpp/cppdef.h b/rsc/source/rscpp/cppdef.h
index 274d60c4ccd2..25359daab47e 100644
--- a/rsc/source/rscpp/cppdef.h
+++ b/rsc/source/rscpp/cppdef.h
@@ -181,12 +181,8 @@
#ifndef FILE_LOCAL
-#ifdef decus
-#define FILE_LOCAL static
-#else
#define FILE_LOCAL /* Others are global */
#endif
-#endif
#endif // INCLUDED_RSC_SOURCE_RSCPP_CPPDEF_H