Changeset acafba4 for libcfa/src/bits
- Timestamp:
- Sep 5, 2023, 1:20:16 PM (15 months ago)
- Branches:
- master
- Children:
- f54e6ec
- Parents:
- 0ac8d07
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/bits/collections.hfa
r0ac8d07 racafba4 79 79 //----------------------------------------------------------------------------- 80 80 #ifdef __cforall 81 forall(T YPE&)82 #define T TYPE83 #else 84 #define Tvoid81 forall(T &) 82 #define __elem_t T 83 #else 84 #define __elem_t void 85 85 #endif 86 86 struct __stack { 87 T* top;87 __elem_t * top; 88 88 }; 89 #undef T89 #undef __elem_t 90 90 91 91 #ifdef __cforall … … 127 127 //----------------------------------------------------------------------------- 128 128 #ifdef __cforall 129 forall(T YPE&)130 #define T TYPE131 #else 132 #define Tvoid129 forall(T &) 130 #define __elem_t T 131 #else 132 #define __elem_t void 133 133 #endif 134 134 struct __queue { 135 T* head;136 T** tail;135 __elem_t * head; 136 __elem_t ** tail; 137 137 }; 138 #undef T138 #undef __elem_t 139 139 140 140 #ifdef __cforall … … 217 217 //----------------------------------------------------------------------------- 218 218 #ifdef __cforall 219 forall(T YPE&)220 #define T TYPE221 #define __getter_t * [ T * & next, T * & prev] ( T& )219 forall(T &) 220 #define __elem_t T 221 #define __getter_t * [__elem_t * & next, __elem_t * & prev] ( __elem_t & ) 222 222 #else 223 223 typedef void (*__generit_c_getter_t)(); 224 #define Tvoid224 #define __elem_t void 225 225 #define __getter_t __generit_c_getter_t 226 226 #endif 227 227 struct __dllist { 228 T* head;228 __elem_t * head; 229 229 __getter_t __get; 230 230 }; 231 #undef T231 #undef __elem_t 232 232 #undef __getter_t 233 233
Note: See TracChangeset
for help on using the changeset viewer.