… | |
… | |
672 | psiconv_u32 off, int *length, |
672 | psiconv_u32 off, int *length, |
673 | psiconv_sheet_info_section *result) |
673 | psiconv_sheet_info_section *result) |
674 | { |
674 | { |
675 | int res=0; |
675 | int res=0; |
676 | psiconv_u32 temp; |
676 | psiconv_u32 temp; |
677 | int len=0; |
677 | int len=0,leng; |
678 | |
678 | |
679 | psiconv_progress(lev+1,off,"Going to read the sheet info section"); |
679 | psiconv_progress(lev+1,off,"Going to read the sheet info section"); |
680 | if (!(*result = malloc(sizeof(**result)))) |
680 | if (!(*result = malloc(sizeof(**result)))) |
681 | goto ERROR1; |
681 | goto ERROR1; |
682 | |
682 | |
… | |
… | |
689 | psiconv_warn(lev+2,off+len, |
689 | psiconv_warn(lev+2,off+len, |
690 | "Sheet info section initial byte unknown value (ignored)"); |
690 | "Sheet info section initial byte unknown value (ignored)"); |
691 | psiconv_debug(lev+2,off+len,"Initial byte: %02x",temp); |
691 | psiconv_debug(lev+2,off+len,"Initial byte: %02x",temp); |
692 | } |
692 | } |
693 | len ++; |
693 | len ++; |
|
|
694 | |
|
|
695 | psiconv_progress(lev+2,off+len, "Going to read an unknown Xint"); |
|
|
696 | temp = psiconv_read_X(buf,lev+2,off+len,&leng,&res); |
|
|
697 | if (res) |
|
|
698 | goto ERROR2; |
|
|
699 | psiconv_debug(lev+2,off+len,"Value: %d\n",temp); |
|
|
700 | len += leng; |
694 | |
701 | |
695 | psiconv_progress(lev+2,off+len, "Going to read the flags byte"); |
702 | psiconv_progress(lev+2,off+len, "Going to read the flags byte"); |
696 | temp = psiconv_read_u8(buf,lev+2,off+len,&res); |
703 | temp = psiconv_read_u8(buf,lev+2,off+len,&res); |
697 | if (res) |
704 | if (res) |
698 | goto ERROR2; |
705 | goto ERROR2; |