Branch: Tag:

1997-09-11

1997-09-11 19:29:57 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Moved enum and struct to header-file to avoid warnings.

Rev: src/module_support.c:1.8
Rev: src/module_support.h:1.5

8:   #include <stdarg.h>      /* Prototypes begin here */ - enum error_type; - struct expect_result; + 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,