Changes in libcfa/src/bits/containers.hfa [2233ad4:ffe2fad]
- File:
-
- 1 edited
-
libcfa/src/bits/containers.hfa (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/bits/containers.hfa
r2233ad4 rffe2fad 9 9 // Author : Thierry Delisle 10 10 // Created On : Tue Oct 31 16:38:50 2017 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Wed Jun 26 08:52:20 201913 // Update Count : 411 // Last Modified By : -- 12 // Last Modified On : -- 13 // Update Count : 0 14 14 15 15 #pragma once … … 78 78 //----------------------------------------------------------------------------- 79 79 #ifdef __cforall 80 forall(dtype TYPE )80 forall(dtype TYPE | is_node(TYPE)) 81 81 #define T TYPE 82 82 #else … … 95 95 96 96 #ifdef __cforall 97 forall(dtype T )97 forall(dtype T | is_node(T)) 98 98 static inline void ?{}( __stack(T) & this ) { 99 99 (this.top){ NULL }; … … 116 116 return top; 117 117 } 118 119 forall(dtype T | is_node(T))120 static inline int ?!=?( const __stack(T) & this, __attribute__((unused)) zero_t zero ) {121 return this.top != 0;122 }123 118 #endif 124 119 … … 127 122 //----------------------------------------------------------------------------- 128 123 #ifdef __cforall 129 forall(dtype TYPE )124 forall(dtype TYPE | is_node(TYPE)) 130 125 #define T TYPE 131 126 #else … … 146 141 #ifdef __cforall 147 142 148 forall(dtype T )143 forall(dtype T | is_node(T)) 149 144 static inline void ?{}( __queue(T) & this ) with( this ) { 150 145 head{ NULL }; … … 191 186 192 187 forall(dtype T | is_node(T)) 193 static inline int ?!=?( const__queue(T) & this, __attribute__((unused)) zero_t zero ) {188 static inline bool ?!=?( __queue(T) & this, __attribute__((unused)) zero_t zero ) { 194 189 return this.head != 0; 195 190 } … … 273 268 274 269 forall(dtype T | sized(T)) 275 static inline int ?!=?( const__dllist(T) & this, __attribute__((unused)) zero_t zero ) {270 static inline bool ?!=?( __dllist(T) & this, __attribute__((unused)) zero_t zero ) { 276 271 return this.head != 0; 277 272 }
Note:
See TracChangeset
for help on using the changeset viewer.