- Timestamp:
- Mar 10, 2024, 11:21:18 AM (7 months ago)
- Branches:
- master
- Children:
- 9398177
- Parents:
- b64d0f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/programs/lst-issues-multi-static.run.c
rb64d0f4 r5546f50b 19 19 20 20 struct req { 21 22 23 21 int pri, rqr; 22 LIST_ENTRY(req) by_pri; 23 LIST_ENTRY(req) by_rqr; 24 24 }; 25 25 … … 37 37 38 38 struct req 39 40 41 42 43 44 39 r42a = {1, 42}, 40 r42b = {2, 42}, 41 r17a = {2, 17}, 42 r17b = {3, 17}, 43 r17c = {4, 17}, 44 r99a = {3, 99}; 45 45 46 46 LIST_INSERT_HEAD(&reqs_pri_global, &r17c, by_pri); … … 68 68 struct req *cur; 69 69 LIST_FOREACH(cur, &reqs_pri_global, by_pri) 70 70 printf("{%d %d} ", cur->pri, cur->rqr); 71 71 printf("| "); 72 72 LIST_FOREACH(cur, &reqs_rqr_42, by_rqr) 73 73 printf("{%d %d} ", cur->pri, cur->rqr); 74 74 printf("| "); 75 75 LIST_FOREACH(cur, &reqs_rqr_17, by_rqr) 76 76 printf("{%d %d} ", cur->pri, cur->rqr); 77 77 printf("| "); 78 78 LIST_FOREACH(cur, &reqs_rqr_99, by_rqr) 79 79 printf("{%d %d} ", cur->pri, cur->rqr); 80 80 printf("\n"); 81 81
Note: See TracChangeset
for help on using the changeset viewer.