Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/papers/general/evaluation/cfa-stack.h

    r4c80a75 r29db723  
    11#pragma once
    22
    3 forall( otype T ) {
    4         struct node;
    5         struct stack {
    6                 node(T) * head;
    7         };
     3forall( otype T ) struct stack_node;
     4forall( otype T ) struct stack {
     5        stack_node(T) * head;
     6};
    87
    9         void ?{}( stack(T) & s, stack(T) t );
    10         void clear( stack(T) & s );
    11         void ?{}( stack(T) & s );
    12         void ^?{}( stack(T) & s);
     8forall( otype T ) void ?{}( stack(T) & s );
     9forall( otype T ) void ?{}( stack(T) & s, stack(T) t );
     10forall( otype T ) stack(T) ?=?( stack(T) & s, stack(T) t );
     11forall( otype T ) void ^?{}( stack(T) & s);
    1312
    14         stack(T) ?=?( stack(T) & s, stack(T) t );
    15         _Bool empty( const stack(T) & s );
    16         void push( stack(T) & s, T value );
    17         T pop( stack(T) & s );
    18 }
     13forall( otype T ) _Bool empty( const stack(T) & s );
     14forall( otype T ) void push( stack(T) & s, T value );
     15forall( otype T ) T pop( stack(T) & s );
     16forall( otype T ) void clear( stack(T) & s );
Note: See TracChangeset for help on using the changeset viewer.