mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +01:00
Generate the release .h the same as gen/etc/*.h
This commit is contained in:
1 parent
9d024ad22e
commit
ad9931ff2e
3 files changed
+32
-17
No files matched your search
+4
-3
@@ -183,10 +183,11 @@ func (h *genHelper) genDir(dirname string, qualFilenames []string) error {
|
||||
if lang != "c" || packageName == "base" {
|
||||
continue
|
||||
}
|
||||
if i := bytes.Index(out, cHeaderEndsHere); i < 0 {
|
||||
return fmt.Errorf("%s: output did not contain %q", command, cHeaderEndsHere)
|
||||
} else {
|
||||
|
||||
if i := bytes.Index(out, cHeaderEndsHere); i >= 0 {
|
||||
out = out[:i]
|
||||
} else {
|
||||
return fmt.Errorf("%s: output did not contain %q", command, cHeaderEndsHere)
|
||||
}
|
||||
if err := h.genFile(dirname, "h", out); err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user