/* ** sh_destroy.c for 42sh in /home/seblu/devel/c++/tiger ** ** Made by Seblu ** Login ** ** Started on Fri Apr 7 00:19:04 2006 Seblu ** Last update Sun Jul 30 03:16:45 2006 Seblu */ #include #include #include "shell.h" /*! ** Destroy 42SH structure. ** ** @param sh structure to destroy ** */ void shell_destroy(ts_shell *sh) { assert(sh); /* var_delete(&sh->vars); */ /* func_clean(&sh->funcs); */ /* free(sh->opt); */ free(sh); }