Пример #1
0
/*
* Funkcia inicializuje retazec pre token.
*/
 static void init_string(int *i){
 	//memfree(PomUk);
 	token.attribute = (char *) memmalloc((*i)+2);
 	if(token.attribute == NULL){
 		//memfree(token.attribute);
 		scaner_error = INTERN_ERR;
 	} else{
 		token.attribute[(*i)] = '\0';
 	}
 }
Пример #2
0
mod3_start()
{
  setup=0;
  nsites = 0;
  sites = (struct Site *) memmalloc(4000*sizeof *sites);

  tfl=NULL;
  hfl=NULL;
  sfl=NULL;
  efl=NULL;
  
  triples=NULL;
}