*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1495 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-12-26 08:44:59 +00:00
parent f3f363ab0c
commit a46fa45901
25 changed files with 133 additions and 124 deletions
+4 -4
View File
@@ -46,7 +46,7 @@ struct docsection
};
vector<docsection> sections;
hashtable<char *, docident> docidents; // manage globally instead of a section tree to ensure uniqueness
hashtable<const char *, docident> docidents; // manage globally instead of a section tree to ensure uniqueness
docsection *lastsection = NULL;
docident *lastident = NULL;
@@ -123,7 +123,7 @@ COMMANDN(dockey, adddockey, ARG_3STR);
int stringsort(const char **a, const char **b) { return strcmp(*a, *b); }
char *cvecstr(vector<char *> &cvec, char *substr, int *rline = NULL)
char *cvecstr(vector<char *> &cvec, const char *substr, int *rline = NULL)
{
char *r = NULL;
loopv(cvec) if(cvec[i]) if((r = strstr(cvec[i], substr)) != NULL)
@@ -136,7 +136,7 @@ char *cvecstr(vector<char *> &cvec, char *substr, int *rline = NULL)
void docundone(int allidents)
{
cvector inames;
vector<const char *> inames;
identnames(inames, !(allidents > 0));
inames.sort(stringsort);
loopv(inames)
@@ -168,7 +168,7 @@ void docundone(int allidents)
void docinvalid()
{
cvector inames;
vector<const char *> inames;
identnames(inames, true);
inames.sort(stringsort);
enumerateht(docidents) if(!strchr(docidents.enumc->data.name, ' ') && !identexists(docidents.enumc->data.name))