Skip to content
Snippets Groups Projects
Select Git revision
  • 2e9600204fe5a820e229b9f60f3dee23a8b835ab
  • master default
  • pristine-tar
  • release-4.4
  • release-4.5
  • release-4.3
  • release-4.2
  • release-4.1
  • release-4.0
  • release-3.7
  • release-3.6
  • release-3.5
  • release-3.4
  • release-3.3
  • release-3.2
  • release-3.1
  • release-3.0
  • release-2.23
  • release-2.22
  • release-2.21
  • release-2.20
  • bugzilla-4.4.8
  • bugzilla-4.4.7
  • bugzilla-4.4.6
  • bugzilla-4.5.4
  • bugzilla-4.5.3
  • bugzilla-4.5.2
  • bugzilla-4.5.1
  • bugzilla-4.4.4
  • bugzilla-4.4.3
  • bugzilla-4.4.2
  • bugzilla-4.4.1
  • bugzilla-4.4
  • bugzilla-4.3.3
  • bugzilla-4.3.2
  • bugzilla-4.3.1
  • bugzilla-4.2.9
  • bugzilla-4.2.8
  • bugzilla-4.2.7
  • bugzilla-4.2.6
  • bugzilla-4.2.5
41 results

show_bug.cgi

Blame
  • module_support.h 1003 B
    /*\
    ||| This file a part of Pike, and is copyright by Fredrik Hubinette
    ||| Pike is distributed as GPL (General Public License)
    ||| See the files COPYING and DISCLAIMER for more information.
    \*/
    
    /*
     * $Id: module_support.h,v 1.6 1998/03/28 15:09:51 grubba Exp $
     */
    #ifndef MODULE_SUPPORT_H
    #include <stdarg.h>
    
    /* Prototypes begin here */
    enum error_type {
      ERR_NONE,
      ERR_TOO_FEW,
      ERR_TOO_MANY,
      ERR_BAD_ARG
    };
    
    struct expect_result {
      enum error_type error_type;
      int argno;                 /* Which argument was it */
      unsigned INT32 expected;   /* What type was expected */
      TYPE_T got;               /* What type did we actually receive */
    };
    
    int check_args(int args, ...);
    void check_all_args(const char *fnname, int args, ... );
    int va_get_args(struct svalue *s,
    		INT32 num_args,
    		char *fmt,
    		va_list ap);
    int get_args(struct svalue *s,
    	     INT32 num_args,
    	     char *fmt, ...);
    void get_all_args(char *fname, INT32 args, char *format,  ... );
    /* Prototypes end here */
    
    #endif