ENH: Add DisplayStatus

This commit is contained in:
Andy Cedilnik 2003-07-22 13:14:55 -04:00
parent 92ac3689c9
commit 8327883f3f
2 changed files with 9 additions and 0 deletions

View File

@ -536,6 +536,12 @@ void cmRemoveFile(const char *name)
cmSystemTools::RemoveFile(name); cmSystemTools::RemoveFile(name);
} }
void cmDisplayStatus(void *arg, const char* message)
{
cmMakefile *mf = static_cast<cmMakefile *>(arg);
return mf->DisplayStatus(message, -1);
}
void cmFree(void *data) void cmFree(void *data)
{ {
free(data); free(data);
@ -550,6 +556,7 @@ cmCAPI cmStaticCAPI =
cmFreeArguments, cmFreeArguments,
cmSetClientData, cmSetClientData,
cmSetError, cmSetError,
cmDisplayStatus,
cmAddCacheDefinition, cmAddCacheDefinition,
cmAddCustomCommand, cmAddCustomCommand,
cmAddDefineFlag, cmAddDefineFlag,

View File

@ -57,6 +57,8 @@ typedef struct
void (*SetClientData) (void *info, void *cd); void (*SetClientData) (void *info, void *cd);
/* when an error occurs, call this function to set the error string */ /* when an error occurs, call this function to set the error string */
void (*SetError) (void *info, const char *err); void (*SetError) (void *info, const char *err);
/* display status information */
void (*DisplaySatus) (void *info, const char *message);
/*========================================================================= /*=========================================================================
The following functions all directly map to methods in the cmMakefile The following functions all directly map to methods in the cmMakefile