Rev 7676 | Rev 8185 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7676 | Rev 8147 | ||
---|---|---|---|
Line 47... | Line 47... | ||
47 | #define default_tolerance 10 |
47 | #define default_tolerance 10 |
48 | 48 | ||
49 | /***************** Nothing should need change hereafter *****************/ |
49 | /***************** Nothing should need change hereafter *****************/ |
50 | 50 | ||
51 | #include "../wims.h" |
51 | #include "../wims.h" |
- | 52 | #include "../Lib/libwims.h" |
|
- | 53 | ||
52 | char curve1[2*MAX_LINELEN+2], curve2[2*MAX_LINELEN+2]; |
54 | char curve1[2*MAX_LINELEN+2], curve2[2*MAX_LINELEN+2]; |
53 | int bx[2], by[2]; |
55 | int bx[2], by[2]; |
54 | int tol=default_tolerance; |
56 | int tol=default_tolerance; |
55 | int xfn=0, yfn=0; |
57 | int xfn=0, yfn=0; |
56 | int discrete; |
58 | int discrete; |
Line 65... | Line 67... | ||
65 | int Abs(int t) {if(t>=0) return t; else return -t;} |
67 | int Abs(int t) {if(t>=0) return t; else return -t;} |
66 | int Min(int x,int y) {if(x>y) return y; else return x;} |
68 | int Min(int x,int y) {if(x>y) return y; else return x;} |
67 | int Max(int x,int y) {if(x<y) return y; else return x;} |
69 | int Max(int x,int y) {if(x<y) return y; else return x;} |
68 | 70 | ||
69 | int listbuf[pointlim*2], listcnt; |
71 | int listbuf[pointlim*2], listcnt; |
70 | - | ||
71 | /* Strips leading spaces */ |
- | |
72 | char *find_word_start(char *p) |
- | |
73 | { |
- | |
74 | int i; |
- | |
75 | for(i=0; isspace(*p) && i<MAX_LINELEN; p++,i++); |
- | |
76 | return p; |
- | |
77 | } |
- | |
78 | 72 | ||
79 | void reverse(struct cv *cvbuf, int cnt) |
73 | void reverse(struct cv *cvbuf, int cnt) |
80 | { |
74 | { |
81 | int i; |
75 | int i; |
82 | struct cv cvt; |
76 | struct cv cvt; |