Remove Unixware and openserver support

This commit is contained in:
chase
2018-05-19 19:50:35 -05:00
committed by Jon Trulson
parent beea573d17
commit 07900bd93b
375 changed files with 725 additions and 9112 deletions

View File

@@ -706,7 +706,7 @@ void mb_strcode(
#endif
) ;
#if defined(hpux) || defined(__aix) || defined(sun) || defined(USL)
#if defined(hpux) || defined(__aix) || defined(sun)
char *strstr(
#if defined(M_PROTO)
const char *s1, const char *s2

View File

@@ -42,7 +42,7 @@
#endif
#include <ctype.h>
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(linux) || defined(CSRG_BASED)
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux) || defined(CSRG_BASED)
#include <unistd.h>
#include <locale.h>
#endif
@@ -168,9 +168,6 @@ EXTERN char driver[20]
#if defined(sun)
INIT("SUN")
#endif
#if defined(USL)
INIT("USL")
#endif
#endif
;
@@ -197,7 +194,7 @@ EXTERN char dirsep
#if defined(MSDOS)
INIT('\\')
#else
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL)
#if defined(hpux) || defined(_AIX) || defined(sun)
INIT('/')
#else
****define directory separator here****
@@ -205,7 +202,7 @@ INIT('/')
#endif
;
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL)
#if defined(hpux) || defined(_AIX) || defined(sun)
#define CSEP '/'
#define SSEP "/"
#else

View File

@@ -151,7 +151,7 @@ void basename(M_NOPAR)
*p = save;
#else
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(linux)
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux)
#define CONTRIB "/usr/hphelp/bin/"
/* get our path if we can */
@@ -996,7 +996,7 @@ int mb_getqualified ( qualname, unqualname )
char *qualname;
char *unqualname;
{
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(linux)
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux)
FILE *f;
#endif
char fn[FNAMELEN];
@@ -1020,7 +1020,7 @@ else
fnp = fn;
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(linux)
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux)
qualname[0] = '\0';
gp = qualname + strlen(qualname);
roomleft = roomleft - strlen(qualname);
@@ -1134,7 +1134,7 @@ do {
while (1);
*strrchr(qualname, CSEP) = '\0';
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(linux)
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux)
#else
strupr ( qualname );
#endif
@@ -2249,7 +2249,7 @@ while (name = m_cyclent(init, &type, &content, &wheredef))
#if defined(MSDOS)
m_openchk(&nullfile, "NUL", "w");
#else
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(linux)
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux)
m_openchk(&nullfile, "/dev/null", "w");
#else
m_openchk(&nullfile, "nullfile", "w");

View File

@@ -207,17 +207,6 @@
m_free(wc_1,"wide character string");
m_free(wc_2,"wide character string");
}
#else
#if defined(USL)
{
M_WCHAR *wc_1, *wc_2;
wc_1 = MakeWideCharString("USL");
wc_2 = MakeWideCharString("m-machine");
m_piaction(wc_1, wc_2, M_SDATA) ;
m_free(wc_1,"wide character string");
m_free(wc_2,"wide character string");
}
#else
m_piaction("UNDEFINED MACHINE",
"m-machine",
@@ -225,7 +214,6 @@
#endif
#endif
#endif
#endif
#endif
<\CODE>

View File

@@ -36,14 +36,14 @@
#include <sys\stat.h>
#endif
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL)
#if defined(hpux) || defined(_AIX) || defined(sun)
#include <sys/types.h>
#include <sys/stat.h>
#endif
#include <math.h>
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL)
#if defined(hpux) || defined(_AIX) || defined(sun)
#undef M_PI /* M_PI is used by markup, we don't need the math PI */
#endif

View File

@@ -26,7 +26,7 @@
#include "userinc.h"
#include "globdec.h"
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL)
#if defined(hpux) || defined(_AIX) || defined(sun)
/* get definition of getenv(3c) for getting of environment variables */
#include <stdlib.h>
#endif
@@ -62,7 +62,7 @@ if (optfile = fopen(nameofoptfile, "r"))
}
m_free(nameofoptfile, "installation helptag.opt");
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL)
#if defined(hpux) || defined(_AIX) || defined(sun)
{
char *opts;

View File

@@ -51,7 +51,7 @@ void main(argc, argv)
"prevcon=%d,token=%d,curcon=%d,scanval='%c'(%d),line=%d,netlevel=%d\n" ;
static char name[] = "m_name = '%s'\n" ;
static char literal[] = "m_literal = '%s'\n" ;
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL)
#if defined(hpux) || defined(_AIX) || defined(sun)
char buffer[M_LITLEN + 80] ;
#else
#define max4(a,b,c,d) (a>b&&a>c&&a>d) ? a : ((b>c&&b>d) ? b : (c>d ? c : d))

View File

@@ -46,7 +46,7 @@ typedef wchar_t M_WCHAR;
/* For function prototypes */
typedef char * M_POINTER;
#if defined(hpux) || defined(__aix) || defined(sun) || defined(USL)
#if defined(hpux) || defined(__aix) || defined(sun)
/* Old unix stuff
*#define void int
*#define M_NOPAR

View File

@@ -94,7 +94,7 @@ void m_free(block, msg)
if (m_heapchk) m_heapdump() ;
#endif
if (m_malftrace) {
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL)
#if defined(hpux) || defined(_AIX) || defined(sun)
sprintf(buffer, "%5x:%5x",
(unsigned int) ((unsigned long) block >> 16),
(unsigned int) block, msg) ;
@@ -170,7 +170,7 @@ void *m_malloc(size, msg)
m_exit(TRUE) ;
}
if (m_malftrace) {
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL)
#if defined(hpux) || defined(_AIX) || defined(sun)
sprintf(buffer, "%5x:%5x",
(unsigned int) ((unsigned long) p >> 16), (unsigned int) p) ;
#else
@@ -211,7 +211,7 @@ void *m_realloc(ptr, size, msg)
m_exit(TRUE) ;
}
if (m_malftrace) {
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL)
#if defined(hpux) || defined(_AIX) || defined(sun)
sprintf(buffer, "%5x:%5x",
(unsigned int) ((unsigned long) p >> 16), (unsigned int) p) ;
#else