diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-12-11 19:16:55 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-12-11 19:16:55 (GMT) |
commit | c3474d4257edc0bf9c7a5b298b4441d8edb2afe0 (patch) | |
tree | d677ce37ab093edfda6ad3fefdaf307e12b5b193 /Source/cmCPluginAPI.cxx | |
parent | 3bcbca96ab7424852e1cc4e15ef19174e40db224 (diff) | |
download | CMake-c3474d4257edc0bf9c7a5b298b4441d8edb2afe0.zip CMake-c3474d4257edc0bf9c7a5b298b4441d8edb2afe0.tar.gz CMake-c3474d4257edc0bf9c7a5b298b4441d8edb2afe0.tar.bz2 |
added a Free method
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r-- | Source/cmCPluginAPI.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx index bdf0b94..56da7d3 100644 --- a/Source/cmCPluginAPI.cxx +++ b/Source/cmCPluginAPI.cxx @@ -380,6 +380,12 @@ void * cmCreateSourceFile() return (void *)(new cmSourceFile); } +void cmDestroySourceFile(void *arg) +{ + cmSourceFile *sf = static_cast<cmSourceFile *>(arg); + delete sf; +} + const char *cmSourceFileGetSourceName(void *arg) { cmSourceFile *sf = static_cast<cmSourceFile *>(arg); @@ -479,6 +485,11 @@ void cmRemoveFile(const char *name) cmSystemTools::RemoveFile(name); } +void cmFree(void *data) +{ + free(data); +} + } // close the extern "C" scope cmCAPI cmStaticCAPI = @@ -517,6 +528,7 @@ cmCAPI cmStaticCAPI = cmAddSource, cmCreateSourceFile, + cmDestroySourceFile, cmGetSource, cmSourceFileAddDepend, cmSourceFileGetProperty, @@ -532,5 +544,6 @@ cmCAPI cmStaticCAPI = cmGetFilenameWithoutExtension, cmGetFilenamePath, cmRemoveFile, + cmFree, }; |