/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* c_matching.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: alao +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/10/15 13:27:14 by alao #+# #+# */ /* Updated: 2017/02/03 12:06:23 by alao ### ########.fr */ /* */ /* ************************************************************************** */ #include "completion.h" /* ** Start the parsing for the autocompletion. If a space is found in the command ** it will call c_seek_files() function. If not, it assume it will be a binary ** so the function c_seek_binary() is called instead. ** Once that done, the printing function should occur. ** NOT YET IMPLEMENTED */ int c_matching(t_data *s, t_comp *c) { if (!(ft_strchr(c->rcmd, ' '))) c_seek_binary(s, c); else c_seek_files(s, c); if (c->lst) // { c_sizing(c); // DG("Seek Binary end [%d]", c->lst->prev->id); // test(c); // } // else // DG("Seek Binary end No result"); return (0); }