doc cleanups

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3691 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-11-20 21:28:58 +00:00
parent 0e25e544e3
commit 141cf9fb86
+45
View File
@@ -11,21 +11,53 @@ struct docargument
{
char *token, *desc, *values;
bool vararg;
docargument() : token(NULL), desc(NULL), values(NULL) {};
~docargument()
{
DELETEA(token);
DELETEA(desc);
DELETEA(values);
}
};
struct docref
{
char *name, *ident, *url, *article;
docref() : name(NULL), ident(NULL), url(NULL), article(NULL) {}
~docref()
{
DELETEA(name);
DELETEA(ident);
DELETEA(url);
DELETEA(article);
}
};
struct docexample
{
char *code, *explanation;
docexample() : code(NULL), explanation(NULL) {}
~docexample()
{
DELETEA(code);
DELETEA(explanation);
}
};
struct dockey
{
char *alias, *name, *desc;
dockey() : alias(NULL), name(NULL), desc(NULL) {}
~dockey()
{
DELETEA(alias);
DELETEA(name);
DELETEA(desc);
}
};
struct docident
@@ -36,6 +68,13 @@ struct docident
vector<docref> references;
vector<docexample> examples;
vector<dockey> keys;
docident() : name(NULL), desc(NULL) {}
~docident()
{
DELETEA(name);
DELETEA(desc);
}
};
struct docsection
@@ -43,6 +82,12 @@ struct docsection
char *name;
vector<docident *> idents;
void *menu;
docsection() : name(NULL) {};
~docsection()
{
DELETEA(name);
}
};
vector<docsection> sections;