pike.git / src / cpp.cmod

version» Context lines:

pike.git/src/cpp.cmod:1297:    if (TYPEOF(Pike_sp[-1]) == PIKE_T_STRING) {    line = Pike_sp[-1].u.string;       ptr = MKPCHARP_STR(line);       major = STRTOL_PCHARP(ptr, &ptr, 10);    if(INDEX_PCHARP(ptr,0) == '.')    {    INC_PCHARP(ptr, 1);    minor=STRTOL_PCHARP(ptr, &ptr, 10); -  cpp_change_compat(this, major, minor); +  +  push_int(major); +  push_int(minor); +  apply_current(f_CPP_change_cpp_compatibility_fun_num, 2); +  pop_stack();    }else{    cpp_error(this, "Missing '.' in #pike.");    this->compat_minor=0;    }       /* NB: The parsed line is already in place on the stack. */    return;    } else {    cpp_error(this, "Invalid #pike directive.");    }
pike.git/src/cpp.cmod:5156:    this->charset = charset_sv->u.string;    add_ref(this->charset);    }    else if(TYPEOF(*charset_sv) == T_INT)    this->auto_convert = charset_sv->u.integer;    else {    SIMPLE_ARG_TYPE_ERROR("cpp", 3, "string|int");    }    }    -  if(compat_major) -  cpp_change_compat(this, compat_major, compat_minor); +  if(compat_major) { +  push_int(compat_major); +  push_int(compat_minor); +  apply_current(f_CPP_change_cpp_compatibility_fun_num, 2); +  pop_stack(); +  }       this->picky_cpp = picky_cpp;    pop_n_elems(args);    }       /*! @decl void define_macro(string name, string|void value)    *!    *! Define a cpp macro.    */    PIKEFUN void define_macro(string name, string|void value)