Imported from ../bash-2.05a.tar.gz.
[platform/upstream/bash.git] / builtins / enable.def
index b6ac483..50b4dc7 100644 (file)
@@ -60,14 +60,6 @@ $END
 #  include "../pcomplete.h"
 #endif
 
-#if defined (HAVE_DLOPEN) && defined (HAVE_DLSYM)
-static int dyn_load_builtin ();
-#endif
-
-#if defined (HAVE_DLCLOSE)
-static int dyn_unload_builtin ();
-#endif
-
 #define ENABLED  1
 #define DISABLED 2
 #define SPECIAL  4
@@ -79,8 +71,18 @@ static int dyn_unload_builtin ();
 #define PFLAG  0x10
 #define SFLAG  0x20
 
-static int enable_shell_command ();
-static void list_some_builtins ();
+#if defined (HAVE_DLOPEN) && defined (HAVE_DLSYM)
+static int dyn_load_builtin __P((WORD_LIST *, int, char *));
+#endif
+
+#if defined (HAVE_DLCLOSE)
+static int dyn_unload_builtin __P((char *));
+static void delete_builtin __P((struct builtin *));
+static int local_dlclose __P((void *));
+#endif
+
+static void list_some_builtins __P((int));
+static int enable_shell_command __P((char *, int));
 
 /* Enable/disable shell commands present in LIST.  If list is not specified,
    then print out a list of shell commands showing which are enabled and
@@ -305,7 +307,7 @@ dyn_load_builtin (list, flags, filename)
       name = list->word->word;
 
       size = strlen (name);
-      struct_name = xmalloc (size + 8);
+      struct_name = (char *)xmalloc (size + 8);
       strcpy (struct_name, name);
       strcpy (struct_name + size, "_struct");
 
@@ -355,7 +357,7 @@ dyn_load_builtin (list, flags, filename)
                  sizeof (struct builtin));
 
       new_shell_builtins[total].name = (char *)0;
-      new_shell_builtins[total].function = (Function *)0;
+      new_shell_builtins[total].function = (sh_builtin_func_t *)0;
       new_shell_builtins[total].flags = 0;
 
       if (shell_builtins != static_shell_builtins)
@@ -427,7 +429,6 @@ dyn_unload_builtin (name)
   struct builtin *b;
   void *handle;
   int ref, i;
-  char *uerror;
 
   b = builtin_address_internal (name, 1);
   if (b == 0)