summaryrefslogtreecommitdiff
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-10-08 15:55:04 -0400
committerKen Martin <ken.martin@kitware.com>2002-10-08 15:55:04 -0400
commitabf33378888971b2b18cacef8e77977c4d81a860 (patch)
tree940411084b92f85439ec6abdd12ca2a76cbc215a /Source/cmCPluginAPI.cxx
parent8cdb9a316febc56007c35df49ffc80316bbf1dd9 (diff)
downloadcmake-abf33378888971b2b18cacef8e77977c4d81a860.tar.gz
some mods to the plugin API
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx98
1 files changed, 54 insertions, 44 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index 6fb744eb30..a550630029 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,
};