Remove imp.h and exp.h header files

These include files don't have a function any more, remove them.
This commit is contained in:
Alexander Barton 2014-03-17 00:17:02 +01:00
parent 51396f8f1c
commit 259c314d14
44 changed files with 2 additions and 149 deletions

View File

@ -18,7 +18,6 @@
* Channel management * Channel management
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -29,10 +28,8 @@
#include "defines.h" #include "defines.h"
#include "conn-func.h" #include "conn-func.h"
#include "exp.h"
#include "channel.h" #include "channel.h"
#include "imp.h"
#include "irc-write.h" #include "irc-write.h"
#include "conf.h" #include "conf.h"
#include "hash.h" #include "hash.h"
@ -41,9 +38,6 @@
#include "messages.h" #include "messages.h"
#include "match.h" #include "match.h"
#include "exp.h"
#define REMOVE_PART 0 #define REMOVE_PART 0
#define REMOVE_QUIT 1 #define REMOVE_QUIT 1
#define REMOVE_KICK 2 #define REMOVE_KICK 2

View File

@ -16,7 +16,6 @@
* User class management. * User class management.
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
@ -28,7 +27,6 @@
#include "match.h" #include "match.h"
#include "stdio.h" #include "stdio.h"
#include "exp.h"
#include "class.h" #include "class.h"
struct list_head My_Classes[CLASS_COUNT]; struct list_head My_Classes[CLASS_COUNT];

View File

@ -18,7 +18,6 @@
* Functions to deal with IRC Capabilities * Functions to deal with IRC Capabilities
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include "defines.h" #include "defines.h"
@ -26,7 +25,6 @@
#include "client.h" #include "client.h"
#include "log.h" #include "log.h"
#include "exp.h"
#include "client-cap.h" #include "client-cap.h"
GLOBAL int GLOBAL int

View File

@ -18,7 +18,6 @@
* Client management. * Client management.
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <unistd.h> #include <unistd.h>
#include <stdio.h> #include <stdio.h>
@ -29,11 +28,8 @@
#include "defines.h" #include "defines.h"
#include "conn.h" #include "conn.h"
#include "exp.h"
#include "client.h" #include "client.h"
#include <imp.h>
#include "ngircd.h" #include "ngircd.h"
#include "channel.h" #include "channel.h"
#include "conf.h" #include "conf.h"
@ -44,8 +40,6 @@
#include "match.h" #include "match.h"
#include "messages.h" #include "messages.h"
#include <exp.h>
#define GETID_LEN (CLIENT_NICK_LEN-1) + 1 + (CLIENT_USER_LEN-1) + 1 + (CLIENT_HOST_LEN-1) + 1 #define GETID_LEN (CLIENT_NICK_LEN-1) + 1 + (CLIENT_USER_LEN-1) + 1 + (CLIENT_HOST_LEN-1) + 1
static CLIENT *This_Server, *My_Clients; static CLIENT *This_Server, *My_Clients;

View File

@ -16,7 +16,6 @@
* Configuration management (reading, parsing & validation) * Configuration management (reading, parsing & validation)
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
@ -45,7 +44,6 @@
#include "match.h" #include "match.h"
#include "tool.h" #include "tool.h"
#include "exp.h"
#include "conf.h" #include "conf.h"

View File

@ -20,7 +20,6 @@
* Functions to deal with character encodings and conversions * Functions to deal with character encodings and conversions
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
@ -29,7 +28,6 @@
#include "conn.h" #include "conn.h"
#include "log.h" #include "log.h"
#include "exp.h"
#include "conn-encoding.h" #include "conn-encoding.h"
#ifdef ICONV #ifdef ICONV

View File

@ -18,7 +18,6 @@
* Connection management: Global functions * Connection management: Global functions
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include "log.h" #include "log.h"
@ -26,7 +25,6 @@
#include "conn.h" #include "conn.h"
#include "client.h" #include "client.h"
#include "exp.h"
#include "conn-func.h" #include "conn-func.h"
/** /**

View File

@ -10,7 +10,6 @@
* SSL wrapper functions * SSL wrapper functions
*/ */
#include "imp.h"
#include "conf-ssl.h" #include "conf-ssl.h"
#ifdef SSL_SUPPORT #ifdef SSL_SUPPORT
@ -29,7 +28,6 @@
#include "conn-ssl.h" #include "conn-ssl.h"
#include "log.h" #include "log.h"
#include "exp.h"
#include "defines.h" #include "defines.h"
extern struct SSLOptions Conf_SSLOptions; extern struct SSLOptions Conf_SSLOptions;

View File

@ -23,7 +23,6 @@
/* enable more zlib related debug messages: */ /* enable more zlib related debug messages: */
/* #define DEBUG_ZLIB */ /* #define DEBUG_ZLIB */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include <zlib.h> #include <zlib.h>
@ -31,9 +30,8 @@
#include "conn.h" #include "conn.h"
#include "conn-func.h" #include "conn-func.h"
#include "log.h" #include "log.h"
#include "array.h" #include "array.h"
#include "exp.h"
#include "conn-zip.h" #include "conn-zip.h"

View File

@ -22,7 +22,6 @@
* Connection management * Connection management
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#ifdef PROTOTYPES #ifdef PROTOTYPES
# include <stdarg.h> # include <stdarg.h>
@ -54,10 +53,8 @@
#include "array.h" #include "array.h"
#include "defines.h" #include "defines.h"
#include "exp.h"
#include "conn.h" #include "conn.h"
#include "imp.h"
#include "ngircd.h" #include "ngircd.h"
#include "array.h" #include "array.h"
#include "client.h" #include "client.h"
@ -73,9 +70,6 @@
#include "resolve.h" #include "resolve.h"
#include "tool.h" #include "tool.h"
#include "exp.h"
#define SERVER_WAIT (NONE - 1) #define SERVER_WAIT (NONE - 1)
#define MAX_COMMANDS 3 #define MAX_COMMANDS 3

View File

@ -16,14 +16,12 @@
* Hash calculation * Hash calculation
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include "defines.h" #include "defines.h"
#include "tool.h" #include "tool.h"
#include "exp.h"
#include "hash.h" #include "hash.h"
static UINT32 jenkins_hash PARAMS((UINT8 *k, UINT32 length, UINT32 initval)); static UINT32 jenkins_hash PARAMS((UINT8 *k, UINT32 length, UINT32 initval));

View File

@ -16,7 +16,6 @@
* Handler for IRC capability ("CAP") commands * Handler for IRC capability ("CAP") commands
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
@ -31,7 +30,6 @@
#include "messages.h" #include "messages.h"
#include "parse.h" #include "parse.h"
#include "exp.h"
#include "irc-cap.h" #include "irc-cap.h"
/* Local functions */ /* Local functions */

View File

@ -16,7 +16,6 @@
* IRC channel commands * IRC channel commands
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
@ -37,7 +36,6 @@
#include "irc-write.h" #include "irc-write.h"
#include "conf.h" #include "conf.h"
#include "exp.h"
#include "irc-channel.h" #include "irc-channel.h"
/** /**

View File

@ -16,7 +16,6 @@
* IRC encoding commands * IRC encoding commands
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
@ -28,7 +27,6 @@
#include "parse.h" #include "parse.h"
#include "tool.h" #include "tool.h"
#include "exp.h"
#include "irc-encoding.h" #include "irc-encoding.h"
#ifdef ICONV #ifdef ICONV

View File

@ -16,7 +16,6 @@
* IRC info commands * IRC info commands
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
@ -43,7 +42,6 @@
#include "client-cap.h" #include "client-cap.h"
#include "op.h" #include "op.h"
#include "exp.h"
#include "irc-info.h" #include "irc-info.h"
/* Local functions */ /* Local functions */

View File

@ -16,7 +16,6 @@
* Login and logout * Login and logout
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <ctype.h> #include <ctype.h>
#include <stdlib.h> #include <stdlib.h>
@ -36,7 +35,6 @@
#include "irc-macros.h" #include "irc-macros.h"
#include "irc-write.h" #include "irc-write.h"
#include "exp.h"
#include "irc-login.h" #include "irc-login.h"
static void Change_Nick PARAMS((CLIENT * Origin, CLIENT * Target, char *NewNick, static void Change_Nick PARAMS((CLIENT * Origin, CLIENT * Target, char *NewNick,

View File

@ -18,7 +18,6 @@
* IRC metadata commands * IRC metadata commands
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
@ -32,7 +31,6 @@
#include "parse.h" #include "parse.h"
#include "tool.h" #include "tool.h"
#include "exp.h"
#include "irc-metadata.h" #include "irc-metadata.h"
/** /**

View File

@ -16,7 +16,6 @@
* IRC commands for mode changes (like MODE, AWAY, etc.) * IRC commands for mode changes (like MODE, AWAY, etc.)
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -33,7 +32,6 @@
#include "messages.h" #include "messages.h"
#include "conf.h" #include "conf.h"
#include "exp.h"
#include "irc-mode.h" #include "irc-mode.h"
static bool Client_Mode PARAMS((CLIENT *Client, REQUEST *Req, CLIENT *Origin, static bool Client_Mode PARAMS((CLIENT *Client, REQUEST *Req, CLIENT *Origin,

View File

@ -16,7 +16,6 @@
* Channel operator commands * Channel operator commands
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
@ -31,7 +30,6 @@
#include "messages.h" #include "messages.h"
#include "parse.h" #include "parse.h"
#include "exp.h"
#include "irc-op.h" #include "irc-op.h"
/* Local functions */ /* Local functions */

View File

@ -16,7 +16,6 @@
* IRC operator commands * IRC operator commands
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -38,7 +37,6 @@
#include "messages.h" #include "messages.h"
#include "op.h" #include "op.h"
#include <exp.h>
#include "irc-oper.h" #include "irc-oper.h"
/** /**

View File

@ -16,7 +16,6 @@
* IRC commands for server links * IRC commands for server links
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -40,7 +39,6 @@
#include "irc-write.h" #include "irc-write.h"
#include "op.h" #include "op.h"
#include "exp.h"
#include "irc-server.h" #include "irc-server.h"
/** /**

View File

@ -16,7 +16,6 @@
* Sending IRC commands over the network * Sending IRC commands over the network
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#ifdef PROTOTYPES #ifdef PROTOTYPES
# include <stdarg.h> # include <stdarg.h>
@ -30,7 +29,6 @@
#include "conn-func.h" #include "conn-func.h"
#include "channel.h" #include "channel.h"
#include "exp.h"
#include "irc-write.h" #include "irc-write.h"
#define SEND_TO_USER 1 #define SEND_TO_USER 1

View File

@ -16,7 +16,6 @@
* IRC commands * IRC commands
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
@ -36,7 +35,6 @@
#include "op.h" #include "op.h"
#include "tool.h" #include "tool.h"
#include "exp.h"
#include "irc.h" #include "irc.h"
static char *Option_String PARAMS((CONN_ID Idx)); static char *Option_String PARAMS((CONN_ID Idx));

View File

@ -16,7 +16,6 @@
* Management of IRC lists: ban, invite, etc. * Management of IRC lists: ban, invite, etc.
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include "defines.h" #include "defines.h"
@ -31,7 +30,6 @@
#include <string.h> #include <string.h>
#include <strings.h> #include <strings.h>
#include "exp.h"
#include "lists.h" #include "lists.h"
struct list_elem { struct list_elem {

View File

@ -16,7 +16,6 @@
* Logging functions * Logging functions
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#ifdef PROTOTYPES #ifdef PROTOTYPES
@ -40,7 +39,6 @@
#include "irc-write.h" #include "irc-write.h"
#include "conf.h" #include "conf.h"
#include "exp.h"
#include "log.h" #include "log.h"
static bool Is_Daemon; static bool Is_Daemon;

View File

@ -16,7 +16,6 @@
* Functions to deal with client logins * Functions to deal with client logins
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
@ -41,7 +40,6 @@
#include "irc-mode.h" #include "irc-mode.h"
#include "irc-write.h" #include "irc-write.h"
#include "exp.h"
#include "login.h" #include "login.h"
#ifdef PAM #ifdef PAM

View File

@ -16,11 +16,9 @@
* Wildcard pattern matching * Wildcard pattern matching
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include "exp.h"
#include "match.h" #include "match.h"
#include "defines.h" #include "defines.h"
#include "tool.h" #include "tool.h"

View File

@ -17,7 +17,6 @@
* by the loader of the operating system. * by the loader of the operating system.
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
@ -49,7 +48,6 @@
#include "io.h" #include "io.h"
#include "irc.h" #include "irc.h"
#include "exp.h"
#include "ngircd.h" #include "ngircd.h"
static void Show_Version PARAMS(( void )); static void Show_Version PARAMS(( void ));

View File

@ -16,7 +16,6 @@
* Handlers for IRC numerics sent to the server * Handlers for IRC numerics sent to the server
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -35,10 +34,8 @@
#include "messages.h" #include "messages.h"
#include "parse.h" #include "parse.h"
#include "exp.h"
#include "numeric.h" #include "numeric.h"
/** /**
* Announce a channel and its users in the network. * Announce a channel and its users in the network.
*/ */

View File

@ -16,7 +16,6 @@
* IRC operator functions * IRC operator functions
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
@ -28,10 +27,8 @@
#include "messages.h" #include "messages.h"
#include "irc-write.h" #include "irc-write.h"
#include <exp.h>
#include "op.h" #include "op.h"
/** /**
* Return and log a "no privileges" message. * Return and log a "no privileges" message.
*/ */

View File

@ -18,7 +18,6 @@
* PAM User Authentication * PAM User Authentication
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include "defines.h" #include "defines.h"
@ -37,7 +36,6 @@
#include <pam/pam_appl.h> #include <pam/pam_appl.h>
#endif #endif
#include "exp.h"
#include "pam.h" #include "pam.h"
static char *password; static char *password;

View File

@ -16,7 +16,6 @@
* IRC command parser and validator. * IRC command parser and validator.
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
@ -31,10 +30,8 @@
#include "messages.h" #include "messages.h"
#include "tool.h" #include "tool.h"
#include "exp.h"
#include "parse.h" #include "parse.h"
#include "imp.h"
#include "irc.h" #include "irc.h"
#include "irc-cap.h" #include "irc-cap.h"
#include "irc-channel.h" #include "irc-channel.h"
@ -49,7 +46,6 @@
#include "irc-write.h" #include "irc-write.h"
#include "numeric.h" #include "numeric.h"
#include "exp.h"
#include "conf.h" #include "conf.h"
struct _NUMERIC { struct _NUMERIC {

View File

@ -16,7 +16,6 @@
* Process management * Process management
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <signal.h> #include <signal.h>
@ -27,8 +26,6 @@
#include "log.h" #include "log.h"
#include "io.h" #include "io.h"
#include "conn.h" #include "conn.h"
#include "exp.h"
#include "sighandlers.h" #include "sighandlers.h"
#include "proc.h" #include "proc.h"

View File

@ -18,7 +18,6 @@
* Asynchronous resolver * Asynchronous resolver
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
@ -42,11 +41,9 @@
#include "log.h" #include "log.h"
#include "ng_ipaddr.h" #include "ng_ipaddr.h"
#include "exp.h"
#include "resolve.h" #include "resolve.h"
#include "io.h" #include "io.h"
static void Do_ResolveAddr PARAMS(( const ng_ipaddr_t *Addr, int Sock, int w_fd )); static void Do_ResolveAddr PARAMS(( const ng_ipaddr_t *Addr, int Sock, int w_fd ));
static void Do_ResolveName PARAMS(( const char *Host, int w_fd )); static void Do_ResolveName PARAMS(( const char *Host, int w_fd ));

View File

@ -25,7 +25,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#include "imp.h"
#include "conn.h" #include "conn.h"
#include "conf-ssl.h" #include "conf-ssl.h"
#include "channel.h" #include "channel.h"

View File

@ -25,7 +25,7 @@ portabtest_LDFLAGS = -L.
portabtest_LDADD = -lngportab portabtest_LDADD = -lngportab
noinst_HEADERS = imp.h exp.h portab.h splint.h noinst_HEADERS = portab.h splint.h
maintainer-clean-local: maintainer-clean-local:
rm -f Makefile Makefile.in Makefile.am rm -f Makefile Makefile.in Makefile.am

View File

@ -1,21 +0,0 @@
/*
* 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.
*/
/**
* @file
* "Export Header" which makes sure, that global functions are not "extern".
*/
#undef GLOBAL
#define GLOBAL
/* -eof- */

View File

@ -1,21 +0,0 @@
/*
* 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.
*/
/**
* @file
* "Import Header" which makes sure that global functions are defined "extern".
*/
#undef GLOBAL
#define GLOBAL extern
/* -eof- */

View File

@ -16,14 +16,11 @@
* Test program for portab.h and friends ;-) * Test program for portab.h and friends ;-)
*/ */
#include "imp.h"
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "exp.h"
int allow_severity = 0, deny_severity = 0; int allow_severity = 0, deny_severity = 0;
static void static void

View File

@ -11,13 +11,10 @@
#ifndef HAVE_STRDUP #ifndef HAVE_STRDUP
#include "imp.h"
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>
#include "exp.h"
GLOBAL char * GLOBAL char *
strdup(const char *s) strdup(const char *s)
{ {

View File

@ -22,13 +22,9 @@
* <http://cvs.samba.org/cgi-bin/cvsweb/rsync/lib/compat.c> * <http://cvs.samba.org/cgi-bin/cvsweb/rsync/lib/compat.c>
*/ */
#include "imp.h"
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include "exp.h"
#ifndef HAVE_STRLCAT #ifndef HAVE_STRLCAT
GLOBAL size_t GLOBAL size_t

View File

@ -11,13 +11,10 @@
#ifndef HAVE_STRNDUP #ifndef HAVE_STRNDUP
#include "imp.h"
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>
#include "exp.h"
GLOBAL char * GLOBAL char *
strndup(const char *s, size_t maxlen) strndup(const char *s, size_t maxlen)
{ {

View File

@ -12,13 +12,10 @@
#ifndef HAVE_WAITPID #ifndef HAVE_WAITPID
#include "imp.h"
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>
#include "exp.h"
GLOBAL int GLOBAL int
waitpid(pid, stat_loc, options) waitpid(pid, stat_loc, options)
int pid, *stat_loc, options; int pid, *stat_loc, options;

View File

@ -16,7 +16,6 @@
* Tool functions * Tool functions
*/ */
#include "imp.h"
#include <assert.h> #include <assert.h>
#include <ctype.h> #include <ctype.h>
#include <stdio.h> #include <stdio.h>
@ -31,7 +30,6 @@
#include <syslog.h> #include <syslog.h>
#endif #endif
#include "exp.h"
#include "tool.h" #include "tool.h"