Files
fish-shell/src/redirection.h
Johannes Altmanninger 77aeb6a2a8 Port execution
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)
2023-11-15 11:09:48 +01:00

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