pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:3777:       if (!IDENTIFIER_IS_ALIAS(p->identifiers[e].identifier_flags)) {    if(IDENTIFIER_IS_VARIABLE(p->identifiers[e].identifier_flags))    {    if((p->identifiers[e].func.offset /* + OFFSETOF(object,storage)*/ ) &    (alignof_variable(p->identifiers[e].run_time_type)-1))    {    dump_program_tables(p, 0);    Pike_fatal("Variable %s offset is not properly aligned (%ld).\n",    p->identifiers[e].name->str, -  PTRDIFF_T_TO_LONG(p->identifiers[e].func.offset)); +  (long)p->identifiers[e].func.offset);    }    }    } else {    /* FIXME: Check that ext_ref.depth and ext_ref.id are valid and    * have matching identifier_flags.    */    if (p->identifiers[e].func.ext_ref.depth &&    !(p->flags & PROGRAM_USES_PARENT)) {    Pike_fatal("Identifier %d is an external reference, but "    "PROGRAM_USES_PARENT hasn't been set.\n",
pike.git/src/program.c:4242:    ptrdiff_t modulo_orig)   {    ptrdiff_t offset;    ptrdiff_t modulo;       if(!size) return Pike_compiler->new_program->storage_needed;      #ifdef PIKE_DEBUG    if(alignment <=0 || (alignment & (alignment-1)) || alignment > 256)    Pike_fatal("Alignment must be 1,2,4,8,16,32,64,128 or 256 not %ld\n", -  PTRDIFF_T_TO_LONG(alignment)); +  (long)alignment);   #endif    modulo=( modulo_orig /* +OFFSETOF(object,storage) */ ) % alignment;       offset=DO_ALIGN(Pike_compiler->new_program->storage_needed-modulo,alignment)+modulo;       if(!Pike_compiler->new_program->storage_needed) {    /* Shouldn't Pike_compiler->new_program->storage_needed be set here?    * Otherwise the debug code below ought to be trigged.    * But since it isn't, I guess this is dead code?    * /grubba 1999-09-28