Skip to content
shell_destroy.c 498 B
Newer Older
Seblu's avatar
Seblu committed
/*
** sh_destroy.c for 42sh in /home/seblu/devel/c++/tiger
**
** Made by Seblu
** Login   <seblu@epita.fr>
**
** Started on  Fri Apr  7 00:19:04 2006 Seblu
Seblu's avatar
Seblu committed
** Last update Sun Jul 16 20:30:02 2006 Seblu
Seblu's avatar
Seblu committed
*/

#include <stdlib.h>
Seblu's avatar
Seblu committed
#include <assert.h>
#include "shell.h"
Seblu's avatar
Seblu committed


/*!
** Destroy 42SH structure.
**
** @param sh structure to destroy
Seblu's avatar
Seblu committed
**
Seblu's avatar
Seblu committed
*/
Seblu's avatar
Seblu committed
void			shell_destroy(struct s_shell *sh)
Seblu's avatar
Seblu committed
{
  assert(sh);
Seblu's avatar
Seblu committed
/*   var_delete(&sh->vars); */
/*   func_clean(&sh->funcs); */
/*   free(sh->opt); */
Seblu's avatar
Seblu committed
  free(sh);
}