legacy irc sprintf gone

This commit is contained in:
Valery Yatsko 2008-04-20 09:12:09 +04:00
parent 08d75d9702
commit cbe4e1ba31
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"