Re-order the release/c code

Have the order of implementation code match the order of header code.
This commit is contained in:
Nigel Tao committed 2018-10-27 12:57:00 +11:00
1 parent 61d03537c2
commit 717d98441e
2 files changed
+452 -454

No files matched your search

+4 -6
View File
@@ -235,12 +235,10 @@ func (h *genReleaseHelper) gen(w *bytes.Buffer, relFilename string, which int, d
return fmt.Errorf("cannot resolve %q", relFilename)
}
// For headers, process the files in #include-ee before #include-er order.
if which == 0 {
for _, inc := range f.includes {
if err := h.gen(w, inc, which, depth); err != nil {
return err
}
// Process the files in #include-ee before #include-er order.
for _, inc := range f.includes {
if err := h.gen(w, inc, which, depth); err != nil {
return err
}
}