Changeset 1a40870


Ignore:
Timestamp:
May 21, 2025, 10:05:15 PM (4 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
cecb260
Parents:
99fc978
Message:

formatting

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/prelude/builtins.c

    r99fc978 r1a40870  
    1010// Created On       : Fri Jul 21 16:21:03 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Dec 12 18:22:26 2024
    13 // Update Count     : 150
     12// Last Modified On : Wed May 21 18:40:14 2025
     13// Update Count     : 151
    1414//
    1515
     
    6161};
    6262
    63 inline void  ?{}( generator$ & this ) { ((int&)this) = 0; }
     63inline void  ?{}( generator$ & this ) { ((int &)this) = 0; }
    6464inline void ^?{}( generator$ & ) {}
    6565
     
    8181//     forall( T ...
    8282// can be "simplified" to
    83 //     forall( T& | is_value(T) ...
     83//     forall( T & | is_value(T) ...
    8484forall( T * )
    8585trait is_value {
    86         void ?{}( T&, T );
    87         T ?=?( T&, T );
    88         void ^?{}( T& );
     86        void ?{}( T &, T );
     87        T ?=?( T &, T );
     88        void ^?{}( T & );
    8989};
    9090
     
    9494// assignment, but is not an lvalue." Hence, return a value not a reference.
    9595inline {
    96         forall( T& | is_value(T) | { T ?+=?( T &, one_t ); } )
     96        forall( T & | is_value(T) | { T ?+=?( T &, one_t ); } )
    9797        T ++?( T & x ) { return x += 1; }
    9898
    99         forall( T& | is_value(T) | { T ?+=?( T &, one_t ); } )
     99        forall( T & | is_value(T) | { T ?+=?( T &, one_t ); } )
    100100        T ?++( T & x ) { T tmp = x; x += 1; return tmp; }
    101101
    102         forall( T& | is_value(T) | { T ?-=?( T &, one_t ); } )
     102        forall( T & | is_value(T) | { T ?-=?( T &, one_t ); } )
    103103        T --?( T & x ) { return x -= 1; }
    104104
    105         forall( T& | is_value(T) | { T ?-=?( T &, one_t ); } )
     105        forall( T & | is_value(T) | { T ?-=?( T &, one_t ); } )
    106106        T ?--( T & x ) { T tmp = x; x -= 1; return tmp; }
    107107
    108         forall( T& | is_value(T) | { int ?!=?( T, zero_t ); } )
     108        forall( T & | is_value(T) | { int ?!=?( T, zero_t ); } )
    109109        int !?( T & x ) { return !( x != 0 ); }
    110110} // distribution
  • src/Parser/parser.yy

    r99fc978 r1a40870  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed May 21 11:25:13 2025
    13 // Update Count     : 7295
     12// Last Modified On : Wed May 21 18:44:44 2025
     13// Update Count     : 7296
    1414//
    1515
     
    155155void distInl( DeclarationNode * declaration ) {
    156156        // distribute INLINE across all declarations
    157         for ( DeclarationNode *decl = declaration ; decl != nullptr ; decl = decl->next ) {
     157        for ( DeclarationNode * decl = declaration ; decl != nullptr ; decl = decl->next ) {
    158158                decl->set_inLine( true );
    159159        } // for
Note: See TracChangeset for help on using the changeset viewer.