diff options
author | Simon Howard | 2006-05-22 11:59:11 +0000 |
---|---|---|
committer | Simon Howard | 2006-05-22 11:59:11 +0000 |
commit | 7c18ad6ccf1461696185013b333af3c056cc5630 (patch) | |
tree | 4dd7253ee816d30e7ee0bb2d4b1966d2662282a2 /textscreen/txt_widget.h | |
parent | 11643c088751a2d3797467463bce4476d3b03292 (diff) | |
download | chocolate-doom-7c18ad6ccf1461696185013b333af3c056cc5630.tar.gz chocolate-doom-7c18ad6ccf1461696185013b333af3c056cc5630.tar.bz2 chocolate-doom-7c18ad6ccf1461696185013b333af3c056cc5630.zip |
CAST -> TXT_CAST_ARG, UNCAST -> TXT_UNCAST_ARG.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 509
Diffstat (limited to 'textscreen/txt_widget.h')
-rw-r--r-- | textscreen/txt_widget.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/textscreen/txt_widget.h b/textscreen/txt_widget.h index 1a256c64..10906304 100644 --- a/textscreen/txt_widget.h +++ b/textscreen/txt_widget.h @@ -27,18 +27,18 @@ #ifndef TXT_WIDGET_H #define TXT_WIDGET_H -#define UNCAST(name) void *uncast_ ## name -#define CAST(type, name) type *name = (type *) uncast_ ## name +#define TXT_UNCAST_ARG(name) void *uncast_ ## name +#define TXT_CAST_ARG(type, name) type *name = (type *) uncast_ ## name typedef struct txt_widget_class_s txt_widget_class_t; typedef struct txt_widget_s txt_widget_t; typedef struct txt_callback_table_s txt_callback_table_t; -typedef void (*TxtWidgetSizeCalc)(UNCAST(widget), int *w, int *h); -typedef void (*TxtWidgetDrawer)(UNCAST(widget), int w, int selected); -typedef void (*TxtWidgetDestroy)(UNCAST(widget)); -typedef int (*TxtWidgetKeyPress)(UNCAST(widget), int key); -typedef void (*TxtWidgetSignalFunc)(UNCAST(widget), void *user_data); +typedef void (*TxtWidgetSizeCalc)(TXT_UNCAST_ARG(widget), int *w, int *h); +typedef void (*TxtWidgetDrawer)(TXT_UNCAST_ARG(widget), int w, int selected); +typedef void (*TxtWidgetDestroy)(TXT_UNCAST_ARG(widget)); +typedef int (*TxtWidgetKeyPress)(TXT_UNCAST_ARG(widget), int key); +typedef void (*TxtWidgetSignalFunc)(TXT_UNCAST_ARG(widget), void *user_data); struct txt_widget_class_s { @@ -56,14 +56,14 @@ struct txt_widget_s int visible; }; -void TXT_InitWidget(UNCAST(widget), txt_widget_class_t *widget_class); -void TXT_CalcWidgetSize(UNCAST(widget), int *w, int *h); -void TXT_DrawWidget(UNCAST(widget), int w, int selected); -void TXT_SignalConnect(UNCAST(widget), char *signal_name, +void TXT_InitWidget(TXT_UNCAST_ARG(widget), txt_widget_class_t *widget_class); +void TXT_CalcWidgetSize(TXT_UNCAST_ARG(widget), int *w, int *h); +void TXT_DrawWidget(TXT_UNCAST_ARG(widget), int w, int selected); +void TXT_SignalConnect(TXT_UNCAST_ARG(widget), char *signal_name, TxtWidgetSignalFunc func, void *user_data); -void TXT_EmitSignal(UNCAST(widget), char *signal_name); -int TXT_WidgetKeyPress(UNCAST(widget), int key); -void TXT_DestroyWidget(UNCAST(widget)); +void TXT_EmitSignal(TXT_UNCAST_ARG(widget), char *signal_name); +int TXT_WidgetKeyPress(TXT_UNCAST_ARG(widget), int key); +void TXT_DestroyWidget(TXT_UNCAST_ARG(widget)); #endif /* #ifndef TXT_WIDGET_H */ |