| 10 |
|
|
| 11 |
|
#include <stdio.h> |
| 12 |
|
#include <math.h> |
| 13 |
+ |
#include <stdlib.h> |
| 14 |
|
#include <ctype.h> |
| 15 |
|
#include <string.h> |
| 16 |
|
#include "parser.h" |
| 267 |
|
mg_fgetpos(pos) /* get current position in input file */ |
| 268 |
|
register MG_FPOS *pos; |
| 269 |
|
{ |
| 269 |
– |
extern long ftell(); |
| 270 |
– |
|
| 270 |
|
pos->fid = mg_file->fid; |
| 271 |
|
pos->lineno = mg_file->lineno; |
| 272 |
|
pos->offset = ftell(mg_file->fp); |
| 314 |
|
{ |
| 315 |
|
char abuf[MG_MAXLINE]; |
| 316 |
|
char *argv[MG_MAXARGC]; |
| 318 |
– |
int en; |
| 317 |
|
register char *cp, *cp2, **ap; |
| 318 |
|
/* copy line, removing escape chars */ |
| 319 |
|
cp = abuf; cp2 = mg_file->inpline; |
| 808 |
|
if (rad2 == 0.) |
| 809 |
|
return(MG_EILL); |
| 810 |
|
} else if (rad2 != 0.) { |
| 811 |
< |
if (rad1 < 0. ^ rad2 < 0.) |
| 811 |
> |
if ((rad1 < 0.) ^ (rad2 < 0.)) |
| 812 |
|
return(MG_EILL); |
| 813 |
|
} else { /* swap */ |
| 814 |
|
C_VERTEX *cv; |