--- psiconv/trunk/lib/psiconv/parse_sheet.c 2004/01/04 22:20:43 183 +++ psiconv/trunk/lib/psiconv/parse_sheet.c 2004/01/06 20:15:01 184 @@ -133,7 +133,7 @@ "End of sheet column reference (total length: %08x)", len); return result; ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Column Reference failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Column Reference failed"); if (length) *length = 0; if (status) @@ -217,7 +217,7 @@ len); return result; ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Cell Block Reference failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Cell Block Reference failed"); if (length) *length = 0; if (status) @@ -336,7 +336,7 @@ return 0; ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Number Format failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Number Format failed"); if (length) *length = 0; if (!res) @@ -494,7 +494,7 @@ ERROR2: free (*result); ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Status Section failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Status Section failed"); if (length) *length = 0; if (!res) @@ -619,7 +619,7 @@ ERROR2: free (*result); ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Workbook Section failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Workbook Section failed"); if (length) *length = 0; if (!res) @@ -669,7 +669,7 @@ ERROR2: free(*result); ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Name Section failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Name Section failed"); if (length) *length = 0; if (!res) @@ -736,7 +736,7 @@ ERROR2: free(*result); ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Name Section failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Name Section failed"); if (length) *length = 0; if (!res) @@ -804,7 +804,7 @@ ERROR2: psiconv_list_free(*result); ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Formula list failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Formula list failed"); if (length) *length = 0; if (!res) @@ -928,13 +928,13 @@ psiconv_read_string(config,buf,lev+2,off+len,&leng,&res); if (res) goto ERROR2; - if (!(auxstr = psiconv_make_printable((*result)->data.dat_string))) + if (!(auxstr = psiconv_make_printable(config,(*result)->data.dat_string))) goto ERROR2; psiconv_debug(config,lev+2,off+len,"Cell contents: `%s'",auxstr); free(auxstr); len += leng; } else { - psiconv_warn(config,lev+2,off+len,"Unknown Sheet Cell type: %02x",(*result)->type); + psiconv_error(config,lev+2,off+len,"Unknown Sheet Cell type: %02x",(*result)->type); res = PSICONV_E_PARSE; goto ERROR2; } @@ -1058,7 +1058,7 @@ ERROR2: psiconv_free_sheet_cell_list(*result); ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Cells List failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Cells List failed"); if (length) *length = 0; if (!res) @@ -1146,7 +1146,7 @@ ERROR2: psiconv_free_sheet_worksheet_list(*result); ERROR1: - psiconv_warn(config,lev+1,off,"Reading of worksheet list failed"); + psiconv_error(config,lev+1,off,"Reading of worksheet list failed"); if (length) *length = 0; if (!res) @@ -1218,7 +1218,7 @@ return 0; ERROR1: - psiconv_warn(config,lev+1,off,"Reading of sheet cell layout failed"); + psiconv_error(config,lev+1,off,"Reading of sheet cell layout failed"); if (length) *length = 0; if (!res) @@ -1373,7 +1373,7 @@ ERROR2: free (*result); ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Worksheet Section failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Worksheet Section failed"); if (length) *length = 0; if (!res) @@ -1423,7 +1423,7 @@ ERROR2: free (*result); ERROR1: - psiconv_warn(config,lev+1,off,"Reading of the sheet line failed"); + psiconv_error(config,lev+1,off,"Reading of the sheet line failed"); if (length) *length = 0; if (!res) @@ -1494,7 +1494,7 @@ ERROR2: psiconv_free_sheet_line_list(*result); ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Line List failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Line List failed"); if (length) *length = 0; if (!res) @@ -1573,7 +1573,7 @@ goto ERROR3; len += leng; } else { - psiconv_warn(config,lev+2,off+len,"Sheet variable unknown type marker"); + psiconv_error(config,lev+2,off+len,"Sheet variable unknown type marker"); res = -PSICONV_E_PARSE; goto ERROR3; } @@ -1600,7 +1600,7 @@ ERROR2: free (*result); ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Variable failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Variable failed"); if (length) *length = 0; if (!res) @@ -1668,7 +1668,7 @@ ERROR2: psiconv_list_free(*result); ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Variable list failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Variable list failed"); if (length) *length = 0; if (!res) @@ -1936,7 +1936,7 @@ ERROR2: free(*result); ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Grid Section failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Grid Section failed"); if (length) *length = 0; if (!res) @@ -1991,7 +1991,7 @@ ERROR2: psiconv_list_free(*result); ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Grid Size List failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Grid Size List failed"); if (length) *length = 0; if (!res) @@ -2038,7 +2038,7 @@ ERROR2: free (*result); ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Grid Size failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Grid Size failed"); if (length) *length = 0; if (!res) @@ -2091,7 +2091,7 @@ ERROR2: psiconv_list_free(*result); ERROR1: - psiconv_warn(config,lev+1,off,"Reading of Sheet Grid break List failed"); + psiconv_error(config,lev+1,off,"Reading of Sheet Grid break List failed"); if (length) *length = 0; if (!res)