| 176 |
|
static IDF_FIELD * |
| 177 |
|
get_vlist(IDF_OBJECT *param, const char *zname) |
| 178 |
|
{ |
| 179 |
< |
static const int itm_len = sizeof(IDF_FIELD)+6; |
| 179 |
> |
#define itm_len (sizeof(IDF_FIELD)+6) |
| 180 |
|
static char fld_buf[4*itm_len]; |
| 181 |
|
static char *next_fbp = fld_buf; |
| 182 |
|
int i; |
| 219 |
|
sprintf(res->val, "%d", i/3); |
| 220 |
|
} |
| 221 |
|
return(res); |
| 222 |
+ |
#undef itm_len |
| 223 |
|
} |
| 224 |
|
|
| 225 |
|
/* Get/allocate surface polygon */ |
| 362 |
|
IDF_FIELD *fptr; |
| 363 |
|
int i, j, n; |
| 364 |
|
/* start oconv command */ |
| 365 |
< |
sprintf(cbuf, "oconv - > '%s'", temp_octree); |
| 365 |
> |
sprintf(cbuf, "oconv - > \"%s\"", temp_octree); |
| 366 |
|
if ((ofp = popen(cbuf, "w")) == NULL) { |
| 367 |
|
fputs(progname, stderr); |
| 368 |
|
fputs(": cannot open oconv process\n", stderr); |