On Saturday 10 May 2008 22:53:48 [EMAIL PROTECTED] wrote: > Log: > more headerizing, except for src/headers.c which needs Special Attention
> Modified: trunk/compilers/imcc/optimizer.c > =========================================================================== >=== --- trunk/compilers/imcc/optimizer.c (original) > +++ trunk/compilers/imcc/optimizer.c Sat May 10 22:53:47 2008 > @@ -138,18 +148,6 @@ > __attribute__nonnull__(2) > FUNC_MODIFIES(*unit); > > -#if DO_LOOP_OPTIMIZATION > - > -PARROT_WARN_UNUSED_RESULT > -static int _is_ins_save( > - ARGIN(const IMC_Unit *unit), > - ARGIN(const Instruction *check_ins), > - ARGIN(const SymReg *r), > - int what) > - __attribute__nonnull__(1) > - __attribute__nonnull__(2) > - __attribute__nonnull__(3); > - > PARROT_WARN_UNUSED_RESULT > static int is_ins_save(PARROT_INTERP, > ARGIN(const IMC_Unit *unit), > @@ -161,8 +159,6 @@ > __attribute__nonnull__(3) > __attribute__nonnull__(4); > > -#endif /* DO_LOOP_OPTIMIZATION */ > - > static int strength_reduce(PARROT_INTERP, ARGMOD(IMC_Unit *unit)) > __attribute__nonnull__(1) > __attribute__nonnull__(2) > > Modified: trunk/compilers/imcc/pbc.c > =========================================================================== >=== --- trunk/compilers/imcc/pbc.c (original) > +++ trunk/compilers/imcc/pbc.c Sat May 10 22:53:47 2008 > @@ -183,10 +183,8 @@ > __attribute__nonnull__(1) > __attribute__nonnull__(2); > > -#ifdef HAS_JIT > PARROT_WARN_UNUSED_RESULT > static int old_blocks(void); > -#endif /* HAS_JIT */ > > PARROT_CONST_FUNCTION > PARROT_WARN_UNUSED_RESULT > headerizer should *not* delete preprocessor directives. What needs changing so that it doesn't mangle this code in the future? -- c