Fix for GL_EXT_direct_state_access parsing when there is a ) at the end of a line in an unfinished < > comment. Make sure all of the unfinished comment is removed.

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@563 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
nigels 2009-11-11 23:52:12 +00:00
parent a9c3b929aa
commit 1601537107

View File

@ -140,6 +140,7 @@ sub normalize_prototype
local $_ = join(" ", @_);
s/\s+/ /g; # multiple whitespace -> single space
s/\<.*\>//g; # remove <comments> from direct state access extension
s/\<.*$//g; # remove incomplete <comments> from direct state access extension
s/\s*\(\s*/ \(/; # exactly one space before ( and none after
s/\s*\)\s*/\)/; # no after before or after )
s/\s*\*([a-zA-Z])/\* $1/; # "* identifier"