Branch: Tag:

2008-05-03

2008-05-03 15:29:26 by Martin Nilsson <mani@lysator.liu.se>

Put all illegal size shift fatals behind ifdef PIKE_DEBUG.

Rev: src/builtin.cmod:1.199
Rev: src/builtin_functions.c:1.660
Rev: src/cpp.c:1.169
Rev: src/encode.c:1.265
Rev: src/iterators.cmod:1.66
Rev: src/operators.c:1.231
Rev: src/preprocessor.h:1.93
Rev: src/program.c:1.683
Rev: src/sscanf.c:1.172
Rev: src/stralloc.c:1.217

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: program.c,v 1.682 2008/05/02 10:56:06 grubba Exp $ + || $Id: program.c,v 1.683 2008/05/03 15:29:25 nilsson Exp $   */      #include "global.h"
7449:    case 0: c->lex.current_lexer = yylex0; break;    case 1: c->lex.current_lexer = yylex1; break;    case 2: c->lex.current_lexer = yylex2; break; + #ifdef PIKE_DEBUG    default:    Pike_fatal("Program has bad shift %d!\n", c->prog->size_shift);    break; -  + #endif    }       c->lex.pos=c->prog->str;