mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 16:47:28 +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
@@ -67,6 +67,8 @@ func doGenrelease(args []string) error {
|
||||
|
||||
if i := bytes.Index(s, grCHeader); i >= 0 {
|
||||
s = s[:i]
|
||||
} else {
|
||||
return fmt.Errorf("could not find %q", grCHeader)
|
||||
}
|
||||
|
||||
if err := h.gen(unformatted, s); err != nil {
|
||||
@@ -75,6 +77,8 @@ func doGenrelease(args []string) error {
|
||||
}
|
||||
|
||||
unformatted.WriteString("\n\n#endif // WUFFS_INCLUDE_GUARD\n\n")
|
||||
unformatted.Write(grCHeader)
|
||||
unformatted.WriteString("\n")
|
||||
|
||||
// Then, cat all of the implementations together, filtering out duplicate
|
||||
// WUFFS_INCLUDE_GUARD__BASE_PRIVATE sections.
|
||||
|
||||
Reference in new issue
Block a user