5
5
"io"
6
6
"log"
7
7
"os/exec"
8
+ "sort"
8
9
"strings"
9
10
10
11
"os"
@@ -63,7 +64,7 @@ func main() {
63
64
// Step 2: generate mappings for this package, then edit them manually
64
65
// Specifically, the `ignored` map is edited - things that will be manually written are not removed from the list
65
66
// Some enum map names may also be changed
66
- // generateMappings(true)
67
+ generateMappings (true )
67
68
68
69
// Step 3: generate enums, then edit the file in the dnn package.
69
70
// generateEnums()
@@ -117,8 +118,13 @@ func reportUnconvertedFns(pkg *PkgState, file string, things ...bindgen.FilterFu
117
118
}
118
119
119
120
}
120
- fmt . Printf ( "## Unconverted C Functions ## \n \n " )
121
+ keys := make ([] string , 0 , len ( allFuncs ) )
121
122
for k := range allFuncs {
123
+ keys = append (keys , k )
124
+ }
125
+ sort .Strings (keys )
126
+ fmt .Printf ("## Unconverted C Functions ##\n \n " )
127
+ for _ , k := range keys {
122
128
if _ , ok := used [k ]; ! ok {
123
129
fmt .Printf ("* `%v`\n " , k )
124
130
}
@@ -140,9 +146,13 @@ func reportUnconvertedTypes(pkg *PkgState, file string, things ...bindgen.Filter
140
146
allTypes [name ] = struct {}{}
141
147
}
142
148
}
143
-
144
- fmt .Printf ("## Unconverted/Unused C Types ##\n \n " )
149
+ keys := make ([]string , 0 , len (allTypes ))
145
150
for k := range allTypes {
151
+ keys = append (keys , k )
152
+ }
153
+ sort .Strings (keys )
154
+ fmt .Printf ("## Unconverted/Unused C Types ##\n \n " )
155
+ for _ , k := range keys {
146
156
if _ , ok := used [k ]; ! ok {
147
157
fmt .Printf ("* `%v`\n " , k )
148
158
}
0 commit comments