Ignore:
Timestamp:
Apr 21, 2016, 4:54:33 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
8a74081
Parents:
8c8b614
Message:

1 error left

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/examples/gc_no_raii/src/vector.c

    r8c8b614 r16cfd8c  
    11#include "vector.h"
     2
     3#include <stdlib>
    24
    35//------------------------------------------------------------------------------
    46//Initialization
    57forall(otype T, otype allocator_t | allocator_c(T, allocator_t))
    6 void vector_ctor(vector(T, allocator_t) *const this)
     8void ctor(vector(T, allocator_t) *const this)
    79{
    810        ctor(&this->storage);
     
    1315void dtor(vector(T, allocator_t) *const this)
    1416{
     17        clear(this);
    1518        dtor(&this->storage);
    1619}
     
    5558void dtor(heap_allocator(T) *const this)
    5659{
    57         free((void*)this->storage);
     60        free(this->storage);
    5861}
    5962
Note: See TracChangeset for help on using the changeset viewer.