Changeset 0b6c1c9 for doc/theses/mike_brooks_MMath/programs
- Timestamp:
- May 7, 2024, 7:04:31 PM (23 months ago)
- Branches:
- master, stuck-waitfor-destruct
- 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. - Location:
- doc/theses/mike_brooks_MMath/programs
- Files:
-
- 4 edited
-
lst-issues-intrusive.run.c (modified) (3 diffs)
-
lst-issues-multi-static.run.c (modified) (3 diffs)
-
lst-issues-wrapped-byref.run.cpp (modified) (1 diff)
-
lst-issues-wrapped-emplaced.run.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/programs/lst-issues-intrusive.run.c
rc333ed2 r0b6c1c9 22 22 struct req { 23 23 int pri, rqr; 24 LIST_ENTRY(req) x;24 LIST_ENTRY(req) d; 25 25 }; 26 27 26 LIST_HEAD(reql, req); 28 27 … … 30 29 LIST_INIT(&reqs); 31 30 32 struct req 33 r1 = {1, 42}, 34 r2 = {2, 42}; 31 struct req r1 = {1, 42}, r2 = {2, 42}; 35 32 36 LIST_INSERT_HEAD( 37 &reqs, &r2, x); 38 LIST_INSERT_HEAD( 39 &reqs, &r1, x); 33 LIST_INSERT_HEAD(&reqs, &r2, d); 34 LIST_INSERT_HEAD(&reqs, &r1, d); 40 35 41 36 … … 50 45 51 46 struct req *cur; 52 LIST_FOREACH(cur, &reqs, x)47 LIST_FOREACH(cur, &reqs, d) 53 48 printf("{%d %d} ", cur->pri, cur->rqr); 54 49 printf("\n"); -
doc/theses/mike_brooks_MMath/programs/lst-issues-multi-static.run.c
rc333ed2 r0b6c1c9 26 26 LIST_HEAD(reql, req); 27 27 28 struct reql reqs_pri _global;28 struct reql reqs_pri; 29 29 struct reql reqs_rqr_42; 30 30 struct reql reqs_rqr_17; 31 31 struct reql reqs_rqr_99; 32 32 33 LIST_INIT(&reqs_pri _global);33 LIST_INIT(&reqs_pri); 34 34 LIST_INIT(&reqs_rqr_42); 35 35 LIST_INIT(&reqs_rqr_17); … … 44 44 r99a = {3, 99}; 45 45 46 LIST_INSERT_HEAD(&reqs_pri _global, &r17c, by_pri);47 LIST_INSERT_HEAD(&reqs_pri _global, &r99a, by_pri);48 LIST_INSERT_HEAD(&reqs_pri _global, &r17b, by_pri);49 LIST_INSERT_HEAD(&reqs_pri _global, &r42b, by_pri);50 LIST_INSERT_HEAD(&reqs_pri _global, &r17a, by_pri);51 LIST_INSERT_HEAD(&reqs_pri _global, &r42a, by_pri);46 LIST_INSERT_HEAD(&reqs_pri, &r17c, by_pri); 47 LIST_INSERT_HEAD(&reqs_pri, &r99a, by_pri); 48 LIST_INSERT_HEAD(&reqs_pri, &r17b, by_pri); 49 LIST_INSERT_HEAD(&reqs_pri, &r42b, by_pri); 50 LIST_INSERT_HEAD(&reqs_pri, &r17a, by_pri); 51 LIST_INSERT_HEAD(&reqs_pri, &r42a, by_pri); 52 52 53 53 LIST_INSERT_HEAD(&reqs_rqr_42, &r42b, by_rqr); … … 67 67 68 68 struct req *cur; 69 LIST_FOREACH(cur, &reqs_pri _global, by_pri)69 LIST_FOREACH(cur, &reqs_pri, by_pri) 70 70 printf("{%d %d} ", cur->pri, cur->rqr); 71 71 printf("| "); -
doc/theses/mike_brooks_MMath/programs/lst-issues-wrapped-byref.run.cpp
rc333ed2 r0b6c1c9 22 22 struct req { 23 23 int pri, rqr; 24 24 25 }; 25 26 26 27 28 list<req *> reqs; 27 29 28 30 29 list<req*> reqs;31 req r1 = {1, 42}, r2 = {2, 42}; 30 32 31 32 req 33 r1 = {1, 42}, 34 r2 = {2, 42}; 35 36 reqs.push_front( 37 &r2); 38 reqs.push_front( 39 &r1); 33 reqs.push_front(&r2); 34 reqs.push_front(&r1); 40 35 41 36 -
doc/theses/mike_brooks_MMath/programs/lst-issues-wrapped-emplaced.run.cpp
rc333ed2 r0b6c1c9 22 22 struct req { 23 23 int pri, rqr; 24 24 25 }; 25 26 27 26 28 27 … … 32 31 33 32 34 35 36 reqs.emplace_front( 37 2, 42); 38 reqs.emplace_front( 39 1, 42); 33 reqs.emplace_front(2, 42); 34 reqs.emplace_front(1, 42); 40 35 41 36
Note:
See TracChangeset
for help on using the changeset viewer.