We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 4bb90e3 commit 86a4820Copy full SHA for 86a4820
scripts/sort_includes.pl
@@ -26,13 +26,7 @@
26
our $sorting;
27
28
BEGIN { $sorting = 0; }
29
-END {
30
- if( $sorting ) {
31
- print foreach sort keys %uis;
32
- print foreach sort keys %sys;
33
- print foreach sort keys %others;
34
- }
35
-}
+END { die "header files not empty" if keys %uis || keys %sys || keys %others; }
36
37
if(/^\s*#include/ ) {
38
if(/"ui_/ ) {
@@ -43,7 +37,8 @@ END
43
$others{$_}=1;
44
}
45
39
$sorting=1;
46
- next;
40
+
41
+ next unless eof;
47
42
48
49
if( $sorting ) {
@@ -54,8 +49,9 @@ END
54
undef %uis;
55
50
undef %sys;
56
51
undef %others;
57
58
52
53
+ last if eof;
+}
59
60
$sorting=0;
61
0 commit comments