version 1.5, 1996/11/30 21:09:04 |
version 1.6, 1998/07/02 20:47:28 |
|
|
gn->type = OP_TRANSFORM; |
gn->type = OP_TRANSFORM; |
|
|
(void)SuffParseTransform(line, &s, &t); |
(void)SuffParseTransform(line, &s, &t); |
|
/* |
|
* If there is nothing to transform to, *t->name will be NUL. |
|
* The rest is paranoia. |
|
*/ |
|
if (!s->name || !t->name || !*s->name || !*t->name) |
|
return(NULL); |
|
|
/* |
/* |
* link the two together in the proper relationship and order |
* link the two together in the proper relationship and order |
|
|
*/ |
*/ |
eoarch = strchr (gn->name, '('); |
eoarch = strchr (gn->name, '('); |
eoname = strchr (eoarch, ')'); |
eoname = strchr (eoarch, ')'); |
|
if (eoarch == NULL || eoname == NULL) |
|
return; |
|
|
*eoname = '\0'; /* Nuke parentheses during suffix search */ |
*eoname = '\0'; /* Nuke parentheses during suffix search */ |
*eoarch = '\0'; /* So a suffix can be found */ |
*eoarch = '\0'; /* So a suffix can be found */ |