Changeset 50be6444 for libcfa


Ignore:
Timestamp:
Dec 9, 2024, 10:51:32 AM (9 days ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
283fbdd
Parents:
18a7dcf1
Message:

Follow up reformatting to builtins. Just a few extra and missing spaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/prelude/builtins.c

    r18a7dcf1 r50be6444  
    1919// members in user-defined functions. Note: needs to occur early, because it is used to generate destructor calls during
    2020// code generation
    21 forall( T &)
     21forall( T & )
    2222struct __Destructor {
    2323        T * object;
     
    2626
    2727// Defined destructor in the case that non-generated code wants to use __Destructor.
    28 forall( T &)
     28forall( T & )
    2929static inline void ^?{}( __Destructor(T) & x ) {
    3030        if ( x.object && x.dtor ) {
     
    3535// Easy interface into __Destructor's destructor for easy codegen purposes.
    3636extern "C" {
    37         forall( T &)
     37        forall( T & )
    3838        static inline void __destroy_Destructor( __Destructor(T) * dtor ) {
    3939                ^(*dtor){};
     
    5151void abort( const char fmt[], ... ) __attribute__ (( format( printf, 1, 2 ), __nothrow__, __leaf__, __noreturn__ ));
    5252
    53 forall( T &)
     53forall( T & )
    5454static inline T & identity( T & i ) {
    5555        return i;
     
    6262
    6363static inline void  ?{}( generator$ & this ) { ((int&)this) = 0; }
    64 static inline void ^?{}( generator$ &) {}
     64static inline void ^?{}( generator$ & ) {}
    6565
    6666forall( T & )
     
    248248        }
    249249
    250         E ?+=? ( E & l, one_t ) {
     250        E ?+=?( E & l, one_t ) {
    251251                int pos = posn( l );
    252252                l = fromInt_unsafe( pos + 1 );
     
    254254        }
    255255
    256         E ?-=? ( E & l, one_t ) {
     256        E ?-=?( E & l, one_t ) {
    257257                int pos = posn( l );
    258258                l = fromInt_unsafe( pos - 1 );
     
    260260        }
    261261
    262         E ?+=? ( E & l, int i ) {
     262        E ?+=?( E & l, int i ) {
    263263                int pos = posn( l );
    264264                l = fromInt_unsafe( pos + i );
     
    266266        }
    267267
    268         E ?-=? ( E & l, int i ) {
     268        E ?-=?( E & l, int i ) {
    269269                int pos = posn( l );
    270270                l = fromInt_unsafe( pos - i );
Note: See TracChangeset for help on using the changeset viewer.