Branch: Tag:

1998-04-27

1998-04-27 10:00:27 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

'compiler_stack' removed (it was not used)

Rev: src/compilation.h:1.10
Rev: src/docode.c:1.36
Rev: src/docode.h:1.6
Rev: src/language.yacc:1.90

4:   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: docode.c,v 1.35 1998/04/06 03:51:54 hubbe Exp $"); + RCSID("$Id: docode.c,v 1.36 1998/04/27 10:00:26 hubbe Exp $");   #include "las.h"   #include "program.h"   #include "language.h"
25:   #include "operators.h"   #include "object.h"    + static int do_docode2(node *n,int flags); +    INT32 current_break=-1;   INT32 current_continue=-1;   
44:   }      int store_linenumbers=1; -  - /* -  * A mechanism to remember addresses on a stack. -  */ - int comp_stackp; - INT32 comp_stack[COMPILER_STACK_SIZE]; -  - void push_address(void) - { -  if (comp_stackp >= COMPILER_STACK_SIZE) -  { -  yyerror("Compiler stack overflow"); -  comp_stackp++; -  return; -  } -  comp_stack[comp_stackp++] = PC; - } -  - void push_explicit(INT32 address) - { -  if (comp_stackp >= COMPILER_STACK_SIZE) -  { -  yyerror("Compiler stack overflow"); -  comp_stackp++; -  return; -  } -  comp_stack[comp_stackp++] = address; - } -  - INT32 pop_address(void) - { -  if (comp_stackp == 0) -  fatal("Compiler stack underflow.\n"); -  if (comp_stackp > COMPILER_STACK_SIZE) -  { -  --comp_stackp; -  return 0; -  } -  return comp_stack[--comp_stackp]; - } -  -  +    static int label_no=0;      int alloc_label(void) { return ++label_no; }
97:    return lbl;   }    - static int do_docode2(node *n,int flags); -  +    #define ins_label(L) do_jump(F_LABEL, L)      void do_pop(int x)
125:    return i;   }    -  +    static int is_efun(node *n, c_fun fun)   {    return n && n->token == F_CONSTANT &&