1cs_render(3) cs/cs.h cs_render(3)
2
3
4
6 cs_render - render a CS parse tree
7
9 #include <cs/cs.h>
10
11
12 NEOERR *cs_render (CSPARSE *parse, void *ctx, CSOUTFUNC cb);
13
14
15
16
18 parse - the CSPARSE structure containing the CS parse tree
19 that will be evaluated
20 ctx - user data that will be passed as the first variable to
21 the CSOUTFUNC.
22 cb - a CSOUTFUNC called to render the output. A CSOUTFUNC is
23 defined as:
24 typedef NEOERR* (*CSOUTFUNC)(void *, char *);
25
26
28 cs_render will evaluate a CS parse tree, calling the CSOUTFUNC passed
29 to it for output. Note that calling cs_render multiple times on the
30 same parse tree may or may not render the same output as the set state‐
31 ment has side-effects, it updates the HDF data used by the render.
32 Typically, you will call one of the cs_parse functions before calling
33 this function.
34
35
37 None
38
39
41 cs_dump(3), cs_destroy(3), cs_render(3), cs_register_esc_strfunc(3),
42 cs_arg_parsev(3), cs_register_fileload(3), cs_init(3), cs_register_str‐
43 func(3), cs_arg_parse(3), cs_parse_string(3), cs_parse_file(3), =[22m(3),
44 cs_register_function
45
46
47
48ClearSilver 12 July 2007 cs_render(3)