Skip to content
Snippets Groups Projects
Select Git revision
  • eb48fb68925e7b3b14ca68118d87585db63c43c8
  • master default protected
  • 9.0
  • 8.0
  • 7.8
  • 7.6
  • 7.4
  • 7.2
  • 7.0
  • 0.6
  • rosuav/latex-markdown-renderer
  • rxnpatch/rxnpatch
  • marcus/gobject-introspection
  • rxnpatch/8.0
  • rosuav/pre-listening-ports
  • nt-tools
  • rosuav/async-annotations
  • rosuav/pgsql-ssl
  • rxnpatch/rxnpatch-broken/2023-10-06T094250
  • grubba/fdlib
  • grubba/wip/sakura/8.0
  • v8.0.2000
  • v8.0.1998
  • v8.0.1996
  • v8.0.1994
  • v8.0.1992
  • v8.0.1990
  • v8.0.1988
  • v8.0.1986
  • rxnpatch/clusters/8.0/2025-04-29T124414
  • rxnpatch/2025-04-29T124414
  • v8.0.1984
  • v8.0.1982
  • v8.0.1980
  • v8.0.1978
  • v8.0.1976
  • v8.0.1974
  • v8.0.1972
  • v8.0.1970
  • v8.0.1968
  • v8.0.1966
41 results

encode.c

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