File: prm.c

package info (click to toggle)
abiword 0.7.7-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 20,604 kB
  • ctags: 18,358
  • sloc: cpp: 88,791; ansic: 66,296; sh: 7,777; makefile: 3,397; xml: 687; perl: 361; awk: 273; sed: 36; csh: 28
file content (26 lines) | stat: -rw-r--r-- 525 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <stdlib.h>
#include <stdio.h>
#include "wv.h"


void wvGetPRM(PRM *item,FILE *fd)
	{
	U16 temp16;
	temp16 = read_16ubit(fd);
	item->fComplex = temp16 & 0x0001;
	wvTrace(("u16 is %x,fComplex is %d %d\n",temp16,temp16 & 0x0001,item->fComplex));

	if (item->fComplex)
		item->para.var2.igrpprl = (temp16 & 0xfffe) >> 1;
	else
		{
		item->para.var1.isprm = (temp16 & 0x00fe) >> 1;
		item->para.var1.val = (temp16 & 0xff00) >> 8;
		}
	}

void wvInitPRM(PRM *item)
	{
	item->fComplex = 0;
	item->para.var2.igrpprl = 0;
	}