mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 09:01:35 +01:00
Generate C status codes.
This commit is contained in:
1 parent
1d1f3bd46d
commit
a1dd73a58c
6 files changed
+56
-16
No files matched your search
@@ -100,6 +100,10 @@ func genDir(puffsRoot string, dirname string, filenames []string, langs []string
|
||||
combinedSrc := buf.Bytes()
|
||||
|
||||
packageName := filepath.Base(dirname)
|
||||
if !validName(packageName) {
|
||||
return fmt.Errorf(`invalid package %q, not in [a-z0-9]+`, packageName)
|
||||
}
|
||||
|
||||
for _, lang := range langs {
|
||||
command := "puffs-gen-" + lang
|
||||
stdout := &bytes.Buffer{}
|
||||
|
||||
Reference in new issue
Block a user