[BACK]Return to bcode.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / dc

Diff for /src/usr.bin/dc/bcode.c between version 1.34 and 1.35

version 1.34, 2006/01/19 20:06:55 version 1.35, 2007/09/02 23:50:04
Line 239 
Line 239 
         bmachine.reg_array_size = bmachine.extended_regs ?          bmachine.reg_array_size = bmachine.extended_regs ?
             REG_ARRAY_SIZE_BIG : REG_ARRAY_SIZE_SMALL;              REG_ARRAY_SIZE_BIG : REG_ARRAY_SIZE_SMALL;
   
         bmachine.reg = malloc(bmachine.reg_array_size *          bmachine.reg = calloc(bmachine.reg_array_size,
             sizeof(bmachine.reg[0]));              sizeof(bmachine.reg[0]));
         if (bmachine.reg == NULL)          if (bmachine.reg == NULL)
                 err(1, NULL);                  err(1, NULL);
Line 255 
Line 255 
                 stack_init(&bmachine.reg[i]);                  stack_init(&bmachine.reg[i]);
   
         bmachine.readstack_sz = READSTACK_SIZE;          bmachine.readstack_sz = READSTACK_SIZE;
         bmachine.readstack = malloc(sizeof(struct source) *          bmachine.readstack = calloc(sizeof(struct source),
             bmachine.readstack_sz);              bmachine.readstack_sz);
         if (bmachine.readstack == NULL)          if (bmachine.readstack == NULL)
                 err(1, NULL);                  err(1, NULL);

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35