Added GL_APICALL and APIENTRY tokens to GetFunctionNameAndType. Fixes parsing of ES 1.0 and 2.0 headers.

This commit is contained in:
the_fiddler 2009-08-09 15:30:31 +00:00
parent d6edb9e902
commit cb3a6d10c0

View file

@ -273,12 +273,15 @@ namespace CHeaderToXML
case "const": case "const":
// ignore // ignore
break; break;
case "GL_API": case "GLAPI": // ES 1.0
case "CL_API_ENTRY": case "GL_API": // ES 1.1
case "GL_APICALL": // ES 2.0
case "CL_API_ENTRY": // CL 1.0
inRettype = true; inRettype = true;
break; break;
case "GL_APIENTRY": case "APIENTRY": // ES 1.0
case "CL_API_CALL": case "GL_APIENTRY": // ES 1.1 & 2.0
case "CL_API_CALL": // CL 1.0
inRettype = false; inRettype = false;
funcname = words [i+1].Substring(Prefix.Length); funcname = words [i+1].Substring(Prefix.Length);
quit = true; quit = true;