diff --git a/TODO.txt b/TODO.txt index b410f2e..34aa7b9 100644 --- a/TODO.txt +++ b/TODO.txt @@ -1,4 +1,3 @@ separate building of static and shader object files -make install relinking (Darwin) web page and documentation update web poll on separating glew, glxew and wglew diff --git a/auto/bin/make_info.pl b/auto/bin/make_info.pl index 6fc89f9..2839c35 100755 --- a/auto/bin/make_info.pl +++ b/auto/bin/make_info.pl @@ -18,7 +18,7 @@ do 'bin/make.pl'; sub make_pfn_info($%) { my $name = $_[0]; - return " glewInfoFunc((const GLubyte*)\"$_[0]\", $name == NULL);"; + return " glewInfoFunc(\"$_[0]\", $name == NULL);"; } #--------------------------------------------------------------------------------------- @@ -48,12 +48,12 @@ foreach my $ext (sort @extlist) print "static void _glewInfo_$extname (void)\n{\n"; if ($extvar =~ /VERSION/) { - print " glewPrintExt((const GLubyte*)\"$extname\", $extvar, $extvar);\n"; + print " glewPrintExt(\"$extname\", $extvar, $extvar);\n"; } else { - print " glewPrintExt((const GLubyte*)\"$extname\", $extvar, $extpre" . - "ewGetExtension((const GLubyte*)\"$extname\"));\n"; + print " glewPrintExt(\"$extname\", $extvar, $extpre" . + "ewGetExtension(\"$extname\"));\n"; } output_decls($functions, \&make_pfn_info); print "}\n\n"; diff --git a/auto/bin/make_list.pl b/auto/bin/make_list.pl index d12ec48..f145fae 100755 --- a/auto/bin/make_list.pl +++ b/auto/bin/make_list.pl @@ -47,7 +47,7 @@ foreach my $ext (sort @extlist) my $pextvar = prefix_varname($extvar); print "#ifdef $extname\n"; - print " ctx->" . $pextvar . "= " . $extpre . "GetExtension((const GLubyte*)\"$extname\");\n"; + print " ctx->" . $pextvar . "= " . $extpre . "GetExtension(\"$extname\");\n"; if (keys %$functions) { if ($extname =~ /WGL_.*/) diff --git a/auto/src/glewinfo_pre.c b/auto/src/glewinfo_pre.c index 83d3876..edff187 100644 --- a/auto/src/glewinfo_pre.c +++ b/auto/src/glewinfo_pre.c @@ -57,26 +57,26 @@ void glewDestroyContext (); /* ------------------------------------------------------------------------- */ -static void glewPrintExt (const GLubyte* name, GLint def1, GLint def2) +static void glewPrintExt (const char* name, GLint def1, GLint def2) { unsigned int i; fprintf(f, "\n%s:", name); - for (i=0; i<62-strlen((const char*)name); i++) fprintf(f, " "); + for (i=0; i<62-strlen(name); i++) fprintf(f, " "); fprintf(f, "%s ", def1 ? "OK" : "MISSING"); if (def1 != def2) fprintf(f, "[%s]\n", def2 ? "OK" : "MISSING"); else fprintf(f, "\n"); - for (i=0; i