Rev 7676 | Rev 8177 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7676 | Rev 8147 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | lower degree to higher) |
24 | lower degree to higher) |
25 | * Word 3: The starting status (starting from the first bit). |
25 | * Word 3: The starting status (starting from the first bit). |
26 | */ |
26 | */ |
27 | 27 | ||
28 | #include "../wims.h" |
28 | #include "../wims.h" |
29 | - | ||
- | 29 | #include "../Lib/libwims.h" |
|
30 | #define MAX_DEGREE 256 |
30 | #define MAX_DEGREE 256 |
31 | #define MAX_LENGTH 1024000 |
31 | #define MAX_LENGTH 1024000 |
32 | 32 | ||
33 | int ch,degree,length; |
33 | int ch,degree,length; |
34 | char poly[MAX_DEGREE], chain[MAX_DEGREE]; |
34 | char poly[MAX_DEGREE], chain[MAX_DEGREE]; |
35 | 35 | ||
36 | void errorquit(char *msg) |
36 | void errorquit(char *msg) |
37 | { |
37 | { |
38 | fprintf(stderr,"%s\n",msg); exit(1); |
38 | fprintf(stderr,"%s\n",msg); exit(1); |
39 | } |
- | |
40 | - | ||
41 | /* Points to the end of the word */ |
- | |
42 | char *find_word_end(char *p) |
- | |
43 | { |
- | |
44 | int i; |
- | |
45 | for(i=0;!isspace(*p) && *p!=0 && i<MAX_LINELEN; p++,i++); |
- | |
46 | return p; |
- | |
47 | } |
- | |
48 | - | ||
49 | /* Strips leading spaces */ |
- | |
50 | char *find_word_start(char *p) |
- | |
51 | { |
- | |
52 | int i; |
- | |
53 | for(i=0; isspace(*p) && i<MAX_LINELEN; p++,i++); |
- | |
54 | return p; |
- | |
55 | } |
39 | } |
56 | 40 | ||
57 | int main(int argc, char *argv[]) |
41 | int main(int argc, char *argv[]) |
58 | { |
42 | { |
59 | char *parm, *p1, *p2, c1, c2; |
43 | char *parm, *p1, *p2, c1, c2; |