mirror of
https://github.com/anope/anope.git
synced 2026-07-04 16:25:43 +02:00
BUILD : 1.7.3 (194) BUGS : none NOTES : Rolled back win32 support files in lieu of a branch.
git-svn-id: svn://svn.anope.org/anope/trunk@194 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@137 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
a0211857cd
commit
76fee36660
@@ -9,7 +9,6 @@ Provided by Anope Dev. <dev@anope.org> - 2004
|
||||
05/24 A New NSNickTracking directive to provide nick tracking. [ #71]
|
||||
05/21 A Auto enforce upon AKICK addition. [ #63]
|
||||
05/21 A New file docs/OLDCHANGES contains all change history. [ #65]
|
||||
06/12 F We check now for GlobalOnCyleUP if GlobalOnCycle is enabled. [ #91]
|
||||
06/12 F We check now for valid arguments in ModuleAddData(). [ #90]
|
||||
06/12 F Unified kill_user function to handle all ircd protocols. [#101]
|
||||
06/10 F Added check to see if MysqlUser and MysqlName were not null. [ #92]
|
||||
|
||||
-338
File diff suppressed because it is too large
Load Diff
@@ -1227,7 +1227,6 @@ int read_config(int reload)
|
||||
|
||||
if (GlobalOnCycle) {
|
||||
CHECK(GlobalOnCycleMessage);
|
||||
CHECK(GlobalOnCycleUP);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,6 +26,7 @@ extern void moduleAddMsgs(void);
|
||||
#if defined(IRC_HYBRID)
|
||||
# define NICK(nick,name,modes) \
|
||||
do { \
|
||||
kill_user(NULL, (nick), "Nick used by Services"); \
|
||||
send_cmd(NULL, "NICK %s 1 %ld %s %s %s %s :%s", (nick), time(NULL), (modes), \
|
||||
ServiceUser, ServiceHost, ServerName, (name)); \
|
||||
} while (0)
|
||||
|
||||
@@ -1,18 +1,3 @@
|
||||
/* Language stuff generator for win32.
|
||||
*
|
||||
* (C) 2003 Anope Team
|
||||
* Contact us at info@anope.org
|
||||
*
|
||||
* Please read COPYING and README for furhter details.
|
||||
*
|
||||
* Based on the original code of Epona by Lara.
|
||||
* Based on the original code of Services by Andy Church.
|
||||
*
|
||||
* Written by Dominick Meglio <codemastr@unrealircd.com>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
/* Needed due to Windows lack of a decent interpreter */
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
/*
|
||||
*
|
||||
* (C) 2004 Anope Team
|
||||
* Contact us at info@anope.org
|
||||
*
|
||||
* Please read COPYING and README for furhter details.
|
||||
*
|
||||
* Based on the original code of Epona by Lara.
|
||||
* Based on the original code of Services by Andy Church.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef SOCKETS_H
|
||||
#define SOCKETS_H
|
||||
|
||||
#ifdef _WIN32
|
||||
typedef SOCKET ano_socket_t;
|
||||
#define ano_sockread(fd, buf, len) recv(fd, buf, len, 0)
|
||||
#define ano_sockwrite(fd, buf, len) send(fd, buf, len, 0)
|
||||
#define ano_sockclose(fd) closesocket(fd)
|
||||
#define ano_sockgeterr() WSAGetLastError()
|
||||
#define ano_sockseterr(err) WSASetLastError(err)
|
||||
/* ano_sockstrerror in sockutil.c */
|
||||
/* ano_socksetnonb in sockutil.c */
|
||||
#define ano_sockerrnonb(err) (err == WSAEINPROGRESS || err == WSAEWOULDBLOCK)
|
||||
#define SOCKERR_EBADF WSAENOTSOCK
|
||||
#define SOCKERR_EINTR WSAEINTR
|
||||
#define SOCKERR_EINVAL WSAEINVAL
|
||||
#define SOCKERR_EINPROGRESS WSAEINPROGRESS
|
||||
#else
|
||||
typedef int ano_socket_t;
|
||||
#define ano_sockread(fd, buf, len) read(fd, buf, len)
|
||||
#define ano_sockwrite(fd, buf, len) write(fd, buf, len)
|
||||
#define ano_sockclose(fd) close(fd)
|
||||
#define ano_sockgeterr() errno
|
||||
#define ano_sockseterr(err) errno = err
|
||||
#define ano_sockstrerror(err) strerror(err)
|
||||
#define ano_socksetnonb(fd) fcntl(fd, F_SETFL, O_NONBLOCK)
|
||||
#define ano_sockerrnonb(err) (err == EINPROGRESS)
|
||||
#define SOCKERR_EBADF EBADF
|
||||
#define SOCKERR_EINTR EINTR
|
||||
#define SOCKERR_EINVAL EINVAL
|
||||
#define SOCKERR_EINPROGRESS EINPROGRESS
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -1,65 +0,0 @@
|
||||
/*
|
||||
*
|
||||
* (C) 2004 Anope Team
|
||||
* Contact us at info@anope.org
|
||||
*
|
||||
* Please read COPYING and README for furhter details.
|
||||
*
|
||||
* Based on the original code of Epona by Lara.
|
||||
* Based on the original code of Services by Andy Church.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef THREADS_H
|
||||
#define THREADS_H
|
||||
|
||||
#ifdef _WIN32
|
||||
typedef long ano_thread_t;
|
||||
typedef HANDLE ano_mutex_t;
|
||||
typedef HANDLE ano_cond_t;
|
||||
typedef unsigned (__stdcall *ano_thread_start) (void *);
|
||||
typedef struct
|
||||
{
|
||||
ano_thread_start func;
|
||||
void *arg;
|
||||
} ano_cleanup_t;
|
||||
|
||||
extern ano_thread_start __declspec(thread) cleanup_func;
|
||||
|
||||
#define ano_thread_create(thread,start,arg) !_beginthreadex(NULL, 0, (ano_thread_start)start, arg, 0, &thread)
|
||||
#define ano_thread_self() GetCurrentThreadId()
|
||||
#define ano_thread_detach(thread) 0
|
||||
#define ano_mutex_lock(mutex) WaitForSingleObject(mutex, INFINITE)
|
||||
#define ano_mutex_unlock(mutex) ReleaseMutex(mutex)
|
||||
|
||||
/* ano_cond_wait is in compat.c */
|
||||
#define ano_cond_signal(cond) SetEvent(cond)
|
||||
|
||||
/* very minimalistic implementation */
|
||||
#define ano_cleanup_push(func, arg) cleanup_func = (ano_thread_start)func
|
||||
#define ano_cleanup_pop(execute) cleanup_func(NULL)
|
||||
#else
|
||||
typedef pthread_t ano_thread_t;
|
||||
typedef ano_mutex_t pthread_mutex_t;
|
||||
typedef ano_cond_t pthread_cond_t;
|
||||
typedef void *(*ano_thread_start) (void *);
|
||||
|
||||
#define ano_thread_create(thread,start,arg) pthread_create(&thread, NULL, (void *)start, arg)
|
||||
#define ano_thread_self() pthread_self()
|
||||
#define ano_thread_detach(thread) pthread_detach(thread)
|
||||
|
||||
#define ano_mutex_lock(mutex) pthread_mutex_lock(&mutex)
|
||||
#define ano_mutex_unlock(mutex) pthread_mutex_unlock(&mutex)
|
||||
|
||||
#define ano_cond_wait(cond, mutex) pthread_cond_wait(&cond, &mutex)
|
||||
#define ano_cond_signal(cond) pthread_cond_signal(&cond)
|
||||
|
||||
#define ano_cleanup_push(func, arg) pthread_cleanup_push(func, arg)
|
||||
#define ano_cleanup_pop(execute) pthread_cleanup_pop(execute)
|
||||
|
||||
#define ano_thread_cancel(thread) pthread_cancel(thread)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
+4
-4
@@ -8,13 +8,13 @@
|
||||
VERSION_MAJOR="1"
|
||||
VERSION_MINOR="7"
|
||||
VERSION_PATCH="3"
|
||||
VERSION_BUILD="191"
|
||||
VERSION_BUILD="194"
|
||||
|
||||
# $Log$
|
||||
#
|
||||
# BUILD : 1.7.3 (191)
|
||||
# BUGS : 91
|
||||
# NOTES : Fixed bug 91 and added new win32 stuff for codemastr
|
||||
# BUILD : 1.7.3 (194)
|
||||
# BUGS : none
|
||||
# NOTES : Rolled back win32 support files in lieu of a branch.
|
||||
#
|
||||
# BUILD : 1.7.3 (190)
|
||||
# BUGS : 90
|
||||
|
||||
-215
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user