*** empty log message ***
This commit is contained in:
parent
dfcfa9883b
commit
9eb53c3d47
3 changed files with 17 additions and 8 deletions
|
@ -279,14 +279,16 @@ register FILE *f;
|
||||||
case '2':
|
case '2':
|
||||||
i = getc(f);
|
i = getc(f);
|
||||||
i |= (getc(f) << 8);
|
i |= (getc(f) << 8);
|
||||||
*((short *)p)++ = i;
|
*((short *)p) = i;
|
||||||
|
p += sizeof(short);
|
||||||
continue;
|
continue;
|
||||||
case '4':
|
case '4':
|
||||||
l = (long)getc(f);
|
l = (long)getc(f);
|
||||||
l |= ((long)getc(f) << 8);
|
l |= ((long)getc(f) << 8);
|
||||||
l |= ((long)getc(f) << 16);
|
l |= ((long)getc(f) << 16);
|
||||||
l |= ((long)getc(f) << 24);
|
l |= ((long)getc(f) << 24);
|
||||||
*((long *)p)++ = l;
|
*((long *)p) = l;
|
||||||
|
p += sizeof(long);
|
||||||
continue;
|
continue;
|
||||||
default:
|
default:
|
||||||
case '\0':
|
case '\0':
|
||||||
|
|
|
@ -75,14 +75,16 @@ register FILE *f;
|
||||||
case '2':
|
case '2':
|
||||||
i = getc(f);
|
i = getc(f);
|
||||||
i |= (getc(f) << 8);
|
i |= (getc(f) << 8);
|
||||||
*((short *)p)++ = i;
|
*((short *)p) = i;
|
||||||
|
p += sizeof(short);
|
||||||
continue;
|
continue;
|
||||||
case '4':
|
case '4':
|
||||||
l = (long)getc(f);
|
l = (long)getc(f);
|
||||||
l |= (long)(getc(f) << 8);
|
l |= (long)(getc(f) << 8);
|
||||||
l |= ((long)getc(f) << 16);
|
l |= ((long)getc(f) << 16);
|
||||||
l |= ((long)getc(f) << 24);
|
l |= ((long)getc(f) << 24);
|
||||||
*((long *)p)++ = l;
|
*((long *)p) = l;
|
||||||
|
p += sizeof(long);
|
||||||
continue;
|
continue;
|
||||||
default:
|
default:
|
||||||
case '\0':
|
case '\0':
|
||||||
|
|
|
@ -138,14 +138,16 @@ register FILE *f;
|
||||||
case '2':
|
case '2':
|
||||||
i = getc(f);
|
i = getc(f);
|
||||||
i |= (getc(f) << 8);
|
i |= (getc(f) << 8);
|
||||||
*((short *)p)++ = i;
|
*((short *)p) = i;
|
||||||
|
p += sizeof(short);
|
||||||
continue;
|
continue;
|
||||||
case '4':
|
case '4':
|
||||||
l = (long)getc(f);
|
l = (long)getc(f);
|
||||||
l |= (long)(getc(f) << 8);
|
l |= (long)(getc(f) << 8);
|
||||||
l |= ((long)getc(f) << 16);
|
l |= ((long)getc(f) << 16);
|
||||||
l |= ((long)getc(f) << 24);
|
l |= ((long)getc(f) << 24);
|
||||||
*((long *)p)++ = l;
|
*((long *)p) = l;
|
||||||
|
p += sizeof(long);
|
||||||
continue;
|
continue;
|
||||||
default:
|
default:
|
||||||
case '\0':
|
case '\0':
|
||||||
|
@ -171,11 +173,14 @@ char *fnam;
|
||||||
i = *p++; putc(i,f);
|
i = *p++; putc(i,f);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
i = *((short *)p)++; putc(i,f);
|
i = *((short *)p);
|
||||||
|
p += sizeof(short);
|
||||||
|
putc(i,f);
|
||||||
i>>=8; putc(i,f);
|
i>>=8; putc(i,f);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
l = *((long *)p)++;
|
l = *((long *)p);
|
||||||
|
p += sizeof(long);
|
||||||
putc(l,f);
|
putc(l,f);
|
||||||
l >>=8; putc(l,f);
|
l >>=8; putc(l,f);
|
||||||
l >>=8; putc(l,f);
|
l >>=8; putc(l,f);
|
||||||
|
|
Loading…
Reference in a new issue