forked from eliben/pycparser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend Xlib objects in fake includes (eliben#233)
* Extend Xlib objects in fake includes * Move X11 typedefs and defines to X11 subdirectory. Remove unecessarry function declarations header
- Loading branch information
Showing
4 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
#include "_fake_defines.h" | ||
#include "_fake_typedefs.h" | ||
#include "_X11_fake_defines.h" | ||
#include "_X11_fake_typedefs.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef _X11_FAKE_DEFINES_H | ||
#define _X11_FAKE_DEFINES_H | ||
|
||
#define Atom CARD32 | ||
#define Bool int | ||
#define KeySym CARD32 | ||
#define Pixmap CARD32 | ||
#define Time CARD32 | ||
#define _XFUNCPROTOBEGIN | ||
#define _XFUNCPROTOEND | ||
#define _Xconst const | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#ifndef _X11_FAKE_TYPEDEFS_H | ||
#define _X11_FAKE_TYPEDEFS_H | ||
|
||
typedef char* XPointer; | ||
typedef unsigned char KeyCode; | ||
typedef unsigned int CARD32; | ||
typedef unsigned long VisualID; | ||
typedef unsigned long XIMResetState; | ||
typedef unsigned long XID; | ||
typedef XID Window; | ||
typedef XID Colormap; | ||
typedef XID Cursor; | ||
typedef XID Drawable; | ||
typedef void* XtPointer; | ||
typedef XtPointer XtRequestId; | ||
typedef struct Display Display; | ||
typedef struct Screen Screen; | ||
typedef struct Status Status; | ||
typedef struct Visual Visual; | ||
typedef struct Widget *Widget; | ||
typedef struct XColor XColor; | ||
typedef struct XClassHint XClassHint; | ||
typedef struct XEvent XEvent; | ||
typedef struct XFontStruct XFontStruct; | ||
typedef struct XGCValues XGCValues; | ||
typedef struct XKeyEvent XKeyEvent; | ||
typedef struct XKeyPressedEvent XKeyPressedEvent; | ||
typedef struct XPoint XPoint; | ||
typedef struct XRectangle XRectangle; | ||
typedef struct XSelectionRequestEvent XSelectionRequestEvent; | ||
typedef struct XWindowChanges XWindowChanges; | ||
typedef struct _XGC _XCG; | ||
typedef struct _XGC *GC; | ||
typedef struct _XIC *XIC; | ||
typedef struct _XIM *XIM; | ||
typedef struct _XImage XImage; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters