mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
[clang-tidy] Fix inconsistent declarations
Found with readability-inconsistent-declaration-parameter-name Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
435556001e
commit
5ca80a61e3
28 changed files with 59 additions and 59 deletions
|
@ -80,15 +80,15 @@ enum { COMMAND_NOT_BUILTIN, BUILTIN_REGULAR, BUILTIN_FUNCTION };
|
|||
void builtin_init();
|
||||
bool builtin_exists(const wcstring &cmd);
|
||||
|
||||
proc_status_t builtin_run(parser_t &parser, int job_pgrp, wchar_t **argv, io_streams_t &streams);
|
||||
proc_status_t builtin_run(parser_t &parser, int job_pgid, wchar_t **argv, io_streams_t &streams);
|
||||
|
||||
wcstring_list_t builtin_get_names();
|
||||
void builtin_get_names(std::vector<completion_t> *list);
|
||||
const wchar_t *builtin_get_desc(const wcstring &b);
|
||||
const wchar_t *builtin_get_desc(const wcstring &name);
|
||||
|
||||
wcstring builtin_help_get(parser_t &parser, const wchar_t *cmd);
|
||||
|
||||
void builtin_print_help(parser_t &parser, io_streams_t &streams, const wchar_t *cmd,
|
||||
void builtin_print_help(parser_t &parser, io_streams_t &streams, const wchar_t *name,
|
||||
wcstring *error_message = nullptr);
|
||||
int builtin_count_args(const wchar_t *const *argv);
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ struct builtin_printf_state_t {
|
|||
int print_formatted(const wchar_t *format, int argc, wchar_t **argv);
|
||||
|
||||
void nonfatal_error(const wchar_t *fmt, ...);
|
||||
void fatal_error(const wchar_t *format, ...);
|
||||
void fatal_error(const wchar_t *fmt, ...);
|
||||
|
||||
long print_esc(const wchar_t *escstart, bool octal_0);
|
||||
void print_esc_string(const wchar_t *str);
|
||||
|
|
|
@ -35,10 +35,10 @@ class rgb_color_t {
|
|||
} data;
|
||||
|
||||
/// Try parsing a special color name like "normal".
|
||||
bool try_parse_special(const wcstring &str);
|
||||
bool try_parse_special(const wcstring &special);
|
||||
|
||||
/// Try parsing an rgb color like "#F0A030".
|
||||
bool try_parse_rgb(const wcstring &str);
|
||||
bool try_parse_rgb(const wcstring &name);
|
||||
|
||||
/// Try parsing an explicit color name like "magenta".
|
||||
bool try_parse_named(const wcstring &str);
|
||||
|
|
|
@ -748,7 +748,7 @@ void append_path_component(wcstring &path, const wcstring &component);
|
|||
wcstring format_string(const wchar_t *format, ...);
|
||||
wcstring vformat_string(const wchar_t *format, va_list va_orig);
|
||||
void append_format(wcstring &str, const wchar_t *format, ...);
|
||||
void append_formatv(wcstring &str, const wchar_t *format, va_list ap);
|
||||
void append_formatv(wcstring &target, const wchar_t *format, va_list va_orig);
|
||||
|
||||
#ifdef HAVE_STD__MAKE_UNIQUE
|
||||
using std::make_unique;
|
||||
|
@ -764,7 +764,7 @@ std::unique_ptr<T> make_unique(Args &&... args) {
|
|||
/// character is detemrined by examining \c in. Returns 0 on error.
|
||||
///
|
||||
/// \param in the position of the opening quote.
|
||||
wchar_t *quote_end(const wchar_t *in);
|
||||
wchar_t *quote_end(const wchar_t *pos);
|
||||
|
||||
/// A call to this function will reset the error counter. Some functions print out non-critical
|
||||
/// error messages. These should check the error_count before, and skip printing the message if
|
||||
|
@ -1031,7 +1031,7 @@ struct hash<const wcstring> {
|
|||
#endif
|
||||
|
||||
/// Get the absolute path to the fish executable itself
|
||||
std::string get_executable_path(const char *fallback);
|
||||
std::string get_executable_path(const char *argv0);
|
||||
|
||||
/// A RAII wrapper for resources that don't recur, so we don't have to create a separate RAII
|
||||
/// wrapper for each function. Avoids needing to call "return cleanup()" or similar / everywhere.
|
||||
|
|
|
@ -354,7 +354,7 @@ class completer_t {
|
|||
void complete_cmd(const wcstring &str);
|
||||
|
||||
/// Attempt to complete an abbreviation for the given string.
|
||||
void complete_abbr(const wcstring &str);
|
||||
void complete_abbr(const wcstring &cmd);
|
||||
|
||||
void complete_from_args(const wcstring &str, const wcstring &args, const wcstring &desc,
|
||||
complete_flags_t flags);
|
||||
|
|
|
@ -196,8 +196,8 @@ void append_completion(std::vector<completion_t> *completions, wcstring comp,
|
|||
string_fuzzy_match_t match = string_fuzzy_match_t(fuzzy_match_exact));
|
||||
|
||||
/// Support for "wrap targets." A wrap target is a command that completes like another command.
|
||||
bool complete_add_wrapper(const wcstring &command, const wcstring &wrap_target);
|
||||
bool complete_remove_wrapper(const wcstring &command, const wcstring &wrap_target);
|
||||
bool complete_add_wrapper(const wcstring &command, const wcstring &new_target);
|
||||
bool complete_remove_wrapper(const wcstring &command, const wcstring &target_to_remove);
|
||||
|
||||
/// Returns a list of wrap targets for a given command.
|
||||
wcstring_list_t complete_get_wrap_targets(const wcstring &command);
|
||||
|
|
|
@ -62,7 +62,7 @@ class env_universal_t {
|
|||
void load_from_fd(int fd, callback_data_list_t &callbacks);
|
||||
|
||||
void set_internal(const wcstring &key, const env_var_t &var);
|
||||
bool remove_internal(const wcstring &name);
|
||||
bool remove_internal(const wcstring &key);
|
||||
|
||||
// Functions concerned with saving.
|
||||
bool open_and_acquire_lock(const std::string &path, int *out_fd);
|
||||
|
@ -82,7 +82,7 @@ class env_universal_t {
|
|||
// vars_to_acquire.
|
||||
void acquire_variables(var_table_t &vars_to_acquire);
|
||||
|
||||
static bool populate_1_variable(const wchar_t *str, env_var_t::env_var_flags_t flags,
|
||||
static bool populate_1_variable(const wchar_t *input, env_var_t::env_var_flags_t flags,
|
||||
var_table_t *vars, wcstring *storage);
|
||||
|
||||
static void parse_message_2x_internal(const wcstring &msg, var_table_t *vars,
|
||||
|
@ -106,7 +106,7 @@ class env_universal_t {
|
|||
void set(const wcstring &key, env_var_t var);
|
||||
|
||||
// Removes a variable. Returns true if it was found, false if not.
|
||||
bool remove(const wcstring &name);
|
||||
bool remove(const wcstring &key);
|
||||
|
||||
// Gets variable names.
|
||||
wcstring_list_t get_names(bool show_exported, bool show_unexported) const;
|
||||
|
|
|
@ -24,8 +24,8 @@ bool exec_job(parser_t &parser, std::shared_ptr<job_t> j);
|
|||
///
|
||||
/// \return the status of the last job to exit, or -1 if en error was encountered.
|
||||
int exec_subshell(const wcstring &cmd, parser_t &parser, wcstring_list_t &outputs,
|
||||
bool preserve_exit_status, bool is_subcmd = false);
|
||||
int exec_subshell(const wcstring &cmd, parser_t &parser, bool preserve_exit_status,
|
||||
bool apply_exit_status, bool is_subcmd = false);
|
||||
int exec_subshell(const wcstring &cmd, parser_t &parser, bool apply_exit_status,
|
||||
bool is_subcmd = false);
|
||||
|
||||
/// Loops over close until the syscall was run without being interrupted.
|
||||
|
|
|
@ -146,8 +146,8 @@ __warn_unused expand_result_t expand_string(wcstring input, std::vector<completi
|
|||
/// \param parser the parser to use for command substitutions, or nullptr to disable.
|
||||
/// \param errors Resulting errors, or NULL to ignore
|
||||
///
|
||||
/// \return Whether expansion succeeded
|
||||
bool expand_one(wcstring &inout_str, expand_flags_t flags, const environment_t &vars,
|
||||
/// \return Whether expansion succeeded.
|
||||
bool expand_one(wcstring &string, expand_flags_t flags, const environment_t &vars,
|
||||
const std::shared_ptr<parser_t> &parser, parse_error_list_t *errors = NULL);
|
||||
|
||||
/// Expand a command string like $HOME/bin/cmd into a command and list of arguments.
|
||||
|
|
|
@ -61,13 +61,13 @@ void function_set_desc(const wcstring &name, const wcstring &desc, parser_t &par
|
|||
|
||||
/// Returns true if the function with the name name exists.
|
||||
/// This may autoload.
|
||||
int function_exists(const wcstring &name, parser_t &parser);
|
||||
int function_exists(const wcstring &cmd, parser_t &parser);
|
||||
|
||||
/// Attempts to load a function if not yet loaded. This is used by the completion machinery.
|
||||
void function_load(const wcstring &name, parser_t &parser);
|
||||
void function_load(const wcstring &cmd, parser_t &parser);
|
||||
|
||||
/// Returns true if the function with the name name exists, without triggering autoload.
|
||||
int function_exists_no_autoload(const wcstring &name);
|
||||
int function_exists_no_autoload(const wcstring &cmd);
|
||||
|
||||
/// Returns all function names.
|
||||
///
|
||||
|
|
|
@ -126,7 +126,7 @@ enum {
|
|||
PATH_EXPAND_TILDE = 1 << 1
|
||||
};
|
||||
typedef unsigned int path_flags_t;
|
||||
bool is_potential_path(const wcstring &const_path, const wcstring_list_t &directories,
|
||||
bool is_potential_path(const wcstring &potential_path_fragment, const wcstring_list_t &directories,
|
||||
const environment_t &vars, path_flags_t flags);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -153,7 +153,7 @@ class history_lru_cache_t : public lru_cache_t<history_lru_cache_t, history_item
|
|||
}
|
||||
};
|
||||
|
||||
static wcstring history_filename(const wcstring &name, const wcstring &suffix);
|
||||
static wcstring history_filename(const wcstring &session_id, const wcstring &suffix);
|
||||
|
||||
/// We can merge two items if they are the same command. We use the more recent timestamp, more
|
||||
/// recent identifier, and the longer list of required paths.
|
||||
|
@ -327,7 +327,7 @@ struct history_impl_t {
|
|||
void populate_from_config_path();
|
||||
|
||||
// Populates from a bash history file.
|
||||
void populate_from_bash(FILE *f);
|
||||
void populate_from_bash(FILE *stream);
|
||||
|
||||
// Incorporates the history of other shells into this history.
|
||||
void incorporate_external_changes();
|
||||
|
|
|
@ -100,7 +100,7 @@ class input_mapping_set_t {
|
|||
/// Gets the command bound to the specified key sequence in the specified mode. Returns true if
|
||||
/// it exists, false if not.
|
||||
bool get(const wcstring &sequence, const wcstring &mode, wcstring_list_t *out_cmds, bool user,
|
||||
wcstring *out_new_mode);
|
||||
wcstring *out_sets_mode);
|
||||
|
||||
/// Returns all mapping names and modes.
|
||||
std::vector<input_mapping_name_t> get_names(bool user = true) const;
|
||||
|
@ -110,10 +110,10 @@ class input_mapping_set_t {
|
|||
/// \param sequence the sequence to bind
|
||||
/// \param command an input function that will be run whenever the key sequence occurs
|
||||
void add(wcstring sequence, const wchar_t *command, const wchar_t *mode = DEFAULT_BIND_MODE,
|
||||
const wchar_t *new_mode = DEFAULT_BIND_MODE, bool user = true);
|
||||
const wchar_t *sets_mode = DEFAULT_BIND_MODE, bool user = true);
|
||||
|
||||
void add(wcstring sequence, const wchar_t *const *commands, size_t commands_len,
|
||||
const wchar_t *mode = DEFAULT_BIND_MODE, const wchar_t *new_mode = DEFAULT_BIND_MODE,
|
||||
const wchar_t *mode = DEFAULT_BIND_MODE, const wchar_t *sets_mode = DEFAULT_BIND_MODE,
|
||||
bool user = true);
|
||||
|
||||
/// \return a snapshot of the list of input mappings.
|
||||
|
|
|
@ -108,15 +108,15 @@ void writembs_check(outputter_t &outp, const char *mbs, const char *mbs_name, bo
|
|||
#define writembs(outp, mbs) writembs_check((outp), (mbs), #mbs, true, __FILE__, __LINE__)
|
||||
#define writembs_nofail(outp, mbs) writembs_check((outp), (mbs), #mbs, false, __FILE__, __LINE__)
|
||||
|
||||
rgb_color_t parse_color(const env_var_t &val, bool is_background);
|
||||
rgb_color_t parse_color(const env_var_t &var, bool is_background);
|
||||
|
||||
/// Sets what colors are supported.
|
||||
enum { color_support_term256 = 1 << 0, color_support_term24bit = 1 << 1 };
|
||||
typedef unsigned int color_support_t;
|
||||
color_support_t output_get_color_support();
|
||||
void output_set_color_support(color_support_t support);
|
||||
void output_set_color_support(color_support_t val);
|
||||
|
||||
rgb_color_t best_color(const std::vector<rgb_color_t> &colors, color_support_t support);
|
||||
rgb_color_t best_color(const std::vector<rgb_color_t> &candidates, color_support_t support);
|
||||
|
||||
unsigned char index_for_color(rgb_color_t c);
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ class pager_t {
|
|||
|
||||
bool completion_info_passes_filter(const comp_t &info) const;
|
||||
|
||||
void completion_print(size_t cols, const size_t *width_per_column, size_t row_start,
|
||||
void completion_print(size_t cols, const size_t *width_by_column, size_t row_start,
|
||||
size_t row_stop, const wcstring &prefix, const comp_info_list_t &lst,
|
||||
page_rendering_t *rendering) const;
|
||||
line_t completion_print_item(const wcstring &prefix, const comp_t *c, size_t row, size_t column,
|
||||
|
@ -143,7 +143,7 @@ class pager_t {
|
|||
editable_line_t search_field_line;
|
||||
|
||||
// Sets the set of completions.
|
||||
void set_completions(const completion_list_t &comp);
|
||||
void set_completions(const completion_list_t &raw_completions);
|
||||
|
||||
// Sets the prefix.
|
||||
void set_prefix(const wcstring &pref);
|
||||
|
|
|
@ -57,7 +57,7 @@ class parse_execution_context_t {
|
|||
|
||||
// Report an error. Always returns true.
|
||||
parse_execution_result_t report_error(const parse_node_t &node, const wchar_t *fmt, ...) const;
|
||||
parse_execution_result_t report_errors(const parse_error_list_t &errors) const;
|
||||
parse_execution_result_t report_errors(const parse_error_list_t &error_list) const;
|
||||
|
||||
// Wildcard error helper.
|
||||
parse_execution_result_t report_unmatched_wildcard_error(
|
||||
|
@ -113,7 +113,7 @@ class parse_execution_context_t {
|
|||
parse_execution_result_t run_if_statement(tnode_t<grammar::if_statement> statement,
|
||||
const block_t *associated_block);
|
||||
parse_execution_result_t run_switch_statement(tnode_t<grammar::switch_statement> statement);
|
||||
parse_execution_result_t run_while_statement(tnode_t<grammar::while_header> statement,
|
||||
parse_execution_result_t run_while_statement(tnode_t<grammar::while_header> header,
|
||||
tnode_t<grammar::job_list> contents,
|
||||
const block_t *associated_block);
|
||||
parse_execution_result_t run_function_statement(tnode_t<grammar::function_header> header,
|
||||
|
@ -131,7 +131,7 @@ class parse_execution_context_t {
|
|||
io_chain_t *out_chain);
|
||||
|
||||
parse_execution_result_t run_1_job(tnode_t<grammar::job> job, const block_t *associated_block);
|
||||
parse_execution_result_t run_job_conjunction(tnode_t<grammar::job_conjunction> job_conj,
|
||||
parse_execution_result_t run_job_conjunction(tnode_t<grammar::job_conjunction> job_expr,
|
||||
const block_t *associated_block);
|
||||
template <typename Type>
|
||||
parse_execution_result_t run_job_list(tnode_t<Type> job_list_node,
|
||||
|
@ -141,7 +141,7 @@ class parse_execution_context_t {
|
|||
|
||||
// Returns the line number of the node. Not const since it touches cached_lineno_offset.
|
||||
int line_offset_of_node(tnode_t<grammar::job> node);
|
||||
int line_offset_of_character_at_offset(size_t char_idx);
|
||||
int line_offset_of_character_at_offset(size_t offset);
|
||||
|
||||
public:
|
||||
parse_execution_context_t(parsed_source_ref_t pstree, parser_t *p,
|
||||
|
|
|
@ -385,9 +385,9 @@ class parse_ll_t {
|
|||
bool top_node_handle_terminal_types(const parse_token_t &token);
|
||||
|
||||
void parse_error_unexpected_token(const wchar_t *expected, parse_token_t token);
|
||||
void parse_error(parse_token_t token, parse_error_code_t code, const wchar_t *format, ...);
|
||||
void parse_error(parse_token_t token, parse_error_code_t code, const wchar_t *fmt, ...);
|
||||
void parse_error_at_location(size_t source_start, size_t source_length, size_t error_location,
|
||||
parse_error_code_t code, const wchar_t *format, ...);
|
||||
parse_error_code_t code, const wchar_t *fmt, ...);
|
||||
void parse_error_failed_production(struct parse_stack_element_t &elem, parse_token_t token);
|
||||
void parse_error_unbalancing_token(parse_token_t token);
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ enum {
|
|||
};
|
||||
typedef unsigned int parse_tree_flags_t;
|
||||
|
||||
wcstring parse_dump_tree(const parse_node_tree_t &tree, const wcstring &src);
|
||||
wcstring parse_dump_tree(const parse_node_tree_t &nodes, const wcstring &src);
|
||||
|
||||
const wchar_t *token_type_description(parse_token_type_t type);
|
||||
const wchar_t *keyword_description(parse_keyword_t type);
|
||||
|
@ -200,7 +200,7 @@ class parse_node_tree_t : public std::vector<parse_node_t> {
|
|||
// Utilities
|
||||
|
||||
/// Given a node, return all of its comment nodes.
|
||||
std::vector<tnode_t<grammar::comment>> comment_nodes_for_node(const parse_node_t &node) const;
|
||||
std::vector<tnode_t<grammar::comment>> comment_nodes_for_node(const parse_node_t &parent) const;
|
||||
|
||||
private:
|
||||
template <typename Type>
|
||||
|
@ -209,7 +209,7 @@ class parse_node_tree_t : public std::vector<parse_node_t> {
|
|||
/// the next element of the given type in that list, and the tail (by reference). Returns NULL
|
||||
/// if we've exhausted the list.
|
||||
const parse_node_t *next_node_in_node_list(const parse_node_t &node_list,
|
||||
parse_token_type_t item_type,
|
||||
parse_token_type_t entry_type,
|
||||
const parse_node_t **list_tail) const;
|
||||
};
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ void parse_util_token_extent(const wchar_t *buff, size_t cursor_pos, const wchar
|
|||
const wchar_t **prev_end);
|
||||
|
||||
/// Get the linenumber at the specified character offset.
|
||||
int parse_util_lineno(const wchar_t *str, size_t len);
|
||||
int parse_util_lineno(const wchar_t *str, size_t offset);
|
||||
|
||||
/// Calculate the line number of the specified cursor position.
|
||||
int parse_util_get_line_from_offset(const wcstring &str, size_t pos);
|
||||
|
@ -97,7 +97,7 @@ size_t parse_util_get_offset(const wcstring &str, int line, long line_offset);
|
|||
|
||||
/// Return the given string, unescaping wildcard characters but not performing any other character
|
||||
/// transformation.
|
||||
wcstring parse_util_unescape_wildcards(const wcstring &in);
|
||||
wcstring parse_util_unescape_wildcards(const wcstring &str);
|
||||
|
||||
/// Checks if the specified string is a help option.
|
||||
bool parse_util_argument_is_help(const wchar_t *s);
|
||||
|
|
|
@ -229,7 +229,7 @@ class parser_t : public std::enable_shared_from_this<parser_t> {
|
|||
wcstring user_presentable_path(const wcstring &path) const;
|
||||
|
||||
/// Helper for stack_trace().
|
||||
void stack_trace_internal(size_t block_idx, wcstring *out) const;
|
||||
void stack_trace_internal(size_t block_idx, wcstring *buff) const;
|
||||
|
||||
/// Create a parser.
|
||||
parser_t();
|
||||
|
@ -318,7 +318,7 @@ class parser_t : public std::enable_shared_from_this<parser_t> {
|
|||
block_t *push_block(block_t &&b);
|
||||
|
||||
/// Remove the outermost block, asserting it's the given one.
|
||||
void pop_block(const block_t *b);
|
||||
void pop_block(const block_t *expected);
|
||||
|
||||
/// Return a description of the given blocktype.
|
||||
const wchar_t *get_block_desc(int block) const;
|
||||
|
|
|
@ -44,7 +44,7 @@ void path_emit_config_directory_errors(env_stack_t &vars);
|
|||
/// Returns:
|
||||
/// false if the command can not be found else true. The result
|
||||
/// should be freed with free().
|
||||
bool path_get_path(const wcstring &cmd, wcstring *output_or_NULL, const environment_t &vars);
|
||||
bool path_get_path(const wcstring &cmd, wcstring *out_path, const environment_t &vars);
|
||||
|
||||
/// Return all the paths that match the given command.
|
||||
wcstring_list_t path_get_paths(const wcstring &cmd, const environment_t &vars);
|
||||
|
|
|
@ -261,7 +261,7 @@ typedef std::vector<process_ptr_t> process_list_t;
|
|||
|
||||
typedef int job_id_t;
|
||||
job_id_t acquire_job_id(void);
|
||||
void release_job_id(job_id_t jobid);
|
||||
void release_job_id(job_id_t jid);
|
||||
|
||||
/// A struct represeting a job. A job is basically a pipeline of one or more processes and a couple
|
||||
/// of flags.
|
||||
|
@ -488,7 +488,7 @@ class parser_t;
|
|||
bool job_reap(parser_t &parser, bool interactive);
|
||||
|
||||
/// Mark a process as failed to execute (and therefore completed).
|
||||
void job_mark_process_as_failed(const std::shared_ptr<job_t> &job, const process_t *p);
|
||||
void job_mark_process_as_failed(const std::shared_ptr<job_t> &job, const process_t *failed_proc);
|
||||
|
||||
/// Use the procfs filesystem to look up how many jiffies of cpu time was used by this process. This
|
||||
/// function is only available on systems with the procfs file entry 'stat', i.e. Linux.
|
||||
|
|
|
@ -184,7 +184,7 @@ void reader_set_allow_autosuggesting(bool flag);
|
|||
void reader_set_expand_abbreviations(bool flag);
|
||||
|
||||
/// Sets whether the reader should exit on ^C.
|
||||
void reader_set_exit_on_interrupt(bool flag);
|
||||
void reader_set_exit_on_interrupt(bool i);
|
||||
|
||||
void reader_set_silent_status(bool f);
|
||||
|
||||
|
|
|
@ -236,7 +236,7 @@ parse_statement_decoration_t get_decoration(tnode_t<grammar::plain_statement> st
|
|||
enum parse_bool_statement_type_t bool_statement_type(tnode_t<grammar::job_decorator> stmt);
|
||||
|
||||
enum parse_bool_statement_type_t bool_statement_type(
|
||||
tnode_t<grammar::job_conjunction_continuation> stmt);
|
||||
tnode_t<grammar::job_conjunction_continuation> cont);
|
||||
|
||||
/// Given a redirection node, get the parsed redirection and target of the redirection (file path,
|
||||
/// or fd).
|
||||
|
|
|
@ -131,7 +131,7 @@ class tokenizer_t {
|
|||
/// \param flags Flags to the tokenizer. Setting TOK_ACCEPT_UNFINISHED will cause the tokenizer
|
||||
/// to accept incomplete tokens, such as a subshell without a closing parenthesis, as a valid
|
||||
/// token. Setting TOK_SHOW_COMMENTS will return comments as tokens
|
||||
tokenizer_t(const wchar_t *b, tok_flags_t flags);
|
||||
tokenizer_t(const wchar_t *start, tok_flags_t flags);
|
||||
|
||||
/// Returns the next token, or none() if we are at the end.
|
||||
maybe_t<tok_t> next();
|
||||
|
@ -212,7 +212,7 @@ class move_word_state_machine_t {
|
|||
move_word_style_t style;
|
||||
|
||||
public:
|
||||
explicit move_word_state_machine_t(move_word_style_t st);
|
||||
explicit move_word_state_machine_t(move_word_style_t syl);
|
||||
bool consume_char(wchar_t c);
|
||||
void reset();
|
||||
};
|
||||
|
|
|
@ -38,7 +38,7 @@ typedef wchar_t utf8_wchar_t;
|
|||
|
||||
typedef std::basic_string<utf8_wchar_t> utf8_wstring_t;
|
||||
|
||||
static size_t utf8_to_wchar_internal(const char *in, size_t insize, utf8_wstring_t *result,
|
||||
static size_t utf8_to_wchar_internal(const char *in, size_t insize, utf8_wstring_t *out_string,
|
||||
int flags);
|
||||
static size_t wchar_to_utf8_internal(const utf8_wchar_t *in, size_t insize, char *out,
|
||||
size_t outsize, int flags);
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
/// Convert a string between UTF8 and UCS-2/4 (depending on size of wchar_t). Returns true if
|
||||
/// successful, storing the result of the conversion in *result*.
|
||||
bool wchar_to_utf8_string(const std::wstring &input, std::string *result);
|
||||
bool wchar_to_utf8_string(const std::wstring &str, std::string *result);
|
||||
|
||||
/// Convert a string between UTF8 and UCS-2/4 (depending on size of wchar_t). Returns nonzero if
|
||||
/// successful, storing the result of the conversion in *out*.
|
||||
|
|
|
@ -56,10 +56,10 @@ int wstat(const wcstring &file_name, struct stat *buf);
|
|||
int lwstat(const wcstring &file_name, struct stat *buf);
|
||||
|
||||
/// Wide character version of access().
|
||||
int waccess(const wcstring &pathname, int mode);
|
||||
int waccess(const wcstring &file_name, int mode);
|
||||
|
||||
/// Wide character version of unlink().
|
||||
int wunlink(const wcstring &pathname);
|
||||
int wunlink(const wcstring &file_name);
|
||||
|
||||
/// Wide character version of perror().
|
||||
void wperror(const wchar_t *s);
|
||||
|
@ -113,10 +113,10 @@ std::wstring wbasename(const std::wstring &path);
|
|||
const wcstring &wgettext(const wchar_t *in);
|
||||
|
||||
/// Wide character version of mkdir.
|
||||
int wmkdir(const wcstring &dir, int mode);
|
||||
int wmkdir(const wcstring &name, int mode);
|
||||
|
||||
/// Wide character version of rename.
|
||||
int wrename(const wcstring &oldName, const wcstring &newName);
|
||||
int wrename(const wcstring &oldName, const wcstring &newv);
|
||||
|
||||
#define PUA1_START 0xE000
|
||||
#define PUA1_END 0xF900
|
||||
|
|
Loading…
Reference in a new issue