ref: e903ecbffbc1a90f9206dbb49e6727e58889da3d
parent: 75595d1b7f60755e6e10300132fd095cfa994862
author: Simon Howard <[email protected]>
date: Thu Sep 21 07:49:13 EDT 2006
Use NULL for initialising pointers rather than 0. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 644
--- a/textscreen/txt_button.c
+++ b/textscreen/txt_button.c
@@ -101,7 +101,7 @@
TXT_ButtonKeyPress,
TXT_ButtonDestructor,
TXT_ButtonMousePress,
- 0,
+ NULL,
};
void TXT_SetButtonLabel(txt_button_t *button, char *label)
--- a/textscreen/txt_checkbox.c
+++ b/textscreen/txt_checkbox.c
@@ -122,7 +122,7 @@
TXT_CheckBoxKeyPress,
TXT_CheckBoxDestructor,
TXT_CheckBoxMousePress,
- 0,
+ NULL,
};
txt_checkbox_t *TXT_NewCheckBox(char *label, int *variable)
--- a/textscreen/txt_dropdown.c
+++ b/textscreen/txt_dropdown.c
@@ -265,7 +265,7 @@
TXT_DropdownListKeyPress,
TXT_DropdownListDestructor,
TXT_DropdownListMousePress,
- 0,
+ NULL,
};
txt_dropdown_list_t *TXT_NewDropdownList(int *variable, char **values,
--- a/textscreen/txt_inputbox.c
+++ b/textscreen/txt_inputbox.c
@@ -235,7 +235,7 @@
TXT_InputBoxKeyPress,
TXT_InputBoxDestructor,
TXT_InputBoxMousePress,
- 0,
+ NULL,
};
txt_widget_class_t txt_int_inputbox_class =
@@ -245,7 +245,7 @@
TXT_IntInputBoxKeyPress,
TXT_InputBoxDestructor,
TXT_InputBoxMousePress,
- 0,
+ NULL,
};
static void SetBufferFromValue(txt_inputbox_t *inputbox)
--- a/textscreen/txt_label.c
+++ b/textscreen/txt_label.c
@@ -108,7 +108,7 @@
TXT_LabelDrawer,
NULL,
TXT_LabelDestructor,
- 0,
+ NULL,
};
void TXT_SetLabel(txt_label_t *label, char *value)
--- a/textscreen/txt_radiobutton.c
+++ b/textscreen/txt_radiobutton.c
@@ -126,7 +126,7 @@
TXT_RadioButtonKeyPress,
TXT_RadioButtonDestructor,
TXT_RadioButtonMousePress,
- 0,
+ NULL,
};
txt_radiobutton_t *TXT_NewRadioButton(char *label, int *variable, int value)
--- a/textscreen/txt_separator.c
+++ b/textscreen/txt_separator.c
@@ -86,7 +86,7 @@
TXT_SeparatorDrawer,
NULL,
TXT_SeparatorDestructor,
- 0,
+ NULL,
};
txt_separator_t *TXT_NewSeparator(char *label)
--- a/textscreen/txt_spinctrl.c
+++ b/textscreen/txt_spinctrl.c
@@ -164,7 +164,7 @@
TXT_SpinControlKeyPress,
TXT_SpinControlDestructor,
TXT_SpinControlMousePress,
- 0,
+ NULL,
};
txt_spincontrol_t *TXT_NewSpinControl(int *value, int min, int max)
--- a/textscreen/txt_strut.c
+++ b/textscreen/txt_strut.c
@@ -59,7 +59,7 @@
TXT_StrutDrawer,
TXT_StrutKeyPress,
TXT_StrutDestructor,
- 0,
+ NULL,
};
txt_strut_t *TXT_NewStrut(int width, int height)
--- a/textscreen/txt_window_action.c
+++ b/textscreen/txt_window_action.c
@@ -98,7 +98,7 @@
TXT_WindowActionKeyPress,
TXT_WindowActionDestructor,
TXT_WindowActionMousePress,
- 0,
+ NULL,
};
txt_window_action_t *TXT_NewWindowAction(int key, char *label)