1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 12:03:12 +02:00

Made gettext work on most OSs. Tested on Debian, FreeBSD, Gentoo, and Windows.

Added a search path option to the Config script for cmake to use when finding libraries for modules or for gettext.
Fixed m_mysql and m_ssl to work under Windows, made the Windows Config
program remember the last used options, and fixed Windows release builds.
This commit is contained in:
Adam
2010-10-30 19:41:13 -04:00
parent a7e5d51616
commit fb9f41b3e5
29 changed files with 315 additions and 128 deletions
+3 -2
View File
@@ -155,10 +155,11 @@ E void pmodule_ircd_var(IRCDVar *ircdvar);
/**** language.cpp ****/
E std::vector<Anope::string> languages;
E void InitLanguages();
E const Anope::string GetString(Anope::string language, LanguageString string);
E const Anope::string GetString(const Anope::string &language, LanguageString string);
E const Anope::string GetString(LanguageString string);
E const Anope::string GetString(const NickCore *nc, LanguageString string);
E const Anope::string GetString(const User *u, LanguageString string);
E const Anope::string GetString(const char *domain, Anope::string language, const Anope::string &string);
E Anope::string language_strings[LANG_STRING_COUNT];
E void SyntaxError(BotInfo *bi, User *u, const Anope::string &command, LanguageString message);
@@ -190,7 +191,7 @@ E void sighandler(int signum);
E void do_restart_services();
/* The socket to our uplink */
class UplinkSocket : public ConnectionSocket
class CoreExport UplinkSocket : public ConnectionSocket
{
public:
UplinkSocket(bool ipv6 = false);
+4 -4
View File
@@ -359,11 +359,11 @@ class StackerInfo
BotInfo *bi;
/** Add a mode to this object
* @param Mode The mode
* @param mode The mode
* @param Set true if setting, false if unsetting
* @param Param The param for the mode
*/
void AddMode(Base *Mode, bool Set, const Anope::string &Param);
void AddMode(Mode *mode, bool Set, const Anope::string &Param);
};
/** This is mode manager
@@ -393,12 +393,12 @@ class CoreExport ModeManager
/** Really add a mode to the stacker, internal use only
* @param bi The client to set the modes from
* @param Object The object, user/channel
* @param Mode The mode
* @param mode The mode
* @param Set Adding or removing?
* @param Param A param, if there is one
* @param Type The type this is, user or channel
*/
static void StackerAddInternal(BotInfo *bi, Base *Object, Base *Mode, bool Set, const Anope::string &Param, StackerType Type);
static void StackerAddInternal(BotInfo *bi, Base *Object, Mode *mode, bool Set, const Anope::string &Param, StackerType Type);
public:
/* List of all modes Anope knows about */
+1 -1
View File
@@ -1223,7 +1223,7 @@ class CallBack : public Timer
}
};
class Service : public virtual Base
class CoreExport Service : public virtual Base
{
public:
Module *owner;
+2 -1
View File
@@ -81,6 +81,7 @@
# define unsetenv(x) SetEnvironmentVariable(x, NULL)
# define MARK_DEPRECATED
extern CoreExport USHORT WindowsGetLanguage(const char *lang);
extern CoreExport int inet_pton(int af, const char *src, void *dst);
extern CoreExport const char *inet_ntop(int af, const void *src, char *dst, size_t size);
#endif
@@ -482,7 +483,7 @@ class Memo : public Flags<MemoFlag>
Anope::string text;
};
struct MemoInfo
struct CoreExport MemoInfo
{
unsigned memomax;
std::vector<Memo *> memos;
+2 -2
View File
@@ -114,7 +114,7 @@ class ClientSocket;
class ListenSocket;
class ConnectionSocket;
class SocketIO
class CoreExport SocketIO
{
public:
/** Receive something from the buffer
@@ -306,7 +306,7 @@ class CoreExport ListenSocket : public Socket
virtual ClientSocket *OnAccept(int fd, const sockaddrs &addr);
};
class ConnectionSocket : public BufferedSocket
class CoreExport ConnectionSocket : public BufferedSocket
{
public:
/* Sockaddrs for bindip (if there is one) */
+1
View File
@@ -20,6 +20,7 @@
#cmakedefine HAVE_EVENTFD 1
#cmakedefine GETTEXT_FOUND 1
#cmakedefine RUNGROUP "@RUNGROUP@"
#define LIBINTL "@LIBINTL_INCLUDE@"
#cmakedefine HAVE_UINT8_T 1
#cmakedefine HAVE_U_INT8_T 1
+4 -4
View File
@@ -17,7 +17,7 @@ class Thread;
extern CoreExport ThreadEngine threadEngine;
class ThreadEngine
class CoreExport ThreadEngine
{
public:
/* Vector of threads */
@@ -41,7 +41,7 @@ class ThreadEngine
void Process();
};
class Thread : public Extensible
class CoreExport Thread : public Extensible
{
private:
/* Set to true to tell the thread to finish and we are waiting for it */
@@ -77,7 +77,7 @@ class Thread : public Extensible
virtual void Run();
};
class Mutex
class CoreExport Mutex
{
protected:
/* A mutex, used to keep threads in sync */
@@ -101,7 +101,7 @@ class Mutex
void Unlock();
};
class Condition : public Mutex
class CoreExport Condition : public Mutex
{
private:
/* A condition */