Discontinue HPUX support

This commit is contained in:
Chase
2022-07-22 21:42:06 -05:00
committed by Jon Trulson
parent bd83b53d56
commit edf4319548
235 changed files with 198 additions and 6290 deletions

View File

@@ -99,7 +99,7 @@ int BookmarkEdit::g_modified_count = 0;
#define THIS_CLASS BookmarkEdit
#define ON_ACTIVATE(WOBJ,FUNC) \
(WOBJ).SetActivateCallback (this, (WWL_FUN) &THIS_CLASS::FUNC)
#if defined(__STDC__) || defined(hpux)
#if defined(__STDC__)
#define BUTTON(PARENT,NAME) \
WXmPushButtonGadget NAME (PARENT, #NAME, WAutoManage); \
ON_ACTIVATE (NAME, NAME)

View File

@@ -93,9 +93,6 @@ protected: // variables
WXmPushButtonGadget f_ok;
bool f_modified;
WCallback *f_wm_delete_callback;
#ifndef hpux
static List g_editor_list;
#endif
static int g_modified_count;
};

View File

@@ -247,16 +247,6 @@ GraphicAgent::create_ui()
DECL (WXmForm, form, f_shell, "form" );
DECLMC(WXmMenuBar, menu_bar, form, "menu_bar" );
#ifdef hpux
//
// rtp: hard-wire the menu bar's background, since
// it comes up a bogus color. Copied from swm's
// change in NodeWindowAgentMotif.C
//
Pixel bg = form.Background();
menu_bar.Background(bg);
#endif
DECLM (WXmCascadeButton, file, menu_bar, "file" );
DECLMC(WXmPulldownMenu, file_menu, menu_bar, "file_menu" );
DECLM (WXmPushButton, attach, file_menu, "attach" );

View File

@@ -237,7 +237,7 @@ public:
#define IS_CHANGED(X) (((Value *) (X).UserData())->changed)
#define SET_CHANGED(X,V) ((Value *) (X).UserData())->changed = V
#if defined(__STDC__) || defined(hpux)
#if defined(__STDC__)
#define ATTACH_VALUE(X,T,V) (X).UserData ((void *) new T##Value(V))
#define SET_VALUE(X,T,V) ((T##Value *) (X).UserData())->set_value(V)
#define ORIGINAL_VALUE(X,T) ((T##Value *) (X).UserData())->original

View File

@@ -74,7 +74,7 @@ class WTopLevelShell;
#endif
// This belongs in f'ing config.h
#if defined(SVR4) || defined(hpux)
#if defined(SVR4)
# define pid_type pid_t
#else
# define pid_type int

View File

@@ -46,7 +46,7 @@
* Campbell, CA 95008
*
*/
#if defined(SVR4) || defined(hpux) || defined(__linux__) || defined(__NetBSD__)
#if defined(SVR4) || defined(__linux__) || defined(__NetBSD__)
#include <limits.h>
#else
#include <sys/limits.h>

View File

@@ -54,7 +54,7 @@ typedef void (FolioObject::* notify_handler_t)
(FolioObject *object, u_int notify_type,
void *call_data, void *client_data);
#if defined(__STDC__) || defined(hpux)
#if defined(__STDC__)
#define DEF_CLASS(C) \
virtual ClassType type() const; \
static ClassType C##Class

View File

@@ -80,7 +80,7 @@ pref_mgr()
}
#endif
#if defined(__STDC__) || defined(hpux)
#if defined(__STDC__)
# define DEFSYM(S) PrefSymbol PrefMgr::S = (PrefSymbol) #S
#else
# define DEFSYM(S) PrefSymbol PrefMgr::S = (PrefSymbol) "S"

View File

@@ -177,10 +177,6 @@ static unsigned char anno_double_bits[] = {
#include <sys/signal.h>
#endif
#ifdef hpux
typedef void (*SIG_PF)();
#endif
#include <unistd.h>
#include <stdio.h>
@@ -1599,7 +1595,7 @@ WindowSystem::interrupt_handler (int /* signal_number */)
exit(1);
}
#if defined(SVR4) || defined(hpux) || defined(_IBMR2)
#if defined(SVR4) || defined(_IBMR2)
signal (SIGINT, (interrupt_handler_ptr)interrupt_handler);
#endif
}

View File

@@ -63,7 +63,7 @@
#include <ctype.h>
#include <stdio.h>
#include <unistd.h>
#if !defined(hpux) && !defined(__linux__) && !defined(CSRG_BASED) && !defined(sun)
#if !defined(__linux__) && !defined(CSRG_BASED) && !defined(sun)
#include <sysent.h>
#endif
#include <sys/types.h>

View File

@@ -422,7 +422,7 @@ typedef CC_TPtrDlist<sr_DtCvSegment> _ccTPtrDLstCvSegmnt_;
#endif
#if defined(sun) | defined(hpux)
#if defined(sun)
typedef UAS_Pointer<UAS_String> _ptrString_;
typedef UAS_Pointer<UAS_Common> _ptrCommon_;

View File

@@ -27,7 +27,7 @@
# include "UAS_PtrList.hh"
#ifndef CONCAT
#if defined(__STDC__) || defined(hpux)
#if defined(__STDC__)
#define CONCAT(A,B) A##B
#define CONCAT3(A,B,C) A##B##C
#else

View File

@@ -60,9 +60,7 @@
#include <ctype.h>
#include <stdio.h>
#include <unistd.h>
#ifndef hpux
#include <sysent.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>

View File

@@ -109,7 +109,7 @@ typedef unsigned char u_char;
#define self *this
#ifndef STRINGIFY
#if defined(__STDC__) || defined(hpux)
#if defined(__STDC__)
#define STRINGIFY(S) #S
#else
#define STRINGIFY(S) "S"
@@ -117,7 +117,7 @@ typedef unsigned char u_char;
#endif
#ifndef CONCAT
#if defined(__STDC__) || defined(hpux)
#if defined(__STDC__)
#define CONCAT(A,B) A##B
#define CONCAT3(A,B,C) A##B##C
#else

View File

@@ -305,17 +305,3 @@ main(int argc, char **argv)
return (0);
}
#ifdef hpux
extern "C" {
void DosClose () { cerr << "DosClose\n"; }
void DosWrite () { cerr << "DosWrite\n"; }
void DosPeekNmPipe () { cerr << "DosPeekNmPipe\n"; }
void DosDisconnectNmPipe () { cerr << "DosDisconnectNmPipe\n"; }
void DosMakeNmPipe () { cerr << "DosMakeNmPipe\n"; }
void DosConnectNmPipe () { cerr << "DosConnectNmPipe\n"; }
void DosRead () { cerr << "DosRead\n"; }
}
#endif