Reverted calls that didn't need to use macDefExpand to single parameter
This commit is contained in:
@@ -230,7 +230,7 @@ static long dbReadCOM(DBBASE **ppdbbase,const char *filename, FILE *fp,
|
||||
}
|
||||
pinputFile = dbCalloc(1,sizeof(inputFile));
|
||||
if(filename) {
|
||||
pinputFile->filename = macEnvExpand(filename, NULL);
|
||||
pinputFile->filename = macEnvExpand(filename);
|
||||
}
|
||||
if(!fp) {
|
||||
FILE *fp1;
|
||||
@@ -382,7 +382,7 @@ static void dbIncludeNew(char *filename)
|
||||
FILE *fp;
|
||||
|
||||
pinputFile = dbCalloc(1,sizeof(inputFile));
|
||||
pinputFile->filename = macEnvExpand(filename, NULL);
|
||||
pinputFile->filename = macEnvExpand(filename);
|
||||
pinputFile->path = dbOpenFile(pdbbase, pinputFile->filename, &fp);
|
||||
if (!fp) {
|
||||
epicsPrintf("Can't open include file \"%s\"\n", filename);
|
||||
|
||||
@@ -582,10 +582,10 @@ static int substituteGetNextSet(subInfo *psubInfo,char **filename)
|
||||
free(psubInfo->filename);
|
||||
if(psubFile->string[0]=='"'&&psubFile->string[strlen(psubFile->string)-1]=='"') {
|
||||
psubFile->string[strlen(psubFile->string)-1]='\0';
|
||||
psubInfo->filename = macEnvExpand(psubFile->string+1, NULL);
|
||||
psubInfo->filename = macEnvExpand(psubFile->string+1);
|
||||
}
|
||||
else {
|
||||
psubInfo->filename = macEnvExpand(psubFile->string, NULL);
|
||||
psubInfo->filename = macEnvExpand(psubFile->string);
|
||||
}
|
||||
while(subGetNextToken(psubFile)==tokenSeparater);
|
||||
if(psubFile->token!=tokenLBrace) {
|
||||
|
||||
@@ -585,7 +585,7 @@ iocshBody (const char *pathname, const char *commandLine, const char* macros)
|
||||
* Expand macros
|
||||
*/
|
||||
free(line);
|
||||
if ((line = macEnvExpand(raw, macros)) == NULL)
|
||||
if ((line = macDefExpand(raw, macros)) == NULL)
|
||||
continue;
|
||||
|
||||
/*
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
static void check(const char *str, const char *expect)
|
||||
{
|
||||
char *got = macEnvExpand(str, NULL);
|
||||
char *got = macEnvExpand(str);
|
||||
int pass = -1;
|
||||
|
||||
if (expect && !got) {
|
||||
|
||||
Reference in New Issue
Block a user