diff --git a/src/module_support.c b/src/module_support.c index 0189f40e5ff3933714c93f5f2c03891ac47512b6..bb92c8669966733815eb14ca8ccb1e14fe36ec20 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 2409856f16b78d3269c78a7466858576492ce05d..fa27afd57bdb42a5773ed8753ebb86367508370b 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,