- Timestamp:
- Apr 10, 2023, 9:25:28 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- a1b41e3
- Parents:
- 372b6d3 (diff), a085470 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/benchmarks/list/observation.c
r372b6d3 r6adeb5f 24 24 } 25 25 26 #ifdef BOBS_SHOW_ADDRESSES 27 #define SNAP \ 28 void * userAddr = bobs_getCurrentLoc(); \ 29 int userValue = bobs_getCurrentVal(); 30 #define SHOW(pfx, sfx) \ 31 printf(" " pfx "%d@%p" sfx, userValue, userAddr); 32 #else 33 #define SNAP \ 34 int userValue = bobs_getCurrentVal(); 35 #define SHOW(pfx, sfx) \ 36 printf(" " pfx "%d" sfx, userValue); 37 #endif 26 38 27 39 static void printPreds(unsigned int leash) { … … 32 44 return; 33 45 } 34 int userValue = bobs_getCurrent();46 SNAP 35 47 bobs_movePrev(); 36 48 printPreds(leash - 1); 37 printf(" %d", userValue);49 SHOW("", "") 38 50 } 39 51 static void printSuccs(unsigned int leash) { … … 44 56 return; 45 57 } 46 int userValue = bobs_getCurrent();47 printf(" %d", userValue);58 SNAP 59 SHOW("", "") 48 60 bobs_moveNext(); 49 61 printSuccs(leash - 1); … … 59 71 60 72 bobs_seek(here); 61 int userValue = bobs_getCurrent();62 printf(" <%d>", userValue);73 SNAP 74 SHOW("<", ">") 63 75 64 76 bobs_moveNext();
Note:
See TracChangeset
for help on using the changeset viewer.