Skip to content

Commit

Permalink
continue removing os-features.c
Browse files Browse the repository at this point in the history
  • Loading branch information
dstndstn committed Jul 16, 2020
1 parent 1d11203 commit 2528503
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 50 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.81-12-g16dcc7e7'
__version__ = '0.81-13-g1d112038'
38 changes: 1 addition & 37 deletions util/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)"
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions util/bl-sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion util/ioutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

#include "os-features.h"
#include "ioutils.h"
//#include "os-features.h"
#include "errors.h"
#include "log.h"

Expand Down
11 changes: 0 additions & 11 deletions util/os-features.c

This file was deleted.

0 comments on commit 2528503

Please sign in to comment.