MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / push

Function push

src/common/classes/alloc.cpp:207–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205
206 template <class T>
207 void push(T** where, T* e)
208 {
209 // set element `e' pointers
210 e->prev = where;
211 e->next = *where;
212
213 // make next after `e' element (if present) point to it
214 if (e->next)
215 e->next->prev = &(e->next);
216
217 // make previous element point to `e'
218 *(e->prev) = e;
219 }
220
221 template <class T>
222 void remove(T* e)

Callers 7

appendMethod · 0.70
MemMediumHunkMethod · 0.70
MemBigHunkMethod · 0.70
putElementMethod · 0.70
releaseRawMethod · 0.70
appendMethod · 0.70
pushMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected