projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8d94f5d
)
Remove diagnostics
author
John Darrington
<john@darrington.wattle.id.au>
Fri, 29 Mar 2013 19:28:13 +0000
(20:28 +0100)
committer
John Darrington
<john@darrington.wattle.id.au>
Fri, 29 Mar 2013 19:28:13 +0000
(20:28 +0100)
src/data/ods-reader.c
patch
|
blob
|
history
diff --git
a/src/data/ods-reader.c
b/src/data/ods-reader.c
index dd9331a777b4a2ba7295972d933232d8dcfe5277..5363d40fe4e5df6ae3eafb134a1b9f6c9b5e0483 100644
(file)
--- a/
src/data/ods-reader.c
+++ b/
src/data/ods-reader.c
@@
-144,7
+144,6
@@
struct ods_reader /* */
void
ods_destroy (struct spreadsheet *s)
{
void
ods_destroy (struct spreadsheet *s)
{
- printf ("%s:%d\n", __FILE__, __LINE__);
#if 0
struct ods_reader *r = (struct ods_reader *) s;
#if 0
struct ods_reader *r = (struct ods_reader *) s;
@@
-240,7
+239,6
@@
ods_get_sheet_range (struct spreadsheet *s, int n)
static void
ods_file_casereader_destroy (struct casereader *reader UNUSED, void *r_)
{
static void
ods_file_casereader_destroy (struct casereader *reader UNUSED, void *r_)
{
- printf ("%s:%d %p\n", __FILE__, __LINE__, r_);
#if 0
struct ods_reader *r = r_;
if ( r == NULL)
#if 0
struct ods_reader *r = r_;
if ( r == NULL)
@@
-911,7
+909,6
@@
ods_file_casereader_read (struct casereader *reader UNUSED, void *r_)
if (!r->used_first_case)
{
if (!r->used_first_case)
{
- printf ("%s:%d\n", __FILE__, __LINE__);
r->used_first_case = true;
return r->first_case;
}
r->used_first_case = true;
return r->first_case;
}
@@
-931,15
+928,12
@@
ods_file_casereader_read (struct casereader *reader UNUSED, void *r_)
|| (r->stop_row != -1 && r->rsd.row > r->stop_row + 1)
)
{
|| (r->stop_row != -1 && r->rsd.row > r->stop_row + 1)
)
{
- printf ("%s:%d\n", __FILE__, __LINE__);
return NULL;
}
return NULL;
}
- printf ("%s:%d\n", __FILE__, __LINE__);
c = case_create (r->proto);
case_set_missing (c);
c = case_create (r->proto);
case_set_missing (c);
-#if 1
xmlChar *val_string = NULL;
xmlChar *type = NULL;
xmlChar *val_string = NULL;
xmlChar *type = NULL;
@@
-982,15
+976,14
@@
ods_file_casereader_read (struct casereader *reader UNUSED, void *r_)
convert_xml_to_value (c, var, xmv);
}
convert_xml_to_value (c, var, xmv);
}
-
//
xmlFree (xmv->text);
-
//
xmlFree (xmv->value);
-
//
xmlFree (xmv->type);
-
//
free (xmv);
+ xmlFree (xmv->text);
+ xmlFree (xmv->value);
+ xmlFree (xmv->type);
+ free (xmv);
}
if ( r->rsd.state <= STATE_TABLE)
break;
}
}
if ( r->rsd.state <= STATE_TABLE)
break;
}
-#endif
return c;
}
return c;
}