pike.git / src / cpp.cmod

version» Context lines:

pike.git/src/cpp.cmod:4274:    if(flags & CPP_EXPECT_ENDIF) {    INT_TYPE saved_line = this->current_line;    this->current_line = first_line;    cpp_error(this, "End of file while searching for #endif.");    this->current_line = saved_line;    }       return pos;   }    +  PIKEFUN void cpp(string data, int flags) +  { +  low_cpp(THIS, MKPCHARP_STR(data), data->len, flags, THIS->charset); +  } +    /*** Magic defines ***/      /*! @decl constant __LINE__    *!    *! This define contains the current line number, represented as an    *! integer, in the source file.    */   static void insert_current_line(struct CPP_struct *this,    struct define_struct *UNUSED(def),    struct pike_string *UNUSED(arg),
pike.git/src/cpp.cmod:4981:       string_builder_binary_strcat(&this->buf, "#line 1 ", 8);    PUSH_STRING_SHIFT(this->current_file->str, this->current_file->len,    this->current_file->size_shift, &this->buf);    string_builder_putchar(&this->buf, '\n');      #ifdef PIKE_DEBUG    SET_ONERROR(tmp, fatal_on_error, "Preprocessor exited with longjump!\n");   #endif /* PIKE_DEBUG */    +  ref_push_string(data); /* data */ +  push_int(0); /* flags */ +  apply(cpp_obj, "cpp", 2);    -  low_cpp(this, MKPCHARP_STR(data), data->len, -  0, this->charset); -  +    #ifdef PIKE_DEBUG    UNSET_ONERROR(tmp);   #endif /* PIKE_DEBUG */       if(this->compile_errors)    {    throw_error_object(fast_clone_object(cpp_error_program), 0, 0, 0,    "Cpp() failed\n");    }    else if(this->dependencies_fail)