mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
de23ce6ac1
Prior to this fix, functions stored a string representation of their contents. Switch them to storing a parsed source reference and the tnode of the contents. This is part of an effort to avoid reparsing a function's contents every time it executes.
13 lines
393 B
C++
13 lines
393 B
C++
// Prototypes for executing builtin_function function.
|
|
#ifndef FISH_BUILTIN_FUNCTION_H
|
|
#define FISH_BUILTIN_FUNCTION_H
|
|
|
|
#include "common.h"
|
|
#include "parse_tree.h"
|
|
|
|
class parser_t;
|
|
struct io_streams_t;
|
|
|
|
int builtin_function(parser_t &parser, io_streams_t &streams, const wcstring_list_t &c_args,
|
|
const parsed_source_ref_t &source, tnode_t<grammar::job_list> body);
|
|
#endif
|