Branch: Tag:

2001-02-09

2001-02-09 17:30:23 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

limited tailrecursion to assure mutex functionality

Rev: src/las.c:1.233
Rev: src/las.h:1.46
Rev: src/peep.in:1.47
Rev: src/pike_types.c:1.146
Rev: src/pike_types.h:1.47

5:   \*/   /**/   #include "global.h" - RCSID("$Id: las.c,v 1.232 2001/01/18 02:18:27 hubbe Exp $"); + RCSID("$Id: las.c,v 1.233 2001/02/09 17:30:19 hubbe Exp $");      #include "language.h"   #include "interpret.h"
347:    return b;   }    + int check_tailrecursion(void) + { +  int e; +  if(debug_options & NO_TAILRECURSION) return 0; +  for(e=0;e<Pike_compiler->compiler_frame->max_number_of_locals;e++) +  { +  if(!pike_type_allow_premature_toss( +  Pike_compiler->compiler_frame->variable[e].type->str)) +  return 0; +  } +  return 1; + }    -  +    #define NODES 128 /* 256 */      #undef BLOCK_ALLOC_NEXT