Discontinue HPUX support
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
#include <time.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#if defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#include <unistd.h>
|
||||
#include <locale.h>
|
||||
#include <fcntl.h>
|
||||
@@ -170,14 +170,14 @@ struct search {
|
||||
EXTERN SEARCH *path INIT(NULL) ;
|
||||
EXTERN SEARCH **endpath INIT(&path) ;
|
||||
EXTERN char dirsep
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#if defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
INIT('/')
|
||||
#else
|
||||
****define directory separator here****
|
||||
#endif
|
||||
;
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#if defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#define CSEP '/'
|
||||
#define SSEP "/"
|
||||
#else
|
||||
|
||||
@@ -349,7 +349,7 @@ m_free(string, "GetDefaultHeaderString return");
|
||||
/* construct a qualified file name */
|
||||
static int mb_getqualified(char *qualname, char *unqualname)
|
||||
{
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#if defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
|
||||
FILE *f;
|
||||
#endif
|
||||
@@ -374,7 +374,7 @@ else
|
||||
|
||||
fnp = fn;
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#if defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
qualname[0] = '\0';
|
||||
gp = qualname + strlen(qualname);
|
||||
roomleft = roomleft - strlen(qualname);
|
||||
@@ -488,7 +488,7 @@ do {
|
||||
while (1);
|
||||
*strrchr(qualname, CSEP) = '\0';
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#if defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#else
|
||||
strupr ( qualname );
|
||||
#endif
|
||||
|
||||
@@ -144,17 +144,6 @@
|
||||
</CODE>
|
||||
|
||||
<!ENTITY m-machine SDATA CODE>
|
||||
#if defined(hpux)
|
||||
{
|
||||
M_WCHAR *wc_1, *wc_2;
|
||||
|
||||
wc_1 = MakeWideCharString("HPUX");
|
||||
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
|
||||
#if defined(_AIX)
|
||||
{
|
||||
M_WCHAR *wc_1, *wc_2;
|
||||
@@ -165,8 +154,7 @@
|
||||
m_free(wc_1,"wide character string");
|
||||
m_free(wc_2,"wide character string");
|
||||
}
|
||||
#else
|
||||
#if defined(sun)
|
||||
#elif defined(sun)
|
||||
{
|
||||
M_WCHAR *wc_1, *wc_2;
|
||||
|
||||
@@ -180,8 +168,6 @@
|
||||
m_piaction("UNDEFINED MACHINE",
|
||||
"m-machine",
|
||||
M_SDATA) ;
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
</CODE>
|
||||
|
||||
|
||||
@@ -31,14 +31,14 @@
|
||||
or invoke function pointers should be in tex.c.
|
||||
*/
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
#undef M_PI /* M_PI is used by markup, we don't need the math PI */
|
||||
#endif
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "userinc.h"
|
||||
#include "globdec.h"
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
/* get definition of getenv(3c) for getting of environment variables */
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
@@ -59,7 +59,7 @@ if (optfile = fopen(nameofoptfile, "r"))
|
||||
}
|
||||
m_free(nameofoptfile, "installation helptag.opt");
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
{
|
||||
char *opts;
|
||||
|
||||
@@ -76,7 +76,7 @@ if (opts)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /* hpux or _AIX or sun */
|
||||
#endif /* _AIX or sun */
|
||||
|
||||
/* Check helptag.opt in input directory */
|
||||
if (indir)
|
||||
|
||||
@@ -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(__linux__)
|
||||
#if 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))
|
||||
|
||||
@@ -55,7 +55,7 @@ void m_free(void *block, char *msg)
|
||||
|
||||
free(block) ;
|
||||
if (m_malftrace) {
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
snprintf(buffer, 32, "%5x:%5x",
|
||||
(unsigned int) ((unsigned long) block >> 16),
|
||||
(unsigned int) block) ;
|
||||
@@ -84,7 +84,7 @@ void *m_malloc(int size, char *msg)
|
||||
m_exit(TRUE) ;
|
||||
}
|
||||
if (m_malftrace) {
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
snprintf(buffer, 32, "%5x:%5x",
|
||||
(unsigned int) ((unsigned long) p >> 16), (unsigned int) p) ;
|
||||
#else
|
||||
@@ -116,7 +116,7 @@ void *m_realloc(void *ptr, int size, char *msg)
|
||||
m_exit(TRUE) ;
|
||||
}
|
||||
if (m_malftrace) {
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
snprintf(buffer, 32, "%5x:%5x",
|
||||
(unsigned int) ((unsigned long) p >> 16), (unsigned int) p) ;
|
||||
#else
|
||||
|
||||
@@ -350,7 +350,7 @@ m_free(string, "GetDefaultHeaderString return");
|
||||
/* construct a qualified file name */
|
||||
static int mb_getqualified(char *qualname, char *unqualname)
|
||||
{
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#if defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
FILE *f;
|
||||
#endif
|
||||
char fn[FNAMELEN];
|
||||
@@ -374,7 +374,7 @@ else
|
||||
|
||||
fnp = fn;
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#if defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
qualname[0] = '\0';
|
||||
gp = qualname + strlen(qualname);
|
||||
roomleft = roomleft - strlen(qualname);
|
||||
@@ -488,7 +488,7 @@ do {
|
||||
while (1);
|
||||
*strrchr(qualname, CSEP) = '\0';
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#if defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#else
|
||||
strupr ( qualname );
|
||||
#endif
|
||||
|
||||
@@ -133,17 +133,6 @@
|
||||
<\CODE>
|
||||
|
||||
<!ENTITY m-machine SDATA CODE>
|
||||
#if defined(hpux)
|
||||
{
|
||||
M_WCHAR *wc_1, *wc_2;
|
||||
|
||||
wc_1 = MakeWideCharString("HPUX");
|
||||
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
|
||||
#if defined(_AIX)
|
||||
{
|
||||
M_WCHAR *wc_1, *wc_2;
|
||||
@@ -154,8 +143,7 @@
|
||||
m_free(wc_1,"wide character string");
|
||||
m_free(wc_2,"wide character string");
|
||||
}
|
||||
#else
|
||||
#if defined(sun)
|
||||
#elif defined(sun)
|
||||
{
|
||||
M_WCHAR *wc_1, *wc_2;
|
||||
|
||||
@@ -169,8 +157,6 @@
|
||||
m_piaction("UNDEFINED MACHINE",
|
||||
"m-machine",
|
||||
M_SDATA) ;
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
<\CODE>
|
||||
|
||||
|
||||
@@ -31,14 +31,14 @@
|
||||
or invoke function pointers should be in tex.c.
|
||||
*/
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
#undef M_PI /* M_PI is used by markup, we don't need the math PI */
|
||||
#endif
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
void m_mberr1(char *text, const char *arg);
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
/* get definition of getenv(3c) for getting of environment variables */
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
@@ -59,7 +59,7 @@ if (optfile = fopen(nameofoptfile, "r"))
|
||||
}
|
||||
m_free(nameofoptfile, "installation helptag.opt");
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
{
|
||||
char *opts;
|
||||
|
||||
@@ -76,7 +76,7 @@ if (opts)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /* hpux or _AIX or sun */
|
||||
#endif /* _AIX or sun */
|
||||
|
||||
/* Check helptag.opt in input directory */
|
||||
if (indir)
|
||||
|
||||
@@ -43,7 +43,7 @@ int main(int argc, char **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(__linux__)
|
||||
#if 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))
|
||||
|
||||
@@ -54,7 +54,7 @@ void m_free(void *block, char *msg)
|
||||
char buffer[32] ;
|
||||
|
||||
if (m_malftrace) {
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
snprintf(buffer, 32, "%5x:%5x",
|
||||
(unsigned int) ((unsigned long) block >> 16),
|
||||
(unsigned int) block) ;
|
||||
@@ -84,7 +84,7 @@ void *m_malloc(int size, char *msg)
|
||||
m_exit(TRUE) ;
|
||||
}
|
||||
if (m_malftrace) {
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
snprintf(buffer, 32, "%5x:%5x",
|
||||
(unsigned int) ((unsigned long) p >> 16), (unsigned int) p) ;
|
||||
#else
|
||||
@@ -116,7 +116,7 @@ void *m_realloc(void *ptr, int size, char *msg)
|
||||
m_exit(TRUE) ;
|
||||
}
|
||||
if (m_malftrace) {
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
snprintf(buffer, 32, "%5x:%5x",
|
||||
(unsigned int) ((unsigned long) p >> 16), (unsigned int) p) ;
|
||||
#else
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#include <time.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#if defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#include <unistd.h>
|
||||
#include <locale.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "userinc.h"
|
||||
#include "globdec.h"
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
/* get definition of getenv(3c) for getting of environment variables */
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
@@ -59,7 +59,7 @@ if (optfile = fopen(nameofoptfile, "r"))
|
||||
}
|
||||
m_free(nameofoptfile, "installation helptag.opt");
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
{
|
||||
char *opts;
|
||||
|
||||
@@ -76,7 +76,7 @@ if (opts)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /* hpux or _AIX or sun */
|
||||
#endif /* _AIX or sun */
|
||||
|
||||
/* Check helptag.opt in input directory */
|
||||
if (indir)
|
||||
|
||||
@@ -43,7 +43,7 @@ void main(int argc, char **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)
|
||||
#if 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))
|
||||
|
||||
@@ -54,7 +54,7 @@ void m_free(void *block, char *msg)
|
||||
char buffer[32] ;
|
||||
|
||||
if (m_malftrace) {
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
snprintf(buffer, 32, "%5x:%5x",
|
||||
(unsigned int) ((unsigned long) block >> 16),
|
||||
(unsigned int) block) ;
|
||||
@@ -84,7 +84,7 @@ void *m_malloc(int size, char *msg)
|
||||
m_exit(TRUE) ;
|
||||
}
|
||||
if (m_malftrace) {
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
snprintf(buffer, 32, "%5x:%5x",
|
||||
(unsigned int) ((unsigned long) p >> 16), (unsigned int) p) ;
|
||||
#else
|
||||
@@ -116,7 +116,7 @@ void *m_realloc(void *ptr, int size, char *msg)
|
||||
m_exit(TRUE) ;
|
||||
}
|
||||
if (m_malftrace) {
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun)
|
||||
#if defined(_AIX) || defined(sun)
|
||||
snprintf(buffer, 32, "%5x:%5x",
|
||||
(unsigned int) ((unsigned long) p >> 16), (unsigned int) p) ;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user