Branch: Tag:

1999-10-26

1999-10-26 17:52:52 by Fredrik Noring <noring@nocrew.org>

Added 0b/0B syntax and %b operator for binary numbers.

Rev: src/lexer.h:1.9
Rev: src/modules/Gmp/mpz_glue.c:1.58
Rev: src/opcodes.c:1.52
Rev: src/stralloc.c:1.72
Rev: src/testsuite.in:1.209

25:   #include "security.h"   #include "bignum.h"    - RCSID("$Id: opcodes.c,v 1.51 1999/10/25 10:18:46 hubbe Exp $"); + RCSID("$Id: opcodes.c,v 1.52 1999/10/26 17:52:48 noring Exp $");      void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind)   {
903:    }    break;    +  case 'b':    case 'o':    case 'd':    case 'x':
920:       switch(match[cnt])    { +  case 'b': base = 2; break;    case 'o': base = 8; break;    case 'd': base = 10; break;    case 'x': base = 16; break;