Changeset 1e12f07 for libcfa/src


Ignore:
Timestamp:
Aug 4, 2024, 8:45:57 AM (14 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
503c350, b797fe36
Parents:
d39d8a4 (diff), 2dd5c6d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/enum.hfa

    rd39d8a4 r1e12f07  
    6666                return l;
    6767        }
     68
     69        E ?+=? ( E & l, one_t ) {
     70                l = succ(l);
     71                return l;
     72        }
     73       
     74        E ?-=? ( E & l, one_t ) {
     75                l = pred(l);
     76                return l;
     77        }
     78
     79        E ?+=? ( E & l, int i ) {
     80                int pos = posn(l) + i;
     81                return fromInt(pos);
     82        }
     83
     84        E ?-=? ( E & l, int i ) {
     85                int pos = posn(l) - i;
     86                return fromInt(pos);
     87        }
    6888       
    6989        E ?++( E & l ) {
Note: See TracChangeset for help on using the changeset viewer.