@@ -43,7 +43,7 @@ static int matches_prefix(char *line, const char *prefix, int len)
4343 * @param ctx Error context.
4444 * @return t_parse_result Result code.
4545 */
46- static t_parse_result dispatch_objects (char * line , t_scene * scene ,
46+ static t_parse_result dispatch_object (char * line , t_scene * scene ,
4747 t_error_context * ctx )
4848{
4949 if (matches_prefix (line , "sp" , 2 ))
@@ -77,7 +77,8 @@ static t_parse_result dispatch_objects(char *line, t_scene *scene,
7777 * @param ctx Error context.
7878 * @return t_parse_result Result code or -1 for objects.
7979 */
80- static int dispatch_elements (char * line , t_scene * scene , t_error_context * ctx )
80+ static int dispatch_scene_element (char * line , t_scene * scene ,
81+ t_error_context * ctx )
8182{
8283 if (matches_prefix (line , "A" , 1 ))
8384 {
@@ -105,16 +106,16 @@ static int dispatch_elements(char *line, t_scene *scene, t_error_context *ctx)
105106 * @param ctx Error context for reporting.
106107 * @return t_parse_result PARSE_OK or error code.
107108 */
108- t_parse_result dispatch_element (char * line , t_scene * scene ,
109+ t_parse_result dispatch_line (char * line , t_scene * scene ,
109110 t_error_context * ctx )
110111{
111112 int result ;
112113
113114 line = (char * )skip_whitespace (line );
114115 if (* line == '\0' || * line == '\n' || * line == '#' )
115116 return (PARSE_OK );
116- result = dispatch_elements (line , scene , ctx );
117+ result = dispatch_scene_element (line , scene , ctx );
117118 if (result >= 0 )
118119 return ((t_parse_result )result );
119- return (dispatch_objects (line , scene , ctx ));
120+ return (dispatch_object (line , scene , ctx ));
120121}
0 commit comments