From 7a6a598d1e1a28fa2e9309a3e4fe417396724733 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Thu, 30 Nov 2017 16:26:16 +1100 Subject: [PATCH] Rename PUFFS to WUFFS, part 3 of N --- cmd/{puffs-c => wuffs-c}/genlib.go | 0 cmd/{puffs-c => wuffs-c}/internal/cgen/base-header.h | 0 cmd/{puffs-c => wuffs-c}/internal/cgen/base-impl.h | 0 cmd/{puffs-c => wuffs-c}/internal/cgen/cgen.go | 2 +- cmd/{puffs-c => wuffs-c}/internal/cgen/data.go | 0 cmd/{puffs-c => wuffs-c}/internal/cgen/expr.go | 0 cmd/{puffs-c => wuffs-c}/internal/cgen/func.go | 0 cmd/{puffs-c => wuffs-c}/internal/cgen/gen.go | 0 cmd/{puffs-c => wuffs-c}/internal/cgen/statement.go | 0 cmd/{puffs-c => wuffs-c}/internal/cgen/templates.h | 0 cmd/{puffs-c => wuffs-c}/internal/cgen/var.go | 0 cmd/{puffs-c => wuffs-c}/main.go | 4 ++-- cmd/{puffs-c => wuffs-c}/test.go | 2 +- cmd/{puffs => wuffs}/gen.go | 0 cmd/{puffs => wuffs}/main.go | 0 cmd/{puffs => wuffs}/test.go | 0 cmd/{puffsfmt => wuffsfmt}/main.go | 0 17 files changed, 4 insertions(+), 4 deletions(-) rename cmd/{puffs-c => wuffs-c}/genlib.go (100%) rename cmd/{puffs-c => wuffs-c}/internal/cgen/base-header.h (100%) rename cmd/{puffs-c => wuffs-c}/internal/cgen/base-impl.h (100%) rename cmd/{puffs-c => wuffs-c}/internal/cgen/cgen.go (99%) rename cmd/{puffs-c => wuffs-c}/internal/cgen/data.go (100%) rename cmd/{puffs-c => wuffs-c}/internal/cgen/expr.go (100%) rename cmd/{puffs-c => wuffs-c}/internal/cgen/func.go (100%) rename cmd/{puffs-c => wuffs-c}/internal/cgen/gen.go (100%) rename cmd/{puffs-c => wuffs-c}/internal/cgen/statement.go (100%) rename cmd/{puffs-c => wuffs-c}/internal/cgen/templates.h (100%) rename cmd/{puffs-c => wuffs-c}/internal/cgen/var.go (100%) rename cmd/{puffs-c => wuffs-c}/main.go (90%) rename cmd/{puffs-c => wuffs-c}/test.go (98%) rename cmd/{puffs => wuffs}/gen.go (100%) rename cmd/{puffs => wuffs}/main.go (100%) rename cmd/{puffs => wuffs}/test.go (100%) rename cmd/{puffsfmt => wuffsfmt}/main.go (100%) diff --git a/cmd/puffs-c/genlib.go b/cmd/wuffs-c/genlib.go similarity index 100% rename from cmd/puffs-c/genlib.go rename to cmd/wuffs-c/genlib.go diff --git a/cmd/puffs-c/internal/cgen/base-header.h b/cmd/wuffs-c/internal/cgen/base-header.h similarity index 100% rename from cmd/puffs-c/internal/cgen/base-header.h rename to cmd/wuffs-c/internal/cgen/base-header.h diff --git a/cmd/puffs-c/internal/cgen/base-impl.h b/cmd/wuffs-c/internal/cgen/base-impl.h similarity index 100% rename from cmd/puffs-c/internal/cgen/base-impl.h rename to cmd/wuffs-c/internal/cgen/base-impl.h diff --git a/cmd/puffs-c/internal/cgen/cgen.go b/cmd/wuffs-c/internal/cgen/cgen.go similarity index 99% rename from cmd/puffs-c/internal/cgen/cgen.go rename to cmd/wuffs-c/internal/cgen/cgen.go index dcc46795..3bedb076 100644 --- a/cmd/puffs-c/internal/cgen/cgen.go +++ b/cmd/wuffs-c/internal/cgen/cgen.go @@ -214,7 +214,7 @@ func (g *gen) genHeader(b *buffer) error { includeGuard := "PUFFS_" + strings.ToUpper(g.pkgName) + "_H" b.printf("#ifndef %s\n#define %s\n\n", includeGuard, includeGuard) - b.printf("// Code generated by puffs-c. DO NOT EDIT.\n\n") + b.printf("// Code generated by wuffs-c. DO NOT EDIT.\n\n") b.writes(baseHeader) b.writes("\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n") diff --git a/cmd/puffs-c/internal/cgen/data.go b/cmd/wuffs-c/internal/cgen/data.go similarity index 100% rename from cmd/puffs-c/internal/cgen/data.go rename to cmd/wuffs-c/internal/cgen/data.go diff --git a/cmd/puffs-c/internal/cgen/expr.go b/cmd/wuffs-c/internal/cgen/expr.go similarity index 100% rename from cmd/puffs-c/internal/cgen/expr.go rename to cmd/wuffs-c/internal/cgen/expr.go diff --git a/cmd/puffs-c/internal/cgen/func.go b/cmd/wuffs-c/internal/cgen/func.go similarity index 100% rename from cmd/puffs-c/internal/cgen/func.go rename to cmd/wuffs-c/internal/cgen/func.go diff --git a/cmd/puffs-c/internal/cgen/gen.go b/cmd/wuffs-c/internal/cgen/gen.go similarity index 100% rename from cmd/puffs-c/internal/cgen/gen.go rename to cmd/wuffs-c/internal/cgen/gen.go diff --git a/cmd/puffs-c/internal/cgen/statement.go b/cmd/wuffs-c/internal/cgen/statement.go similarity index 100% rename from cmd/puffs-c/internal/cgen/statement.go rename to cmd/wuffs-c/internal/cgen/statement.go diff --git a/cmd/puffs-c/internal/cgen/templates.h b/cmd/wuffs-c/internal/cgen/templates.h similarity index 100% rename from cmd/puffs-c/internal/cgen/templates.h rename to cmd/wuffs-c/internal/cgen/templates.h diff --git a/cmd/puffs-c/internal/cgen/var.go b/cmd/wuffs-c/internal/cgen/var.go similarity index 100% rename from cmd/puffs-c/internal/cgen/var.go rename to cmd/wuffs-c/internal/cgen/var.go diff --git a/cmd/puffs-c/main.go b/cmd/wuffs-c/main.go similarity index 90% rename from cmd/puffs-c/main.go rename to cmd/wuffs-c/main.go index 444d0d0b..f3d1efa6 100644 --- a/cmd/puffs-c/main.go +++ b/cmd/wuffs-c/main.go @@ -12,14 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. -// puffs-c handles the C language specific parts of the puffs tool. +// wuffs-c handles the C language specific parts of the wuffs tool. package main import ( "fmt" "os" - "github.com/google/wuffs/cmd/puffs-c/internal/cgen" + "github.com/google/wuffs/cmd/wuffs-c/internal/cgen" ) func main() { diff --git a/cmd/puffs-c/test.go b/cmd/wuffs-c/test.go similarity index 98% rename from cmd/puffs-c/test.go rename to cmd/wuffs-c/test.go index 1aa3124d..4a531198 100644 --- a/cmd/puffs-c/test.go +++ b/cmd/wuffs-c/test.go @@ -72,7 +72,7 @@ func doBenchTest(args []string, bench bool) error { } func doBenchTest1(filename string, bench bool, ccompilers string, focus string, mimic bool, reps int) (failed bool, err error) { - workDir, err := ioutil.TempDir("", "puffs-c") + workDir, err := ioutil.TempDir("", "wuffs-c") if err != nil { return false, err } diff --git a/cmd/puffs/gen.go b/cmd/wuffs/gen.go similarity index 100% rename from cmd/puffs/gen.go rename to cmd/wuffs/gen.go diff --git a/cmd/puffs/main.go b/cmd/wuffs/main.go similarity index 100% rename from cmd/puffs/main.go rename to cmd/wuffs/main.go diff --git a/cmd/puffs/test.go b/cmd/wuffs/test.go similarity index 100% rename from cmd/puffs/test.go rename to cmd/wuffs/test.go diff --git a/cmd/puffsfmt/main.go b/cmd/wuffsfmt/main.go similarity index 100% rename from cmd/puffsfmt/main.go rename to cmd/wuffsfmt/main.go