Rev 7676 | Rev 8171 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7676 | Rev 8149 | ||
---|---|---|---|
Line 17... | Line 17... | ||
17 | 17 | ||
18 | /* Check the zone of click in an image */ |
18 | /* Check the zone of click in an image */ |
19 | 19 | ||
20 | /* Return value: -1 if no condition is met. |
20 | /* Return value: -1 if no condition is met. |
21 | * n>0 for the line of condition meeting the click. |
21 | * n>0 for the line of condition meeting the click. |
22 | * empty if condition has error. |
22 | * empty if condition has error. |
- | 23 | */ |
|
23 | 24 | ||
24 | /***************** Nothing should need change hereafter *****************/ |
25 | /***************** Nothing should need change hereafter *****************/ |
25 | 26 | ||
26 | #include "../Lib/libwims.h" |
27 | #include "../Lib/libwims.h" |
27 | #include <gd.h> |
28 | #include <gd.h> |
Line 256... | Line 257... | ||
256 | *p2=0; return oneline(p1)^rev; |
257 | *p2=0; return oneline(p1)^rev; |
257 | } |
258 | } |
258 | return test(p1)^rev; |
259 | return test(p1)^rev; |
259 | } |
260 | } |
260 | 261 | ||
261 | /* Returns the number of |
262 | /* Returns the number of lines matching the click coordinates */ |
262 | int main() |
263 | int main() |
263 | { |
264 | { |
264 | char *p, *p2, *p3; |
265 | char *p, *p2, *p3; |
265 | int i,j; |
266 | int i,j; |
266 | 267 |