foxygit / doom Log in
commit e903ecbffbc1a90f9206dbb49e6727e58889da3d
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Thu Sep 21 11:49:13 2006 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Thu Sep 21 11:49:13 2006 +0000

    Use NULL for initialising pointers rather than 0.

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 644
---
 textscreen/txt_button.c        | 2 +-
 textscreen/txt_checkbox.c      | 2 +-
 textscreen/txt_dropdown.c      | 2 +-
 textscreen/txt_inputbox.c      | 4 ++--
 textscreen/txt_label.c         | 2 +-
 textscreen/txt_radiobutton.c   | 2 +-
 textscreen/txt_separator.c     | 2 +-
 textscreen/txt_spinctrl.c      | 2 +-
 textscreen/txt_strut.c         | 2 +-
 textscreen/txt_window_action.c | 2 +-
 10 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/textscreen/txt_button.c b/textscreen/txt_button.c
index e8420558..e4fd7509 100644
--- a/textscreen/txt_button.c
+++ b/textscreen/txt_button.c
@@ -101,7 +101,7 @@ txt_widget_class_t txt_button_class =
     TXT_ButtonKeyPress,
     TXT_ButtonDestructor,
     TXT_ButtonMousePress,
-    0,
+    NULL,
 };

 void TXT_SetButtonLabel(txt_button_t *button, char *label)
diff --git a/textscreen/txt_checkbox.c b/textscreen/txt_checkbox.c
index 37fb0747..0cb06bad 100644
--- a/textscreen/txt_checkbox.c
+++ b/textscreen/txt_checkbox.c
@@ -122,7 +122,7 @@ txt_widget_class_t txt_checkbox_class =
     TXT_CheckBoxKeyPress,
     TXT_CheckBoxDestructor,
     TXT_CheckBoxMousePress,
-    0,
+    NULL,
 };

 txt_checkbox_t *TXT_NewCheckBox(char *label, int *variable)
diff --git a/textscreen/txt_dropdown.c b/textscreen/txt_dropdown.c
index 504d4156..3242b21c 100644
--- a/textscreen/txt_dropdown.c
+++ b/textscreen/txt_dropdown.c
@@ -265,7 +265,7 @@ txt_widget_class_t txt_dropdown_list_class =
     TXT_DropdownListKeyPress,
     TXT_DropdownListDestructor,
     TXT_DropdownListMousePress,
-    0,
+    NULL,
 };

 txt_dropdown_list_t *TXT_NewDropdownList(int *variable, char **values,
diff --git a/textscreen/txt_inputbox.c b/textscreen/txt_inputbox.c
index 4ef1300c..33775bb1 100644
--- a/textscreen/txt_inputbox.c
+++ b/textscreen/txt_inputbox.c
@@ -235,7 +235,7 @@ txt_widget_class_t txt_inputbox_class =
     TXT_InputBoxKeyPress,
     TXT_InputBoxDestructor,
     TXT_InputBoxMousePress,
-    0,
+    NULL,
 };

 txt_widget_class_t txt_int_inputbox_class =
@@ -245,7 +245,7 @@ txt_widget_class_t txt_int_inputbox_class =
     TXT_IntInputBoxKeyPress,
     TXT_InputBoxDestructor,
     TXT_InputBoxMousePress,
-    0,
+    NULL,
 };

 static void SetBufferFromValue(txt_inputbox_t *inputbox)
diff --git a/textscreen/txt_label.c b/textscreen/txt_label.c
index 19a9646e..48b38cda 100644
--- a/textscreen/txt_label.c
+++ b/textscreen/txt_label.c
@@ -108,7 +108,7 @@ txt_widget_class_t txt_label_class =
     TXT_LabelDrawer,
     NULL,
     TXT_LabelDestructor,
-    0,
+    NULL,
 };

 void TXT_SetLabel(txt_label_t *label, char *value)
diff --git a/textscreen/txt_radiobutton.c b/textscreen/txt_radiobutton.c
index 374220b3..a653fa0c 100644
--- a/textscreen/txt_radiobutton.c
+++ b/textscreen/txt_radiobutton.c
@@ -126,7 +126,7 @@ txt_widget_class_t txt_radiobutton_class =
     TXT_RadioButtonKeyPress,
     TXT_RadioButtonDestructor,
     TXT_RadioButtonMousePress,
-    0,
+    NULL,
 };

 txt_radiobutton_t *TXT_NewRadioButton(char *label, int *variable, int value)
diff --git a/textscreen/txt_separator.c b/textscreen/txt_separator.c
index 97d4c255..5e190856 100644
--- a/textscreen/txt_separator.c
+++ b/textscreen/txt_separator.c
@@ -86,7 +86,7 @@ txt_widget_class_t txt_separator_class =
     TXT_SeparatorDrawer,
     NULL,
     TXT_SeparatorDestructor,
-    0,
+    NULL,
 };

 txt_separator_t *TXT_NewSeparator(char *label)
diff --git a/textscreen/txt_spinctrl.c b/textscreen/txt_spinctrl.c
index 53ac589d..69c2e98f 100644
--- a/textscreen/txt_spinctrl.c
+++ b/textscreen/txt_spinctrl.c
@@ -164,7 +164,7 @@ txt_widget_class_t txt_spincontrol_class =
     TXT_SpinControlKeyPress,
     TXT_SpinControlDestructor,
     TXT_SpinControlMousePress,
-    0,
+    NULL,
 };

 txt_spincontrol_t *TXT_NewSpinControl(int *value, int min, int max)
diff --git a/textscreen/txt_strut.c b/textscreen/txt_strut.c
index f2daaa9b..aeab0181 100644
--- a/textscreen/txt_strut.c
+++ b/textscreen/txt_strut.c
@@ -59,7 +59,7 @@ txt_widget_class_t txt_strut_class =
     TXT_StrutDrawer,
     TXT_StrutKeyPress,
     TXT_StrutDestructor,
-    0,
+    NULL,
 };

 txt_strut_t *TXT_NewStrut(int width, int height)
diff --git a/textscreen/txt_window_action.c b/textscreen/txt_window_action.c
index 91ecdcde..24a71ccd 100644
--- a/textscreen/txt_window_action.c
+++ b/textscreen/txt_window_action.c
@@ -98,7 +98,7 @@ txt_widget_class_t txt_window_action_class =
     TXT_WindowActionKeyPress,
     TXT_WindowActionDestructor,
     TXT_WindowActionMousePress,
-    0,
+    NULL,
 };

 txt_window_action_t *TXT_NewWindowAction(int key, char *label)