[gnumeric] sparse: NULL vs. 0



commit ae1c15fff00caecc340a98c1cba5927f48ba1a13
Author: Morten Welinder <terra gnome org>
Date:   Fri Jul 9 22:14:24 2010 -0400

    sparse: NULL vs. 0

 plugins/excel/excel-xml-read.c      |    2 +-
 plugins/excelplugins/excelplugins.c |    4 ++--
 src/tools/dao.c                     |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/excel/excel-xml-read.c b/plugins/excel/excel-xml-read.c
index b2e5da3..97db7a0 100644
--- a/plugins/excel/excel-xml-read.c
+++ b/plugins/excel/excel-xml-read.c
@@ -728,7 +728,7 @@ xl_xml_num_fmt (GsfXMLIn *xin, xmlChar const **attrs)
 		{ "Yes/No",		"\"Yes\";\"Yes\";\"No\"" },
 		{ "True/False",		"\"True\";\"True\";\"False\"" },
 		{ "On/Off",		"\"On\";\"On\";\"Off\"" },
-		{ NULL, 0 }
+		{ NULL, NULL }
 	};
 	ExcelXMLReadState *state = (ExcelXMLReadState *)xin->user_state;
 	for (; attrs != NULL && attrs[0] && attrs[1] ; attrs += 2)
diff --git a/plugins/excelplugins/excelplugins.c b/plugins/excelplugins/excelplugins.c
index 9a4bf82..93dd1ef 100644
--- a/plugins/excelplugins/excelplugins.c
+++ b/plugins/excelplugins/excelplugins.c
@@ -493,7 +493,7 @@ new_gnm_value_from_xloper (const XLOPER*x)
 static GnmValue *
 genericXLLFunction (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
 {
-	XLOPER x[MAXIMUM_NUMBER_OF_EXCEL_FUNCTION_ARGUMENTS], *r = 0;
+	XLOPER x[MAXIMUM_NUMBER_OF_EXCEL_FUNCTION_ARGUMENTS], *r = NULL;
 	XLLFunctionWithVarArgs func = NULL;
 	GnmValue *g = NULL;
 	guint i,m;
@@ -635,7 +635,7 @@ add_xll_function (const char *exported_function_symbol, XLLFunctionInfo *info)
 	if (NULL != info->xll_function) {
 		XLLFunctionInfo* info_in_map = NULL;
 		GnmFunc *gnm_func = NULL;
-		if (0 == xll_function_info_map)
+		if (NULL == xll_function_info_map)
 			xll_function_info_map = g_tree_new_full (g_strcmp0_with_ignored_data,NULL,NULL,free_xll_function_info);
 		info_in_map = g_tree_lookup (xll_function_info_map,info->gnm_func_descriptor.name);
 		if (NULL != info_in_map)
diff --git a/src/tools/dao.c b/src/tools/dao.c
index 2266985..561b267 100644
--- a/src/tools/dao.c
+++ b/src/tools/dao.c
@@ -1168,7 +1168,7 @@ dao_set_sheet_object (data_analysis_output_t *dao, int col, int row, SheetObject
 		    dao->start_col + ((dao->cols < 5) ? dao->cols : 5),
 		    dao->start_row + ((dao->rows < 20) ? dao->rows : 20));
 
-	sheet_object_anchor_init (&anchor, &anchor_r, 0, GOD_ANCHOR_DIR_UNKNOWN);
+	sheet_object_anchor_init (&anchor, &anchor_r, NULL, GOD_ANCHOR_DIR_UNKNOWN);
 	sheet_object_set_anchor (so, &anchor);
 	sheet_object_set_sheet (so, dao->sheet);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]