mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
Fixed structure declaration syntax
As reported by Iain Patterson, the clang compiler is (by default) strictier on having clean C syntax. A few structure definition did not comply, now they do. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
528955c447
commit
1e76a78604
@@ -402,7 +402,7 @@ void W_BalloonHandleLeaveView(WMView *view);
|
||||
|
||||
/* ---[ wcolor.c ]-------------------------------------------------------- */
|
||||
|
||||
typedef struct W_Color {
|
||||
struct W_Color {
|
||||
struct W_Screen *screen;
|
||||
|
||||
XColor color;
|
||||
@@ -412,7 +412,7 @@ typedef struct W_Color {
|
||||
struct {
|
||||
unsigned int exact:1;
|
||||
} flags;
|
||||
} W_Color;
|
||||
};
|
||||
|
||||
#define W_PIXEL(c) (c)->color.pixel
|
||||
|
||||
@@ -504,7 +504,7 @@ int W_GetTextHeight(WMFont *font, const char *text, int width, int wrap);
|
||||
|
||||
/* ---[ wpixmap.c ]------------------------------------------------------- */
|
||||
|
||||
typedef struct W_Pixmap {
|
||||
struct W_Pixmap {
|
||||
struct W_Screen *screen;
|
||||
Pixmap pixmap;
|
||||
Pixmap mask;
|
||||
@@ -512,7 +512,7 @@ typedef struct W_Pixmap {
|
||||
unsigned short height;
|
||||
short depth;
|
||||
short refCount;
|
||||
} W_Pixmap;
|
||||
};
|
||||
|
||||
|
||||
/* ---[ wview.c ]--------------------------------------------------------- */
|
||||
@@ -526,7 +526,7 @@ typedef struct W_ViewDelegate {
|
||||
unsigned int*, unsigned int*);
|
||||
} W_ViewDelegate;
|
||||
|
||||
typedef struct W_View {
|
||||
struct W_View {
|
||||
struct W_Screen *screen;
|
||||
|
||||
WMWidget *self; /* must point to the widget the view belongs to */
|
||||
@@ -599,7 +599,7 @@ typedef struct W_View {
|
||||
} flags;
|
||||
|
||||
int refCount;
|
||||
} W_View;
|
||||
};
|
||||
|
||||
#define W_VIEW_REALIZED(view) (view)->flags.realized
|
||||
#define W_VIEW_MAPPED(view) (view)->flags.mapped
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "geomview.h"
|
||||
|
||||
|
||||
typedef struct W_GeometryView {
|
||||
struct W_GeometryView {
|
||||
W_Class widgetClass;
|
||||
WMView *view;
|
||||
|
||||
@@ -25,7 +25,7 @@ typedef struct W_GeometryView {
|
||||
} data;
|
||||
|
||||
unsigned showPosition:1;
|
||||
} WGeometryView;
|
||||
};
|
||||
|
||||
static void handleEvents(XEvent * event, void *clientData);
|
||||
static void paint(WGeometryView * gview);
|
||||
|
||||
Reference in New Issue
Block a user