Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/prelude/prelude-gen.cc

    r0c81320 ree06e41b  
    1010// Created On       : Sat Feb 16 08:44:58 2019
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Mar 19 08:19:35 2019
    13 // Update Count     : 28
     12// Last Modified On : Mon Feb 18 09:47:33 2019
     13// Update Count     : 22
    1414//
    1515
     
    208208                cout << "void ?{} (" << type << " &);" << endl;
    209209                cout << "void ?{} (" << type << " &, " << type << ");" << endl;
    210                 cout << type << " ?=? (" << type << " &, " << type << ")";
     210                cout << type << "  ?=? (" << type << " &, " << type << ")";
    211211                if ( do_volatile ) {
    212                         cout << ", ?=?(volatile " << type << " &, " << type << ")";
     212                        cout << ",  ?=?(volatile " << type << " &, " << type << ")";
    213213                }
    214214                cout << ";" << endl;
     
    217217
    218218        otype("zero_t");
    219         cout << endl;
    220219        otype("one_t");
    221         cout << endl;
    222220        otype("_Bool", true);
    223221        cout << endl;
     
    227225                cout << "void ?{}(" << type.name << " &, " << type.name << ");" << endl;
    228226                cout << "void ?{}(" << type.name << " &, zero_t);" << endl;
    229                 cout << "void ?{}(" << type.name << " &, one_t);" << endl;
    230227                cout << "void ^?{}(" << type.name << " &);" << endl;
    231228                cout << endl;
     
    290287        cout << "forall(ftype FT) FT *                  ?=?( FT *          &, zero_t );" << endl;
    291288        cout << "forall(ftype FT) FT *                  ?=?( FT * volatile &, zero_t );" << endl;
    292         cout << "forall(ftype FT) void  ?{}( FT *          & );" << endl;
    293         cout << "forall(ftype FT) void  ^?{}( FT *         & );" << endl;
     289        cout << "forall( ftype FT ) void        ?{}( FT *          & );" << endl;
     290        cout << "forall( ftype FT ) void        ^?{}( FT *         & );" << endl;
    294291        cout << endl;
    295292
     
    298295        cout << "///////////////////////" << endl;
    299296
    300         cout << "forall(ftype FT) FT *                  ?=?( FT *&, FT * );" << endl;
    301         cout << "forall(ftype FT) FT *                  ?=?( FT * volatile &, FT * );" << endl;
    302         cout << "forall(ftype FT) int !?( FT * );" << endl;
    303         cout << "forall(ftype FT) signed int ?==?( FT *, FT * );" << endl;
    304         cout << "forall(ftype FT) signed int ?!=?( FT *, FT * );" << endl;
    305         cout << "forall(ftype FT) FT &           *?( FT * );" << endl;
     297        cout << "forall( ftype FT ) FT *                        ?=?( FT *&, FT * );" << endl;
     298        cout << "forall( ftype FT ) FT *                        ?=?( FT * volatile &, FT * );" << endl;
     299        cout << "forall( ftype FT ) int !?( FT * );" << endl;
     300        cout << "forall( ftype FT ) signed int ?==?( FT *, FT * );" << endl;
     301        cout << "forall( ftype FT ) signed int ?!=?( FT *, FT * );" << endl;
     302        cout << "forall( ftype FT ) FT &                 *?( FT * );" << endl;
     303
    306304
    307305        for (auto op : pointerOperators) {
Note: See TracChangeset for help on using the changeset viewer.