[gtk-doc] gtkdoc-scan: make HTML output deterministic



commit cb4545a23fe78b71019b1ce255d26dee4280ff30
Author: Peter De Wachter <pdewacht gmail com>
Date:   Wed May 20 21:09:11 2015 +0200

    gtkdoc-scan: make HTML output deterministic
    
    Sort symbols by name before printing them to the decl file.

 gtkdoc-scan.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in
index 567b5b0..551f2d2 100755
--- a/gtkdoc-scan.in
+++ b/gtkdoc-scan.in
@@ -877,7 +877,7 @@ sub ScanHeader {
     close(INPUT);
 
     # print remaining forward declarations
-    foreach $symbol (keys %forward_decls) {
+    foreach $symbol (sort(keys %forward_decls)) {
         if (defined($forward_decls{$symbol})) {
             &AddSymbolToList (\$list, $symbol);
             print DECL $forward_decls{$symbol};


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]