Reformat .h files.
I did my best to exempt some of the bigger aligned blocks from the reformatting using the /* clang-format off */ and /* clang-format on */ tags. Probably some that shouldn't have been formatted were anyway; if you encounter them, please fix. The clang-format tags were left in on the basis that it's much easier to prune those out later than to put them back in, and it means that, modulo my custom version of clang-format, I should be able to run clang-format on the source tree again without changing anything, now that Pat has fixed the VA_DECL issues.
This commit is contained in:
@@ -10,17 +10,17 @@
|
||||
#include "xwindow.h"
|
||||
|
||||
#ifndef SYSV
|
||||
#define PRESERVE_NO_SYSV /* X11 include files may define SYSV */
|
||||
#define PRESERVE_NO_SYSV /* X11 include files may define SYSV */
|
||||
#endif
|
||||
|
||||
/* include superclass private header file */
|
||||
#include <X11/CoreP.h>
|
||||
|
||||
#ifdef PRESERVE_NO_SYSV
|
||||
# ifdef SYSV
|
||||
# undef SYSV
|
||||
# endif
|
||||
# undef PRESERVE_NO_SYSV
|
||||
#ifdef SYSV
|
||||
#undef SYSV
|
||||
#endif
|
||||
#undef PRESERVE_NO_SYSV
|
||||
#endif
|
||||
|
||||
/* define unique representation types not found in <X11/StringDefs.h> */
|
||||
@@ -32,33 +32,33 @@ typedef struct {
|
||||
} WindowClassPart;
|
||||
|
||||
typedef struct _WindowClassRec {
|
||||
CoreClassPart core_class;
|
||||
WindowClassPart window_class;
|
||||
CoreClassPart core_class;
|
||||
WindowClassPart window_class;
|
||||
} WindowClassRec;
|
||||
|
||||
extern WindowClassRec windowClassRec;
|
||||
|
||||
typedef struct {
|
||||
/* resources */
|
||||
Dimension rows;
|
||||
Dimension columns;
|
||||
Pixel foreground;
|
||||
Pixel black;
|
||||
Pixel red;
|
||||
Pixel green;
|
||||
Pixel brown;
|
||||
Pixel blue;
|
||||
Pixel magenta;
|
||||
Pixel cyan;
|
||||
Pixel gray;
|
||||
Pixel orange;
|
||||
Pixel bright_green;
|
||||
Pixel yellow;
|
||||
Pixel bright_blue;
|
||||
Pixel bright_magenta;
|
||||
Pixel bright_cyan;
|
||||
Pixel white;
|
||||
XFontStruct *font;
|
||||
Dimension rows;
|
||||
Dimension columns;
|
||||
Pixel foreground;
|
||||
Pixel black;
|
||||
Pixel red;
|
||||
Pixel green;
|
||||
Pixel brown;
|
||||
Pixel blue;
|
||||
Pixel magenta;
|
||||
Pixel cyan;
|
||||
Pixel gray;
|
||||
Pixel orange;
|
||||
Pixel bright_green;
|
||||
Pixel yellow;
|
||||
Pixel bright_blue;
|
||||
Pixel bright_magenta;
|
||||
Pixel bright_cyan;
|
||||
Pixel white;
|
||||
XFontStruct *font;
|
||||
XtCallbackList expose_callback;
|
||||
XtCallbackList input_callback;
|
||||
XtCallbackList resize_callback;
|
||||
@@ -67,8 +67,8 @@ typedef struct {
|
||||
} WindowPart;
|
||||
|
||||
typedef struct _WindowRec {
|
||||
CorePart core;
|
||||
WindowPart window;
|
||||
CorePart core;
|
||||
WindowPart window;
|
||||
} WindowRec;
|
||||
|
||||
#endif /* _xwindowp_h */
|
||||
|
||||
Reference in New Issue
Block a user