diff options
Diffstat (limited to 'src/ft_e_lcom.c')
-rw-r--r-- | src/ft_e_lcom.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/ft_e_lcom.c b/src/ft_e_lcom.c index 6b01dc4..57998cb 100644 --- a/src/ft_e_lcom.c +++ b/src/ft_e_lcom.c @@ -39,13 +39,17 @@ void ptr = msh->curr; while (ptr != NULL) { - if ((bu_id = ft_get_builtin_id(ptr->com, msh)) < FT_BUILTINS_COUNT) + /* TODO: FIX THAT */ + if (ptr->com[0]) { - ft_e_builtin(ptr, bu_id, msh); - } - else - { - ft_e_extern(ptr, msh); + if ((bu_id = ft_get_builtin_id(ptr->com, msh)) < FT_BUILTINS_COUNT) + { + ft_e_builtin(ptr, bu_id, msh); + } + else + { + ft_e_extern(ptr, msh); + } } ptr = ptr->next; } |