Ignore:
Timestamp:
May 6, 2024, 1:16:32 PM (6 weeks ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
ac16a55
Parents:
123e8b9
Message:

formatting changes to programs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mike_brooks_MMath/programs/lst-issues-intrusive.run.c

    r123e8b9 r1379c96e  
    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.