diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-10-08 19:55:04 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-10-08 19:55:04 (GMT) |
commit | abf33378888971b2b18cacef8e77977c4d81a860 (patch) | |
tree | 940411084b92f85439ec6abdd12ca2a76cbc215a /Source/cmCPluginAPI.cxx | |
parent | 8cdb9a316febc56007c35df49ffc80316bbf1dd9 (diff) | |
download | CMake-abf33378888971b2b18cacef8e77977c4d81a860.zip CMake-abf33378888971b2b18cacef8e77977c4d81a860.tar.gz CMake-abf33378888971b2b18cacef8e77977c4d81a860.tar.bz2 |
some mods to the plugin API
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r-- | Source/cmCPluginAPI.cxx | 98 |
1 files changed, 54 insertions, 44 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx index 6fb744e..a550630 100644 --- a/Source/cmCPluginAPI.cxx +++ b/Source/cmCPluginAPI.cxx @@ -35,6 +35,15 @@ void cmSetClientData(void *info, void *cd) ((cmLoadedCommandInfo *)info)->ClientData = cd; } +void cmSetError(void *info, const char *err) +{ + if (((cmLoadedCommandInfo *)info)->Error) + { + free(((cmLoadedCommandInfo *)info)->Error); + } + ((cmLoadedCommandInfo *)info)->Error = strdup(err); +} + unsigned int cmGetCacheMajorVersion(void *arg) { cmMakefile *mf = static_cast<cmMakefile *>(arg); @@ -461,50 +470,51 @@ void cmRemoveFile(const char *name) cmCAPI cmStaticCAPI = { cmGetClientData, - cmGetTotalArgumentSize, - cmFreeArguments, - cmSetClientData, - cmAddCacheDefinition, - cmAddCustomCommand, - cmAddDefineFlag, - cmAddDefinition, - cmAddExecutable, - cmAddLibrary, - cmAddLinkDirectoryForTarget, - cmAddLinkLibraryForTarget, - cmAddUtilityCommand, - cmCommandExists, - cmExecuteCommand, - cmExpandSourceListArguments, - cmExpandVariablesInString, - cmGetCacheMajorVersion, - cmGetCacheMinorVersion, - cmGetCurrentDirectory, - cmGetCurrentOutputDirectory, - cmGetDefinition, - cmGetHomeDirectory, - cmGetHomeOutputDirectory, - cmGetMajorVersion, - cmGetMinorVersion, - cmGetProjectName, - cmGetStartDirectory, - cmGetStartOutputDirectory, - cmIsOn, + cmGetTotalArgumentSize, + cmFreeArguments, + cmSetClientData, + cmSetError, + cmAddCacheDefinition, + cmAddCustomCommand, + cmAddDefineFlag, + cmAddDefinition, + cmAddExecutable, + cmAddLibrary, + cmAddLinkDirectoryForTarget, + cmAddLinkLibraryForTarget, + cmAddUtilityCommand, + cmCommandExists, + cmExecuteCommand, + cmExpandSourceListArguments, + cmExpandVariablesInString, + cmGetCacheMajorVersion, + cmGetCacheMinorVersion, + cmGetCurrentDirectory, + cmGetCurrentOutputDirectory, + cmGetDefinition, + cmGetHomeDirectory, + cmGetHomeOutputDirectory, + cmGetMajorVersion, + cmGetMinorVersion, + cmGetProjectName, + cmGetStartDirectory, + cmGetStartOutputDirectory, + cmIsOn, + + cmAddSource, + cmCreateSourceFile, + cmGetSource, + cmSourceFileAddDepend, + cmSourceFileGetProperty, + cmSourceFileGetPropertyAsBool, + cmSourceFileGetSourceName, + cmSourceFileSetName, + cmSourceFileSetName2, + cmSourceFileSetProperty, - cmAddSource, - cmCreateSourceFile, - cmGetSource, - cmSourceFileAddDepend, - cmSourceFileGetProperty, - cmSourceFileGetPropertyAsBool, - cmSourceFileGetSourceName, - cmSourceFileSetName, - cmSourceFileSetName2, - cmSourceFileSetProperty, - - cmCapitalized, - cmCopyFileIfDifferent, - cmGetFilenameWithoutExtension, - cmRemoveFile, + cmCapitalized, + cmCopyFileIfDifferent, + cmGetFilenameWithoutExtension, + cmRemoveFile, }; |