From 25285037f61340316c61985e6cb88b0b4aafa78c Mon Sep 17 00:00:00 2001 From: Dustin Lang Date: Thu, 16 Jul 2020 16:13:50 -0400 Subject: [PATCH] continue removing os-features.c --- __init__.py | 2 +- util/Makefile | 38 +------------------------------------- util/bl-sort.c | 2 ++ util/ioutils.c | 1 - util/os-features.c | 11 ----------- 5 files changed, 4 insertions(+), 50 deletions(-) delete mode 100644 util/os-features.c diff --git a/__init__.py b/__init__.py index 7e7718d28..f80ca0049 100644 --- a/__init__.py +++ b/__init__.py @@ -1 +1 @@ -__version__ = '0.81-12-g16dcc7e7' +__version__ = '0.81-13-g1d112038' diff --git a/util/Makefile b/util/Makefile index 958411023..faf37de18 100644 --- a/util/Makefile +++ b/util/Makefile @@ -32,7 +32,7 @@ SO=$(SHAREDLIB_SUFFIX) ANBASE_OBJ := starutil.o mathutil.o bl-sort.o bl.o bt.o healpix-utils.o \ healpix.o permutedsort.o ioutils.o fileutils.o md5.o \ - os-features.o an-endian.o errors.o an-opts.o tic.o log.o datalog.o \ + an-endian.o errors.o an-opts.o tic.o log.o datalog.o \ sparsematrix.o coadd.o convolve-image.o resample.o \ intmap.o histogram.o histogram2d.o @@ -263,38 +263,6 @@ $(INCLUDE_DIR)/os-features-config.h: os-features-test.c -rm -f os-features.log -rm -f $@ $@.tmp @echo - @echo "Testing canonicalize_file_name..." - @echo "Testing canonicalize_file_name..." >> os-features.log - (($(CC) -o os-features-test-canonicalize \ - $(CPPFLAGS) $(CFLAGS) -DTEST_CANONICALIZE_FILE_NAME $^ $(LDFLAGS) >> os-features.log && \ - ./os-features-test-canonicalize >> os-features.log && \ - echo "#define NEED_CANONICALIZE_FILE_NAME 0") \ - || echo "#define NEED_CANONICALIZE_FILE_NAME 1") >> $@.tmp - @echo - @echo "Testing declare qsort_r..." - @echo "Testing declare qsort_r..." >> os-features.log - (($(CC) -o os-features-test-declare-qsort \ - $(CPPFLAGS) $(CFLAGS) -DTEST_DECLARE_QSORT_R $^ $(LDFLAGS) >> os-features.log && \ - ./os-features-test-declare-qsort >> os-features.log && \ - echo "#define NEED_DECLARE_QSORT_R 1") \ - || echo "#define NEED_DECLARE_QSORT_R 0") >> $@.tmp - @echo - @echo "Testing qsort_r..." - @echo "Testing qsort_r..." >> os-features.log - (($(CC) -o os-features-test-qsort \ - $(CPPFLAGS) $(CFLAGS) -DTEST_QSORT_R $^ $(LDFLAGS) >> os-features.log && \ - ./os-features-test-qsort >> os-features.log && \ - echo "#define NEED_QSORT_R 0") \ - || echo "#define NEED_QSORT_R 1") >> $@.tmp - @echo - @echo "Testing swap qsort_r..." - @echo "Testing swap qsort_r..." >> os-features.log - (($(CC) -Werror -o os-features-test-swap-qsort \ - $(CPPFLAGS) $(CFLAGS) -DTEST_SWAP_QSORT_R $^ $(LDFLAGS) >> os-features.log && \ - ./os-features-test-swap-qsort >> os-features.log && \ - echo "#define NEED_SWAP_QSORT_R 0") \ - || echo "#define NEED_SWAP_QSORT_R 1") >> $@.tmp - @echo @echo "Testing netpbm..." @echo " NETPBM_INC is $(NETPBM_INC_ORIG)" @echo " NETPBM_LIB is $(NETPBM_LIB_ORIG)" @@ -363,11 +331,7 @@ reconfig: config: $(INCLUDE_DIR)/os-features-config.h makefile.os-features .PHONY: config -ALL_OBJ += os-features.o ALL_TARGETS := os-features-test.o \ - os-features-test-canonicalize \ - os-features-test-declare-qsort \ - os-features-test-qsort \ os-features-test-netpbm \ os-features-test-netpbm-make \ $(INCLUDE_DIR)/os-features-config.h diff --git a/util/bl-sort.c b/util/bl-sort.c index 701236606..0f7fb6f25 100644 --- a/util/bl-sort.c +++ b/util/bl-sort.c @@ -3,6 +3,8 @@ # Licensed under a 3-clause BSD style license - see LICENSE */ +#include "ioutils.h" // for QSORT_R + #include "bl-sort.h" // for qsort_r #include "os-features.h" diff --git a/util/ioutils.c b/util/ioutils.c index 38375097f..59f458aa8 100644 --- a/util/ioutils.c +++ b/util/ioutils.c @@ -27,7 +27,6 @@ #include "os-features.h" #include "ioutils.h" -//#include "os-features.h" #include "errors.h" #include "log.h" diff --git a/util/os-features.c b/util/os-features.c deleted file mode 100644 index 673a6bee2..000000000 --- a/util/os-features.c +++ /dev/null @@ -1,11 +0,0 @@ -/* - # This file is part of the Astrometry.net suite. - # Licensed under a 3-clause BSD style license - see LICENSE - */ -#include -#include -#include -#include - -#include "os-features.h" -