pike.git / src / cpp.cmod

version» Context lines:

pike.git/src/cpp.cmod:4959:    if (GET_TYPE(STRING, "prefix")) prefix = tmp->u.string;    if (GET_TYPE(INT, "keep_comments")) this->keep_comments = tmp->u.integer;   #undef GET_TYPE    } else if (TYPEOF(*opts_or_file) == PIKE_T_STRING) {    current_file = opts_or_file->u.string;    }    }       if(current_file) {    add_ref(current_file); -  if (this->current_file != current_file) add_line_directive = 1; +  if (!this->current_file && (current_file->len == 1) && +  !current_file->size_shift && current_file->str[0] == '-') { +  /* Noop */ +  } else if (this->current_file != current_file) add_line_directive = 1;    } else {    current_file = make_shared_string("-");    if (this->current_file && (this->current_file != current_file)) {    add_line_directive = 1;    }    }    if (this->current_file) {    free_string(this->current_file);    }    this->current_file = current_file;