ENH: Added return type int to ExecuteCommand.
This commit is contained in:
parent
3303599c75
commit
10931b5e66
@ -291,8 +291,8 @@ char *cmExpandVariablesInString(void *arg, const char *source,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void cmExecuteCommand(void *arg, const char *name,
|
int cmExecuteCommand(void *arg, const char *name,
|
||||||
int numArgs, const char **args)
|
int numArgs, const char **args)
|
||||||
{
|
{
|
||||||
cmMakefile *mf = static_cast<cmMakefile *>(arg);
|
cmMakefile *mf = static_cast<cmMakefile *>(arg);
|
||||||
cmListFileFunction lff;
|
cmListFileFunction lff;
|
||||||
@ -302,7 +302,7 @@ void cmExecuteCommand(void *arg, const char *name,
|
|||||||
// Assume all arguments are quoted.
|
// Assume all arguments are quoted.
|
||||||
lff.m_Arguments.push_back(cmListFileArgument(args[i], true));
|
lff.m_Arguments.push_back(cmListFileArgument(args[i], true));
|
||||||
}
|
}
|
||||||
mf->ExecuteCommand(lff);
|
return mf->ExecuteCommand(lff);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmExpandSourceListArguments(void *arg,
|
void cmExpandSourceListArguments(void *arg,
|
||||||
|
@ -84,8 +84,8 @@ typedef struct
|
|||||||
int all, int numDepends, const char **depends,
|
int all, int numDepends, const char **depends,
|
||||||
int numOutputs, const char **outputs);
|
int numOutputs, const char **outputs);
|
||||||
int (*CommandExists) (void *mf, const char* name);
|
int (*CommandExists) (void *mf, const char* name);
|
||||||
void (*ExecuteCommand) (void *mf, const char *name,
|
int (*ExecuteCommand) (void *mf, const char *name,
|
||||||
int numArgs, const char **args);
|
int numArgs, const char **args);
|
||||||
void (*ExpandSourceListArguments) (void *mf,int argc, const char **argv,
|
void (*ExpandSourceListArguments) (void *mf,int argc, const char **argv,
|
||||||
int *resArgc, char ***resArgv,
|
int *resArgc, char ***resArgv,
|
||||||
unsigned int startArgumentIndex);
|
unsigned int startArgumentIndex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user