Reverted calls that didn't need to use macDefExpand to single parameter

This commit is contained in:
Keenan Lang
2014-08-21 16:09:21 -05:00
parent 6d3b70251c
commit 76bd45cb45
4 changed files with 6 additions and 6 deletions

View File

@@ -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);

View File

@@ -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) {

View File

@@ -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;
/*

View File

@@ -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) {