Changeset 705e612


Ignore:
Timestamp:
May 11, 2018, 11:12:56 AM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
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, with_gc
Children:
ade5272
Parents:
78af962
Message:

fixed containers for C compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/bits/containers.h

    r78af962 r705e612  
    193193        forall(dtype TYPE | sized(TYPE))
    194194        #define T TYPE
    195 #else
    196         #define T void
     195        #define __getter_t * [T * & next, T * & prev] ( T & )
     196#else
     197        typedef void (*__generit_c_getter_t)();
     198        #define T void
     199        #define __getter_t __generit_c_getter_t
    197200#endif
    198201struct __dllist {
    199202        T * head;
    200         * [T * & next, T * & prev] ( T & ) __get;
    201 };
    202 #undef T
     203        __getter_t __get;
     204};
     205#undef T
     206#undef __getter_t
    203207
    204208#ifdef __cforall
Note: See TracChangeset for help on using the changeset viewer.