Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
2d45d8d8
Commit
2d45d8d8
authored
Nov 15, 2016
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drop platform support: unifdef sgi.
Relates to ArcticaProject/nx-libs#275.
parent
c6250a86
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
14 additions
and
91 deletions
+14
-91
Imake.cf
nx-X11/config/cf/Imake.cf
+0
-18
Xalloca.h
nx-X11/include/Xalloca.h
+0
-2
Xarch.h
nx-X11/include/Xarch.h
+1
-1
Xmd.h
nx-X11/include/Xmd.h
+2
-3
Xos.h
nx-X11/include/Xos.h
+0
-2
Xthreads.h
nx-X11/include/Xthreads.h
+1
-1
SetLocale.c
nx-X11/lib/X11/SetLocale.c
+1
-1
UIThrStubs.c
nx-X11/lib/X11/UIThrStubs.c
+1
-1
XKB.c
nx-X11/lib/X11/XKB.c
+0
-4
XKBCvt.c
nx-X11/lib/X11/XKBCvt.c
+0
-4
Xlibint.h
nx-X11/lib/X11/Xlibint.h
+0
-3
Imakefile
nx-X11/programs/Xserver/Imakefile
+1
-1
devices.c
nx-X11/programs/Xserver/dix/devices.c
+0
-6
fb.h
nx-X11/programs/Xserver/fb/fb.h
+1
-2
Args.c
nx-X11/programs/Xserver/hw/nxagent/Args.c
+0
-6
servermd.h
nx-X11/programs/Xserver/include/servermd.h
+1
-9
micoord.h
nx-X11/programs/Xserver/mi/micoord.h
+1
-1
access.c
nx-X11/programs/Xserver/os/access.c
+1
-1
osdep.h
nx-X11/programs/Xserver/os/osdep.h
+0
-2
utils.c
nx-X11/programs/Xserver/os/utils.c
+0
-7
picture.h
nx-X11/programs/Xserver/render/picture.h
+1
-2
Imakefile
nx-X11/programs/Xserver/xkb/Imakefile
+1
-5
ddxLoad.c
nx-X11/programs/Xserver/xkb/ddxLoad.c
+1
-1
xkbInit.c
nx-X11/programs/Xserver/xkb/xkbInit.c
+0
-8
No files found.
nx-X11/config/cf/Imake.cf
View file @
2d45d8d8
...
...
@@ -504,24 +504,6 @@
# define MacIIArchitecture
#endif /* macII */
#ifdef sgi
# define MacroIncludeFile <sgi.cf>
# define MacroFile sgi.cf
# undef sgi
# define SGIArchitecture
# undef mips
# undef __mips
# define MipsArchitecture
# ifdef _SVR4
# undef _SVR4
# define SVR4Architecture
# endif
# ifdef _SYSTYPE_SVR4
# undef _SYSTYPE_SVR4
# define SVR4Architecture
# endif
#endif /* sgi */
#ifdef stellar
# define MacroIncludeFile <stellar.cf>
# define MacroFile stellar.cf
...
...
nx-X11/include/Xalloca.h
View file @
2d45d8d8
...
...
@@ -109,14 +109,12 @@ from The Open Group.
* decide that you don't want to use alloca, you might want to fix it here.
*/
/* alloca might be a macro taking one arg (hi, Sun!), so give it one. */
# ifndef __sgi
/* IRIX 5/6 has definition */
# define __Xnullarg
/* as nothing */
# ifndef X_NOT_STDC_ENV
extern
void
*
alloca
(
__Xnullarg
);
# else
extern
char
*
alloca
(
__Xnullarg
);
# endif
# endif
/* __sgi */
# define ALLOCATE_LOCAL(size) alloca((int)(size))
# endif
/* who does alloca */
# endif
/* NCR */
...
...
nx-X11/include/Xarch.h
View file @
2d45d8d8
...
...
@@ -40,7 +40,7 @@
#else
#ifdef SVR4
#if defined(NCR) || defined(Mips)
|| defined(__sgi)
#if defined(NCR) || defined(Mips)
#include <sys/endian.h>
#else
#if !defined(sun)
...
...
nx-X11/include/Xmd.h
View file @
2d45d8d8
...
...
@@ -59,8 +59,7 @@ SOFTWARE.
defined(__sparc64__) || \
defined(__s390x__) || \
defined(__amd64__) || defined(amd64) || \
defined(__powerpc64__) || \
(defined(sgi) && (_MIPS_SZLONG == 64))
defined(__powerpc64__)
#define LONG64
/* 32/64-bit architecture */
#endif
...
...
@@ -100,7 +99,7 @@ typedef long INT32;
#endif
typedef
short
INT16
;
#if defined(__STDC__)
|| defined(sgi)
#if defined(__STDC__)
typedef
signed
char
INT8
;
#else
typedef
char
INT8
;
...
...
nx-X11/include/Xos.h
View file @
2d45d8d8
...
...
@@ -57,11 +57,9 @@ in this Software without prior written authorization from The Open Group.
#endif
#endif
/* USG */
#ifndef sgi
#if defined(__SCO__) || defined(__UNIXWARE__)
#include <stdint.h>
#endif
#endif
#ifdef _SEQUENT_
/*
...
...
nx-X11/include/Xthreads.h
View file @
2d45d8d8
...
...
@@ -56,7 +56,7 @@ typedef struct mutex xmutex_rec;
#define xcondition_broadcast(cv) condition_broadcast(cv)
#define xcondition_set_name(cv,str) condition_set_name(cv,str)
#else
/* !CTHREADS */
#if defined(SVR4) && !defined(_
_sgi) && !defined(_
SEQUENT_)
#if defined(SVR4) && !defined(_SEQUENT_)
#include <thread.h>
#include <synch.h>
typedef
thread_t
xthread_t
;
...
...
nx-X11/lib/X11/SetLocale.c
View file @
2d45d8d8
...
...
@@ -102,7 +102,7 @@ _XlcMapOSLocaleName(
/* FIXME: correct indentation levels after ancient platform clean-up */
#if defined(CSRG_BASED) || defined(sun) || defined(SVR4) || defined(
sgi) || defined(
ultrix) || defined(WIN32) || defined(linux)
#if defined(CSRG_BASED) || defined(sun) || defined(SVR4) || defined(ultrix) || defined(WIN32) || defined(linux)
# ifdef ultrix
# define SKIPCOUNT 2
# define STARTCHAR '\001'
...
...
nx-X11/lib/X11/UIThrStubs.c
View file @
2d45d8d8
...
...
@@ -66,7 +66,7 @@ typedef cthread_t xthread_t;
#pragma weak condition_signal = _Xthr_zero_stub_
#pragma weak condition_broadcast = _Xthr_zero_stub_
#else
/* !CTHREADS */
#if defined(SVR4)
&& !defined(__sgi)
#if defined(SVR4)
#include <thread.h>
typedef
thread_t
xthread_t
;
#pragma weak thr_self = _Xthr_self_stub_
...
...
nx-X11/lib/X11/XKB.c
View file @
2d45d8d8
...
...
@@ -373,11 +373,7 @@ XkbGetXlibControls(Display *dpy)
unsigned
int
XkbXlibControlsImplemented
(
void
)
{
#ifdef __sgi
return
XkbLC_AllControls
;
#else
return
XkbLC_AllControls
&
~
XkbLC_AllComposeControls
;
#endif
}
Bool
...
...
nx-X11/lib/X11/XKBCvt.c
View file @
2d45d8d8
...
...
@@ -50,10 +50,6 @@ from The Open Group.
#include <ctype.h>
#include <nx-X11/Xos.h>
#ifdef __sgi_not_xconsortium
#define XKB_EXTEND_LOOKUP_STRING
#endif
static
int
_XkbHandleSpecialSym
(
KeySym
keysym
,
char
*
buffer
,
int
nbytes
,
int
*
extra_rtrn
)
{
...
...
nx-X11/lib/X11/Xlibint.h
View file @
2d45d8d8
...
...
@@ -248,9 +248,6 @@ typedef struct _XSQEvent
#endif
#include <nx-X11/Xproto.h>
#ifdef __sgi
#define _SGI_MP_SOURCE
/* turn this on to get MP safe errno */
#endif
#include <errno.h>
#define _XBCOPYFUNC _Xbcopy
#include <nx-X11/Xfuncs.h>
...
...
nx-X11/programs/Xserver/Imakefile
View file @
2d45d8d8
...
...
@@ -160,7 +160,7 @@ INSTPGMFLAGS =
#if HasPam && HasPamMisc
PAMLIBS = PamLibraries PamMiscLibraries
#endif
#if !(SystemV4 ||
defined(SGIArchitecture) ||
UseRgbTxt)
#if !(SystemV4 || UseRgbTxt)
DBMLIBS = DBMLibrary
#endif
SYSLIBS = $(ZLIB) MathLibrary $(DBMLIBS) $(USB) \
...
...
nx-X11/programs/Xserver/dix/devices.c
View file @
2d45d8d8
...
...
@@ -662,13 +662,7 @@ InitPtrFeedbackClassDeviceStruct(DeviceIntPtr dev, PtrCtrlProcPtr controlProc)
if
(
!
feedc
)
return
FALSE
;
feedc
->
CtrlProc
=
controlProc
;
#ifdef sgi
feedc
->
ctrl
.
num
=
1
;
feedc
->
ctrl
.
den
=
1
;
feedc
->
ctrl
.
threshold
=
1
;
#else
feedc
->
ctrl
=
defaultPointerControl
;
#endif
feedc
->
ctrl
.
id
=
0
;
if
(
(
feedc
->
next
=
dev
->
ptrfeed
)
)
feedc
->
ctrl
.
id
=
dev
->
ptrfeed
->
ctrl
.
id
+
1
;
...
...
nx-X11/programs/Xserver/fb/fb.h
View file @
2d45d8d8
...
...
@@ -104,8 +104,7 @@ typedef unsigned __int64 FbBits;
defined(__sparc64__) || defined(_LP64) || \
defined(__s390x__) || \
defined(amd64) || defined (__amd64__) || \
defined (__powerpc64__) || \
(defined(sgi) && (_MIPS_SZLONG == 64))
defined (__powerpc64__)
typedef
unsigned
long
FbBits
;
# else
typedef
unsigned
long
long
FbBits
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Args.c
View file @
2d45d8d8
...
...
@@ -587,12 +587,6 @@ int ddxProcessArgument(int argc, char *argv[], int i)
if
(
++
i
<
argc
)
{
#ifdef sgi
userdefinedfontpath
=
1
;
#endif
#ifdef TEST
fprintf
(
stderr
,
"ddxProcessArgument: User defined font path [%s].
\n
"
,
argv
[
i
]);
#endif
...
...
nx-X11/programs/Xserver/include/servermd.h
View file @
2d45d8d8
...
...
@@ -192,7 +192,7 @@ SOFTWARE.
#endif
/* macII */
#if (defined(mips) || defined(__mips))
&& !defined(sgi)
#if (defined(mips) || defined(__mips))
#if defined(MIPSEL) || defined(__MIPSEL__)
# define IMAGE_BYTE_ORDER LSBFirst
/* Values for the PMAX only */
...
...
@@ -344,14 +344,6 @@ SOFTWARE.
#endif
/* linux/m68k */
#ifdef sgi
#define IMAGE_BYTE_ORDER MSBFirst
#define BITMAP_BIT_ORDER MSBFirst
#define GLYPHPADBYTES 4
#endif
/* linux on the Compaq Itsy */
#if defined(linux) && defined(__arm__)
#define IMAGE_BYTE_ORDER LSBFirst
...
...
nx-X11/programs/Xserver/mi/micoord.h
View file @
2d45d8d8
...
...
@@ -43,7 +43,7 @@
* forcing as to use div instead of shift. Let's be explicit.
*/
#if defined(mips) ||
defined(sgi) ||
\
#if defined(mips) || \
defined(sparc) || defined(__sparc64__) || \
defined(__alpha) || defined(__alpha__) || \
defined(__i386__) || defined(i386) || \
...
...
nx-X11/programs/Xserver/os/access.c
View file @
2d45d8d8
...
...
@@ -286,7 +286,7 @@ AccessUsingXdmcp (void)
}
#if ((defined(SVR4) && !defined(SCO325) && !defined(sun) && !defined(NCR)) || defined(ISC)) &&
!defined(__sgi) &&
defined(SIOCGIFCONF) && !defined(USE_SIOCGLIFCONF)
#if ((defined(SVR4) && !defined(SCO325) && !defined(sun) && !defined(NCR)) || defined(ISC)) && defined(SIOCGIFCONF) && !defined(USE_SIOCGLIFCONF)
/* Deal with different SIOCGIFCONF ioctl semantics on these OSs */
...
...
nx-X11/programs/Xserver/os/osdep.h
View file @
2d45d8d8
...
...
@@ -61,7 +61,6 @@ SOFTWARE.
#include <X11/Xdmcp.h>
#ifndef sgi
/* SGI defines OPEN_MAX in a useless way */
#ifndef X_NOT_POSIX
#ifdef _POSIX_SOURCE
#include <limits.h>
...
...
@@ -77,7 +76,6 @@ SOFTWARE.
#undef _POSIX_
#endif
#endif
/* X_NOT_POSIX */
#endif
#ifndef OPEN_MAX
#ifdef SVR4
...
...
nx-X11/programs/Xserver/os/utils.c
View file @
2d45d8d8
...
...
@@ -269,10 +269,6 @@ long Memory_fail = 0;
#include <stdlib.h>
/* for random() */
#endif
#ifdef sgi
int
userdefinedfontpath
=
0
;
#endif
/* sgi */
char
*
dev_tty_from_init
=
NULL
;
/* since we need to parse it anyway */
extern
char
dispatchExceptionAtReset
;
...
...
@@ -831,9 +827,6 @@ ProcessCommandLine(int argc, char *argv[])
{
if
(
++
i
<
argc
)
{
#ifdef sgi
userdefinedfontpath
=
1
;
#endif
/* sgi */
defaultFontPath
=
argv
[
i
];
}
else
...
...
nx-X11/programs/Xserver/render/picture.h
View file @
2d45d8d8
...
...
@@ -173,8 +173,7 @@ typedef __int64 xFixed_32_32;
defined(ia64) || defined(__ia64__) || \
defined(__sparc64__) || \
defined(__s390x__) || \
defined(amd64) || defined (__amd64__) || \
(defined(sgi) && (_MIPS_SZLONG == 64))
defined(amd64) || defined (__amd64__)
typedef
long
xFixed_32_32
;
# else
# if defined(__GNUC__) && \
...
...
nx-X11/programs/Xserver/xkb/Imakefile
View file @
2d45d8d8
#define SGIHyperOpt
#include <Server.tmpl>
#ifdef SGIArchitecture
EXTRA_ALLOC_DEFINES = -DFORCE_ALLOCA
#endif
#if BuildXInputExt
XKBXI_SRCS = xkbPrOtherEv.c
XKBXI_OBJS = xkbPrOtherEv.o
...
...
@@ -48,7 +44,7 @@ XF86INCLUDES = -I$(XF86COMSRC) -I$(XF86OSSRC)
`pkg-config --cflags-only-I pixman-1`
LINTLIBS = ../dix/llib-ldix.ln ../os/llib-los.ln
DEFINES = $(
EXTRA_ALLOC_DEFINES) $(
XKB_DDXDEFS) $(NX_DEFINES)
DEFINES = $(XKB_DDXDEFS) $(NX_DEFINES)
XKB_DEFINES = -DXKB_BASE_DIRECTORY=\"$(LIBDIR)/xkb\" $(XKB_DISABLE)
NormalLibraryObjectRule()
...
...
nx-X11/programs/Xserver/xkb/ddxLoad.c
View file @
2d45d8d8
...
...
@@ -53,7 +53,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <nx-X11/extensions/XI.h>
#include "xkb.h"
#if defined(CSRG_BASED) || defined(linux) || defined(__
sgi) || defined(__
GNU__)
#if defined(CSRG_BASED) || defined(linux) || defined(__GNU__)
#include <paths.h>
#endif
...
...
nx-X11/programs/Xserver/xkb/xkbInit.c
View file @
2d45d8d8
...
...
@@ -54,13 +54,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define CREATE_ATOM(s) MakeAtom(s,sizeof(s)-1,1)
#ifdef sgi
#define LED_CAPS 5
#define LED_NUM 6
#define LED_SCROLL 7
#define PHYS_LEDS 0x7f
#define LED_COMPOSE 8
#else
#if defined(ultrix) || defined(__alpha) || defined(__alpha__)
#define LED_COMPOSE 2
#define LED_CAPS 3
...
...
@@ -81,7 +74,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define PHYS_LEDS 0x07
#endif
#endif
#endif
#define MAX_TOC 16
typedef
struct
_SrvXkmInfo
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment