===================================================================
RCS file: /home/cmunk/ircsystems/cvsroot/unreal/Changes,v
retrieving revision 1.1.1.1.2.1.2.1.2.2394
diff -u -r1.1.1.1.2.1.2.1.2.2394 Changes
--- Changes 13 May 2007 16:48:38 -0000 1.1.1.1.2.1.2.1.2.2394
+++ Changes 13 May 2007 17:56:05 -0000
@@ -1666,3 +1666,4 @@
- A bug was introduced in the patch for #
0003139. Patched by WolfSage
- #
0002533 reported by Dodge_Ram, patched by WolfSage, regarding notices
not being sent when /*line and /shun are used to request stats
+- Removed class.h and minor references to aClass. Patched by WolfSage
- A bug was introduced in the patch for #0003139. Patched by WolfSage
- #0002533 reported by Dodge_Ram, patched by WolfSage, regarding notices
not being sent when /*line and /shun are used to request stats
+- Removed class.h and minor references to aClass. Patched by WolfSage
+++ /dev/null
-/************************************************************************
- * Unreal Internet Relay Chat Daemon, include/class.h
- * Copyright (C) 1990 Darren Reed
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 1, or (at your option)
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- * $Id$
- */
-
-#ifndef __class_include__
-#define __class_include__
-
-typedef struct Class {
- int class;
- int conFreq;
- int pingFreq;
- int maxLinks;
- long maxSendq;
- int links;
- struct Class *next;
-} aClass;
-
-#define Class(x) ((x)->class)
-#define ConFreq(x) ((x)->conFreq)
-#define PingFreq(x) ((x)->pingFreq)
-#define MaxLinks(x) ((x)->maxLinks)
-#define MaxSendq(x) ((x)->maxSendq)
-#define Links(x) ((x)->links)
-
-#define ConfLinks(x) (Class(x)->links)
-#define ConfMaxLinks(x) (Class(x)->maxLinks)
-#define ConfClass(x) (Class(x)->class)
-#define ConfConFreq(x) (Class(x)->conFreq)
-#define ConfPingFreq(x) (Class(x)->pingFreq)
-#define ConfSendq(x) (Class(x)->maxSendq)
-
-#define FirstClass() classes
-#define NextClass(x) ((x)->next)
-
-extern aClass *classes;
-
-extern aClass *find_class(int);
-extern int get_conf_class(aConfItem *);
-extern int get_client_class(aClient *);
-extern int get_client_ping(aClient *);
-extern int get_con_freq(aClass *);
-extern void add_class(int, int, int, int, long);
-extern void check_class(void);
-extern void initclass(void);
-
-#endif /* __class_include__ */
extern void free_client(aClient *);
extern void free_link(Link *);
extern void free_ban(Ban *);
-extern void free_class(aClass *);
extern void free_user(anUser *, aClient *);
extern int find_str_match_link(Link *, char *);
extern void free_str_list(Link *);
extern Link *make_link();
extern Ban *make_ban();
extern anUser *make_user(aClient *);
-extern aClass *make_class();
extern aServer *make_server();
extern aClient *make_client(aClient *, aClient *);
extern Link *find_user_link(Link *, aClient *);
#endif
#ifndef VMSP
-#include "class.h"
#include "dbuf.h" /* THIS REALLY SHOULDN'T BE HERE!!! --msa */
#endif
src/channel.obj: src/channel.c $(INCLUDES) ./include/channel.h
$(CC) $(CFLAGS) src/channel.c
-src/class.obj: src/class.c $(INCLUDES) ./include/class.h
- $(CC) $(CFLAGS) src/class.c
-
src/lusers.obj: src/lusers.c $(INCLUDES)
$(CC) $(CFLAGS) src/lusers.c
MAKE = make $(MAKEARGS)
INCLUDES = ../include/auth.h ../include/badwords.h ../include/channel.h \
- ../include/class.h ../include/common.h ../include/config.h ../include/dbuf.h \
+ ../include/common.h ../include/config.h ../include/dbuf.h \
../include/dynconf.h ../include/events.h ../include/fdlist.h ../include/h.h \
../include/hash.h ../include/inet.h ../include/ircsprintf.h \
../include/license.h ../include/macros.h ../include/md5.h \
#ifdef DEBUGMODE
static struct liststats {
int inuse;
-} cloc, crem, users, servs, links, classs, aconfs;
+} cloc, crem, users, servs, links, aconfs;
#endif
bzero((char *)&users, sizeof(users));
bzero((char *)&servs, sizeof(servs));
bzero((char *)&links, sizeof(links));
- bzero((char *)&classs, sizeof(classs));
#endif
}
#endif
}
-aClass *make_class(void)
-{
- aClass *tmp;
-
- tmp = (aClass *)MyMalloc(sizeof(aClass));
-#ifdef DEBUGMODE
- classs.inuse++;
-#endif
- return tmp;
-}
-
-void free_class(aClass *tmp)
-{
- MyFree((char *)tmp);
-#ifdef DEBUGMODE
- classs.inuse--;
-#endif
-}
-
#ifdef DEBUGMODE
void send_listinfo(aClient *cptr, char *name)
{
me.name, RPL_STATSDEBUG, name, links.inuse,
tmp = links.inuse * sizeof(Link));
mem += tmp;
- inuse += links.inuse,
- sendto_one(cptr, ":%s %d %s :Classes: inuse: %d(%d)",
- me.name, RPL_STATSDEBUG, name, classs.inuse,
- tmp = classs.inuse * sizeof(aClass));
- mem += tmp;
- inuse += aconfs.inuse,
+ inuse += links.inuse + aconfs.inuse,
sendto_one(cptr, ":%s %d %s :Totals: inuse %d %d",
me.name, RPL_STATSDEBUG, name, inuse, mem);
}
# major edit from fez - to compile objects individually...
INCLUDES = ../include/auth.h ../include/badwords.h ../include/channel.h \
- ../include/class.h ../include/common.h ../include/config.h ../include/dbuf.h \
+ ../include/common.h ../include/config.h ../include/dbuf.h \
../include/dynconf.h ../include/events.h ../include/fdlist.h ../include/h.h \
../include/hash.h ../include/inet.h ../include/ircsprintf.h \
../include/license.h ../include/macros.h ../include/md5.h \
#*/
INCLUDES = ../include/auth.h ../include/badwords.h ../include/channel.h \
- ../include/class.h ../include/common.h ../include/config.h ../include/dbuf.h \
+ ../include/common.h ../include/config.h ../include/dbuf.h \
../include/dynconf.h ../include/events.h ../include/fdlist.h ../include/h.h \
../include/hash.h ../include/inet.h ../include/ircsprintf.h \
../include/license.h ../include/macros.h ../include/md5.h \
chb = 0, /* channel bans */
wwu = 0, /* whowas users */
fl = 0, /* free links */
- cl = 0, /* classes */
co = 0; /* conf lines */
int usi = 0, /* users invited */
/* rm = cres_mem(sptr,sptr->name); */
rm = 0; /* syzop: todo ?????????? */
- tot = totww + totch + totcl + com + cl * sizeof(aClass) + db + rm;
+ tot = totww + totch + totcl + com + db + rm;
tot += fl * sizeof(Link);
tot += sizeof(aHashEntry) * U_MAX;
tot += sizeof(aHashEntry) * CH_MAX;