
/* ###--------------------------------------------------------------### */
/* 									*/
/* file		: syf_beh_addberin.c					*/
/* date		: Aug 24 1992						*/
/* version	: v102							*/
/* authors	: Pirouz BAZARGAN SABET					*/
/* content	: contains a specific function used to create a		*/
/*		  behaviour data structure				*/
/*									*/
/* ###--------------------------------------------------------------### */

#include MUT_H 
#include LOG_H 
#include BEH_H 

/* ###--------------------------------------------------------------### */
/* function	: syf_beh_addberin						*/
/* description	: create a BERIN structure at the top the list		*/
/* called func.	: namealloc, mbkalloc					*/
/* ###--------------------------------------------------------------### */

struct syf_berin *syf_beh_addberin (lastberin, name)

struct syf_berin *lastberin;	/* pointer on the last berin structure	*/
char         *name;		/* signal's name			*/

  {
  struct syf_berin *ptrin;

  name         = namealloc (name);

  ptrin        = (struct syf_berin *) mbkalloc (sizeof(struct syf_berin));
  ptrin->NAME  = name;
  ptrin->NEXT  = lastberin;

  return (ptrin);
  }
