MCPcopy Create free account
hub / github.com/boostorg/build / alloc_state

Function alloc_state

src/engine/make1.c:119–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117
118
119static state * alloc_state()
120{
121 if ( state_freelist )
122 {
123 state * const pState = state_freelist;
124 state_freelist = pState->prev;
125 memset( pState, 0, sizeof( state ) );
126 return pState;
127 }
128 return (state *)BJAM_MALLOC( sizeof( state ) );
129}
130
131
132static void free_state( state * const pState )

Callers 1

push_stateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected