| # | Line 9 | Line 9 | static const char RCSid[] = "$Id$"; | |
|---|---|---|
| 9 | */ | |
| 10 | ||
| 11 | #include <stdio.h> | |
| 12 | + | #include <string.h> |
| 13 | ||
| 14 | #include "mgvars.h" | |
| 15 | ||
| 15 | – | #ifndef BSD |
| 16 | – | #define index strchr |
| 17 | – | #endif |
| 16 | ||
| 19 | – | extern char *index(); |
| 20 | – | |
| 17 | static double xsum, xxsum, ysum, yysum, xysum; | |
| 18 | static double xmin, xmax, ymin, ymax; | |
| 19 | static double lastx, lasty, rsum; | |
| # | Line 29 | Line 25 | char *types; | |
| 25 | { | |
| 26 | int i, calcpoint(); | |
| 27 | ||
| 28 | < | if (index(types, 'h') == NULL) |
| 28 | > | if (strchr(types, 'h') == NULL) |
| 29 | gcheader(types); | |
| 30 | ||
| 31 | xmin = gparam[XMIN].flags & DEFINED ? | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |