1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 23:43:14 +02:00

BUILD : 1.7.5 (394) BUGS : N/A NOTES : More code tidying, added make strict_modules etc, incase module coders what to use it :)

git-svn-id: svn://svn.anope.org/anope/trunk@394 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@259 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
2004-10-13 18:10:23 +00:00
parent 65ed982a17
commit 655889c154
8 changed files with 26 additions and 11 deletions
+8 -2
View File
@@ -2,6 +2,7 @@ CC=@CC@
INCLUDEDIR=../include
ANOPELIBS=@ANOPELIBS@
CFLAGS=@CFLAGS@
STRICT=-Wall -ansi -pedantic
SHELL=/bin/sh
SUBDIRS=src
BINDEST=@BINDEST@
@@ -16,6 +17,7 @@ RDB=@RDB@
LDFLAGS=@LDFLAGS@
all: language headers build modules
strict: language headers strict_build strict_modules
MAKEARGS = 'CFLAGS=${CFLAGS}' 'CC=${CC}' 'ANOPELIBS=${ANOPELIBS}' \
'LDFLAGS=${LDFLAGS}' 'BINDEST=${BINDEST}' 'INSTALL=${INSTALL}' \
@@ -30,16 +32,20 @@ build:
( cd $$i; ${MAKE} ${MAKEARGS} all; ) \
done
strict: language headers
strict_build:
@for i in $(SUBDIRS); do \
echo "*** Strict Building $$i";\
( cd $$i; ${MAKE} ${MAKEARGS} 'CFLAGS=${CFLAGS} -ansi -Wall -pedantic' all; ) \
( cd $$i; ${MAKE} ${MAKEARGS} 'CFLAGS=${CFLAGS} $(STRICT)' all; ) \
done
modules: build
(cd src/modules ; ./configure ; ${MAKE} ${MAKEARGS} all; )
@echo "*** All done, now (g)make install to install Anope/Modules";
strict_modules: strict_build
(cd src/modules ; ./configure ; ${MAKE} ${MAKEARGS} 'CFLAGS=$(CFLAGS) $(STRICT)' all; )
@echo "*** All done, now (g)make install to install Anope/Modules";
language:
(cd lang ; $(MAKE) ${MAKEARGS} all language.h ; cp language.h ../include/)
+2 -2
View File
@@ -608,8 +608,8 @@ void load_bs_dbase(void)
{
dbFILE *f;
int c, ver;
uint16 tmp16;
uint32 tmp32;
int16 tmp16;
int32 tmp32;
BotInfo *bi;
int failed = 0;
+2 -2
View File
@@ -634,8 +634,8 @@ void load_cs_dbase(void)
ver = get_file_version(f);
for (i = 0; i < 256 && !failed; i++) {
uint16 tmp16;
uint32 tmp32;
int16 tmp16;
int32 tmp32;
int n_levels;
char *s;
NickAlias *na;
+4
View File
@@ -910,9 +910,13 @@ char *host_resolve(char *host)
char *anopeStrDup(const char *src) {
char *ret=NULL;
if(src) {
#ifdef __STRICT_ANSI__
if( (ret = (char *)malloc(strlen(src)+1)) ) {;
strcpy(ret,src);
}
#else
ret = strdup(src); /* this way will prolly be faster, use it if we can */
#endif
}
return ret;
}
+2 -1
View File
@@ -263,7 +263,8 @@ static int proxy_connect(unsigned long ip, unsigned short port)
fd_set fds;
struct timeval tv;
int error, errlen;
int error;
unsigned int errlen;
if ((s = socket(PF_INET, SOCK_STREAM, 0)) == -1)
return -1;
+2 -2
View File
@@ -195,7 +195,7 @@ Server *findserver(Server * s, const char *name)
}
}
if (debug >= 3)
alog("debug: findserver(%s) -> %p", name, s);
alog("debug: findserver(%s) -> %p", name, (void *) s);
return s;
}
@@ -226,7 +226,7 @@ int anope_check_sync(const char *name)
void do_server(const char *source, char *servername, char *hops,
char *descript, char *numeric)
{
Server *s, *s2;
Server *s;
if (debug) {
if (!*source) {
+1 -1
View File
@@ -61,7 +61,7 @@ void check_timeouts(void)
}
if (debug >= 4) {
alog("debug: Running timeout 0x%p (code=0x%p repeat=%d)",
(void *) to, to->code, to->repeat);
(void *) to, (void *) to->code, to->repeat);
}
to->code(to);
if (to->repeat) {
+5 -1
View File
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="5"
VERSION_BUILD="393"
VERSION_BUILD="394"
# $Log$
#
# BUILD : 1.7.5 (394)
# BUGS : N/A
# NOTES : More code tidying, added make strict_modules etc, incase module coders what to use it :)
#
# BUILD : 1.7.5 (393)
# BUGS : N/A
# NOTES : Ultimate3 EOBURST support