- Timestamp:
- Jul 25, 2025, 3:29:48 PM (3 months ago)
- Branches:
- master
- Children:
- 1eea589f, 29c6a7d
- Parents:
- 7640ff5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/benchmarks/list/fx-lq-list.h
r7640ff5 r7806f91 2 2 #include <assert.h> 3 3 #include <stddef.h> 4 #include <stdbool.h> 4 5 5 6 #define HEADNAME_(S) S ## Head … … 15 16 #define BFX_INSERT_BEFORE(S, lst, item, refIter) ({LIST_INSERT_BEFORE(refIter, &item, xx); &item;}) 16 17 #define BFX_INSERT_AFTER(S, lst, item, refIter) ({LIST_INSERT_AFTER(refIter, &item, xx); &item;}) 17 #define BFX_REMOVE_FIRST(S, lst) LIST_REMOVE( LIST_FIRST( &lst ), xx)18 #define BFX_REMOVE_FIRST(S, lst) ({ S * first = LIST_FIRST( &lst ); LIST_REMOVE( first, xx ); }) 18 19 #define BFX_REMOVE_LAST(S, lst) assert(false&&"unimplemented REMOVE_LAST on lq-list") 19 20 #define BFX_REMOVE_HERE(S, lst, refIter) LIST_REMOVE( refIter, xx )
Note:
See TracChangeset
for help on using the changeset viewer.