* Set the formatter callback for a handle. The callback should * return a newly formatting contents of a formatting instruction, * meaning the bits inside the braces. */
| 2541 | * meaning the bits inside the braces. |
| 2542 | */ |
| 2543 | void |
| 2544 | xo_set_formatter (xo_handle_t *xop, xo_formatter_t func, |
| 2545 | xo_checkpointer_t cfunc) |
| 2546 | { |
| 2547 | xop = xo_default(xop); |
| 2548 | |
| 2549 | xop->xo_formatter = func; |
| 2550 | xop->xo_checkpointer = cfunc; |
| 2551 | } |
| 2552 | |
| 2553 | /** |
| 2554 | * Clear one or more flags for a given handle (or default if handle is NULL). |