From c9c1c5a1c0a58f6b82267be981fc16b3c53e9938 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Thu, 11 Sep 1997 21:29:57 +0200
Subject: [PATCH] Moved enum and struct to header-file to avoid warnings.

Rev: src/module_support.c:1.8
Rev: src/module_support.h:1.5
---
 src/module_support.c | 14 --------------
 src/module_support.h | 16 ++++++++++++++--
 2 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/src/module_support.c b/src/module_support.c
index 3adddd7c47..d840b49340 100644
--- a/src/module_support.c
+++ b/src/module_support.c
@@ -6,20 +6,6 @@
 #include "pike_types.h"
 #include "error.h"
 
-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 */
-};
-
 /* Checks that args_to_check arguments are OK.
  * Returns 1 if everything worked ok, zero otherwise.
  * If something went wrong, 'exepect_result' tells you what went wrong.
diff --git a/src/module_support.h b/src/module_support.h
index f2dd99c4a6..d41535ae75 100644
--- a/src/module_support.h
+++ b/src/module_support.h
@@ -8,8 +8,20 @@
 #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,
-- 
GitLab