diff options
Diffstat (limited to 'xc/programs/Xserver/hw/xfree86/loader/loader.c')
-rw-r--r-- | xc/programs/Xserver/hw/xfree86/loader/loader.c | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/loader/loader.c b/xc/programs/Xserver/hw/xfree86/loader/loader.c index 210213ff7..0c190be9a 100644 --- a/xc/programs/Xserver/hw/xfree86/loader/loader.c +++ b/xc/programs/Xserver/hw/xfree86/loader/loader.c @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/loader/loader.c,v 1.53 2001/04/05 15:55:28 dawes Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/loader/loader.c,v 1.54 2001/06/13 23:10:43 dawes Exp $ */ /* * @@ -704,38 +704,52 @@ SymInList(symlist *list, char *sym) } void -LoaderRefSymbols(const char *sym0, ...) +LoaderVRefSymbols(const char *sym0, va_list args) { - va_list ap; const char *s; if (sym0 == NULL) return; - va_start(ap, sym0); s = sym0; do { AppendSymbol(&refList, s); - s = va_arg(ap, const char *); + s = va_arg(args, const char *); } while (s != NULL); - va_end(ap); } void -LoaderRefSymLists(const char **list0, ...) +LoaderRefSymbols(const char *sym0, ...) { va_list ap; + + va_start(ap, sym0); + LoaderVRefSymbols(sym0, ap); + va_end(ap); +} + +void +LoaderVRefSymLists(const char **list0, va_list args) +{ const char **l; if (list0 == NULL) return; - va_start(ap, list0); l = list0; do { AppendSymList(&refList, l); - l = va_arg(ap, const char **); + l = va_arg(args, const char **); } while (l != NULL); +} + +void +LoaderRefSymLists(const char **list0, ...) +{ + va_list ap; + + va_start(ap, list0); + LoaderVRefSymLists(list0, ap); va_end(ap); } |