Ignore:
Timestamp:
May 7, 2024, 7:04:31 PM (17 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
6d9aa79
Parents:
c333ed2 (diff), 083e637 (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
  • doc/theses/mike_brooks_MMath/programs/lst-issues-intrusive.run.c

    rc333ed2 r0b6c1c9  
    2222struct req {
    2323        int pri, rqr;
    24         LIST_ENTRY(req) x;
     24        LIST_ENTRY(req) d;
    2525};
    26 
    2726LIST_HEAD(reql, req);
    2827
     
    3029LIST_INIT(&reqs);
    3130
    32 struct req
    33         r1 = {1, 42},
    34         r2 = {2, 42};
     31struct req r1 = {1, 42}, r2 = {2, 42};
    3532
    36 LIST_INSERT_HEAD(
    37         &reqs, &r2, x);
    38 LIST_INSERT_HEAD(
    39         &reqs, &r1, x);
     33LIST_INSERT_HEAD(&reqs, &r2, d);
     34LIST_INSERT_HEAD(&reqs, &r1, d);
    4035
    4136
     
    5045
    5146struct req *cur;
    52 LIST_FOREACH(cur, &reqs, x)
     47LIST_FOREACH(cur, &reqs, d)
    5348        printf("{%d %d} ", cur->pri, cur->rqr);
    5449printf("\n");
Note: See TracChangeset for help on using the changeset viewer.