mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 13:55:07 +00:00
Touch-up: Sort the enums (tokens) in a stable manner for consistency in include files.
This commit is contained in:
parent
6b5f533a7a
commit
d04fd20cec
@ -349,11 +349,16 @@ foreach my $spec (sort @speclist)
|
|||||||
} else {
|
} else {
|
||||||
if (${$tokens}{$b} =~ /_/) {
|
if (${$tokens}{$b} =~ /_/) {
|
||||||
1
|
1
|
||||||
|
} else {
|
||||||
|
if (hex ${$tokens}{$a} eq hex ${$tokens}{$b})
|
||||||
|
{
|
||||||
|
$a cmp $b
|
||||||
} else {
|
} else {
|
||||||
hex ${$tokens}{$a} <=> hex ${$tokens}{$b}
|
hex ${$tokens}{$a} <=> hex ${$tokens}{$b}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} keys %{$tokens})
|
} keys %{$tokens})
|
||||||
{
|
{
|
||||||
if ($token =~ /^$prefix\_.*/i)
|
if ($token =~ /^$prefix\_.*/i)
|
||||||
|
Loading…
Reference in New Issue
Block a user