legacy irc sprintf gone

This commit is contained in:
Valery Yatsko 2008-04-20 09:12:09 +04:00
parent 08a5f1f948
commit d99380b61b
52 changed files with 0 additions and 121 deletions

View File

@ -41,7 +41,6 @@
#include "parse.h"
#include "modules.h"
#include "s_newconf.h"
#include "sprintf_irc.h"
static int mo_olist(struct Client *, struct Client *, int parc, const char *parv[]);

View File

@ -39,7 +39,6 @@
#include "res.h"
#include "snomask.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
/* other structs */

View File

@ -11,7 +11,6 @@
#include "common.h"
#include "reslib.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
/* Maximum number of nameservers in /etc/resolv.conf we care about

View File

@ -1,51 +0,0 @@
/*
* ircd-ratbox: A slightly useful ircd.
* sprintf_irc.h: The irc sprintf header.
*
* Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
* Copyright (C) 1996-2002 Hybrid Development Team
* Copyright (C) 2002-2004 ircd-ratbox development team
*
* 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
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* $Id: sprintf_irc.h 6 2005-09-10 01:02:21Z nenolod $
*/
#ifndef SPRINTF_IRC
#define SPRINTF_IRC
#include <stdarg.h>
/*=============================================================================
* Proto types
*/
/*
* ircsprintf - optimized sprintf
*/
#ifdef __GNUC__
int ircsprintf(char *str, const char *fmt, ...) __attribute((format(printf, 2, 3)));
int ircsnprintf(char *str, const size_t size, const char *, ...) __attribute__ ((format(printf, 3, 4)));
#else
int ircsprintf(char *str, const char *format, ...);
int ircsnprintf(char *str, const size_t size, const char *, ...);
#endif
int ircvsnprintf(char *str, const size_t size, const char *fmt, va_list args);
int ircvsprintf(char *str, const char *fmt, va_list args);
#endif /* SPRINTF_IRC */

View File

@ -39,7 +39,6 @@
#include "msg.h"
#include "parse.h"
#include "modules.h"
#include "sprintf_irc.h"
#include "packet.h"
static int m_join(struct Client *, struct Client *, int, const char **);

View File

@ -29,7 +29,6 @@
#include "hash.h" /* for find_client() */
#include "ircd.h"
#include "numeric.h"
#include "sprintf_irc.h"
#include "logger.h"
#include "s_serv.h"
#include "s_conf.h"

View File

@ -40,7 +40,6 @@
#include "parse.h"
#include "modules.h"
#include "packet.h"
#include "sprintf_irc.h"
#include "s_newconf.h"
static int m_mode(struct Client *, struct Client *, int, const char **);

View File

@ -34,7 +34,6 @@
#include "parse.h"
#include "modules.h"
#include "s_conf.h"
#include "sprintf_irc.h"
static int m_quit(struct Client *, struct Client *, int, const char **);
static int ms_quit(struct Client *, struct Client *, int, const char **);

View File

@ -34,7 +34,6 @@
#include "send.h"
#include "msg.h"
#include "parse.h"
#include "sprintf_irc.h"
#include "modules.h"
static int m_accept(struct Client *, struct Client *, int, const char **);

View File

@ -25,7 +25,6 @@
#include "msg.h"
#include "parse.h"
#include "modules.h"
#include "sprintf_irc.h"
#include "whowas.h"
#include "monitor.h"

View File

@ -30,7 +30,6 @@
#include "client.h"
#include "common.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "hostmask.h"
#include "numeric.h"

View File

@ -42,7 +42,6 @@
#include "msg.h"
#include "parse.h"
#include "modules.h"
#include "sprintf_irc.h"
static int ms_encap(struct Client *client_p, struct Client *source_p,
int parc, const char *parv[]);

View File

@ -27,7 +27,6 @@
#include "stdinc.h"
#include "client.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "send.h"

View File

@ -30,7 +30,6 @@
#include "client.h"
#include "common.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "hostmask.h"
#include "numeric.h"

View File

@ -24,7 +24,6 @@
*/
#include "stdinc.h"
#include "sprintf_irc.h"
#include "channel.h"
#include "client.h"
#include "hash.h"

View File

@ -28,7 +28,6 @@
#include "numeric.h"
#include "send.h"
#include "s_conf.h"
#include "sprintf_irc.h"
#include "scache.h"
#define USER_COL 50 /* display | Users: %d at col 50 */

View File

@ -25,7 +25,6 @@
*/
#include "stdinc.h"
#include "sprintf_irc.h"
#include "channel.h"
#include "client.h"
#include "common.h"

View File

@ -42,7 +42,6 @@
#include "msg.h"
#include "parse.h"
#include "modules.h"
#include "sprintf_irc.h"
static int ms_operspy(struct Client *client_p, struct Client *source_p,
int parc, const char *parv[]);

View File

@ -28,7 +28,6 @@
#include "client.h"
#include "common.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "s_conf.h"

View File

@ -37,7 +37,6 @@
#include "s_newconf.h"
#include "hash.h"
#include "logger.h"
#include "sprintf_irc.h"
static int mo_resv(struct Client *, struct Client *, int, const char **);
static int ms_resv(struct Client *, struct Client *, int, const char **);

View File

@ -45,7 +45,6 @@
#include "msg.h"
#include "parse.h"
#include "modules.h"
#include "sprintf_irc.h"
#include "whowas.h"
#include "monitor.h"

View File

@ -29,7 +29,6 @@
#include "stdinc.h"
#include "client.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "s_serv.h"

View File

@ -44,7 +44,6 @@
#include "msg.h"
#include "parse.h"
#include "modules.h"
#include "sprintf_irc.h"
#include "whowas.h"
#include "monitor.h"
#include "s_stats.h"

View File

@ -39,7 +39,6 @@
#include "numeric.h"
#include "s_conf.h"
#include "s_newconf.h"
#include "sprintf_irc.h"
static int mo_testline(struct Client *, struct Client *, int, const char **);
static int mo_testgecos(struct Client *, struct Client *, int, const char **);

View File

@ -35,7 +35,6 @@
#include "parse.h"
#include "modules.h"
#include "packet.h"
#include "sprintf_irc.h"
static int m_time(struct Client *, struct Client *, int, const char **);
static char *date(void);

View File

@ -29,7 +29,6 @@
#include "client.h"
#include "hash.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "send.h"

View File

@ -35,7 +35,6 @@
#include "msg.h"
#include "parse.h"
#include "modules.h"
#include "sprintf_irc.h"
#include "blacklist.h"
static int mr_user(struct Client *, struct Client *, int, const char **);

View File

@ -31,7 +31,6 @@
#include "s_serv.h"
#include "send.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "msg.h"
#include "parse.h"
#include "modules.h"

View File

@ -33,7 +33,6 @@
#include "s_serv.h"
#include "send.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "s_conf.h"
#include "logger.h"
#include "msg.h"

View File

@ -36,7 +36,6 @@
#include "s_serv.h"
#include "send.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "s_conf.h"
#include "logger.h"
#include "msg.h"

View File

@ -43,7 +43,6 @@
#include "s_serv.h"
#include "whowas.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "hash.h"
#include "msg.h"
#include "parse.h"

View File

@ -39,7 +39,6 @@
#include "client.h"
#include "hash.h"
#include "cache.h"
#include "sprintf_irc.h"
#include "irc_dictionary.h"
#include "numeric.h"

View File

@ -31,7 +31,6 @@
#include "hash.h"
#include "hook.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "s_serv.h" /* captab */

View File

@ -32,7 +32,6 @@
#include "hash.h"
#include "hook.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "s_serv.h" /* captab */

View File

@ -32,7 +32,6 @@
#include "common.h"
#include "hash.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "packet.h"

View File

@ -23,7 +23,6 @@
*/
#include "stdinc.h"
#include "sprintf_irc.h"
#include "irc_string.h"
#include "client.h"
#include "setup.h"

View File

@ -25,7 +25,6 @@
*/
#include "stdinc.h"
#include "sprintf_irc.h"
#include "irc_string.h"
#include "client.h"
#include "setup.h"
@ -144,25 +143,6 @@ strtoken(char **save, char *str, const char *fs)
return tmp;
}
/*
* Copyright (c) 1996-1999 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
#define SPRINTF(x) ((size_t)rb_sprintf x)
char *
strip_colour(char *string)
{

View File

@ -36,7 +36,6 @@
#include "hash.h"
#include "irc_string.h"
#include "ircd_signal.h"
#include "sprintf_irc.h"
#include "msg.h" /* msgtab */
#include "hostmask.h"
#include "numeric.h"

View File

@ -29,7 +29,6 @@
#include "listener.h"
#include "client.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "ircd_defs.h"
#include "numeric.h"

View File

@ -38,7 +38,6 @@
#include "ircd_defs.h"
#include "logger.h"
#include "s_conf.h"
#include "sprintf_irc.h"
#include "send.h"
#include "client.h"
#include "s_serv.h"

View File

@ -38,7 +38,6 @@
#include "parse.h"
#include "ircd_defs.h"
#include "irc_string.h"
#include "sprintf_irc.h"

View File

@ -11,7 +11,6 @@
#include "newconf.h"
#include "ircd_defs.h"
#include "sprintf_irc.h"
#include "common.h"
#include "logger.h"
#include "s_conf.h"

View File

@ -32,7 +32,6 @@
#include "common.h"
#include "hash.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "logger.h"

View File

@ -32,7 +32,6 @@
#include "res.h"
#include "reslib.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "numeric.h"
#include "client.h" /* SNO_* */

View File

@ -87,7 +87,6 @@
#include "res.h"
#include "reslib.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#define NS_TYPE_ELT 0x40 /* EDNS0 extended label type */
#define DNS_LABELTYPE_BITSTRING 0x41

View File

@ -40,7 +40,6 @@
#include "client.h"
#include "common.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "packet.h"

View File

@ -36,7 +36,6 @@
#include "common.h"
#include "hash.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "listener.h"
#include "hostmask.h"

View File

@ -43,7 +43,6 @@
#include "hostmask.h"
#include "newconf.h"
#include "hash.h"
#include "sprintf_irc.h"
#include "irc_dictionary.h"
rb_dlink_list shared_conf_list;

View File

@ -36,7 +36,6 @@
#include "common.h"
#include "hash.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "ircd_defs.h"
#include "numeric.h"

View File

@ -32,7 +32,6 @@
#include "common.h"
#include "hash.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "listener.h"
#include "msg.h"

View File

@ -34,7 +34,6 @@
#include "ircd.h"
#include "numeric.h"
#include "s_serv.h"
#include "sprintf_irc.h"
#include "s_conf.h"
#include "s_newconf.h"
#include "logger.h"

View File

@ -35,7 +35,6 @@
#include "client.h"
#include "common.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "ircd.h"
#include "hostmask.h"
#include "numeric.h"