components/prboom/p_setup.c
//
// Subroutine to add a line number to a block list
// It simply returns if the line is already in the block
//
Subroutine to add a line number to a block list
It simply returns if the line is already in the block
Subroutine to add a line number to a block list It simply returns if the line is already in the block
static void AddBlockLine
(
  linelist_t **lists,
  int *count,
  int *done,
  int blockno,
  long lineno
)
{
  linelist_t *l;
  if (done[blockno])
    return;
  l = malloc(sizeof(linelist_t));
  l->num = lineno;
  l->next = lists[blockno];
  lists[blockno] = l;
  count[blockno]++;
  done[blockno] = 1;
}
static void AddBlockLine ( linelist_t * * lists , int * count , int * done , int blockno , long lineno ) { linelist_t * l ; if ( done [ blockno ] ) return ; l = malloc ( sizeof ( linelist_t ) ) ; l -> num = lineno ; l -> next = lists [ blockno ] ; lists [ blockno ] = l ; count [ blockno ] ++ ; done [ blockno ] = 1 ; }
Subroutine to add a line number to a block list
It simply returns if the line is already in the block
Subroutine to add a line number to a block list It simply returns if the line is already in the block