pike.git / src / peep.c

version» Context lines:

pike.git/src/peep.c:8:   #include "main.h"   #include "pike_error.h"   #include "lex.h"   #include "pike_memory.h"   #include "peep.h"   #include "dmalloc.h"   #include "stuff.h"   #include "bignum.h"   #include "opcodes.h"    - RCSID("$Id: peep.c,v 1.45 2000/12/05 21:08:20 per Exp $"); + RCSID("$Id: peep.c,v 1.46 2001/08/15 15:29:23 mast Exp $");      static void asm_opt(void);      dynamic_buffer instrbuf;      static int hasarg(int opcode)   {    return instrs[opcode-F_OFFSET].flags & I_HASARG;   }   
pike.git/src/peep.c:320:       for(e=0;e<=max_label;e++) labels[e]=jumps[e]=-1;       c=(p_instr *)instrbuf.s.str;    for(e=0;e<length;e++)    {   #ifdef PIKE_DEBUG    if((a_flag > 2 && store_linenumbers) || a_flag > 3)    {    fprintf(stderr, "===%3d %4lx ", c->line, -  DO_NOT_WARN((unsigned long)PC)); +  DO_NOT_WARN((unsigned long)PIKE_PC));    dump_instr(c);    fprintf(stderr,"\n");    }   #endif       if(store_linenumbers)    store_linenumber(c->line, c->file);       switch(c->opcode)    {    case F_NOP:    case F_NOTREACHED:    case F_START_FUNCTION:    break;    case F_ALIGN: -  while(PC % c->arg) add_to_program(0); +  while(PIKE_PC % c->arg) add_to_program(0);    break;       case F_BYTE:    add_to_program((unsigned char)(c->arg));    break;       case F_DATA:    ins_int(c->arg, (void(*)(char))add_to_program);    break;       case F_LABEL:    if(c->arg == -1) break;   #ifdef PIKE_DEBUG    if(c->arg > max_label || c->arg < 0)    fatal("max_label calculation failed!\n");       if(labels[c->arg] != -1)    fatal("Duplicate label!\n");   #endif -  labels[c->arg] = DO_NOT_WARN((INT32)PC); +  labels[c->arg] = DO_NOT_WARN((INT32)PIKE_PC);    break;       default:    switch(instrs[c->opcode - F_OFFSET].flags)    {    case I_ISJUMP:    ins_f_byte(c->opcode);       case I_ISPOINTER:   #ifdef PIKE_DEBUG    if(c->arg > max_label || c->arg < 0) fatal("Jump to unknown label?\n");   #endif -  tmp = DO_NOT_WARN((INT32)PC); +  tmp = DO_NOT_WARN((INT32)PIKE_PC);    ins_int(jumps[c->arg], (void(*)(char))add_to_program);    jumps[c->arg]=tmp;    break;       case I_TWO_ARGS:    ins_f_byte_with_2_args(c->opcode, c->arg,c->arg2);    break;       case I_HASARG:    ins_f_byte_with_arg(c->opcode, c->arg);