X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=blobdiff_plain;f=set-init.c;h=86f9926216b0357009f2694297ac768cde174939;hp=42538b2ae9d38bff750f01489b2115366e99c72c;hb=761bfe655ec2e23efa5235c656cc6878c815a92b;hpb=8897d41949a0c72698d72b6eccfc0cb05c007daf diff --git a/set-init.c b/set-init.c index 42538b2ae9..86f9926216 100644 --- a/set-init.c +++ b/set-init.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1994 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -16,22 +16,7 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include -#include +#include "set-hooks.h" -struct - { - size_t n; - void EXFUN((*fn[0]), (int argc, char **argv, char **envp)); - } __libc_subinit; - -void -DEFUN(__libc_init, (argc, argv, envp), - int argc AND char **argv AND char **envp) -{ - - void EXFUN((**fn), (int argc, char **argv, char **envp)); - - for (fn = __libc_subinit.fn; *fn != NULL; ++fn) - (**fn) (argc, argv, envp); -} +DEFINE_HOOK_RUNNER (__libc_subinit, __libc_init, + (int argc, char **argv, char **envp), (argc, argv, envp))