mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-01 23:24:21 +08:00
77aeb6a2a8
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)
24 lines
527 B
C++
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
|