Changeset 53a8e68


Ignore:
Timestamp:
Jul 21, 2017, 3:21:44 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
bff227f
Parents:
cb43451
Message:

Update several more library files for references

Location:
src/libcfa
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/coroutine.c

    rcb43451 r53a8e68  
    7878
    7979void ^?{}(coStack_t& this) {
    80         if ( ! this->userStack ) {
     80        if ( ! this.userStack ) {
    8181                LIB_DEBUG_DO(
    8282                        if ( mprotect( this.storage, pageSize, PROT_READ | PROT_WRITE ) == -1 ) {
  • src/libcfa/concurrency/kernel.c

    rcb43451 r53a8e68  
    169169                LIB_DEBUG_PRINT_SAFE("Kernel : core %p signaling termination\n", &this);
    170170                this.is_terminated = true;
    171                 P( this.terminated );
     171                P( &this.terminated );
    172172                pthread_join( this.kernel_thread, NULL );
    173173        }
     
    468468        // (the coroutine that contains the processing control flow)
    469469        systemProcessor = (system_proc_t *)&systemProcessorStorage;
    470         systemProcessor{ systemCluster, (processorCtx_t *)&systemProcessorCtxStorage };
     470        (*systemProcessor){ systemCluster, (processorCtx_t *)&systemProcessorCtxStorage };
    471471
    472472        // Add the main thread to the ready queue
  • src/libcfa/concurrency/monitor.c

    rcb43451 r53a8e68  
    203203        __condition_criterion_t criteria[count];
    204204        for(int i = 0; i < count; i++) {
    205                 (&criteria[i]){ this->monitors[i], &waiter };
     205                (criteria[i]){ this->monitors[i], &waiter };
    206206                // LIB_DEBUG_PRINT_SAFE( "Criterion %p\n", &criteria[i] );
    207207        }
     
    315315        __condition_criterion_t criteria[count];
    316316        for(int i = 0; i < count; i++) {
    317                 (&criteria[i]){ this->monitors[i], &waiter };
     317                (criteria[i]){ this->monitors[i], &waiter };
    318318                // LIB_DEBUG_PRINT_SAFE( "Criterion %p\n", &criteria[i] );
    319319                push( &criteria[i].target->signal_stack, &criteria[i] );
  • src/libcfa/concurrency/thread.c

    rcb43451 r53a8e68  
    3636        (this.cor){};
    3737        this.cor.name = "Anonymous Coroutine";
    38         this.mon.owner = this;
     38        this.mon.owner = &this;
    3939        this.mon.recursion = 1;
    4040        this.next = NULL;
  • src/libcfa/rational

    rcb43451 r53a8e68  
    4040        T ?/?( T, T );
    4141        T ?%?( T, T );
    42         T ?/=?( T *, T );
     42        T ?/=?( T &, T );
    4343        T abs( T );
    4444};
  • src/libcfa/rational.c

    rcb43451 r53a8e68  
    5959void ?{}( Rational(RationalImpl) & r, RationalImpl n, RationalImpl d ) {
    6060        RationalImpl t = simplify( &n, &d );                            // simplify
    61         r->numerator = n / t;
    62         r->denominator = d / t;
     61        r.numerator = n / t;
     62        r.denominator = d / t;
    6363} // rational
    6464
     
    7878forall( otype RationalImpl | arithmetic( RationalImpl ) )
    7979[ RationalImpl, RationalImpl ] ?=?( & [ RationalImpl, RationalImpl ] dest, Rational(RationalImpl) src ) {
    80         return *dest = src.[ numerator, denominator ];
     80        return dest = src.[ numerator, denominator ];
    8181}
    8282
Note: See TracChangeset for help on using the changeset viewer.