From 1601537107a9195ad71925bd836b87660df9996c Mon Sep 17 00:00:00 2001 From: nigels Date: Wed, 11 Nov 2009 23:52:12 +0000 Subject: [PATCH] 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 --- auto/bin/parse_spec.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/auto/bin/parse_spec.pl b/auto/bin/parse_spec.pl index 445bdf3..3cd3819 100755 --- a/auto/bin/parse_spec.pl +++ b/auto/bin/parse_spec.pl @@ -140,6 +140,7 @@ sub normalize_prototype local $_ = join(" ", @_); s/\s+/ /g; # multiple whitespace -> single space s/\<.*\>//g; # remove from direct state access extension + s/\<.*$//g; # remove incomplete 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"