pike.git / src / cpp.cmod

version» Context lines:

pike.git/src/cpp.cmod:3394:      /* NB: This function is only called from low_cpp(), which    * means that Pike_fp->current_object is an object(CPP).    */   static void apply_define(struct CPP_struct *this,    struct define_struct *d,    struct define_argument *arguments,    short flags,    struct pike_string *charset)   { - #if 0 + #if 1    struct svalue *save_sp = Pike_sp;       /* Keep d around... */    push_svalue(&d->self);       if (d->args < 0) {    push_undefined();    } else {    int i;    BEGIN_AGGREGATE_ARRAY(d->args) {
pike.git/src/cpp.cmod:3426:    d->flags = CPP_MACRO_DISABLED;       /* NB: We're executing in the CPP context object. */    low_cpp(this, MKPCHARP_STR(Pike_sp[-1].u.string), Pike_sp[-1].u.string->len,    flags & ~(CPP_EXPECT_ENDIF | CPP_EXPECT_ELSE),    charset);       d->flags = flags;       pop_n_elems(Pike_sp - save_sp); - #else /* !0 */ + #else /* !1 */    struct string_builder tmp;       init_string_builder(&tmp, 0);    if(d->magic)    {    int i;    struct pike_string *a = NULL;    if (d->args > 0) {    a = make_shared_binary_pcharp(arguments[0].arg, arguments[0].len);    }
pike.git/src/cpp.cmod:3542:    string_builder_putchar(&tmp, 0);    tmp.s->len--;    low_cpp(this, MKPCHARP_STR(tmp.s),tmp.s->len,    flags & ~(CPP_EXPECT_ENDIF | CPP_EXPECT_ELSE),    charset);       d->flags = flags;    /* FIXME: Ought to free the ref to d here. */       free_string_builder(&tmp); - #endif /* 0 */ + #endif /* 1 */   }      /*    * Preprocessor template.    *    * NB: There are two basic cases where this function is called:    *    * * Either when switching to a new input data string    * (eg macro expansion or #include). The result of    * this is added to the current buffer.