X-Git-Url: http://git.tdb.fi/?p=gldbg.git;a=blobdiff_plain;f=source%2Fglprint.funcs.t;h=d98f6e72102389bd6cac9a78a5fb79af8fdde7da;hp=db626c0539efecdb4a3530fb2b88f79625198a04;hb=0205804a10fe3beb01ed0135fde052d13b045570;hpb=3c32a221de1435ae7af8d96182560e8b28f1a4c0 diff --git a/source/glprint.funcs.t b/source/glprint.funcs.t index db626c0..d98f6e7 100644 --- a/source/glprint.funcs.t +++ b/source/glprint.funcs.t @@ -18,7 +18,7 @@ for p in params: if p.io: w('{%s}', p.io[1]) else: - w('', p.type) + w('', p.type) elif p.kind=="array": w('%%s') first = False @@ -37,13 +37,18 @@ for p in params+[ret]: elif p.kind=="reference": if p.io: w(', *%s', p.name) + else: + w(', %s', p.name) elif p.kind=="array": if not p.csize: w(', print_data(%s, 0)', p.name) elif p.base_ctype=="GLvoid" or p.base_ctype=="void": w(', print_data(%s, %s)', p.name, p.csize) else: - w(', print_array("%s", %s, sizeof(%s), %s)', p.io[1], p.name, p.base_ctype, p.csize) + f = p.io[1] + if len(p.io)>=3 and p.io[2]: + f = "%x" + w(', print_array("%s", %s, sizeof(%s), %s)', f, p.name, p.base_ctype, p.csize) wl(');') wl('}') :static void init_print(GlDecoder *dec)