Changes in / [48a8127:122cac7]


Ignore:
Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/ScopedMap.h

    r48a8127 r122cac7  
    9090                                return next_valid();
    9191                        }
    92                         iterator operator++ (int) { iterator tmp = *this; ++(*this); return tmp; }
     92                        iterator& operator++ (int) { iterator tmp = *this; ++(*this); return tmp; }
    9393
    9494                        iterator& operator-- () {
     
    101101                                return prev_valid();
    102102                        }
    103                         iterator operator-- (int) { iterator tmp = *this; --(*this); return tmp; }
     103                        iterator& operator-- (int) { iterator tmp = *this; --(*this); return tmp; }
    104104
    105105                        bool operator== (const iterator &that) {
     
    166166                                return next_valid();
    167167                        }
    168                         const_iterator operator++ (int) { const_iterator tmp = *this; ++(*this); return tmp; }
     168                        const_iterator& operator++ (int) { const_iterator tmp = *this; ++(*this); return tmp; }
    169169
    170170                        const_iterator& operator-- () {
     
    177177                                return prev_valid();
    178178                        }
    179                         const_iterator operator-- (int) { const_iterator tmp = *this; --(*this); return tmp; }
     179                        const_iterator& operator-- (int) { const_iterator tmp = *this; --(*this); return tmp; }
    180180
    181181                        bool operator== (const const_iterator &that) {
  • src/GenPoly/ScopedSet.h

    r48a8127 r122cac7  
    8787                                return next_valid();
    8888                        }
    89                         iterator operator++ (int) { iterator tmp = *this; ++(*this); return tmp; }
     89                        iterator& operator++ (int) { iterator tmp = *this; ++(*this); return tmp; }
    9090
    9191                        iterator& operator-- () {
     
    9898                                return prev_valid();
    9999                        }
    100                         iterator operator-- (int) { iterator tmp = *this; --(*this); return tmp; }
     100                        iterator& operator-- (int) { iterator tmp = *this; --(*this); return tmp; }
    101101
    102102                        bool operator== (const iterator &that) {
     
    163163                                return next_valid();
    164164                        }
    165                         const_iterator operator++ (int) { const_iterator tmp = *this; ++(*this); return tmp; }
     165                        const_iterator& operator++ (int) { const_iterator tmp = *this; ++(*this); return tmp; }
    166166
    167167                        const_iterator& operator-- () {
     
    174174                                return prev_valid();
    175175                        }
    176                         const_iterator operator-- (int) { const_iterator tmp = *this; --(*this); return tmp; }
     176                        const_iterator& operator-- (int) { const_iterator tmp = *this; --(*this); return tmp; }
    177177
    178178                        bool operator== (const const_iterator &that) {
  • src/tests/Makefile.am

    r48a8127 r122cac7  
    1919CC = @CFA_BINDIR@/cfa
    2020
    21 .PHONY : list
    22 EXTRA_PROGRAMS = fstream_test vector_test avl_test Constant0-1DP Constant0-1ND Constant0-1NDDP # build but do not install
    23 
     21noinst_PROGRAMS = fstream_test vector_test avl_test # build but do not install
    2422fstream_test_SOURCES = fstream_test.c
    2523vector_test_SOURCES = vector/vector_int.c vector/array.c vector/vector_test.c
    2624avl_test_SOURCES = avltree/avl_test.c avltree/avl0.c avltree/avl1.c avltree/avl2.c avltree/avl3.c avltree/avl4.c avltree/avl-private.c
    27 
    28 all-local :
    29         python test.py --all
    30 
    31 clean-local :
    32         -rm -f ${EXTRA_PROGRAMS}
    33 
    34 list :
    35         python test.py --list
    3625
    3726Constant0-1DP : Constant0-1.c
  • src/tests/Makefile.in

    r48a8127 r122cac7  
    1818######################## -*- Mode: Makefile-Automake -*- ######################
    1919###############################################################################
     20
    2021VPATH = @srcdir@
    2122pkgdatadir = $(datadir)/@PACKAGE@
     
    3536PRE_UNINSTALL = :
    3637POST_UNINSTALL = :
    37 EXTRA_PROGRAMS = fstream_test$(EXEEXT) vector_test$(EXEEXT) \
    38         avl_test$(EXEEXT) Constant0-1DP$(EXEEXT) \
    39         Constant0-1ND$(EXEEXT) Constant0-1NDDP$(EXEEXT)
     38noinst_PROGRAMS = fstream_test$(EXEEXT) vector_test$(EXEEXT) \
     39        avl_test$(EXEEXT)
    4040subdir = src/tests
    4141DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
     
    4848CONFIG_CLEAN_FILES =
    4949CONFIG_CLEAN_VPATH_FILES =
    50 Constant0_1DP_SOURCES = Constant0-1DP.c
    51 Constant0_1DP_OBJECTS = Constant0-1DP.$(OBJEXT)
    52 Constant0_1DP_LDADD = $(LDADD)
    53 Constant0_1ND_SOURCES = Constant0-1ND.c
    54 Constant0_1ND_OBJECTS = Constant0-1ND.$(OBJEXT)
    55 Constant0_1ND_LDADD = $(LDADD)
    56 Constant0_1NDDP_SOURCES = Constant0-1NDDP.c
    57 Constant0_1NDDP_OBJECTS = Constant0-1NDDP.$(OBJEXT)
    58 Constant0_1NDDP_LDADD = $(LDADD)
     50PROGRAMS = $(noinst_PROGRAMS)
    5951am_avl_test_OBJECTS = avl_test.$(OBJEXT) avl0.$(OBJEXT) avl1.$(OBJEXT) \
    6052        avl2.$(OBJEXT) avl3.$(OBJEXT) avl4.$(OBJEXT) \
     
    9284am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
    9385am__v_GEN_0 = @echo "  GEN   " $@;
    94 SOURCES = Constant0-1DP.c Constant0-1ND.c Constant0-1NDDP.c \
    95         $(avl_test_SOURCES) $(fstream_test_SOURCES) \
     86SOURCES = $(avl_test_SOURCES) $(fstream_test_SOURCES) \
    9687        $(vector_test_SOURCES)
    97 DIST_SOURCES = Constant0-1DP.c Constant0-1ND.c Constant0-1NDDP.c \
    98         $(avl_test_SOURCES) $(fstream_test_SOURCES) \
     88DIST_SOURCES = $(avl_test_SOURCES) $(fstream_test_SOURCES) \
    9989        $(vector_test_SOURCES)
    10090ETAGS = etags
     
    245235        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    246236$(am__aclocal_m4_deps):
     237
     238clean-noinstPROGRAMS:
     239        -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
    247240avl_test$(EXEEXT): $(avl_test_OBJECTS) $(avl_test_DEPENDENCIES) $(EXTRA_avl_test_DEPENDENCIES)
    248241        @rm -f avl_test$(EXEEXT)
     
    261254        -rm -f *.tab.c
    262255
    263 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Constant0-1DP.Po@am__quote@
    264 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Constant0-1ND.Po@am__quote@
    265 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Constant0-1NDDP.Po@am__quote@
    266256@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/array.Po@am__quote@
    267257@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avl-private.Po@am__quote@
     
    514504check-am: all-am
    515505check: check-am
    516 all-am: Makefile all-local
     506all-am: Makefile $(PROGRAMS)
    517507installdirs:
    518508install: install-am
     
    548538clean: clean-am
    549539
    550 clean-am: clean-generic clean-local mostlyclean-am
     540clean-am: clean-generic clean-noinstPROGRAMS mostlyclean-am
    551541
    552542distclean: distclean-am
     
    617607.MAKE: install-am install-strip
    618608
    619 .PHONY: CTAGS GTAGS all all-am all-local check check-am clean \
    620         clean-generic clean-local ctags distclean distclean-compile \
     609.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
     610        clean-noinstPROGRAMS ctags distclean distclean-compile \
    621611        distclean-generic distclean-tags distdir dvi dvi-am html \
    622612        html-am info info-am install install-am install-data \
     
    631621
    632622
    633 .PHONY : list
    634 
    635 all-local :
    636         python test.py --all
    637 
    638 clean-local :
    639         -rm -f ${EXTRA_PROGRAMS}
    640 
    641 list :
    642         python test.py --list
    643 
    644623Constant0-1DP : Constant0-1.c
    645624        ${CC} ${CFLAGS} -DDUPS ${<} -o ${@}
Note: See TracChangeset for help on using the changeset viewer.