pike.git / src / cpp.cmod

version» Context lines:

pike.git/src/cpp.cmod:538:    SAFE_APPLY_MASTER("get_compilation_handler",2);    if(TYPEOF(Pike_sp[-1]) == T_OBJECT)    {    if (SUBTYPEOF(Pike_sp[-1])) {    cpp_error(this,    "#pike: Subtyped compilation handlers are not supported yet.");    }    this->compat_handler=Pike_sp[-1].u.object;    dmalloc_touch_svalue(Pike_sp-1);    Pike_sp--; +  } else { +  pop_stack();    }    this->compat_major=major;    this->compat_minor=minor;   }      /* #if macros and functions. */      /*! @namespace cpp::    *!    *! Pike has a builtin C-style preprocessor. It works similar to the
pike.git/src/cpp.cmod:4222:    SKIPSPACE();    foo = pos;    FIND_EOL();    push_int(flags);    push_string(make_shared_binary_pcharp(ADD_PCHARP(data,foo), pos-foo));    safe_apply_svalue(fun, 2, 1);    if ((TYPEOF(Pike_sp[-1]) == PIKE_T_STRING) &&    Pike_sp[-1].u.string->len) {    /* We need to recurse. */    low_cpp(this, MKPCHARP_STR(Pike_sp[-1].u.string), -  Pike_sp[-1].u.string->len, flags, charset); +  Pike_sp[-1].u.string->len, +  flags & ~CPP_EXPECT_ENDIF, charset);    }    pop_stack();    break;    }    }       if(!OUTP() && !this->picky_cpp)    {    if(directive) free_string(directive);    break;