Beispiel #1
0
t_interprete		*init_interpretation(void)
{
	t_interprete *env;

	if (!(env = (t_interprete *)malloc(sizeof(t_interprete))))
		return (NULL);
	init_do_interprete_tab(env);
	init_interprete_value_stop(env);
	init_standard_delimiters(env);
	init_spaces(env);
	init_should_len_tab(env);
	init_extract_content_tab(env);
	env->argv_pool_size = 0;
	return (env);
}
Beispiel #2
0
t_space			*get_spaces(t_args *args, t_file *files)
{
	t_file	*tmp;
	t_space	*space;

	if (!(space = init_spaces()))
		return (NULL);
	tmp = files;
	while (tmp)
	{
		if (!(args->a == 0 && tmp->name[0] == '.'))
		{
			quick_check(space, tmp);
			get_spaces_sys(space, tmp);
		}
		tmp = tmp->next;
	}
	return (space);
}