server source reorg

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4559 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2009-07-01 17:15:52 +00:00
parent d6c80eeb7e
commit 470cae55f1
9 changed files with 981 additions and 922 deletions
+12
View File
@@ -615,6 +615,18 @@ const char *iprtoa(const struct iprange &ipr)
return s[buf];
}
int cmpiprange(const struct iprange *a, const struct iprange *b)
{
if(a->lr < b->lr) return -1;
if(a->lr > b->lr) return 1;
return 0;
}
int cmpipmatch(const struct iprange *a, const struct iprange *b)
{
return - (a->lr < b->lr) + (a->lr > b->ur);
}
char *s_strcatf(char *d, const char *s, ...)
{
static s_sprintfdv(temp, s);