X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglwrap.c;fp=source%2Fglwrap.c;h=79d6404d2a34b21cf9cfeb3bfb045e6ecb7bda0b;hb=3c32a221de1435ae7af8d96182560e8b28f1a4c0;hp=0673b5ae106407860c7cfaafcee6b07dc76034f1;hpb=7c57338619688bc07f394ad82f75471aefbecc59;p=gldbg.git diff --git a/source/glwrap.c b/source/glwrap.c index 0673b5a..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