fish-shell/src/operation_context.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

24 lines
527 B
C++

#ifndef FISH_OPERATION_CONTEXT_H
#define FISH_OPERATION_CONTEXT_H
#include <stddef.h>
struct OperationContext;
#if INCLUDE_RUST_HEADERS
#include "operation_context.rs.h"
#else
#endif
using operation_context_t = OperationContext;
/// Default limits for expansion.
enum expansion_limit_t : size_t {
/// The default maximum number of items from expansion.
kExpansionLimitDefault = 512 * 1024,
/// A smaller limit for background operations like syntax highlighting.
kExpansionLimitBackground = 512,
};
#endif