returns 1 if success, 0 if failure ==> nothing done*/
| 279 | #if (defined(LODEPNG_COMPILE_PNG) && defined(LODEPNG_COMPILE_ANCILLARY_CHUNKS)) || defined(LODEPNG_COMPILE_ENCODER) |
| 280 | /*returns 1 if success, 0 if failure ==> nothing done*/ |
| 281 | static unsigned ucvector_push_back(ucvector* p, unsigned char c) |
| 282 | { |
| 283 | if(!ucvector_resize(p, p->size + 1)) return 0; |
| 284 | p->data[p->size - 1] = c; |
| 285 | return 1; |
| 286 | } |
| 287 | #endif /*defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER)*/ |
| 288 | |
| 289 |
no test coverage detected