diff options
Diffstat (limited to 'xc/lib/Xft/xftpat.c')
-rw-r--r-- | xc/lib/Xft/xftpat.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/xc/lib/Xft/xftpat.c b/xc/lib/Xft/xftpat.c index 7d9caa151..2c8045bb0 100644 --- a/xc/lib/Xft/xftpat.c +++ b/xc/lib/Xft/xftpat.c @@ -1,5 +1,5 @@ /* - * $XFree86: xc/lib/Xft/xftpat.c,v 1.1 2000/11/29 08:39:23 keithp Exp $ + * $XFree86: xc/lib/Xft/xftpat.c,v 1.2 2000/11/30 06:59:45 keithp Exp $ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * @@ -339,8 +339,9 @@ bail0: } XftPattern * -XftPatternVaBuild (XftPattern *orig, va_list va) +_XftPatternVapBuild (XftPattern *orig, va_list *vap) { + va_list va = *vap; const char *object; XftValue v; XftPattern *p; @@ -377,6 +378,7 @@ XftPatternVaBuild (XftPattern *orig, va_list va) if (!XftPatternAdd (p, object, v, True)) goto bail; } + *vap = va; return p; bail: if (!orig) @@ -385,12 +387,18 @@ bail: } XftPattern * +XftPatternVaBuild (XftPattern *orig, va_list va) +{ + return _XftPatternVapBuild (orig, &va); +} + +XftPattern * XftPatternBuild (XftPattern *orig, ...) { va_list va; va_start (va, orig); - orig = XftPatternVaBuild (orig, va); + orig = _XftPatternVapBuild (orig, &va); va_end (va); return orig; } |