pike.git / src / cpp.cmod

version» Context lines:

pike.git/src/cpp.cmod:398:       EXIT    {    /* NOTE: Most of the fields are mapped, and thus freed automatically. */       if (THIS->buf.s) {    free_string_builder(&THIS->buf);    }    }    +  PIKEFUN string _sprintf(int c, mapping|void opts) +  flags ID_PROTECTED; +  { +  struct CPP_struct *this = THIS; +  ref_push_string(MK_STRING("CPP(%s:%d)")); +  if (this->current_file) { +  ref_push_string(this->current_file); +  } else { +  ref_push_string(MK_STRING("-")); +  } +  push_int(this->current_line); +  f_sprintf(2); +  } +    #define FIND_DEFINE(N) find_define(this, (N))      static struct define_struct *find_define(struct CPP_struct *this, struct pike_string *n)   {    struct svalue *s;    if (!this->defines) return NULL;    if (!(s = low_mapping_string_lookup(this->defines, n))) return NULL;    if (TYPEOF(*s) != T_OBJECT) return NULL;    return (struct define_struct *)get_storage(s->u.object, define_program);   }