mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 00:47:28 +01:00
Re-order the release/c code
Have the order of implementation code match the order of header code.
This commit is contained in:
1 parent
61d03537c2
commit
717d98441e
2 files changed
+452
-454
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user