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

Function alloc_state

v2/engine/make1.c:118–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

push_stateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected