mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-29 21:43:55 +08:00
e0e4b11dbd
Prior to this change, builtins would take their arguments as `wchar_t **`. This implies that the order of the arguments may be changed (which is true, `wgetopter` does so) but also that the strings themselves may be changed, which no builtin should do. Switch them all to take `const wchar_t **` instead: now the arguments may be rearranged but their contents may no longer be modified.
12 lines
277 B
C++
12 lines
277 B
C++
// Prototypes for executing builtin_getopt function.
|
|
#ifndef FISH_BUILTIN_ARGPARSE_H
|
|
#define FISH_BUILTIN_ARGPARSE_H
|
|
|
|
#include "maybe.h"
|
|
|
|
class parser_t;
|
|
struct io_streams_t;
|
|
|
|
maybe_t<int> builtin_argparse(parser_t &parser, io_streams_t &streams, const wchar_t **argv);
|
|
#endif
|