diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-06-23 13:50:13 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-06-23 13:50:13 +0000 |
commit | d452c875cf2841085b8240e0a96d2b271f75eb4d (patch) | |
tree | aba6fc817184b18f7a19e6435e2037c5187d5fb3 /Build/source/texk/kpathsea/concatn.c | |
parent | 3b038424f28fe19e6570593aa7ef8b30758af6eb (diff) |
use ANSI C function definitions and prototypes
use <stdarg.h> instead of <kpathsea/c-vararg.h>
git-svn-id: svn://tug.org/texlive/trunk@13917 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/concatn.c')
-rw-r--r-- | Build/source/texk/kpathsea/concatn.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/concatn.c b/Build/source/texk/kpathsea/concatn.c index 216eedfdf7d..eebce152711 100644 --- a/Build/source/texk/kpathsea/concatn.c +++ b/Build/source/texk/kpathsea/concatn.c @@ -25,16 +25,18 @@ and then do the copying ourselves, but I doubt it matters in reality. */ string -concatn PVAR1C(const_string, str1, ap) +concatn (const_string str1, ...) { string arg; string ret; + va_list ap; if (!str1) return NULL; ret = xstrdup (str1); + va_start (ap, str1); while ((arg = va_arg (ap, string)) != NULL) { string temp = concat (ret, arg); @@ -44,7 +46,7 @@ concatn PVAR1C(const_string, str1, ap) va_end (ap); return ret; -}} +} #ifdef TEST int |