mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Rename gen/h/std/*.h to gen/c/std/*.h
This commit is contained in:
1 parent
ccb78f5db7
commit
122c32cdad
9 files changed
+6
-6
No files matched your search
@@ -800,7 +800,7 @@ func (g *gen) writeUse(b *buffer, n *a.Use) error {
|
||||
}
|
||||
}
|
||||
|
||||
hdrFilename := filepath.Join(g.wuffsRoot, "gen", "h", filepath.FromSlash(useDirname)+".h")
|
||||
hdrFilename := filepath.Join(g.wuffsRoot, "gen", "c", filepath.FromSlash(useDirname)+".h")
|
||||
hdr, err := ioutil.ReadFile(hdrFilename)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
+5
-5
@@ -175,7 +175,7 @@ func (h *genHelper) genDir(dirname string, qualFilenames []string) error {
|
||||
return err
|
||||
}
|
||||
out := stdout.Bytes()
|
||||
if err := h.genFile(dirname, lang, out); err != nil {
|
||||
if err := h.genFile(dirname, lang, lang, out); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -189,7 +189,7 @@ func (h *genHelper) genDir(dirname string, qualFilenames []string) error {
|
||||
} else {
|
||||
return fmt.Errorf("%s: output did not contain %q", command, cHeaderEndsHere)
|
||||
}
|
||||
if err := h.genFile(dirname, "h", out); err != nil {
|
||||
if err := h.genFile(dirname, "c", "h", out); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
@@ -223,9 +223,9 @@ func (h *genHelper) genDirDependencies(qualifiedFilenames []string) error {
|
||||
return h.gen("base", false)
|
||||
}
|
||||
|
||||
func (h *genHelper) genFile(dirname string, lang string, out []byte) error {
|
||||
func (h *genHelper) genFile(dirname string, lang string, suffix string, out []byte) error {
|
||||
return writeFile(
|
||||
filepath.Join(h.wuffsRoot, "gen", lang, filepath.FromSlash(dirname)+"."+lang),
|
||||
filepath.Join(h.wuffsRoot, "gen", lang, filepath.FromSlash(dirname)+"."+suffix),
|
||||
out,
|
||||
)
|
||||
}
|
||||
@@ -320,7 +320,7 @@ func (h *genHelper) genWuffs(dirname string, qualifiedFilenames []string) error
|
||||
}
|
||||
}
|
||||
}
|
||||
return h.genFile(dirname, "wuffs", out.Bytes())
|
||||
return h.genFile(dirname, "wuffs", "wuffs", out.Bytes())
|
||||
}
|
||||
|
||||
func (h *genHelper) genlibAffected() error {
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user