mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +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 ]-------------------------------------------------------- */
|
/* ---[ wcolor.c ]-------------------------------------------------------- */
|
||||||
|
|
||||||
typedef struct W_Color {
|
struct W_Color {
|
||||||
struct W_Screen *screen;
|
struct W_Screen *screen;
|
||||||
|
|
||||||
XColor color;
|
XColor color;
|
||||||
@@ -412,7 +412,7 @@ typedef struct W_Color {
|
|||||||
struct {
|
struct {
|
||||||
unsigned int exact:1;
|
unsigned int exact:1;
|
||||||
} flags;
|
} flags;
|
||||||
} W_Color;
|
};
|
||||||
|
|
||||||
#define W_PIXEL(c) (c)->color.pixel
|
#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 ]------------------------------------------------------- */
|
/* ---[ wpixmap.c ]------------------------------------------------------- */
|
||||||
|
|
||||||
typedef struct W_Pixmap {
|
struct W_Pixmap {
|
||||||
struct W_Screen *screen;
|
struct W_Screen *screen;
|
||||||
Pixmap pixmap;
|
Pixmap pixmap;
|
||||||
Pixmap mask;
|
Pixmap mask;
|
||||||
@@ -512,7 +512,7 @@ typedef struct W_Pixmap {
|
|||||||
unsigned short height;
|
unsigned short height;
|
||||||
short depth;
|
short depth;
|
||||||
short refCount;
|
short refCount;
|
||||||
} W_Pixmap;
|
};
|
||||||
|
|
||||||
|
|
||||||
/* ---[ wview.c ]--------------------------------------------------------- */
|
/* ---[ wview.c ]--------------------------------------------------------- */
|
||||||
@@ -526,7 +526,7 @@ typedef struct W_ViewDelegate {
|
|||||||
unsigned int*, unsigned int*);
|
unsigned int*, unsigned int*);
|
||||||
} W_ViewDelegate;
|
} W_ViewDelegate;
|
||||||
|
|
||||||
typedef struct W_View {
|
struct W_View {
|
||||||
struct W_Screen *screen;
|
struct W_Screen *screen;
|
||||||
|
|
||||||
WMWidget *self; /* must point to the widget the view belongs to */
|
WMWidget *self; /* must point to the widget the view belongs to */
|
||||||
@@ -599,7 +599,7 @@ typedef struct W_View {
|
|||||||
} flags;
|
} flags;
|
||||||
|
|
||||||
int refCount;
|
int refCount;
|
||||||
} W_View;
|
};
|
||||||
|
|
||||||
#define W_VIEW_REALIZED(view) (view)->flags.realized
|
#define W_VIEW_REALIZED(view) (view)->flags.realized
|
||||||
#define W_VIEW_MAPPED(view) (view)->flags.mapped
|
#define W_VIEW_MAPPED(view) (view)->flags.mapped
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#include "geomview.h"
|
#include "geomview.h"
|
||||||
|
|
||||||
|
|
||||||
typedef struct W_GeometryView {
|
struct W_GeometryView {
|
||||||
W_Class widgetClass;
|
W_Class widgetClass;
|
||||||
WMView *view;
|
WMView *view;
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ typedef struct W_GeometryView {
|
|||||||
} data;
|
} data;
|
||||||
|
|
||||||
unsigned showPosition:1;
|
unsigned showPosition:1;
|
||||||
} WGeometryView;
|
};
|
||||||
|
|
||||||
static void handleEvents(XEvent * event, void *clientData);
|
static void handleEvents(XEvent * event, void *clientData);
|
||||||
static void paint(WGeometryView * gview);
|
static void paint(WGeometryView * gview);
|
||||||
|
|||||||
Reference in New Issue
Block a user