[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.36 and 1.37

version 1.36, 2008/04/26 20:13:22 version 1.37, 2008/04/28 06:35:09
Line 822 
Line 822 
 {  {
         int             idx;          int             idx;
         struct stack    *stack;          struct stack    *stack;
         struct value    *value, copy;          struct value    *value;
   
         idx = readreg();          idx = readreg();
         if (idx >= 0) {          if (idx >= 0) {
Line 832 
Line 832 
                         value = stack_pop(stack);                          value = stack_pop(stack);
                 }                  }
                 if (value != NULL)                  if (value != NULL)
                         push(stack_dup_value(value, &copy));                          push(value);
                 else                  else
                         warnx("stack register '%c' (0%o) is empty",                          warnx("stack register '%c' (0%o) is empty",
                             idx, idx);                              idx, idx);
Line 1550 
Line 1550 
         if (n == NULL)          if (n == NULL)
                 return;                  return;
         i = get_ulong(n);          i = get_ulong(n);
           free_number(n);
         if (i == BN_MASK2 || i == 0)          if (i == BN_MASK2 || i == 0)
                 warnx("Q command requires a number >= 1");                  warnx("Q command requires a number >= 1");
         else if (bmachine.readsp < i)          else if (bmachine.readsp < i)

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37