Ignore:
Timestamp:
May 12, 2016, 10:14:36 AM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, 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:
bf5a70da
Parents:
273080f
Message:

added some basic tests and modified compilation to support them

File:
1 edited

Legend:

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

    r273080f rf1e42c1  
    8484
    8585//Logical operators
    86 int gcpointer_equal(gcpointer_t* this, gcpointer_t* rhs)
     86bool gcpointer_equal(gcpointer_t* this, gcpointer_t* rhs)
    8787{
    8888        return this->ptr == rhs->ptr;
    8989}
    9090
    91 int gcpointer_not_equal(gcpointer_t* this, gcpointer_t* rhs)
     91bool gcpointer_not_equal(gcpointer_t* this, gcpointer_t* rhs)
    9292{
    9393        return this->ptr != rhs->ptr;
    9494}
    9595
    96 int gcpointer_null(gcpointer_t* this)
     96bool gcpointer_null(gcpointer_t* this)
    9797{
    9898        return this->ptr == (intptr_t)NULL;
Note: See TracChangeset for help on using the changeset viewer.