MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / uivector_push_back

Function uivector_push_back

src/lodepng.cpp:178–183  ·  view source on GitHub ↗

returns 1 if success, 0 if failure ==> nothing done*/

Source from the content-addressed store, hash-verified

176#ifdef LODEPNG_COMPILE_ENCODER
177/*returns 1 if success, 0 if failure ==> nothing done*/
178static unsigned uivector_push_back(uivector* p, unsigned c)
179{
180 if(!uivector_resize(p, p->size + 1)) return 0;
181 p->data[p->size - 1] = c;
182 return 1;
183}
184
185/*copy q to p, returns 1 if success, 0 if failure ==> nothing done*/
186static unsigned uivector_copy(uivector* p, const uivector* q)

Callers 5

add_coinsFunction · 0.85
append_symbol_coinsFunction · 0.85
addLengthDistanceFunction · 0.85
encodeLZ77Function · 0.85
deflateDynamicFunction · 0.85

Calls 1

uivector_resizeFunction · 0.85

Tested by

no test coverage detected