[NeoStats-Devel] [Commits] r2659 - in trunk: include modules/connectserv modules/protocol modules/statserv src
[email protected] Sat, 9 Jul 2005 08:58:04 +1000
Newsgroups
gmane.comp.neostats.devel
Message-ID
<[email protected] >
Author: Mark
Date: Sat Jul 9 06:57:59 2005
New Revision: 2659
Modified:
trunk/include/conf.h
trunk/include/configwin32.h
trunk/include/confuse.h
trunk/include/dl.h
trunk/include/dns.h
trunk/include/events.h
trunk/include/hash.h
trunk/include/helpstrings.h
trunk/include/list.h
trunk/include/log.h
trunk/include/main.h
trunk/include/modes.h
trunk/include/neostats.h
trunk/include/perlmod.h
trunk/include/sock.h
trunk/modules/connectserv/cs.c
trunk/modules/protocol/ultimate3.c
trunk/modules/protocol/unreal31.c
trunk/modules/statserv/htmlstats.c
trunk/modules/statserv/statserv.h
trunk/src/conf.c
trunk/src/main.c
trunk/src/modules.c
Log:
preprocessor comments added
Modified: trunk/include/conf.h
==============================================================================
--- trunk/include/conf.h (original)
+++ trunk/include/conf.h Sat Jul 9 06:57:59 2005
@@ -24,10 +24,10 @@
*/
-#ifndef _conf_h_
-#define _conf_h_
+#ifndef _CONF_H_
+#define _CONF_H_
int ConfLoad( void );
int ConfLoadModules( void );
-#endif
+#endif /* _CONF_H_ */
Modified: trunk/include/configwin32.h
==============================================================================
--- trunk/include/configwin32.h (original)
+++ trunk/include/configwin32.h Sat Jul 9 06:57:59 2005
@@ -486,7 +486,7 @@
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
/* #undef inline */
-#endif
+#endif /* __cplusplus */
/* Define to a type if <wchar.h> does not define. */
/* #undef mbstate_t */
Modified: trunk/include/confuse.h
==============================================================================
--- trunk/include/confuse.h (original)
+++ trunk/include/confuse.h Sat Jul 9 06:57:59 2005
@@ -38,12 +38,12 @@
* <em>If you can't convince, confuse.</em>
*/
-#ifndef _cfg_h_
-#define _cfg_h_
+#ifndef _CFG_H_
+#define _CFG_H_
#ifdef __cplusplus
extern "C" {
-#endif
+#endif /* __cplusplus */
#include <stdio.h>
#include <stdarg.h>
@@ -62,7 +62,7 @@
#ifndef __BORLANDC__
# define __export
-#endif
+#endif /* __BORLANDC__ */
FILE *cfg_yyin;
@@ -1100,9 +1100,9 @@
#ifdef __cplusplus
}
-#endif
+#endif /* __cplusplus */
-#endif
+#endif /* _CFG_H_ */
/** @example cfgtest.c
*/
Modified: trunk/include/dl.h
==============================================================================
--- trunk/include/dl.h (original)
+++ trunk/include/dl.h Sat Jul 9 06:57:59 2005
@@ -23,8 +23,8 @@
** $Id$
*/
-#ifndef _dl_h_
-#define _dl_h_
+#ifndef _DL_H_
+#define _DL_H_
/*
* dl.h
@@ -33,32 +33,31 @@
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
-#endif
+#endif /* HAVE_DLFCN_H */
/*
* Ensure RTLD flags correctly defined
*/
#ifndef RTLD_NOW
#define RTLD_NOW 1
-#endif
+#endif /* RTLD_NOW */
#ifndef RTLD_NOW
#define RTLD_NOW RTLD_LAZY /* openbsd deficiency */
-#endif
+#endif /* RTLD_NOW */
#ifndef RTLD_GLOBAL
#define RTLD_GLOBAL 0
-#endif
+#endif /* RTLD_GLOBAL */
#ifdef WIN32
#ifndef NDEBUG
/* The extra d in debug mode uses debug versions of DLLs */
#define MOD_STDEXT "d.dll"
-#else
+#else /* NDEBUG */
#define MOD_STDEXT ".dll"
-#endif
-#else
+#endif /* NDEBUG */
+#else /* WIN32 */
#define MOD_STDEXT ".so"
-#endif
-
+#endif /* WIN32 */
/*
* Prototypes
@@ -70,4 +69,4 @@
char *ns_dlerrormsg;
-#endif /* !_dl_h_ */
+#endif /* _DL_H_ */
Modified: trunk/include/dns.h
==============================================================================
--- trunk/include/dns.h (original)
+++ trunk/include/dns.h Sat Jul 9 06:57:59 2005
@@ -29,4 +29,5 @@
void FiniDns( void );
void canx_dns( Module* modptr );
void do_dns_stats_Z( Client * );
+
#endif /* _DNS_H_ */
Modified: trunk/include/events.h
==============================================================================
--- trunk/include/events.h (original)
+++ trunk/include/events.h Sat Jul 9 06:57:59 2005
@@ -21,6 +21,9 @@
** $Id$
*/
+#ifndef _EVENTS_H_
+#define _EVENTS_H_
+
/* Events.
* An event handler is passed a structure pointer of type
* CmdParams.
@@ -431,3 +434,5 @@
EVENT_COUNT,
} Event;
+
+#endif /* _EVENTS_H_ */
Modified: trunk/include/hash.h
==============================================================================
--- trunk/include/hash.h (original)
+++ trunk/include/hash.h Sat Jul 9 06:57:59 2005
@@ -41,15 +41,15 @@
* $Name: $
*/
-#ifndef HASH_H
-#define HASH_H
+#ifndef _HASH_H_
+#define _HASH_H_
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif /* HAVE_LIMITS_H */
#ifdef KAZLIB_SIDEEFFECT_DEBUG
#include "sfx.h"
-#endif
+#endif /* KAZLIB_SIDEEFFECT_DEBUG */
/*
* Blurb for inclusion into C++ translation units
@@ -57,7 +57,7 @@
#ifdef __cplusplus
extern "C" {
-#endif
+#endif /* __cplusplus */
typedef unsigned long hashcount_t;
#define HASHCOUNT_T_MAX ULONG_MAX
@@ -69,7 +69,7 @@
#ifndef HASH_VAL_T_BIT
#define HASH_VAL_T_BIT ((int) hash_val_t_bit)
-#endif
+#endif /* HASH_VAL_T_BIT */
/*
* Hash chain node structure.
@@ -101,9 +101,9 @@
const void *hash_key; /* 3 */
void *hash_data; /* 4 */
hash_val_t hash_hkey; /* 5 */
-#else
+#else /* defined(HASH_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG) */
int hash_dummy;
-#endif
+#endif /* defined(HASH_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG) */
} hnode_t;
/*
@@ -186,9 +186,9 @@
void *hash_context;
hash_val_t hash_mask; /* 9 */
int hash_dynamic; /* 10 */
-#else
+#else /* defined(HASH_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG) */
int hash_dummy;
-#endif
+#endif /* defined(HASH_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG) */
} hash_t;
/*
@@ -206,9 +206,9 @@
hash_t *hash_table; /* 1 */
hash_val_t hash_chain; /* 2 */
hnode_t *hash_next; /* 3 */
-#else
+#else /* defined(HASH_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG) */
int hash_dummy;
-#endif
+#endif /* defined(HASH_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG) */
} hscan_t;
EXPORTFUNC extern hash_t *hash_create (hashcount_t, hash_comp_t, hash_fun_t);
@@ -247,16 +247,16 @@
#if defined(HASH_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG)
#ifdef KAZLIB_SIDEEFFECT_DEBUG
#define hash_isfull(H) (SFX_CHECK(H)->hash_nodecount == (H)->hash_maxcount)
-#else
+#else /* KAZLIB_SIDEEFFECT_DEBUG */
#define hash_isfull(H) ((H)->hash_nodecount == (H)->hash_maxcount)
-#endif
+#endif /* KAZLIB_SIDEEFFECT_DEBUG */
#define hash_isempty(H) ((H)->hash_nodecount == 0)
#define hash_count(H) ((H)->hash_nodecount)
#define hash_size(H) ((H)->hash_nchains)
#define hnode_get(N) ((N)->hash_data)
#define hnode_getkey(N) ((N)->hash_key)
#define hnode_put(N, V) ((N)->hash_data = (V))
-#endif
+#endif /* defined(HASH_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG) */
EXPORTFUNC void hnode_create_insert (hash_t *, void *, const void *);
EXPORTFUNC hnode_t *hnode_find (hash_t * hash, const void *key);
@@ -264,5 +264,5 @@
#ifdef __cplusplus
}
-#endif
-#endif
+#endif /* __cplusplus */
+#endif /* _HASH_H_ */
Modified: trunk/include/helpstrings.h
==============================================================================
--- trunk/include/helpstrings.h (original)
+++ trunk/include/helpstrings.h Sat Jul 9 06:57:59 2005
@@ -30,7 +30,7 @@
extern const char *ns_help_exclude[];
#ifdef USE_RAW
extern const char *ns_help_raw[];
-#endif
+#endif /* USE_RAW */
extern const char *ns_help_userlist[];
extern const char *ns_help_channellist[];
extern const char *ns_help_serverlist[];
Modified: trunk/include/list.h
==============================================================================
--- trunk/include/list.h (original)
+++ trunk/include/list.h Sat Jul 9 06:57:59 2005
@@ -41,8 +41,8 @@
* $Name: $
*/
-#ifndef LIST_H
-#define LIST_H
+#ifndef _LIST_H_
+#define _LIST_H_
#ifdef HAVE_LIMITS_H
#include <limits.h>
@@ -50,9 +50,9 @@
#ifdef KAZLIB_SIDEEFFECT_DEBUG
#include "sfx.h"
#define LIST_SFX_CHECK(E) SFX_CHECK(E)
-#else
+#else /* KAZLIB_SIDEEFFECT_DEBUG */
#define LIST_SFX_CHECK(E) (E)
-#endif
+#endif /* KAZLIB_SIDEEFFECT_DEBUG */
/*
* Blurb for inclusion into C++ translation units
@@ -60,7 +60,7 @@
#ifdef __cplusplus
extern "C" {
-#endif
+#endif /* __cplusplus */
typedef unsigned long listcount_t;
#define LISTCOUNT_T_MAX ULONG_MAX
@@ -70,9 +70,9 @@
struct lnode_t *list_next;
struct lnode_t *list_prev;
void *list_data;
-#else
+#else /* defined(LIST_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG) */
int list_dummy;
-#endif
+#endif /* defined(LIST_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG) */
} lnode_t;
typedef struct lnodepool_t {
@@ -80,9 +80,9 @@
struct lnode_t *list_pool;
struct lnode_t *list_free;
listcount_t list_size;
-#else
+#else /* defined(LIST_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG) */
int list_dummy;
-#endif
+#endif /* defined(LIST_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG) */
} lnodepool_t;
typedef struct list_t {
@@ -90,9 +90,9 @@
lnode_t list_nilnode;
listcount_t list_nodecount;
listcount_t list_maxcount;
-#else
+#else /* defined(LIST_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG) */
int list_dummy;
-#endif
+#endif /* defined(LIST_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG) */
} list_t;
EXPORTFUNC lnode_t *lnode_create (void *);
@@ -105,7 +105,7 @@
#if defined(LIST_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG)
#define lnode_put(N, D) ((N)->list_data = (D))
#define lnode_get(N) ((N)->list_data)
-#endif
+#endif /* defined(LIST_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG) */
lnodepool_t *lnode_pool_init (lnodepool_t *, lnode_t *, listcount_t);
lnodepool_t *lnode_pool_create (listcount_t);
@@ -156,14 +156,14 @@
#define list_prev(L, N) (LIST_SFX_CHECK(N)->list_prev == &(L)->list_nilnode ? NULL : (N)->list_prev)
#define list_first(L) list_next(LIST_SFX_CHECK(L), &(L)->list_nilnode)
#define list_last(L) list_prev(LIST_SFX_CHECK(L), &(L)->list_nilnode)
-#endif
+#endif /* defined(LIST_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG) */
#if defined(LIST_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG)
#define list_append(L, N) list_ins_before(LIST_SFX_CHECK(L), N, &(L)->list_nilnode)
#define list_prepend(L, N) list_ins_after(LIST_SFX_CHECK(L), N, &(L)->list_nilnode)
#define list_del_first(L) list_delete(LIST_SFX_CHECK(L), list_first(L))
#define list_del_last(L) list_delete(LIST_SFX_CHECK(L), list_last(L))
-#endif
+#endif /* defined(LIST_IMPLEMENTATION) || !defined(KAZLIB_OPAQUE_DEBUG) */
/* destination list on the left, source on the right */
@@ -181,5 +181,5 @@
#ifdef __cplusplus
}
-#endif
-#endif
+#endif /* __cplusplus */
+#endif /* _LIST_H_ */
Modified: trunk/include/log.h
==============================================================================
--- trunk/include/log.h (original)
+++ trunk/include/log.h Sat Jul 9 06:57:59 2005
@@ -23,8 +23,8 @@
** $Id$
*/
-#ifndef _log_h_
-#define _log_h_
+#ifndef _LOG_H_
+#define _LOG_H_
/*
* log.h
@@ -42,4 +42,4 @@
/* Configurable log filename format string */
extern char LogFileNameFormat[MAX_LOGFILENAME];
-#endif
+#endif /* _LOG_H_ */
Modified: trunk/include/main.h
==============================================================================
--- trunk/include/main.h (original)
+++ trunk/include/main.h Sat Jul 9 06:57:59 2005
@@ -20,8 +20,8 @@
** NeoStats CVS Identification
** $Id$
*/
-#ifndef MAIN_H
-#define MAIN_H
+#ifndef _MAIN_H_
+#define _MAIN_H_
/* Program exit codes usually defined in stdlib.h but
if not found will be defined here */
@@ -43,4 +43,4 @@
void do_exit( NS_EXIT_TYPE exitcode, char *quitmsg ) __attribute__( ( noreturn ) );
-#endif
+#endif /* _MAIN_H_ */
Modified: trunk/include/modes.h
==============================================================================
--- trunk/include/modes.h (original)
+++ trunk/include/modes.h Sat Jul 9 06:57:59 2005
@@ -20,8 +20,9 @@
** NeoStats CVS Identification
** $Id$
*/
-#ifndef MODES_H
-#define MODES_H
+
+#ifndef _MODES_H_
+#define _MODES_H_
int InitModeTables( const mode_init *chan_umodes, const mode_init *chan_modes, const mode_init *user_umodes, const mode_init *user_smodes );
int ChanMode( char *origin, char **av, int ac );
@@ -29,4 +30,4 @@
void ChanUserMode( const char *chan, const char *nick, int add, const unsigned int mode );
void ListChannelModes( CmdParams* cmdparams, Channel* c );
-#endif
+#endif /* _MODES_H_ */
Modified: trunk/include/neostats.h
==============================================================================
--- trunk/include/neostats.h (original)
+++ trunk/include/neostats.h Sat Jul 9 06:57:59 2005
@@ -862,7 +862,7 @@
unsigned int flags;
#ifdef USE_PERL
struct PerlEvent *pe;
-#endif
+#endif /* USE_PERL */
}ModuleEvent;
typedef int ModuleProtocol;
@@ -951,13 +951,13 @@
#define PMI PerlInterpreter
-#endif
+#endif /* USE_PERL */
#ifndef USE_PERL
#define IS_STD_MOD(mod) (1)
#define IS_PERL_MOD(mod) (0)
-#endif
+#endif /* USE_PERL */
/** @brief Module structure
*
@@ -975,7 +975,7 @@
#ifdef USE_PERL
MOD_TYPE modtype;
struct PerlModInfo *pm;
-#endif
+#endif /* USE_PERL */
}_Module;
@@ -1001,9 +1001,6 @@
/** @brief Socket function types
*
*/
-#if 0
-typedef int (*sock_func) ( int sock_no, char *name );
-#endif
/* socket interface type */
typedef enum SOCK_TYPE {
@@ -1019,9 +1016,6 @@
SOCK_NATIVE,
}SOCK_TYPE;
-#if 0
-typedef void (*linemodecb)(char *);
-#endif
typedef int (*sockcb)(int, void *data);
typedef int (*sockfunccb)(void *, void *, size_t);
@@ -1568,14 +1562,14 @@
#define OS_SOCK_EWOULDBLOCK WSAEWOULDBLOCK
#define OS_SOCK_EINPROGRESS WSAEINPROGRESS
#define OS_SOCK_EINTR WSAEINTR
-#else
+#else /* WIN32 */
#define OS_SOCK_EMSGSIZE EMSGSIZE
#define OS_SOCK_EAGAIN EAGAIN
#define OS_SOCK_ENOBUFS ENOBUFS
#define OS_SOCK_EWOULDBLOCK EWOULDBLOCK
#define OS_SOCK_EINPROGRESS EINPROGRESS
#define OS_SOCK_EINTR EINTR
-#endif
+#endif /* WIN32 */
/*
* Module Interface
Modified: trunk/include/perlmod.h
==============================================================================
--- trunk/include/perlmod.h (original)
+++ trunk/include/perlmod.h Sat Jul 9 06:57:59 2005
@@ -23,7 +23,6 @@
#ifndef _PERLMOD_H_
#define _PERLMOD_H_
-#ifdef USE_PERL
#ifdef PERLDEFINES
#include <EXTERN.h>
@@ -31,7 +30,6 @@
#include <perl.h>
#include <XSUB.h>
-
typedef struct PerlEvent {
SV *callback;
SV *userdata;
@@ -42,15 +40,15 @@
char filename[MAXPATH];
PerlInterpreter *my_perl;
} PerlModInfo;
-#endif
-#define MOD_PERLEXT ".pl"
+#endif /* PERLDEFINES */
+#define MOD_PERLEXT ".pl"
-int Init_Perl();
-void PerlModFini(Module *);
-void unload_perlmod(Module *);
+int Init_Perl( void );
+void PerlModFini(Module *mod);
+void unload_perlmod(Module *mod);
void ns_cmd_modperlist(CmdParams *cmd);
-Module *load_perlmodule(const char *, Client *);
-#endif
+Module *load_perlmodule(const char *filename, Client *u);
+
#endif /* _PERLMOD_H_ */
Modified: trunk/include/sock.h
==============================================================================
--- trunk/include/sock.h (original)
+++ trunk/include/sock.h Sat Jul 9 06:57:59 2005
@@ -23,8 +23,8 @@
** $Id$
*/
-#ifndef SOCK_H
-#define SOCK_H
+#ifndef _SOCK_H_
+#define _SOCK_H_
#include "event.h"
@@ -39,4 +39,4 @@
extern char recbuf[BUFSIZE];
-#endif
+#endif /* _SOCK_H_ */
Modified: trunk/modules/connectserv/cs.c
==============================================================================
--- trunk/modules/connectserv/cs.c (original)
+++ trunk/modules/connectserv/cs.c Sat Jul 9 06:57:59 2005
@@ -62,7 +62,7 @@
static char msg_bot[] = "\2\00313%s\2 is \2%s\2 a \2Bot\2 (%c%c)\003";
static char msg_server[] = "\2SERVER\2 %s joined the network at %s";
static char msg_squit[] = "\2SERVER\2 %s left the network at %s for %s";
-#else
+#else /* ENABLE_COLOUR_SUPPORT */
static char msg_nickchange[] = "\2NICK\2 %s (%s@%s) changed their nick to %s";
static char msg_away[] = "\2AWAY\2 %s (%s@%s) is %s away %s";
static char msg_signon[] = "\2SIGNON\2 %s (%s@%s %s) signed on at %s";
@@ -75,7 +75,7 @@
static char msg_bot[] = "\2BOT\2 %s is %s a Bot (%c%c)";
static char msg_server[] = "\2SERVER\2 %s joined the network at %s";
static char msg_squit[] = "\2SERVER\2 %s left the network at %s for %s";
-#endif
+#endif /* ENABLE_COLOUR_SUPPORT */
/** Bot event function prototypes */
static int cs_event_signon( CmdParams *cmdparams );
Modified: trunk/modules/protocol/ultimate3.c
==============================================================================
--- trunk/modules/protocol/ultimate3.c (original)
+++ trunk/modules/protocol/ultimate3.c Sat Jul 9 06:57:59 2005
@@ -278,10 +278,8 @@
{'x', UMODE_HIDE},
{'p', UMODE_KIX},
{'F', UMODE_FCLIENT},
-#if 0
/* useless modes, ignore them as services use these modes for services ID */
- {'d', UMODE_DEBUG},
-#endif
+ /* {'d', UMODE_DEBUG}, */
{'e', UMODE_DCCWARN},
{'W', UMODE_WHOIS},
{0, 0},
Modified: trunk/modules/protocol/unreal31.c
==============================================================================
--- trunk/modules/protocol/unreal31.c (original)
+++ trunk/modules/protocol/unreal31.c Sat Jul 9 06:57:59 2005
@@ -570,13 +570,13 @@
static void m_nick( char *origin, char **argv, int argc, int srv )
{
if( !srv ) {
-#ifdef NICKV2
+#ifdef NICKV2
do_nick( argv[0], argv[1], argv[2], argv[3], argv[4], argv[5],
NULL, argv[6], argv[7], argv[8], argv[9], NULL, NULL );
-#else
+#else /* NICKV2 */
do_nick( argv[0], argv[1], argv[2], argv[3], argv[4], argv[5],
NULL, argv[6], NULL, NULL, argv[9], NULL, NULL );
-#endif
+#endif /* NICKV2 */
} else {
do_nickchange( origin, argv[0], NULL );
}
Modified: trunk/modules/statserv/htmlstats.c
==============================================================================
--- trunk/modules/statserv/htmlstats.c (original)
+++ trunk/modules/statserv/htmlstats.c Sat Jul 9 06:57:59 2005
@@ -33,7 +33,7 @@
#include "tld.h"
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
-#endif
+#endif /* HAVE_FCNTL_H */
typedef void( *htmlhandler )( void );
@@ -485,7 +485,7 @@
#ifndef WIN32
/* update the umode so others can read it */
chmod(StatServ.htmlpath, S_IRUSR|S_IRGRP|S_IROTH);
-#endif
+#endif /* WIN32 */
return NS_SUCCESS;
Modified: trunk/modules/statserv/statserv.h
==============================================================================
--- trunk/modules/statserv/statserv.h (original)
+++ trunk/modules/statserv/statserv.h Sat Jul 9 06:57:59 2005
@@ -23,8 +23,8 @@
** $Id$
*/
-#ifndef STATSERV_H
-#define STATSERV_H
+#ifndef _STATSERV_H_
+#define _STATSERV_H_
/* this is the how often to save a portion of the DB. Don't alter this unless you need to */
/* DO NOT set PROGCHANTIME less than ((DBSAVETIME + (DBSAVETIME/2)) * 4) otherwise you will not have the enitre database progressively saved! */
@@ -81,4 +81,4 @@
void announce_record (const char *msg, ...);
void announce_lag(const char *msg, ...);
-#endif
+#endif /* _STATSERV_H_ */
Modified: trunk/src/conf.c
==============================================================================
--- trunk/src/conf.c (original)
+++ trunk/src/conf.c Sat Jul 9 06:57:59 2005
@@ -31,7 +31,9 @@
#include "services.h"
#include "modules.h"
#include "dl.h"
+#ifdef USE_PERL
#include "perlmod.h"
+#endif /* USE_PERL */
#define CONFIG_NAME "neostats.conf"
Modified: trunk/src/main.c
==============================================================================
--- trunk/src/main.c (original)
+++ trunk/src/main.c Sat Jul 9 06:57:59 2005
@@ -50,7 +50,7 @@
#include "dcc.h"
#ifdef USE_PERL
#include "perlmod.h"
-#endif
+#endif /* USE_PERL */
static void do_reconnect( void );
static int in_do_exit = 0;
Modified: trunk/src/modules.c
==============================================================================
--- trunk/src/modules.c (original)
+++ trunk/src/modules.c Sat Jul 9 06:57:59 2005
@@ -40,7 +40,7 @@
#undef _
#define PERLDEFINES
#include "perlmod.h"
-#endif
+#endif /* USE_PERL */
/** @brief Module list
*