Have gen's "single file C library" be .h not .c

This commit is contained in:
Nigel Tao committed 2018-07-14 09:26:10 +10:00
1 parent eac9ac13d2
commit f2e683ab69
4 files changed
+12 -7

No files matched your search

+1 -1
View File
@@ -805,7 +805,7 @@ func (g *gen) writeUse(b *buffer, n *a.Use) error {
}
}
useeFilename := filepath.Join(g.wuffsRoot, "gen", "c", filepath.FromSlash(useDirname)+".c")
useeFilename := filepath.Join(g.wuffsRoot, "gen", "c", filepath.FromSlash(useDirname)+".h")
usee, err := ioutil.ReadFile(useeFilename)
if err != nil {
return err