Generate the release .h the same as gen/etc/*.h

This commit is contained in:
Nigel Tao committed 2018-06-23 07:11:45 +10:00
1 parent 9d024ad22e
commit ad9931ff2e
3 files changed
+32 -17

No files matched your search

+4
View File
@@ -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.