X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=libextl%2Flibextl-mkexports.in;fp=libextl%2Flibextl-mkexports.in;h=14674ba892bf6edbadcb6eca4cb503858ca106a2;hp=a23ab1fbc3d14cba6f35ba7e8d14a09b0b0ed538;hb=c5d37fe7f5331a18a1a049aaa466f6ca6fc0f053;hpb=3a185723014cbe1dd2871fdc2639f649931e01a3 diff --git a/libextl/libextl-mkexports.in b/libextl/libextl-mkexports.in index a23ab1f..14674ba 100644 --- a/libextl/libextl-mkexports.in +++ b/libextl/libextl-mkexports.in @@ -18,16 +18,16 @@ -- Helper functions {{{ -function errorf(fmt, ...) - error(string.format(fmt, unpack(arg)), 2) +function errorf(...) + error(string.format(...), 2) end function matcherr(s) error(string.format("Parse error in \"%s...\"", string.sub(s, 1, 50)), 2) end -function fprintf(h, fmt, ...) - h:write(string.format(fmt, unpack(arg))) +function fprintf(h, ...) + h:write(string.format(...)) end function trim(str) @@ -208,7 +208,7 @@ function parse(d) end param=trim(param) if string.len(param)>0 then - for p in string.gfind(param .. ",", "([^,]*),") do + for p in string.gmatch(param .. ",", "([^,]*),") do local spec, objtype, varname=parse_type(p) idesc=idesc .. spec table.insert(itypes, objtype)