X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=builtins%2Fenable.def;h=50b4dc7a37b80ddf68f2e9a64ef319855738db03;hb=f73dda092b33638d2d5e9c35375f687a607b5403;hp=b6ac48338674f8e5cffa34588e88e1bb26850d3a;hpb=28ef6c316f1aff914bb95ac09787a3c83c1815fd;p=platform%2Fupstream%2Fbash.git diff --git a/builtins/enable.def b/builtins/enable.def index b6ac483..50b4dc7 100644 --- a/builtins/enable.def +++ b/builtins/enable.def @@ -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)