Ignore:
Timestamp:
Apr 17, 2025, 10:25:00 PM (8 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
9dd1dd6
Parents:
15eebd4
Message:

proofread list chapter

Location:
doc/theses/mike_brooks_MMath/programs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mike_brooks_MMath/programs/lst-features-intro.run.cfa

    r15eebd4 r4740281  
    2020struct req {
    2121        int pri, rqr;
    22         inline dlink(req);
     22        inline dlink(req);              // containment inheritance, fields hoisted into structure
    2323};
    2424
    2525dlist(req) reqs;
    2626
    27 req
    28         r1 = {1, 42},
    29         r2 = {2, 42};
     27req r1 = {1, 42}, r2 = {2, 42};
    3028
    3129insert_first(reqs, r2);
    3230insert_first(reqs, r1);
     31
     32
    3333
    3434
  • doc/theses/mike_brooks_MMath/programs/lst-features-multidir.run.cfa

    r15eebd4 r4740281  
    2828
    2929
     30
     31
    3032// need to spice this case; can't forward declare nested struct
    3133P9_EMBEDDED_INFUNC(req, req.by_pri)
     
    3335P9_EMBEDDED_INFUNC(req.by_pri, dlink(req))
    3436P9_EMBEDDED_INFUNC(req.by_rqr, dlink(req))
     37
     38
    3539
    3640
Note: See TracChangeset for help on using the changeset viewer.