From 068496298c8c777beb23f36ccd73cb35c49a1fa6 Mon Sep 17 00:00:00 2001 From: lisa neigut Date: Tue, 23 Jul 2019 18:54:21 -0500 Subject: [PATCH] bolt-gen: rm unused bolt-generator; rename new bolt generator delete now unused wire-generator and replace it with the newer version. --- Makefile | 2 +- doc/HACKING.md | 4 +- tools/gen/header_template | 2 +- tools/gen/impl_template | 2 +- tools/gen/print_header_template | 2 +- tools/gen/print_impl_template | 2 +- tools/generate-bolts.py | 610 --------- tools/generate-wire.py | 2049 +++++++++---------------------- tools/test/Makefile | 8 +- 9 files changed, 571 insertions(+), 2110 deletions(-) delete mode 100755 tools/generate-bolts.py diff --git a/Makefile b/Makefile index d750dbfd1..ab900a87f 100644 --- a/Makefile +++ b/Makefile @@ -184,7 +184,7 @@ ALL_GEN_HEADERS += gen_version.h CDUMP_OBJS := ccan-cdump.o ccan-strmap.o -BOLT_GEN := tools/generate-bolts.py +BOLT_GEN := tools/generate-wire.py WIRE_GEN := $(BOLT_GEN) BOLT_DEPS := $(BOLT_GEN) diff --git a/doc/HACKING.md b/doc/HACKING.md index 42abf34fc..f1c956d03 100644 --- a/doc/HACKING.md +++ b/doc/HACKING.md @@ -45,9 +45,7 @@ Here's a list of parts, with notes: - check-bolt.c: check the source code contains correct BOLT quotes (as used by check-source) - generate-wire.py: generates wire marshal/unmarshal-ing - routines for subdaemons. - - generate-bolts.py: generate marshal/unmarshal routines - from extracted BOLT specs. + routines for subdaemons and BOLT specs. - mockup.sh / update-mocks.sh: tools to generate mock functions for unit tests. diff --git a/tools/gen/header_template b/tools/gen/header_template index 112cf8aba..3656b3a9c 100644 --- a/tools/gen/header_template +++ b/tools/gen/header_template @@ -1,4 +1,4 @@ -/* This file was generated by generate-bolts.py */ +/* This file was generated by generate-wire.py */ /* Do not modify this file! Modify the _csv file it was generated from. */ /* Original template can be found at tools/gen/header_template */ diff --git a/tools/gen/impl_template b/tools/gen/impl_template index 43285265d..c33f215e8 100644 --- a/tools/gen/impl_template +++ b/tools/gen/impl_template @@ -1,4 +1,4 @@ -/* This file was generated by generate-bolts.py */ +/* This file was generated by generate-wire.py */ /* Do not modify this file! Modify the _csv file it was generated from. */ /* Original template can be found at tools/gen/impl_template */ diff --git a/tools/gen/print_header_template b/tools/gen/print_header_template index 6b8fa63e7..a0170f37a 100644 --- a/tools/gen/print_header_template +++ b/tools/gen/print_header_template @@ -1,4 +1,4 @@ -/* This file was generated by generate-bolts.py */ +/* This file was generated by generate-wire.py */ /* Do not modify this file! Modify the _csv file it was generated from. */ /* Template located at tools/gen/print_header_template */ #ifndef LIGHTNING_${idem} diff --git a/tools/gen/print_impl_template b/tools/gen/print_impl_template index b0730bc73..e3a0827e7 100644 --- a/tools/gen/print_impl_template +++ b/tools/gen/print_impl_template @@ -1,4 +1,4 @@ -/* This file was generated by generate-bolts.py */ +/* This file was generated by generate-wire.py */ /* Do not modify this file! Modify the _csv file it was generated from. */ #include "${options.header_filename}" diff --git a/tools/generate-bolts.py b/tools/generate-bolts.py deleted file mode 100755 index b0e003454..000000000 --- a/tools/generate-bolts.py +++ /dev/null @@ -1,610 +0,0 @@ -#! /usr/bin/env python3 -# Script to parse spec output CSVs and produce C files. -# Released by lisa neigut under CC0: -# https://creativecommons.org/publicdomain/zero/1.0/ -# -# Reads from stdin, outputs C header or body file. -# -# Standard message types: -# msgtype,,[,