mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-22 18:21:13 -03:00
Drop support for history file version 1. ParseExecutionContext no longer contains an OperationContext because in my first implementation, ParseExecutionContext didn't have interior mutability. We should probably try to add it back. Add a few to-do style comments. Search for "todo!" and "PORTING". Co-authored-by: Xiretza <xiretza@xiretza.xyz> (complete, wildcard, expand, history, history/file) Co-authored-by: Henrik Hørlück Berg <36937807+henrikhorluck@users.noreply.github.com> (builtins/set)
33 lines
578 B
C++
33 lines
578 B
C++
#ifndef FISH_REDIRECTION_H
|
|
#define FISH_REDIRECTION_H
|
|
|
|
#if INCLUDE_RUST_HEADERS
|
|
|
|
#include "redirection.rs.h"
|
|
|
|
#else
|
|
|
|
// Hacks to allow us to compile without Rust headers.
|
|
|
|
enum class RedirectionMode {
|
|
overwrite,
|
|
append,
|
|
input,
|
|
fd,
|
|
noclob,
|
|
};
|
|
struct Dup2Action;
|
|
struct Dup2List;
|
|
struct RedirectionSpec;
|
|
struct RedirectionSpecListFfi;
|
|
|
|
#endif
|
|
|
|
using redirection_mode_t = RedirectionMode;
|
|
using redirection_spec_t = RedirectionSpec;
|
|
using redirection_spec_list_t = RedirectionSpecListFfi;
|
|
using dup2_action_t = Dup2Action;
|
|
using dup2_list_t = Dup2List;
|
|
|
|
#endif
|