X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fglwrap.c;h=79d6404d2a34b21cf9cfeb3bfb045e6ecb7bda0b;hb=3c32a221de1435ae7af8d96182560e8b28f1a4c0;hp=0a22c3c1ce4b6677c0bb66cdb10d559294fbe160;hpb=6475e8951e1901b247f5d1d1dd9fcfc1e77e163a;p=gldbg.git diff --git a/source/glwrap.c b/source/glwrap.c index 0a22c3c..79d6404 100644 --- a/source/glwrap.c +++ b/source/glwrap.c @@ -13,6 +13,7 @@ Distributed under the GPL #include #include #include +#include "arraysize.h" #include "functions.h" static inline void *glsym(const char *sym) @@ -121,6 +122,15 @@ static inline void write_string(const unsigned char *s) write_data(s, strlen(s)+1); } +static inline void write_string_array(const unsigned char **sa, unsigned size) +{ + unsigned i; + size /= sizeof(const unsigned char *); + write_int(size); + for(i=0; i