예제 #1
0
allocate_storage()
{
    allocate_itemsets();
    shiftset = NEW2(nsyms, short);
    redset = NEW2(nrules + 1, short);
    state_set = NEW2(nitems, core *);
}
예제 #2
0
파일: lr0.c 프로젝트: JX7P/JXWebGen
static void allocate_storage (void)
{
    allocate_itemsets ();
    shiftset  = NEW2 (nsyms, Value_t);
    redset    = NEW2 (nrules + 1, Value_t);
    state_set = NEW2 (nitems, core *);
}
예제 #3
0
void
allocate_storage()
{
  allocate_itemsets();

  shiftset = NEW2(nsyms, short);
  redset = NEW2(nrules + 1, short);
  state_table = NEW2(STATE_TABLE_SIZE, core *);
}
예제 #4
0
파일: LR0.c 프로젝트: a170785/buildroot
static void
allocate_storage (void)
{
  allocate_itemsets ();

  shiftset = xnmalloc (nsyms, sizeof *shiftset);
  redset = xnmalloc (nrules, sizeof *redset);
  state_hash_new ();
  shift_symbol = xnmalloc (nsyms, sizeof *shift_symbol);
}