
/* ###--------------------------------------------------------------### */
/* 									*/
/* file		: pat_addpacom.c					*/
/* date		: Aug 17 1993						*/
/* version	: v104							*/
/* authors	: Pirouz BAZARGAN SABET					*/
/* content	: low-level pat function				*/
/*									*/
/* ###--------------------------------------------------------------### */

#include MUT_H
#include PAT_H

/* ###--------------------------------------------------------------### */
/* function	: pat_addpacom						*/
/* description	: create an empty PACOM (comment) structure at the top	*/
/*		  of a list						*/
/* called func.	: mbkalloc						*/
/* ###--------------------------------------------------------------### */

struct pacom *pat_addpacom (lastpacom, text, position)

struct pacom   *lastpacom;	/* pointer on the last pacom structure	*/
char           *text;		/* text of the comment			*/
unsigned short  position;	/* # of statements. since last comment	*/

  {
  struct pacom *ptcom;

  ptcom           = (struct pacom *) mbkalloc (sizeof(struct pacom));
  ptcom->TEXT     = text;
  ptcom->POSITION = position;

  ptcom->NEXT     = lastpacom;

  return (ptcom);
  }
