mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-25 23:31:56 +00:00
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:
parent
a9c3b929aa
commit
1601537107
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user