mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: return cylinder from cylinder_start() in parser
Most callers of this function accessed the newly generated cylinder immediately after calling this function. Thus, for convenience, return the added cylinder. This avoids a number of verbose expressions. On the flip side, cylinder_start() now has to be cast to function returning void in a the "nesting" function table. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
7c9f46acd2
commit
8df3705152
7 changed files with 15 additions and 20 deletions
|
|
@ -101,7 +101,7 @@ void trip_start(struct parser_state *state);
|
|||
void trip_end(struct parser_state *state);
|
||||
void picture_start(struct parser_state *state);
|
||||
void picture_end(struct parser_state *state);
|
||||
void cylinder_start(struct parser_state *state);
|
||||
cylinder_t *cylinder_start(struct parser_state *state);
|
||||
void cylinder_end(struct parser_state *state);
|
||||
void ws_start(struct parser_state *state);
|
||||
void ws_end(struct parser_state *state);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue