From b50ff26c0204469035d661f85a82578c66fbeb4e Mon Sep 17 00:00:00 2001 From: Martin Nilsson <mani@lysator.liu.se> Date: Sun, 4 Dec 2005 19:58:06 +0100 Subject: [PATCH] get_args isn't used by anyone Rev: src/module_support.c:1.66 Rev: src/module_support.h:1.18 --- src/module_support.c | 4 +++- src/module_support.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/module_support.c b/src/module_support.c index 0189f40e5f..bb92c86699 100644 --- a/src/module_support.c +++ b/src/module_support.c @@ -2,7 +2,7 @@ || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. -|| $Id: module_support.c,v 1.65 2005/11/14 20:00:25 nilsson Exp $ +|| $Id: module_support.c,v 1.66 2005/12/04 18:57:55 nilsson Exp $ */ #include "global.h" @@ -435,6 +435,7 @@ int va_get_args(struct svalue *s, return va_get_args_2 (s, num_args, fmt, ap, &info); } +#ifdef NOT_USED /* get_args does NOT generate errors, it simply returns how * many arguments were actually matched. * usage: get_args(sp-args, args, "%i",&an_int) @@ -450,6 +451,7 @@ PMOD_EXPORT int get_args(struct svalue *s, va_end(ptr); return ret; } +#endif PMOD_EXPORT void get_all_args(const char *fname, INT32 args, const char *format, ... ) diff --git a/src/module_support.h b/src/module_support.h index 2409856f16..fa27afd57b 100644 --- a/src/module_support.h +++ b/src/module_support.h @@ -2,7 +2,7 @@ || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. -|| $Id: module_support.h,v 1.17 2005/11/14 20:43:47 nilsson Exp $ +|| $Id: module_support.h,v 1.18 2005/12/04 18:58:06 nilsson Exp $ */ #ifndef MODULE_SUPPORT_H @@ -40,9 +40,11 @@ int va_get_args(struct svalue *s, INT32 num_args, const char *fmt, va_list ap); +#ifdef NOT_USED PMOD_EXPORT int get_args(struct svalue *s, INT32 num_args, const char *fmt, ...); +#endif PMOD_EXPORT void get_all_args(const char *fname, INT32 args, const char *format, ... ); PMOD_EXPORT void pike_module_export_symbol(const char *str, -- GitLab