cs_render(3)
β¨ cs_render(3) β¨
okay bestie, sit down, hydrate, because today we're rendering a CS parse tree and honestly it's giving main character energy. π
this one lives in cs/cs.h (section 3, iykyk) so go ahead and get comfy with it.
π NAME π
cs_render β render a CS parse tree π¦
πΈ SYNOPSIS πΈ
#include <cs/cs.h>
NEOERR *cs_render (CSPARSE *parse, void *ctx, CSOUTFUNC cb);
π ARGUMENTS π
parseβ theCSPARSEstructure holding the CS parse tree that's gonna get evaluated. that's the whole point, bestie. πctxβ user data, and it gets passed as the first variable to theCSOUTFUNC. it's your lil passenger, do what you want with it.cbβ aCSOUTFUNCthat gets called to render the output. and aCSOUTFUNCis defined as, verbatim, no edits:
typedef NEOERR* (*CSOUTFUNC)(void *, char *);
β¨ DESCRIPTION β¨
so cs_render evaluates a CS parse tree and calls the CSOUTFUNC you handed it for output. that's the vibe. π
β οΈ listen up though: callingcs_rendermultiple times on the same parse tree may or may not render the same output, because thesetstatement has side-effects β it updates the HDF data used by the render. so it's not a "same input, same output" situation, bestie. no cap. π
typically you'll call one of the cs_parse functions before you call this one. order matters, periodt. π«Ά
π§ RETURN VALUE π§
None. that's it. that's the whole section. π
π₯ SEE ALSO π₯
cs_dump(3), cs_destroy(3), cs_render(3), cs_register_esc_strfunc(3), cs_arg_parsev(3), cs_register_fileload(3), cs_init(3), cs_register_strfunc(3), cs_arg_parse(3), cs_parse_string(3), cs_parse_file(3), =(3), cs_register_function
and that's the tea π this lil page came to you from ClearSilver, dated 12 July 2007 β yeah, she's an elder icon but she still slays π stay rendering, bestie β¨π
π¦ where this page comes from
- debian bookworm: clearsilver-dev 0.10.5-4+b5
- debian trixie: clearsilver-dev 0.10.5-6+b1
- epel 10: clearsilver 0.10.5-80.el10_2 Β· Apache-1.1
- epel 9: clearsilver 0.10.5-74.el9 Β· Apache-1.1
- fedora 43: clearsilver 0.10.5-80.fc43 Β· Apache-1.1
- fedora 44: clearsilver 0.10.5-82.fc44 Β· Apache-1.1
- ubuntu jammy: clearsilver-dev 0.10.5-4build3
- ubuntu noble: clearsilver-dev 0.10.5-4build7
- ubuntu questing: clearsilver-dev 0.10.5-6build1
- ubuntu resolute: clearsilver-dev 0.10.5-7
- ubuntu stonking: clearsilver-dev 0.10.5-7build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms