testsuite:
cd src/testsuite && ${MAKE} check
-lint:
- cd src/ngircd && ${MAKE} lint
-
srcdoc:
cd doc && ${MAKE} srcdoc
[ -f debian/rules ] || ln -s contrib/Debian debian
dpkg-buildpackage --build=binary
-.PHONY: deb lint rpm srcdoc testsuite
+.PHONY: deb rpm srcdoc testsuite
# -eof-
#
# ngIRCd -- The Next Generation IRC Daemon
-# Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors
+# Copyright (c)2001-2024 Alexander Barton (alex@barton.de) and Contributors
#
# 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
AM_CPPFLAGS = -I$(srcdir)/../portab -I$(srcdir)/../tool -I$(srcdir)/../ipaddr
-LINTARGS = -weak -warnunixlib +unixlib -booltype BOOLEAN \
- -varuse -retvalother -emptyret -unrecog
-
sbin_PROGRAMS = ngircd
ngircd_SOURCES = \
sighandlers.h
clean-local:
- rm -f check-version check-help lint.out
+ rm -f check-version check-help
maintainer-clean-local:
rm -f Makefile Makefile.in Makefile.am
echo "./ngircd --help | grep help >/dev/null 2>&1" >>check-help
chmod 755 check-help
-lint:
- @splint --version >/dev/null 2>&1 \
- || ( echo; echo "Error: \"splint\" not found!"; echo; exit 1 )
- @echo; warnings=0; files=0; \
- for f in *.c; do \
- echo "checking $$f ..."; \
- splint $$f $(LINTARGS) -I$(srcdir) -I$(srcdir)/.. \
- $(AM_CPPFLAGS) $(AM_CFLAGS) >lint.out 2>&1; \
- grep "no warnings" lint.out > /dev/null 2>&1; \
- if [ $$? -ne 0 ]; then \
- waswarning=1; \
- echo; grep -v "^Command Line: " lint.out; echo; \
- w=$$( grep "code warning" lint.out | $(AWK) "{ print \$$4 }" ); \
- [ "$$w" -gt 0 ] && warnings=`expr $$warnings + $$w`; \
- files=`expr $$files + 1`; \
- else \
- waswarning=0; \
- fi; \
- rm -f lint.out; \
- done; \
- [ $$waswarning -eq 0 ] && echo; \
- [ $$warnings -gt 0 ] \
- && echo "Result: $$warnings warning(s) in $$files file(s)!" \
- || echo "Result: no warnings found."; \
- echo; [ $$warnings -gt 0 ] && exit 1
-
TESTS = check-version check-help
# -eof-
/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors.
+ * Copyright (c)2001-2024 Alexander Barton (alex@barton.de) and Contributors.
*
* 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
* Channel management (header)
*/
-#if defined(__channel_c__) | defined(S_SPLINT_S)
+#if defined(__channel_c__)
#include "lists.h"
#include "defines.h"
/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors.
+ * Copyright (c)2001-2024 Alexander Barton (alex@barton.de) and Contributors.
*
* 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
#include "defines.h"
-#if defined(__client_c__) | defined(__client_cap_c__) | defined(S_SPLINT_S)
+#if defined(__client_c__) | defined(__client_cap_c__)
typedef struct _CLIENT
{
#
# ngIRCd -- The Next Generation IRC Daemon
-# Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors
+# Copyright (c)2001-2024 Alexander Barton (alex@barton.de) and Contributors
#
# 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
portabtest_LDADD = -lngportab
-noinst_HEADERS = portab.h splint.h
+noinst_HEADERS = portab.h
maintainer-clean-local:
rm -f Makefile Makefile.in Makefile.am
#define GLOBAL extern
#endif
-/* SPLint */
-
-#ifdef S_SPLINT_S
-# include "splint.h"
-#endif
-
/* target constants */
#ifndef HOST_OS
+++ /dev/null
-/*
- * ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
- *
- * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
- * der GNU General Public License (GPL), wie von der Free Software Foundation
- * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
- * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
- * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
- * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
- */
-
-#ifndef __splint__
-#define __splint__
-
-/**
- * @file
- * Header file which is included for SPLint code checks
- *
- * This header is only included by portab.h if a SPLint code check is
- * running (when S_SPLINT_S is defined). It makes some definitions to
- * prevent SPLint from issuing false warnings.
- */
-
-#define SYSCONFDIR "/"
-#define LOCALSTATEDIR "/"
-
-#define LOG_EMERG 0
-#define LOG_ALERT 1
-#define LOG_CRIT 2
-#define LOG_ERR 3
-#define LOG_WARNING 4
-#define LOG_NOTICE 5
-#define LOG_INFO 6
-#define LOG_DEBUG 7
-
-#define WNOHANG 0
-
-#endif
-
-/* -eof- */