| 48 | } |
| 49 | |
| 50 | static s64 readInt4(MFILE *f) { |
| 51 | s64 tmp, res = 0; |
| 52 | int c; |
| 53 | |
| 54 | for (int i = 0; i < 4; i++) { |
| 55 | c = memfgetc(f); |
| 56 | if (c == MEOF) |
| 57 | return -1; |
| 58 | tmp = c; |
| 59 | res = res + (tmp << (i * 8)); |
| 60 | } |
| 61 | |
| 62 | return res; |
| 63 | } |
| 64 | |
| 65 | static s64 readVarPtr(MFILE *f) { |
| 66 | s64 offset = 0, shift = 1; |
no test coverage detected