diff options
Diffstat (limited to 'Source/cmDocumentationSection.cxx')
-rw-r--r-- | Source/cmDocumentationSection.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmDocumentationSection.cxx b/Source/cmDocumentationSection.cxx index c4a4edf..88b9eeb 100644 --- a/Source/cmDocumentationSection.cxx +++ b/Source/cmDocumentationSection.cxx @@ -31,6 +31,21 @@ void cmDocumentationSection::Append(const char *data[][3]) } //---------------------------------------------------------------------------- +void cmDocumentationSection::Prepend(const char *data[][3]) +{ + std::vector<cmDocumentationEntry> tmp; + int i = 0; + while(data[i][1]) + { + tmp.push_back(cmDocumentationEntry(data[i][0], + data[i][1], + data[i][2])); + data += 1; + } + this->Entries.insert(this->Entries.begin(),tmp.begin(),tmp.end()); +} + +//---------------------------------------------------------------------------- void cmDocumentationSection::Append(const char *n, const char *b, const char *f) { |