Branch: Tag:

2016-01-12

2016-01-12 18:09:27 by Per Hedbor <ph@opera.com>

inline is part of c99

We do have.. excessive amounts of inline, incidentally. :)

795:   /**** Peephole optimizer ****/      static void do_optimization(int topop, int topush, ...); - static INLINE int opcode(int offset); - static INLINE int argument(int offset); - static INLINE int argument2(int offset); + static inline int opcode(int offset); + static inline int argument(int offset); + static inline int argument2(int offset);      #include "peep_engine.c"   
817:      /* insopt{0,1,2} push an instruction on instrstack. */    - static INLINE p_instr *insopt2(int f, INT32 a, INT32 b, + static inline p_instr *insopt2(int f, INT32 a, INT32 b,    INT_TYPE cl, struct pike_string *cf)   {    p_instr *p;
844:    return p;   }    - static INLINE p_instr *insopt1(int f, INT32 a, INT_TYPE cl, + static inline p_instr *insopt1(int f, INT32 a, INT_TYPE cl,    struct pike_string *cf)   {   #ifdef PIKE_DEBUG
855:    return insopt2(f,a,0,cl, cf);   }    - static INLINE p_instr *insopt0(int f, INT_TYPE cl, struct pike_string *cf) + static inline p_instr *insopt0(int f, INT_TYPE cl, struct pike_string *cf)   {   #ifdef PIKE_DEBUG    if(hasarg(f))
885:         /* Offset from the end of instrbuf backwards. */ - static INLINE p_instr *instr(int offset) + static inline p_instr *instr(int offset)   {    if (offset >= num_instrs) return NULL;    return ((p_instr *)low_make_buf_space(0, &instrbuf)) - (offset + 1);   }    - static INLINE int opcode(int offset) + static inline int opcode(int offset)   {    p_instr *a;    a=instr(offset);
899:    return -1;   }    - static INLINE int argument(int offset) + static inline int argument(int offset)   {    p_instr *a;    a=instr(offset);
907:    return -1;   }    - static INLINE int argument2(int offset) + static inline int argument2(int offset)   {    p_instr *a;    a=instr(offset);