returns 1 if success, 0 if failure ==> nothing done*/
| 176 | #ifdef LODEPNG_COMPILE_ENCODER |
| 177 | /*returns 1 if success, 0 if failure ==> nothing done*/ |
| 178 | static 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*/ |
| 186 | static unsigned uivector_copy(uivector* p, const uivector* q) |
no test coverage detected