Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Maik Froechtenicht
glew
Commits
14e21240
Commit
14e21240
authored
Oct 10, 2018
by
Nigel Stewart
Browse files
Fix Issue #195 - need to sort extensions by name, rather than path
parent
bc3c5d49
Changes
3
Hide whitespace changes
Inline
Side-by-side
auto/Makefile
View file @
14e21240
...
...
@@ -193,7 +193,7 @@ $(S.DEST)/glew.c: $(EXT)/.dummy
$(BIN)
/make_def_var.pl GL
$(GL_EXT_SPEC)
>>
$@
echo
-e
"
\n
static const char * _glewExtensionLookup[] = {"
>>
$@
;
$(BIN)
/make_index.pl
$(GL_CORE_SPEC)
$(GL_EXT_SPEC)
>>
$@
echo
-e
" NULL
\n
};
\n
"
>>
$@
;
echo
-e
" NULL
\n
};
\n
\n
"
>>
$@
;
$(BIN)
/make_enable_index.pl
$(GL_CORE_SPEC)
$(GL_EXT_SPEC)
>>
$@
$(BIN)
/make_initd.pl GL
$(GL_CORE_SPEC)
>>
$@
$(BIN)
/make_initd.pl GL
$(GL_EXT_SPEC)
>>
$@
...
...
auto/bin/make_enable_index.pl
View file @
14e21240
...
...
@@ -9,6 +9,7 @@
use
strict
;
use
warnings
;
use
File::
Basename
;
use
lib
'
.
';
do
'
bin/make.pl
';
...
...
@@ -29,7 +30,7 @@ if (@ARGV)
print
"
/* Detected via extension string or experimental mode */
\n
";
print
"
static GLboolean* _glewExtensionEnabled[] = {
\n
";;
foreach
my
$ext
(
sort
@extlist
)
foreach
my
$ext
(
sort
{
basename
(
$a
)
cmp
basename
(
$b
)
}
@extlist
)
{
my
(
$extname
,
$exturl
,
$extstring
,
$reuse
,
$types
,
$tokens
,
$functions
,
$exacts
)
=
parse_ext
(
$ext
);
...
...
@@ -42,5 +43,5 @@ if (@ARGV)
print
"
#endif
\n
";
}
print
"
NULL
\n
};
\n
";
print
"
NULL
\n
};
\n
\n
";
}
auto/bin/make_index.pl
View file @
14e21240
...
...
@@ -9,6 +9,7 @@
use
strict
;
use
warnings
;
use
File::
Basename
;
use
lib
'
.
';
do
'
bin/make.pl
';
...
...
@@ -27,7 +28,7 @@ if (@ARGV)
{
@extlist
=
@ARGV
;
foreach
my
$ext
(
sort
@extlist
)
foreach
my
$ext
(
sort
{
basename
(
$a
)
cmp
basename
(
$b
)
}
@extlist
)
{
my
(
$extname
,
$exturl
,
$extstring
,
$reuse
,
$types
,
$tokens
,
$functions
,
$exacts
)
=
parse_ext
(
$ext
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment