| 318 | } |
| 319 | |
| 320 | void |
| 321 | sprintfTileElementHalf( |
| 322 | Kstring *str, |
| 323 | const Tile *tile, |
| 324 | unsigned int row, |
| 325 | unsigned int col, |
| 326 | TileElementHalf half) |
| 327 | { |
| 328 | int len; |
| 329 | |
| 330 | assert(isComplexType(tile->dtype)); |
| 331 | |
| 332 | // sprintf the full element and the drop an unneded half |
| 333 | sprintfTileElement(str, tile, row, col, 1); |
| 334 | len = (int)strlen(str->buf); |
| 335 | if (half == TE_HALF_HIGH) { |
| 336 | str->buf[len - 2] = str->buf[len - 1]; |
| 337 | } |
| 338 | str->buf[len - 1] = '\0'; |
| 339 | } |
| 340 | |
| 341 | int |
| 342 | forEachTile(Kstring *kstr, unsigned int row, unsigned int col, |
no test coverage detected