version 1.6, 1997/04/01 07:28:28 |
version 1.7, 1997/12/18 21:50:45 |
|
|
char *ptr; |
char *ptr; |
VarPattern *pat = (VarPattern *) patp; |
VarPattern *pat = (VarPattern *) patp; |
|
|
if (addSpace) |
if (*word) { |
Buf_AddByte(buf, (Byte)' '); |
if (addSpace) |
|
Buf_AddByte(buf, (Byte)' '); |
|
|
addSpace = TRUE; |
addSpace = TRUE; |
|
|
if ((ptr = Str_SYSVMatch(word, pat->lhs, &len)) != NULL) |
if ((ptr = Str_SYSVMatch(word, pat->lhs, &len)) != NULL) |
Str_SYSVSubst(buf, pat->rhs, ptr, len); |
Str_SYSVSubst(buf, pat->rhs, ptr, len); |
else |
else |
Buf_AddBytes(buf, strlen(word), (Byte *) word); |
Buf_AddBytes(buf, strlen(word), (Byte *) word); |
|
} |
return(addSpace); |
return(addSpace); |
} |
} |
#endif |
#endif |