aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Howard <gavin@yzena.com>2021-07-30 15:53:04 -0600
committerGavin Howard <gavin@yzena.com>2021-07-30 15:53:04 -0600
commit55282f5bbca8ae5ad829fb158c9ae34a89ca7e73 (patch)
tree606b7ae01306566dd27befa86ef3a78dab35a729
parent5751614b71f8c9267907f9410d37a40db29c1d02 (diff)
downloadbc-55282f5bbca8ae5ad829fb158c9ae34a89ca7e73.tar.gz
Move a file
Signed-off-by: Gavin Howard <gavin@yzena.com>
-rw-r--r--Makefile.in10
-rw-r--r--manuals/development.md11
-rw-r--r--scripts/bitfuncgen.c (renamed from scripts/bitgen.c)0
3 files changed, 11 insertions, 10 deletions
diff --git a/Makefile.in b/Makefile.in
index 125fd972..c3a41854 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -155,8 +155,8 @@ SCRIPTS = ./scripts
MINISTAT = ministat
MINISTAT_EXEC = $(SCRIPTS)/$(MINISTAT)
-BITGEN = bitgen
-BITGEN_EXEC = $(SCRIPTS)/$(BITGEN)
+BITFUNCGEN = bitfuncgen
+BITFUNCGEN_EXEC = $(SCRIPTS)/$(BITFUNCGEN)
INSTALL = $(SCRIPTS)/exec-install.sh
SAFE_INSTALL = $(SCRIPTS)/safe-install.sh
@@ -247,8 +247,8 @@ headers: %%HEADERS%%
$(MINISTAT):
$(HOSTCC) $(HOSTCFLAGS) -lm -o $(MINISTAT_EXEC) scripts/ministat.c
-$(BITGEN):
- $(HOSTCC) $(HOSTCFLAGS) -lm -o $(BITGEN_EXEC) scripts/bitgen.c
+$(BITFUNCGEN):
+ $(HOSTCC) $(HOSTCFLAGS) -lm -o $(BITFUNCGEN_EXEC) scripts/bitfuncgen.c
help:
@printf 'available targets:\n'
@@ -551,7 +551,7 @@ clean_tests: clean clean_config clean_coverage
@$(RM) -f tags .gdbbreakpoints .gdb_history .gdbsetup
@$(RM) -f cscope.*
@$(RM) -f bc.old
- @$(RM) -f $(BITGEN_EXEC)
+ @$(RM) -f $(BITFUNCGEN_EXEC)
install_locales:
%%INSTALL_LOCALES%%
diff --git a/manuals/development.md b/manuals/development.md
index b0367554..f5eca786 100644
--- a/manuals/development.md
+++ b/manuals/development.md
@@ -1108,15 +1108,16 @@ A script making it easy to run benchmarks and to run the executable produced by
For more information, see the [Benchmarks][144] section.
-#### `bitgen.c`
+#### `bitfuncgen.c`
A source file for an executable to generate tests for `bc`'s bitwise functions
-in [`gen/lib2.bc`][26]. The executable is `scripts/bitgen`, and it is built with
-`make bitgen`. It produces the test on `stdout` and the expected results on
-`stderr`. This means that to generat tests, use the following invokation:
+in [`gen/lib2.bc`][26]. The executable is `scripts/bitfuncgen`, and it is built
+with `make bitfuncgen`. It produces the test on `stdout` and the expected
+results on `stderr`. This means that to generat tests, use the following
+invokation:
```
-scripts/bitgen > tests/bc/bitfuncs.txt 2> tests/bc/bitfuncs_results.txt
+scripts/bitfuncgen > tests/bc/bitfuncs.txt 2> tests/bc/bitfuncs_results.txt
```
It calls `abort()` if it runs into an error.
diff --git a/scripts/bitgen.c b/scripts/bitfuncgen.c
index 8fae531b..8fae531b 100644
--- a/scripts/bitgen.c
+++ b/scripts/bitfuncgen.c