Commit 00a2fa8b authored by Arturo Espinosa's avatar Arturo Espinosa

Disable CSV until I find the bug in Alan's lib

parent c8a6f6d9
1999-07-02 Miguel de Icaza <miguel@nuclecu.unam.mx> 1999-07-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* csv-io.c (init_plugin): Do not use for now. it has a memory
problem somewhere.
* libcsv.c: Rewrote to use Alan's library. * libcsv.c: Rewrote to use Alan's library.
1999-06-25 Morten Welinder <terra@diku.dk> 1999-06-25 Morten Welinder <terra@diku.dk>
......
...@@ -24,6 +24,7 @@ load_table_into_sheet (struct csv_table *table, Sheet *sheet) ...@@ -24,6 +24,7 @@ load_table_into_sheet (struct csv_table *table, Sheet *sheet)
Cell *cell; Cell *cell;
int col; int col;
printf ("Row: %d has %d cols\n", row, CSV_WIDTH (table, row));
for (col = 0; col < CSV_WIDTH (table, row); col++){ for (col = 0; col < CSV_WIDTH (table, row); col++){
cell = sheet_cell_new (sheet, col, row); cell = sheet_cell_new (sheet, col, row);
cell_set_text_simple (cell, CSV_ITEM (table, row, col)); cell_set_text_simple (cell, CSV_ITEM (table, row, col));
...@@ -100,7 +101,7 @@ csv_cleanup_plugin (PluginData *pd) ...@@ -100,7 +101,7 @@ csv_cleanup_plugin (PluginData *pd)
int int
init_plugin (PluginData * pd) init_plugin (PluginData * pd)
{ {
file_format_register_open (1, _("Comma Separated Value (CSV) import"), csv_probe, csv_read_workbook); /* file_format_register_open (1, _("Comma Separated Value (CSV) import"), csv_probe, csv_read_workbook); */
pd->can_unload = csv_can_unload; pd->can_unload = csv_can_unload;
pd->cleanup_plugin = csv_cleanup_plugin; pd->cleanup_plugin = csv_cleanup_plugin;
pd->title = g_strdup (_("Comma Separated Value (CSV) module")); pd->title = g_strdup (_("Comma Separated Value (CSV) module"));
......
...@@ -221,7 +221,7 @@ void csv_destroy_table(struct csv_table *table) ...@@ -221,7 +221,7 @@ void csv_destroy_table(struct csv_table *table)
if(r->data[j]) if(r->data[j])
free(r->data[j]); free(r->data[j]);
} }
free(table->row); free (table->row);
} }
#ifdef TEST #ifdef TEST
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment