X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglwrap.c;h=79d6404d2a34b21cf9cfeb3bfb045e6ecb7bda0b;hb=3c32a221de1435ae7af8d96182560e8b28f1a4c0;hp=59bf1fb12cedc3333a77abf1e1a044edf26edc22;hpb=be68706254c62406d4924fffa7f43d2b1c17f52e;p=gldbg.git diff --git a/source/glwrap.c b/source/glwrap.c index 59bf1fb..79d6404 100644 --- a/source/glwrap.c +++ b/source/glwrap.c @@ -10,7 +10,10 @@ Distributed under the GPL #include #include #include +#include #include +#include +#include "arraysize.h" #include "functions.h" static inline void *glsym(const char *sym) @@ -119,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