Ignore:
Timestamp:
May 25, 2017, 12:55:12 PM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
58daf53, 84d58c5, cc38669
Parents:
bc37a83 (diff), e883a4b (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 plg2:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/containers/maybe

    rbc37a83 ra4943d8  
    1818#define MAYBE_H
    1919
     20#include <stdbool.h>
    2021
    2122// DO NOT USE DIRECTLY!
    2223forall(otype T)
    2324struct maybe {
    24     _Bool has_value;
     25    bool has_value;
    2526    T value;
    2627};
     
    4041
    4142forall(otype T)
    42 _Bool ?!=?(result(T, E) this, zero_t);
     43bool ?!=?(maybe(T) this, zero_t);
    4344
    4445forall(otype T)
     
    4950
    5051forall(otype T)
    51 _Bool has_value(maybe(T) * this);
     52bool has_value(maybe(T) * this);
    5253
    5354forall(otype T)
Note: See TracChangeset for help on using the changeset viewer.