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
88edf808
Commit
88edf808
authored
Jun 24, 2013
by
Alan Coopersmith
Committed by
Ulrich Sibiller
Oct 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Require ANSI C89 pre-processor, drop pre-C89 token pasting support
Signed-off-by:
Alan Coopersmith
<
alan.coopersmith@oracle.com
>
Backported-to-NX-by:
Ulrich Sibiller
<
uli42@gmx.de
>
parent
7f98ab03
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
40 deletions
+0
-40
PutImage.c
nx-X11/lib/X11/PutImage.c
+0
-6
Xlibint.h
nx-X11/lib/X11/Xlibint.h
+0
-28
globals.c
nx-X11/lib/X11/globals.c
+0
-6
No files found.
nx-X11/lib/X11/PutImage.c
View file @
88edf808
...
...
@@ -600,15 +600,9 @@ static int const HalfOrderWord[12] = {
/* Cancel a GetReq operation, before doing _XSend or Data */
#if (defined(__STDC__) && !defined(UNIXCPP)) || defined(ANSICPP)
#define UnGetReq(name)\
dpy->bufptr -= SIZEOF(x##name##Req);\
dpy->request--
#else
#define UnGetReq(name)\
dpy->bufptr -= SIZEOF(x
/**/
name
/**/
Req);\
dpy->request--
#endif
static
void
SendXYImage
(
...
...
nx-X11/lib/X11/Xlibint.h
View file @
88edf808
...
...
@@ -460,14 +460,8 @@ extern void *_XGetRequest(Display *dpy, CARD8 type, size_t len);
/* GetReqSized is the same as GetReq but allows the caller to specify the
* size in bytes. 'sz' must be a multiple of 4! */
#if !defined(UNIXCPP) || defined(ANSICPP)
#define GetReqSized(name, sz, req) \
req = (x##name##Req *) _XGetRequest(dpy, X_##name, sz)
#else
#define GetReqSized(name, sz, req) \
req = (x
/**/
name
/**/
Req *) _XGetRequest(dpy, X_
/**/
name, sz)
#endif
/*
* GetReq - Get the next available X request packet in the buffer and
...
...
@@ -478,25 +472,14 @@ extern void *_XGetRequest(Display *dpy, CARD8 type, size_t len);
*
*/
#if !defined(UNIXCPP) || defined(ANSICPP)
#define GetReq(name, req) \
GetReqSized(name, SIZEOF(x##name##Req), req)
#else
/* non-ANSI C uses empty comment instead of "##" for token concatenation */
#define GetReq(name, req) \
GetReqSized(name, SIZEOF(x
/**/
name
/**/
Req), req)
#endif
/* GetReqExtra is the same as GetReq, but allocates "n" additional
bytes after the request. "n" must be a multiple of 4! */
#if !defined(UNIXCPP) || defined(ANSICPP)
#define GetReqExtra(name, n, req) \
GetReqSized(name, SIZEOF(x##name##Req) + n, req)
#else
#define GetReqExtra(name, n, req) \
GetReqSized(name, SIZEOF(x
/**/
name
/**/
Req) + n, req)
#endif
/*
* GetResReq is for those requests that have a resource ID
...
...
@@ -504,27 +487,16 @@ extern void *_XGetRequest(Display *dpy, CARD8 type, size_t len);
* "rid" is the name of the resource.
*/
#if !defined(UNIXCPP) || defined(ANSICPP)
#define GetResReq(name, rid, req) \
req = (xResourceReq *) _XGetRequest(dpy, X_##name, SIZEOF(xResourceReq)); \
req->id = (rid)
#else
#define GetResReq(name, rid, req) \
req = (xResourceReq *) _XGetRequest(dpy, X_
/**/
name, SIZEOF(xResourceReq)); \
req->id = (rid)
#endif
/*
* GetEmptyReq is for those requests that have no arguments
* at all.
*/
#if !defined(UNIXCPP) || defined(ANSICPP)
#define GetEmptyReq(name, req) \
req = (xReq *) _XGetRequest(dpy, X_##name, SIZEOF(xReq))
#else
#define GetEmptyReq(name, req) \
req = (xReq *) _XGetRequest(dpy, X_
/**/
name, SIZEOF(xReq))
#endif
/*
* MakeBigReq sets the CARD16 "req->length" to 0 and inserts a new CARD32
...
...
nx-X11/lib/X11/globals.c
View file @
88edf808
...
...
@@ -53,15 +53,9 @@ from The Open Group.
/*
* If we need to define extra variables for each global
*/
#if !defined(UNIXCPP) || defined(ANSICPP)
#define ZEROINIT(t,var,val) SetZero(t,var,val); \
SetZero (long, _libX_##var##Flag, 0); \
SetZero (void *, _libX_##var##Ptr, NULL)
#else
/* else pcc concatenation */
#define ZEROINIT(t,var,val) SetZero(t,var,val); \
SetZero (long, _libX_
/**/
var
/**/
Flag, 0); \
SetZero (void *, _libX_
/**/
var
/**/
Ptr, NULL)
#endif
/* concat ANSI C vs. pcc */
#else
/* else not USL_SHAREDLIB */
/*
...
...
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