remove OSF1 support
This commit is contained in:
@@ -1,76 +0,0 @@
|
||||
#
|
||||
# @DEC_COPYRIGHT@
|
||||
#
|
||||
#
|
||||
# HISTORY
|
||||
# $Log$
|
||||
# Revision 2.1.2.2 1995/04/27 20:47:27 Kwanchai_Pawutiyapong
|
||||
# SunSoft Jan. snapshot merge from deltacde.
|
||||
# [1995/04/25 22:00:43 Kwanchai_Pawutiyapong]
|
||||
#
|
||||
# Revision 1.1.2.2 1995/04/20 03:02:02 Kwanchai_Pawutiyapong
|
||||
# Create DEC version of Makefile for dthelpdemo.
|
||||
# [1995/04/19 00:35:14 Kwanchai_Pawutiyapong]
|
||||
#
|
||||
# $EndLog$
|
||||
#
|
||||
# @(#)$XConsortium: Makefile.DEC /main/2 1996/05/13 11:26:48 drk $
|
||||
#
|
||||
##########################################################################
|
||||
#
|
||||
# Makefile for dthelpdemo
|
||||
#
|
||||
# (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
# (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
# (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
# (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of
|
||||
# Novell, Inc.
|
||||
##########################################################################
|
||||
|
||||
#ifndef CDE_INSTALLATION_TOP
|
||||
CDE_INSTALLATION_TOP = /usr/dt
|
||||
#endif
|
||||
|
||||
PROGRAM = dthelpdemo
|
||||
SOURCES = Main.c HelpCache.c HourGlass.c
|
||||
OBJECTS = Main.o HelpCache.o HourGlass.o
|
||||
HELPSRC = helpdemo.htg
|
||||
HELPOUT = help/helpdemo.sdl \
|
||||
help/helpdemo.err \
|
||||
help/helpdemo.xrh
|
||||
|
||||
|
||||
OPTIMIZEDFLAGS = -O
|
||||
|
||||
DTINCLUDE = -I$(CDE_INSTALLATION_TOP)/include
|
||||
X11INCLUDE = -I/usr/include/X11
|
||||
EXTRA_INCLUDES =
|
||||
INCLUDES = $(DTINCLUDE) $(X11INCLUDE) $(EXTRA_INCLUDES)
|
||||
|
||||
DTHELPLIB = -L$(CDE_INSTALLATION_TOP)/lib -lDtHelp
|
||||
DTSVCLIB = -L$(CDE_INSTALLATION_TOP)/lib -lDtSvc
|
||||
TTLIB = -L$(CDE_INSTALLATION_TOP)/lib -ltt
|
||||
XMLIB = -lXm
|
||||
XTLIB = -lXt
|
||||
X11LIB = -lX11
|
||||
|
||||
LIBRARIES = $(DTHELPLIB) $(DTSVCLIB) $(TTLIB) $(XMLIB) $(XTLIB) $(X11LIB)
|
||||
LDFLAGS =
|
||||
|
||||
.c.o:
|
||||
cc -c $(OPTIMIZEDFLAGS) $(INCLUDES) $<
|
||||
|
||||
all:: $(PROGRAM) volume
|
||||
|
||||
$(PROGRAM):: $(OBJECTS)
|
||||
cc -o $(PROGRAM) $(LDFLAGS) $(OBJECTS) $(LIBRARIES)
|
||||
|
||||
volume::
|
||||
(cd help/ ; \
|
||||
dthelptag $(HELPSRC);)
|
||||
|
||||
clean::
|
||||
rm -f $(PROGRAM)
|
||||
rm -f $(OBJECTS)
|
||||
rm -f $(HELPOUT)
|
||||
|
||||
@@ -55,11 +55,6 @@
|
||||
#include <sys/param.h>
|
||||
#include <limits.h>
|
||||
#include <unistd.h> /* R_OK */
|
||||
#ifdef __osf__
|
||||
/* Suppress unaligned access message */
|
||||
#include <sys/types.h>
|
||||
#include <sys/sysinfo.h>
|
||||
#endif /* __osf__ */
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <X11/Shell.h>
|
||||
@@ -209,28 +204,6 @@ void main(
|
||||
char **newArgv;
|
||||
int counter=0;
|
||||
|
||||
#ifdef __osf__
|
||||
/* Code to suppress unaligned access message. */
|
||||
unsigned long op;
|
||||
int buffer[2];
|
||||
unsigned long nbytes = 1;
|
||||
char* arg = 0;
|
||||
unsigned long flag = 0;
|
||||
|
||||
int ssi_status;
|
||||
|
||||
op = SSI_NVPAIRS;
|
||||
|
||||
buffer[0] = SSIN_UACPROC;
|
||||
buffer[1] = 0x00000001;
|
||||
#ifdef DEBUG_UAC
|
||||
buffer[1] |= 0x00000004;
|
||||
#endif
|
||||
|
||||
ssi_status = setsysinfo ( op, (caddr_t) buffer, nbytes, arg, flag );
|
||||
#endif
|
||||
|
||||
|
||||
XtSetLanguageProc(NULL, NULL, NULL);
|
||||
startCommand = argv[0];
|
||||
appName = strrchr(argv[0], '/');
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
#endif
|
||||
#include <ctype.h>
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux) || defined(CSRG_BASED)
|
||||
#include <unistd.h>
|
||||
#include <locale.h>
|
||||
#include <fcntl.h>
|
||||
@@ -178,7 +178,7 @@ EXTERN char dirsep
|
||||
#if defined(MSDOS)
|
||||
INIT('\\')
|
||||
#else
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux) || defined(CSRG_BASED)
|
||||
INIT('/')
|
||||
#else
|
||||
****define directory separator here****
|
||||
@@ -186,7 +186,7 @@ INIT('/')
|
||||
#endif
|
||||
;
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux) || defined(CSRG_BASED)
|
||||
#define CSEP '/'
|
||||
#define SSEP "/"
|
||||
#else
|
||||
|
||||
@@ -61,7 +61,6 @@ m_free(string, "GetDefaultHeaderString return");
|
||||
|
||||
/* Determine base name for files (i.e., input name without extension).
|
||||
Open output and error files */
|
||||
/* osf has the same function defined, change the routine name to fbasename() */
|
||||
void fbasename(M_NOPAR)
|
||||
{
|
||||
char *p, *q;
|
||||
@@ -358,7 +357,7 @@ char *qualname;
|
||||
char *unqualname;
|
||||
#endif
|
||||
{
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux) || defined(CSRG_BASED)
|
||||
|
||||
FILE *f;
|
||||
#endif
|
||||
@@ -383,7 +382,7 @@ else
|
||||
|
||||
fnp = fn;
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux) || defined(CSRG_BASED)
|
||||
qualname[0] = '\0';
|
||||
gp = qualname + strlen(qualname);
|
||||
roomleft = roomleft - strlen(qualname);
|
||||
@@ -497,7 +496,7 @@ do {
|
||||
while (1);
|
||||
*strrchr(qualname, CSEP) = '\0';
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux) || defined(CSRG_BASED)
|
||||
#else
|
||||
strupr ( qualname );
|
||||
#endif
|
||||
|
||||
@@ -179,17 +179,6 @@
|
||||
m_free(wc_1,"wide character string");
|
||||
m_free(wc_2,"wide character string");
|
||||
}
|
||||
#else
|
||||
#if defined(__osf__)
|
||||
{
|
||||
M_WCHAR *wc_1, *wc_2;
|
||||
|
||||
wc_1 = MakeWideCharString("OSF1");
|
||||
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",
|
||||
@@ -197,7 +186,6 @@
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
</CODE>
|
||||
|
||||
|
||||
@@ -36,14 +36,14 @@
|
||||
#include <sys\stat.h>
|
||||
#endif
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__osf__)
|
||||
#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(__osf__)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#undef M_PI /* M_PI is used by markup, we don't need the math PI */
|
||||
#endif
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ static char sopt[] =
|
||||
static char name[] = "m_name = '%s'\n" ;
|
||||
static char literal[] = "m_literal = '%s'\n" ;
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__osf__) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux)
|
||||
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))
|
||||
|
||||
@@ -357,7 +357,7 @@ char *qualname;
|
||||
char *unqualname;
|
||||
#endif
|
||||
{
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux) || defined(CSRG_BASED)
|
||||
FILE *f;
|
||||
#endif
|
||||
char fn[FNAMELEN];
|
||||
@@ -381,7 +381,7 @@ else
|
||||
|
||||
fnp = fn;
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux) || defined(CSRG_BASED)
|
||||
qualname[0] = '\0';
|
||||
gp = qualname + strlen(qualname);
|
||||
roomleft = roomleft - strlen(qualname);
|
||||
@@ -495,7 +495,7 @@ do {
|
||||
while (1);
|
||||
*strrchr(qualname, CSEP) = '\0';
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux) || defined(CSRG_BASED)
|
||||
#else
|
||||
strupr ( qualname );
|
||||
#endif
|
||||
|
||||
@@ -168,17 +168,6 @@
|
||||
m_free(wc_1,"wide character string");
|
||||
m_free(wc_2,"wide character string");
|
||||
}
|
||||
#else
|
||||
#if defined(__osf__)
|
||||
{
|
||||
M_WCHAR *wc_1, *wc_2;
|
||||
|
||||
wc_1 = MakeWideCharString("OSF1");
|
||||
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",
|
||||
@@ -186,7 +175,6 @@
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
<\CODE>
|
||||
|
||||
|
||||
@@ -36,14 +36,14 @@
|
||||
#include <sys\stat.h>
|
||||
#endif
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__osf__)
|
||||
#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(__osf__)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#undef M_PI /* M_PI is used by markup, we don't need the math PI */
|
||||
#endif
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ int 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(__osf__) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux)
|
||||
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))
|
||||
|
||||
@@ -62,7 +62,7 @@ if (optfile = fopen(nameofoptfile, "r"))
|
||||
}
|
||||
m_free(nameofoptfile, "installation helptag.opt");
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__osf__)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
{
|
||||
char *opts;
|
||||
|
||||
@@ -79,7 +79,7 @@ if (opts)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /* hpux or _AIX or sun or __osf__ */
|
||||
#endif /* hpux or _AIX or sun */
|
||||
|
||||
/* Check helptag.opt in input directory */
|
||||
if (indir)
|
||||
|
||||
@@ -26,13 +26,10 @@
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/wait.h>
|
||||
#if defined(__osf__) || defined(linux)
|
||||
#if defined(linux)
|
||||
# include <sys/fcntl.h>
|
||||
#endif
|
||||
#if defined(__osf__)
|
||||
# include <sys/access.h>
|
||||
# include <locale.h>
|
||||
#endif /* __osf__ */
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#if defined(linux)
|
||||
|
||||
@@ -1743,9 +1743,6 @@
|
||||
<START-CODE>
|
||||
if (firstVirpage)
|
||||
{
|
||||
#ifdef __osf__
|
||||
#include <sys/fcntl.h>
|
||||
#endif /* __osf__ */
|
||||
if (pCurrentElement)
|
||||
EmitSDL(pCurrentElement);
|
||||
FcloseFile(outFile, vstructFileName, xxx);
|
||||
|
||||
@@ -45,7 +45,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(__osf__)
|
||||
#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))
|
||||
|
||||
Reference in New Issue
Block a user