Changeset 6943a987 for src/libcfa


Ignore:
Timestamp:
Aug 29, 2016, 10:33:05 AM (9 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
5e644d3e
Parents:
79841be (diff), 413ad05 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
src/libcfa
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/libcfa/Makefile.am

    r79841be r6943a987  
    1111## Created On       : Sun May 31 08:54:01 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Thu Aug 11 15:36:32 2016
    14 ## Update Count     : 198
     13## Last Modified On : Fri Aug 26 12:03:37 2016
     14## Update Count     : 199
    1515###############################################################################
    1616
     
    5656CC = ${abs_top_srcdir}/src/driver/cfa
    5757
    58 headers = limits stdlib math iostream fstream iterator rational # containers/vector
     58headers = limits stdlib math iostream fstream iterator rational containers/vector
    5959libobjs = ${headers:=.o}
    6060
  • TabularUnified src/libcfa/Makefile.in

    r79841be r6943a987  
    8989libcfa_a_AR = $(AR) $(ARFLAGS)
    9090libcfa_a_LIBADD =
     91am__dirstamp = $(am__leading_dot)dirstamp
    9192am__objects_1 = limits.$(OBJEXT) stdlib.$(OBJEXT) math.$(OBJEXT) \
    9293        iostream.$(OBJEXT) fstream.$(OBJEXT) iterator.$(OBJEXT) \
    93         rational.$(OBJEXT)
     94        rational.$(OBJEXT) containers/vector.$(OBJEXT)
    9495am_libcfa_a_OBJECTS = libcfa-prelude.$(OBJEXT) $(am__objects_1)
    9596libcfa_a_OBJECTS = $(am_libcfa_a_OBJECTS)
     
    233234cfalib_DATA = builtins.cf extras.cf prelude.cf
    234235MAINTAINERCLEANFILES = builtins.cf extras.cf ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}}
    235 headers = limits stdlib math iostream fstream iterator rational # containers/vector
     236headers = limits stdlib math iostream fstream iterator rational containers/vector
    236237libobjs = ${headers:=.o}
    237238libcfa_a_SOURCES = libcfa-prelude.c ${headers:=.c}
     
    303304clean-libLIBRARIES:
    304305        -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
     306containers/$(am__dirstamp):
     307        @$(MKDIR_P) containers
     308        @: > containers/$(am__dirstamp)
     309containers/$(DEPDIR)/$(am__dirstamp):
     310        @$(MKDIR_P) containers/$(DEPDIR)
     311        @: > containers/$(DEPDIR)/$(am__dirstamp)
     312containers/vector.$(OBJEXT): containers/$(am__dirstamp) \
     313        containers/$(DEPDIR)/$(am__dirstamp)
    305314libcfa.a: $(libcfa_a_OBJECTS) $(libcfa_a_DEPENDENCIES) $(EXTRA_libcfa_a_DEPENDENCIES)
    306315        $(AM_V_at)-rm -f libcfa.a
     
    310319mostlyclean-compile:
    311320        -rm -f *.$(OBJEXT)
     321        -rm -f containers/vector.$(OBJEXT)
    312322
    313323distclean-compile:
     
    322332@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rational.Po@am__quote@
    323333@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stdlib.Po@am__quote@
     334@AMDEP_TRUE@@am__include@ @am__quote@containers/$(DEPDIR)/vector.Po@am__quote@
    324335
    325336.c.o:
     
    494505        -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
    495506        -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
     507        -rm -f containers/$(DEPDIR)/$(am__dirstamp)
     508        -rm -f containers/$(am__dirstamp)
    496509
    497510maintainer-clean-generic:
     
    504517
    505518distclean: distclean-am
    506         -rm -rf ./$(DEPDIR)
     519        -rm -rf ./$(DEPDIR) containers/$(DEPDIR)
    507520        -rm -f Makefile
    508521distclean-am: clean-am distclean-compile distclean-generic \
     
    550563
    551564maintainer-clean: maintainer-clean-am
    552         -rm -rf ./$(DEPDIR)
     565        -rm -rf ./$(DEPDIR) containers/$(DEPDIR)
    553566        -rm -f Makefile
    554567maintainer-clean-am: distclean-am maintainer-clean-generic \
  • TabularUnified src/libcfa/containers/vector

    r79841be r6943a987  
    1 // 
     1//
    22// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
    33//
    44// The contents of this file are covered under the licence agreement in the
    55// file "LICENCE" distributed with Cforall.
    6 // 
    7 // vector -- 
    8 // 
     6//
     7// vector --
     8//
    99// Author           : Thierry Delisle
    1010// Created On       : Tue Jul  5 18:00:07 2016
     
    1212// Last Modified On : Tue Jul  5 18:01:35 2016
    1313// Update Count     : 2
    14 // 
     14//
    1515
    1616#pragma once
     
    2828        void ctor(allocator_t* const);
    2929        void dtor(allocator_t* const);
    30         void realloc(allocator_t* const, size_t);
     30        void realloc_storage(allocator_t* const, size_t);
    3131        T* data(allocator_t* const);
    3232};
     
    6464static inline void reserve(vector(T, allocator_t) *const this, size_t size)
    6565{
    66         realloc(&this->storage, this->size+1);
     66        realloc_storage(&this->storage, this->size+1);
    6767}
    6868
     
    146146
    147147forall(otype T)
    148 void realloc(heap_allocator(T) *const this, size_t size);
     148void realloc_storage(heap_allocator(T) *const this, size_t size);
    149149
    150150forall(otype T)
  • TabularUnified src/libcfa/containers/vector.c

    r79841be r6943a987  
    1 // 
     1//
    22// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
    33//
    44// The contents of this file are covered under the licence agreement in the
    55// file "LICENCE" distributed with Cforall.
    6 // 
    7 // vector.c -- 
    8 // 
     6//
     7// vector.c --
     8//
    99// Author           : Thierry Delisle
    1010// Created On       : Tue Jul  5 18:07:52 2016
     
    1212// Last Modified On : Tue Jul  5 18:08:31 2016
    1313// Update Count     : 2
    14 // 
     14//
    1515
    16 #include <containers/vector> 
     16#include <containers/vector>
    1717
    1818#include <stdlib>
     
    3939void push_back(vector(T, allocator_t) *const this, T value)
    4040{
    41         realloc(&this->storage, this->size+1);
     41        realloc_storage(&this->storage, this->size+1);
    4242        data(&this->storage)[this->size] = value;
    4343        this->size++;
     
    7777
    7878forall(otype T)
    79 inline void realloc(heap_allocator(T) *const this, size_t size)
     79inline void realloc_storage(heap_allocator(T) *const this, size_t size)
    8080{
    8181        enum { GROWTH_RATE = 2 };
Note: See TracChangeset for help on using the changeset viewer.