Skip to content

Instantly share code, notes, and snippets.

@zanchey
Created July 25, 2015 06:35
Show Gist options
  • Save zanchey/05d85693cfd3bad4085e to your computer and use it in GitHub Desktop.
Save zanchey/05d85693cfd3bad4085e to your computer and use it in GitHub Desktop.
function.h should add these lines:
#include <vector> // for vector
function.h should remove these lines:
- #include <wchar.h> // lines 13-13
- #include "util.h" // lines 16-16
- class env_vars_snapshot_t; // lines 22-22
The full include-list for function.h:
#include <map> // for map
#include <vector> // for vector
#include "common.h" // for wcstring, wcstring_list_t
#include "env.h" // for env_var_t, etc
#include "event.h" // for event_t
class parser_t; // lines 21-21
function.cpp should add these lines:
#include <dirent.h> // for closedir, DIR
#include <stddef.h> // for size_t
#include <string> // for basic_string, operator<
#include <utility> // for pair, make_pair
#include "autoload.h" // for autoload_t
function.cpp should remove these lines:
- #include <errno.h> // lines 20-20
- #include <signal.h> // lines 18-18
- #include <stdio.h> // lines 13-13
- #include <stdlib.h> // lines 12-12
- #include <string.h> // lines 14-14
- #include <termios.h> // lines 17-17
- #include <unistd.h> // lines 16-16
- #include "config.h" // lines 10-10
- #include "expand.h" // lines 38-38
- #include "fallback.h" // lines 25-25
- #include "parse_util.h" // lines 35-35
- #include "parser.h" // lines 30-30
- #include "proc.h" // lines 29-29
- #include "util.h" // lines 26-26
The full include-list for function.cpp:
#include "function.h"
#include <dirent.h> // for closedir, DIR
#include <pthread.h> // for pthread_mutex_init, etc
#include <stddef.h> // for size_t
#include <wchar.h> // for NULL, wcscmp, wcsrchr
#include <map> // for _Rb_tree_const_iterator, etc
#include <set> // for set
#include <string> // for basic_string, operator<
#include <utility> // for pair, make_pair
#include "autoload.h" // for autoload_t
#include "common.h" // for wcstring, scoped_lock, etc
#include "env.h" // for env_var_t, env_get_string, etc
#include "event.h" // for event_t, event_add_handler, etc
#include "intern.h" // for intern
#include "parser_keywords.h" // for parser_keywords_is_reserved
#include "reader.h" // for reader_current_filename
#include "wutil.h" // for wopendir, wreaddir
builtin.h should add these lines:
#include <stddef.h> // for size_t
#include <vector> // for vector
class completion_t;
builtin.h should remove these lines:
- #include <wchar.h> // lines 8-8
- #include "util.h" // lines 10-10
The full include-list for builtin.h:
#include <stddef.h> // for size_t
#include <vector> // for vector
#include "common.h" // for _, wcstring, etc
#include "io.h" // for io_chain_t
class completion_t;
class parser_t; // lines 14-14
builtin.cpp should add these lines:
#include <assert.h> // for assert
#include <algorithm> // for sort, lower_bound
#include <map> // for map, map<>::const_iterator, etc
#include <string> // for basic_string, operator!=, etc
#include <utility> // for pair
#include "parse_constants.h" // for parse_error_list_t, etc
builtin.cpp should remove these lines:
- #include <dirent.h> // lines 31-31
- #include <sys/time.h> // lines 35-35
- #include <sys/types.h> // lines 28-28
- #include <termios.h> // lines 26-26
- #include "config.h" // lines 20-20
- #include "fallback.h" // lines 39-39
- #include "input_common.h" // lines 55-55
- #include "sanity.h" // lines 52-52
- #include "util.h" // lines 40-40
- #include "wildcard.h" // lines 54-54
The full include-list for builtin.cpp:
#include "builtin.h"
#include <assert.h> // for assert
#include <errno.h> // for errno, ENOENT, EILSEQ, etc
#include <fcntl.h> // for O_RDONLY
#include <signal.h> // for sigaction, sigemptyset, etc
#include <stdio.h> // for EOF, stderr
#include <stdlib.h> // for abs, srand48_r, free, labs, etc
#include <string.h> // for memset, strerror
#include <sys/stat.h> // for stat, fstat, S_ISDIR, etc
#include <time.h> // for time
#include <unistd.h> // for isatty, close, dup, etc
#include <wchar.h> // for NULL, wcscmp, wcslen, etc
#include <wctype.h> // for iswalnum
#include <algorithm> // for sort, lower_bound
#include <map> // for map, map<>::const_iterator, etc
#include <stack> // for stack
#include <string> // for basic_string, operator!=, etc
#include <utility> // for pair
#include "builtin_commandline.cpp" // for builtin_commandline
#include "builtin_complete.cpp" // for builtin_complete
#include "builtin_jobs.cpp" // for builtin_jobs
#include "builtin_printf.cpp" // for builtin_printf
#include "builtin_set.cpp" // for builtin_set
#include "builtin_set_color.cpp" // for builtin_set_color
#include "builtin_ulimit.cpp" // for builtin_ulimit
#include "common.h" // for wcstring, append_format, etc
#include "complete.h" // for append_completion, complete, etc
#include "env.h" // for env_var_t, env_set, etc
#include "event.h" // for event_t, etc
#include "exec.h" // for exec_subshell
#include "expand.h" // for ARRAY_SEP
#include "function.h" // for function_data_t, etc
#include "highlight.h" // for highlight_shell
#include "history.h" // for history_t, history_search_t, etc
#include "input.h" // for input_mapping_name_t, etc
#include "intern.h" // for intern_static, intern
#include "parse_constants.h" // for parse_error_list_t, etc
#include "parse_tree.h" // for parse_tree_from_string, etc
#include "parse_util.h" // for parse_util_argument_is_help, etc
#include "parser.h" // for parser_t, block_t, etc
#include "parser_keywords.h" // for parser_keywords_is_reserved
#include "path.h" // for path_get_cdpath, etc
#include "proc.h" // for STATUS_BUILTIN_ERROR, etc
#include "reader.h" // for reader_read, reader_exit, etc
#include "signal.h" // for sig2wcs, wcs2sig
#include "tokenizer.h" // for tok_first
#include "wcstringutil.h" // for wcstring_range, etc
#include "wgetopt.h" // for woption, woptind, etc
#include "wutil.h" // for fish_wcstoi, wchdir, etc
complete.h should add these lines:
#include <vector> // for vector
complete.h should remove these lines:
- #include <wchar.h> // lines 16-16
- #include "util.h" // lines 19-19
The full include-list for complete.h:
#include <stdint.h> // for uint32_t
#include <vector> // for vector
#include "common.h" // for wcstring, etc
complete.cpp should add these lines:
#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include <list> // for _List_const_iterator, etc
#include <map> // for _Rb_tree_const_iterator, etc
#include <set> // for set, set<>::const_iterator
#include <string> // for operator==, allocator, etc
#include <utility> // for pair
#include "autoload.h" // for autoload_t
#include "parse_constants.h" // for parse_token_type_t, etc
complete.cpp should remove these lines:
- #include <ctype.h> // lines 19-19
- #include <dirent.h> // lines 16-16
- #include <errno.h> // lines 17-17
- #include <limits.h> // lines 9-9
- #include <signal.h> // lines 21-21
- #include <stdio.h> // lines 8-8
- #include <string.h> // lines 10-10
- #include <sys/stat.h> // lines 15-15
- #include <sys/types.h> // lines 14-14
- #include <termios.h> // lines 18-18
- #include <unistd.h> // lines 13-13
- #include <wchar.h> // lines 22-22
- #include "fallback.h" // lines 26-26
- #include "history.h" // lines 41-41
- #include "intern.h" // lines 42-42
- #include "parser_keywords.h" // lines 44-44
- #include "reader.h" // lines 40-40
- #include "tokenizer.h" // lines 29-29
The full include-list for complete.cpp:
#include "complete.h"
#include <assert.h> // for assert
#include <pthread.h> // for PTHREAD_MUTEX_INITIALIZER, etc
#include <pwd.h> // for endpwent, getpwent, passwd, etc
#include <stddef.h> // for size_t
#include <stdlib.h> // for free
#include <wchar.h> // for NULL, wcslen, wcschr, etc
#include <wctype.h> // for towupper
#include <algorithm> // for find, sort
#include <list> // for _List_const_iterator, etc
#include <map> // for _Rb_tree_const_iterator, etc
#include <set> // for set, set<>::const_iterator
#include <string> // for operator==, allocator, etc
#include <utility> // for pair
#include "autoload.h" // for autoload_t
#include "builtin.h"
#include "common.h" // for wcstring, wcstring_list_t, etc
#include "config.h" // for USE_GETTEXT
#include "env.h" // for env_var_t, env_get_string, etc
#include "exec.h" // for exec_subshell
#include "expand.h" // for expand_string, etc
#include "function.h" // for function_get_definition, etc
#include "iothread.h" // for iothread_perform_on_main
#include "parse_constants.h" // for parse_token_type_t, etc
#include "parse_tree.h" // for parse_node_t, etc
#include "parse_util.h" // for parse_util_cmdsubst_extent, etc
#include "parser.h" // for parser_t, etc
#include "path.h" // for path_get_path
#include "proc.h" // for proc_pop_interactive, etc
#include "util.h" // for wcsfilecmp
#include "wildcard.h" // for wildcard_match, etc
#include "wutil.h" // for wgettext
env.h should add these lines:
#include <stdint.h> // for uint32_t
#include <string> // for operator==, operator<
env.h should remove these lines:
- #include "util.h" // lines 11-11
The full include-list for env.h:
#include <stdint.h> // for uint32_t
#include <wchar.h> // for NULL
#include <map> // for map, map<>::value_compare
#include <string> // for operator==, operator<
#include "common.h" // for wcstring, wcstring_list_t
env.cpp should add these lines:
#include <stddef.h> // for size_t
#include <wctype.h> // for iswspace
#include <utility> // for pair
#include <vector> // for vector
env.cpp should remove these lines:
- #include <libintl.h> // lines 37-37
- #include <ncurses.h> // lines 23-23
- #include <signal.h> // lines 12-12
- #include <stdio.h> // lines 9-9
- #include <string.h> // lines 8-8
- #include <sys/types.h> // lines 14-14
- #include <term.h> // lines 31-31
- #include "complete.h" // lines 59-59
- #include "parser.h" // lines 53-53
- #include "util.h" // lines 43-43
The full include-list for env.cpp:
#include "env.h"
#include <assert.h> // for assert
#include <errno.h> // for errno
#include <locale.h> // for LC_MESSAGES, LC_ALL, etc
#include <pthread.h> // for PTHREAD_MUTEX_INITIALIZER, etc
#include <pwd.h> // for passwd, getpwnam, getpwuid
#include <stddef.h> // for size_t
#include <stdlib.h> // for free
#include <sys/stat.h> // for umask, mode_t
#include <unistd.h> // for getuid
#include <wchar.h> // for NULL, wcstol, wcscmp, etc
#include <wctype.h> // for iswspace
#include <algorithm> // for replace
#include <map> // for _Rb_tree_const_iterator, etc
#include <set> // for set
#include <utility> // for pair
#include <vector> // for vector
#include "common.h" // for wcstring, wcstring_list_t, etc
#include "config.h" // for HAVE_LIBINTL_H, etc
#include "env_universal_common.h" // for env_universal_t, etc
#include "event.h" // for event_t, event_fire
#include "expand.h" // for ARRAY_SEP, ARRAY_SEP_STR
#include "fallback.h" // for fish_dcgettext
#include "fish_version.h" // for get_fish_version
#include "history.h" // for history_t
#include "input.h" // for update_fish_color_support, etc
#include "path.h" // for path_make_canonical
#include "proc.h" // for get_proc_had_barrier, etc
#include "reader.h"
#include "sanity.h" // for sanity_lose
#include "wutil.h" // for wgetcwd
exec.h should add these lines:
#include <stddef.h> // for size_t
class job_t;
exec.h should remove these lines:
- #include <wchar.h> // lines 11-11
- #include "proc.h" // lines 14-14
- #include "util.h" // lines 15-15
The full include-list for exec.h:
#include <stddef.h> // for size_t
#include <vector> // for vector
#include "common.h" // for wcstring, _
class job_t;
class parser_t; // lines 44-44
exec.cpp should add these lines:
#include <spawn.h> // for posix_spawn, etc
#include <wctype.h> // for iswspace
#include <map> // for map, map<>::const_iterator, etc
#include <string> // for string
#include <tr1/memory> // for shared_ptr, __shared_ptr
#include <utility> // for pair
#include "io.h" // for io_chain_t, io_buffer_t, etc
#include "parse_tree.h" // for NODE_OFFSET_INVALID, etc
exec.cpp should remove these lines:
- #include <dirent.h> // lines 24-24
- #include <limits.h> // lines 20-20
- #include <sys/stat.h> // lines 13-13
- #include <sys/types.h> // lines 12-12
- #include <sys/wait.h> // lines 22-22
- #include <termios.h> // lines 14-14
- #include <time.h> // lines 25-25
- #include <memory> // lines 28-28
- #include "config.h" // lines 8-8
- #include "expand.h" // lines 49-49
- #include "fallback.h" // lines 34-34
- #include "iothread.h" // lines 36-36
- #include "sanity.h" // lines 48-48
- #include "util.h" // lines 35-35
- #include "wildcard.h" // lines 47-47
The full include-list for exec.cpp:
#include "exec.h"
#include <assert.h> // for assert
#include <errno.h> // for errno, EINTR
#include <fcntl.h> // for open, O_RDONLY
#include <signal.h> // for kill, sigaddset, etc
#include <spawn.h> // for posix_spawn, etc
#include <stdio.h> // for printf, fflush, fprintf, etc
#include <stdlib.h> // for abort
#include <string.h> // for strncmp, memchr, memcpy, etc
#include <unistd.h> // for getpid, close, etc
#include <wchar.h> // for NULL, wcstol
#include <wctype.h> // for iswspace
#include <algorithm> // for for_each
#include <map> // for map, map<>::const_iterator, etc
#include <string> // for string
#include <tr1/memory> // for shared_ptr, __shared_ptr
#include <utility> // for pair
#include <vector> // for vector
#include "builtin.h" // for get_stdout_buffer, etc
#include "common.h" // for wcstring, debug, wcs2string, etc
#include "env.h" // for env_var_t, g_log_forks, etc
#include "function.h" // for function_get_definition, etc
#include "io.h" // for io_chain_t, io_buffer_t, etc
#include "parse_tree.h" // for NODE_OFFSET_INVALID, etc
#include "parse_util.h" // for parse_util_set_argv
#include "parser.h" // for parser_t, block_type_t::TOP, etc
#include "postfork.h" // for set_child_group, etc
#include "proc.h" // for process_t, job_get_flag, etc
#include "signal.h" // for signal_block, etc
#include "wutil.h" // for wperror, set_cloexec, etc
expand.h should add these lines:
#include <string> // for string
#include <vector> // for vector
#include "config.h" // for __warn_unused
expand.h should remove these lines:
- #include <list> // lines 23-23
- #include "util.h" // lines 20-20
- class parser_t; // lines 137-137
The full include-list for expand.h:
#include <wchar.h> // for NULL
#include <string> // for string
#include <vector> // for vector
#include "common.h" // for wcstring, _
#include "config.h" // for __warn_unused
#include "parse_constants.h" // for parse_error_list_t
class completion_t; // lines 73-73
expand.cpp should add these lines:
#include <stdarg.h> // for va_end, va_list, va_start
#include <stddef.h> // for size_t
expand.cpp should remove these lines:
- #include <limits.h> // lines 18-18
- #include <signal.h> // lines 28-28
- #include <sys/param.h> // lines 19-19
- #include <sys/sysctl.h> // lines 22-22
- #include <sys/types.h> // lines 20-20
- #include <termios.h> // lines 24-24
- #include <unistd.h> // lines 27-27
- #include "fallback.h" // lines 38-38
- #include "signal.h" // lines 49-49
The full include-list for expand.cpp:
#include "expand.h"
#include <assert.h> // for assert
#include <dirent.h> // for closedir, opendir, DIR
#include <errno.h> // for errno
#include <pwd.h> // for getpwnam, passwd
#include <stdarg.h> // for va_end, va_list, va_start
#include <stddef.h> // for size_t
#include <stdio.h> // for fclose, FILE
#include <stdlib.h> // for free
#include <string.h> // for strlen
#include <sys/stat.h> // for stat
#include <unistd.h> // for pid_t, getpid, getuid
#include <wchar.h> // for wcslen, NULL, wcsncmp, etc
#include <wctype.h> // for iswspace
#include <algorithm> // for swap, remove, sort
#include <vector> // for vector, allocator
#include "common.h" // for wcstring, wcstring_list_t, etc
#include "complete.h" // for append_completion, etc
#include "config.h" // for HAVE_SYS_SYSCTL_H
#include "env.h" // for env_var_t, env_get_string
#include "exec.h" // for exec_subshell
#include "iothread.h" // for iothread_perform_on_main
#include "parse_util.h" // for parse_util_locate_cmdsubst, etc
#include "parser.h" // for parser_t, etc
#include "proc.h" // for job_t, job_iterator_t, etc
#include "tokenizer.h" // for tok_first
#include "util.h" // for mini
#include "wildcard.h" // for wildcard_expand_string, etc
#include "wutil.h" // for fish_wcstoi, wbasename, etc
highlight.h should add these lines:
#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t
#include <vector> // for vector
#include "common.h" // for wcstring, wcstring_list_t
highlight.h should remove these lines:
- #include "util.h" // lines 11-11
The full include-list for highlight.h:
#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t
#include <wchar.h> // for NULL
#include <vector> // for vector
#include "color.h" // for rgb_color_t
#include "common.h" // for wcstring, wcstring_list_t
#include "env.h" // for env_vars_snapshot_t
class history_item_t; // lines 64-64
struct file_detection_context_t; // lines 65-65
highlight.cpp should add these lines:
#include <dirent.h> // for closedir, dirfd, DIR
#include <map> // for map, map<>::value_compare
#include <set> // for set
#include <string> // for operator==, basic_string, etc
#include "parse_constants.h"
highlight.cpp should remove these lines:
- #include <signal.h> // lines 14-14
- #include <stdio.h> // lines 7-7
- #include <stdlib.h> // lines 6-6
- #include <termios.h> // lines 13-13
- #include <wctype.h> // lines 12-12
- #include "complete.h" // lines 33-33
- #include "config.h" // lines 4-4
- #include "parser.h" // lines 24-24
- #include "parser_keywords.h" // lines 26-26
- #include "proc.h" // lines 23-23
- #include "sanity.h" // lines 31-31
- #include "util.h" // lines 18-18
The full include-list for highlight.cpp:
#include "highlight.h"
#include <dirent.h> // for closedir, dirfd, DIR
#include <errno.h> // for ENOENT, errno
#include <sys/stat.h> // for stat, S_ISDIR
#include <unistd.h> // for W_OK, R_OK
#include <wchar.h> // for NULL, wcschr, WCHAR_MAX
#include <algorithm> // for fill, copy
#include <map> // for map, map<>::value_compare
#include <set> // for set
#include <string> // for operator==, basic_string, etc
#include "builtin.h" // for builtin_exists
#include "common.h" // for wcstring, etc
#include "env.h" // for env_var_t, env_get_string, etc
#include "expand.h" // for expand_one, etc
#include "fallback.h" // for convert_digit
#include "function.h" // for function_exists_no_autoload
#include "history.h" // for history_item_t, path_list_t, etc
#include "output.h" // for parse_color
#include "parse_constants.h"
#include "parse_tree.h" // for parse_node_t, etc
#include "parse_util.h"
#include "path.h" // for path_get_path, etc
#include "tokenizer.h"
#include "wildcard.h" // for ::ANY_CHAR, ::ANY_STRING, etc
#include "wutil.h" // for waccess, wdirname, wstat, etc
history.h should add these lines:
#include <pthread.h> // for pthread_mutex_t
#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t
#include <stdio.h> // for FILE
#include <time.h> // for time_t
#include <string> // for operator==, basic_string
history.h should remove these lines:
- #include <wchar.h> // lines 8-8
- #include <list> // lines 15-15
- #include "pthread.h" // lines 10-10
The full include-list for history.h:
#include <pthread.h> // for pthread_mutex_t
#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t
#include <stdio.h> // for FILE
#include <time.h> // for time_t
#include <deque> // for deque
#include <set> // for set
#include <string> // for operator==, basic_string
#include <utility> // for pair
#include <vector> // for operator==, vector
#include "common.h" // for wcstring, wcstring_list_t
#include "wutil.h" // for file_id_t
history.cpp should add these lines:
#include <ctype.h> // for isdigit
#include <wctype.h> // for iswdigit
#include <iterator> // for reverse_iterator, etc
#include "env.h" // for env_get_pwd_slash
#include "lru.h" // for lru_cache_t<>::iterator, etc
#include "parse_constants.h"
history.cpp should remove these lines:
- #include <dirent.h> // lines 10-10
- #include <sys/types.h> // lines 11-11
- #include "autoload.h" // lines 33-33
- #include "fallback.h" // lines 20-20
- #include "intern.h" // lines 30-30
- #include "tokenizer.h" // lines 23-23
- #include "util.h" // lines 21-21
The full include-list for history.cpp:
#include "history.h"
#include <assert.h> // for assert
#include <ctype.h> // for isdigit
#include <errno.h> // for errno
#include <fcntl.h> // for flock, F_RDLCK, F_WRLCK, etc
#include <stdio.h> // for fgets, fprintf, snprintf, etc
#include <stdlib.h> // for strtol, free, mkostemp, etc
#include <string.h> // for strlen, memcmp, memchr, etc
#include <sys/mman.h> // for munmap, MAP_FAILED, mmap, etc
#include <sys/stat.h> // for stat
#include <time.h> // for time_t, time
#include <unistd.h> // for close, lseek, off_t
#include <wchar.h> // for NULL, mbrtowc, mbstate_t, etc
#include <wctype.h> // for iswdigit
#include <algorithm> // for max, binary_search, sort
#include <iterator> // for reverse_iterator, etc
#include <map> // for map, map<>::iterator
#include "common.h" // for wcstring, scoped_lock, etc
#include "config.h" // for HAVE_MKOSTEMP
#include "env.h" // for env_get_pwd_slash
#include "iothread.h" // for iothread_perform
#include "lru.h" // for lru_cache_t<>::iterator, etc
#include "parse_constants.h"
#include "parse_tree.h" // for parse_node_tree_t, etc
#include "path.h" // for path_get_config, etc
#include "reader.h" // for reader_interrupted, etc
#include "sanity.h" // for sanity_lose
#include "signal.h" // for signal_block, etc
#include "wutil.h" // for file_id_for_fd, etc
kill.h should add these lines:
#include "common.h" // for wcstring
kill.h should remove these lines:
- #include <wchar.h> // lines 10-10
The full include-list for kill.h:
#include "common.h" // for wcstring
kill.cpp should add these lines:
#include <stddef.h> // for size_t
#include <list> // for _List_iterator, list
#include <string> // for basic_string, operator!=, etc
kill.cpp should remove these lines:
- #include <dirent.h> // lines 19-19
- #include <signal.h> // lines 16-16
- #include <stdio.h> // lines 12-12
- #include <stdlib.h> // lines 11-11
- #include <sys/stat.h> // lines 18-18
- #include <sys/types.h> // lines 17-17
- #include <termios.h> // lines 14-14
- #include <unistd.h> // lines 15-15
- #include "config.h" // lines 9-9
- #include "fallback.h" // lines 22-22
- #include "proc.h" // lines 27-27
- #include "sanity.h" // lines 28-28
- #include "util.h" // lines 23-23
- #include "wutil.h" // lines 25-25
The full include-list for kill.cpp:
#include "kill.h"
#include <stddef.h> // for size_t
#include <wchar.h> // for NULL
#include <algorithm> // for find
#include <list> // for _List_iterator, list
#include <string> // for basic_string, operator!=, etc
#include "common.h" // for wcstring, escape, etc
#include "env.h" // for env_var_t, env_get_string
#include "exec.h" // for exec_subshell
#include "path.h" // for path_get_path
parser.h should add these lines:
#include <stddef.h> // for size_t
#include <list> // for _List_const_iterator, list, etc
#include "common.h" // for wcstring, wcstring_list_t
#include "io.h" // for io_chain_t
#include "parse_constants.h" // for parse_error_list_t
class completion_t;
parser.h should remove these lines:
- #include <wchar.h> // lines 8-8
- #include "function.h" // lines 13-13
- #include "util.h" // lines 11-11
- struct tokenizer_t; // lines 229-229
The full include-list for parser.h:
#include <stddef.h> // for size_t
#include <list> // for _List_const_iterator, list, etc
#include <vector> // for vector
#include "common.h" // for wcstring, wcstring_list_t
#include "event.h" // for event_t, ::EVENT_ANY
#include "io.h" // for io_chain_t
#include "parse_constants.h" // for parse_error_list_t
#include "parse_tree.h" // for node_offset_t
#include "proc.h" // for job_t (ptr only), etc
class completion_t;
class parse_execution_context_t; // lines 230-230
parser.cpp should add these lines:
#include <assert.h> // for assert
#include <string> // for basic_string
class completion_t;
parser.cpp should remove these lines:
- #include <dirent.h> // lines 19-19
- #include <errno.h> // lines 15-15
- #include <fcntl.h> // lines 16-16
- #include <pwd.h> // lines 18-18
- #include <stdlib.h> // lines 9-9
- #include <sys/stat.h> // lines 13-13
- #include <sys/types.h> // lines 12-12
- #include <termios.h> // lines 17-17
- #include <unistd.h> // lines 14-14
- #include "builtin.h" // lines 34-34
- #include "complete.h" // lines 44-44
- #include "config.h" // lines 7-7
- #include "exec.h" // lines 31-31
- #include "parser_keywords.h" // lines 29-29
- #include "path.h" // lines 42-42
- #include "signal.h" // lines 43-43
- #include "tokenizer.h" // lines 30-30
- #include "util.h" // lines 23-23
- #include "wildcard.h" // lines 32-32
The full include-list for parser.cpp:
#include "parser.h"
#include <assert.h> // for assert
#include <stdio.h> // for FILE, fclose, fopen, etc
#include <wchar.h> // for NULL, fwprintf
#include <algorithm> // for find, count
#include <string> // for basic_string
#include "common.h" // for wcstring, N_, append_format, etc
#include "env.h" // for env_pop, env_push
#include "event.h" // for event_get_desc, event_t
#include "expand.h" // for expand_string, etc
#include "fallback.h" // for __func__
#include "function.h"
#include "intern.h" // for intern
#include "parse_execution.h" // for parse_execution_context_t
#include "parse_tree.h" // for parse_node_tree_t, etc
#include "parse_util.h"
#include "proc.h" // for job_list_t, etc
#include "reader.h" // for reader_current_filename
#include "sanity.h" // for sanity_lose
#include "wutil.h" // for wperror
class completion_t;
proc.h should add these lines:
#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include <termios.h> // for pid_t, termios
#include "config.h" // for HAVE__PROC_SELF_STAT
proc.h should remove these lines:
- #include <unistd.h> // lines 16-16
- #include "util.h" // lines 20-20
- class parser_t; // lines 271-271
The full include-list for proc.h:
#include <assert.h> // for assert
#include <signal.h> // for pid_t, siginfo_t
#include <stddef.h> // for size_t
#include <sys/time.h> // for timeval
#include <termios.h> // for pid_t, termios
#include <wchar.h> // for NULL
#include <list> // for _List_iterator, list, etc
#include "common.h" // for wcstring, etc
#include "config.h" // for HAVE__PROC_SELF_STAT
#include "io.h" // for io_chain_t
#include "parse_tree.h" // for node_offset_t
proc.cpp should add these lines:
#include <pthread.h> // for PTHREAD_MUTEX_INITIALIZER, etc
#include <wctype.h> // for iswspace
#include <tr1/memory> // for shared_ptr
#include <vector> // for _Bit_iterator, vector, etc
proc.cpp should remove these lines:
- #include <dirent.h> // lines 31-31
- #include <ncurses.h> // lines 35-35
- #include <sys/ioctl.h> // lines 26-26
- #include <sys/stat.h> // lines 22-22
- #include <sys/types.h> // lines 21-21
- #include "env.h" // lines 64-64
- #include "fallback.h" // lines 56-56
The full include-list for proc.cpp:
#include "proc.h"
#include <errno.h> // for errno, EAGAIN, ECHILD
#include <pthread.h> // for PTHREAD_MUTEX_INITIALIZER, etc
#include <signal.h> // for kill, sigaction, killpg, etc
#include <stdio.h> // for stdout, fflush, fclose, etc
#include <stdlib.h> // for WTERMSIG, WIFSIGNALED, etc
#include <string.h> // for strlen
#include <sys/select.h> // for select, FD_SET, FD_ZERO, etc
#include <sys/time.h> // for timeval, gettimeofday
#include <sys/wait.h> // for waitpid, WNOHANG, WUNTRACED
#include <term.h> // for tputs, TERMTYPE, clr_eol
#include <termios.h> // for tcgetattr, tcsetattr, etc
#include <unistd.h> // for pid_t, getpid, tcsetpgrp, etc
#include <wchar.h> // for fwprintf, NULL, swprintf
#include <wctype.h> // for iswspace
#include <algorithm> // for find
#include <tr1/memory> // for shared_ptr
#include <vector> // for _Bit_iterator, vector, etc
#include "common.h" // for debug, _, wcstring, etc
#include "config.h" // for HAVE__PROC_SELF_STAT, etc
#include "event.h" // for event_t, ::EVENT_EXIT, etc
#include "output.h" // for writeb
#include "parser.h" // for parser_t
#include "reader.h" // for reader_exit_forced
#include "sanity.h" // for validate_pointer, etc
#include "signal.h" // for sig2wcs, signal_block, etc
#include "util.h" // for maxi
#include "wutil.h" // for wperror, make_fd_blocking, etc
reader.h should add these lines:
#include <stddef.h> // for size_t
#include <string> // for basic_string
reader.h should remove these lines:
- #include <wchar.h> // lines 13-13
- #include "util.h" // lines 15-15
- class completion_t; // lines 23-23
- class parser_t; // lines 22-22
The full include-list for reader.h:
#include <stddef.h> // for size_t
#include <string> // for basic_string
#include <vector> // for vector
#include "common.h" // for wcstring, wcstring_list_t
#include "complete.h" // for complete_flags_t, etc
#include "highlight.h" // for highlight_spec_t
#include "io.h" // for io_chain_t
#include "parse_constants.h" // for parser_test_error_bits_t
class env_vars_snapshot_t; // lines 234-234
class history_t; // lines 24-24
reader.cpp should add these lines:
#include <stdint.h> // for uintptr_t
#include "color.h" // for rgb_color_t
#include "event.h" // for event_fire_generic
reader.cpp should remove these lines:
- #include <dirent.h> // lines 70-70
- #include <ncurses.h> // lines 47-47
- #include <sys/ioctl.h> // lines 34-34
- #include <sys/poll.h> // lines 40-40
- #include <sys/stat.h> // lines 31-31
- #include <sys/types.h> // lines 30-30
- #include <sys/wait.h> // lines 39-39
- #include <term.h> // lines 55-55
- #include "parser_keywords.h" // lines 103-103
- #include "path.h" // lines 101-101
The full include-list for reader.cpp:
#include "reader.h"
#include <assert.h> // for assert
#include <errno.h> // for errno, EINTR, EAGAIN, EIO, etc
#include <fcntl.h> // for open, O_NONBLOCK, O_RDONLY
#include <pthread.h> // for pthread_getspecific, etc
#include <signal.h> // for kill, killpg, SIGHUP, etc
#include <stdint.h> // for uintptr_t
#include <stdio.h> // for clearerr, fclose, FILE, etc
#include <stdlib.h> // for free
#include <string.h> // for memcpy, strstr, memset
#include <sys/select.h> // for select, FD_SET, FD_ZERO, etc
#include <sys/time.h> // for timeval, gettimeofday, etc
#include <termios.h> // for termios, tcsetattr, TCSANOW, etc
#include <time.h> // for timespec, nanosleep, time_t
#include <unistd.h> // for STDIN_FILENO, getpid, etc
#include <wchar.h> // for NULL, wcslen, wcschr, etc
#include <wctype.h> // for iswalnum, iswspace, etc
#include <algorithm> // for min, sort, find, find_if, etc
#include <stack> // for stack
#include "color.h" // for rgb_color_t
#include "common.h" // for wcstring, wcstring_list_t, etc
#include "complete.h" // for completion_t, etc
#include "config.h" // for HAVE_NCURSES_H, etc
#include "env.h" // for env_set, env_var_t, etc
#include "event.h" // for event_fire_generic
#include "exec.h" // for exec_subshell
#include "expand.h" // for expand_abbreviation, etc
#include "fallback.h" // for fish_wcwidth
#include "function.h" // for function_exists
#include "highlight.h" // for highlight_spec_t, etc
#include "history.h" // for history_search_t, history_t, etc
#include "input.h" // for ::R_HISTORY_SEARCH_BACKWARD, etc
#include "input_common.h" // for ::R_NULL, etc
#include "intern.h" // for intern
#include "iothread.h" // for iothread_perform
#include "kill.h" // for kill_add, kill_destroy, etc
#include "output.h" // for writestr, set_color
#include "pager.h" // for pager_t, page_rendering_t, etc
#include "parse_tree.h" // for parse_node_t, etc
#include "parse_util.h" // for parse_util_token_extent, etc
#include "parser.h" // for parser_t, block_type_t::TOP, etc
#include "proc.h" // for get_is_interactive, etc
#include "sanity.h" // for sanity_lose, sanity_check
#include "screen.h" // for s_reset, etc
#include "signal.h" // for signal_block, etc
#include "tokenizer.h"
#include "util.h" // for mini, maxi, wcsfilecmp
#include "wutil.h" // for wperror, make_fd_blocking, etc
sanity.h should add these lines:
sanity.h should remove these lines:
- #include <wchar.h> // lines 8-8
The full include-list for sanity.h:
sanity.cpp should add these lines:
sanity.cpp should remove these lines:
- #include <dirent.h> // lines 15-15
- #include <errno.h> // lines 9-9
- #include <signal.h> // lines 12-12
- #include <stdio.h> // lines 8-8
- #include <stdlib.h> // lines 6-6
- #include <sys/stat.h> // lines 14-14
- #include <sys/types.h> // lines 13-13
- #include <termios.h> // lines 10-10
- #include <wchar.h> // lines 7-7
- #include "config.h" // lines 4-4
- #include "fallback.h" // lines 18-18
- #include "util.h" // lines 19-19
- #include "wutil.h" // lines 27-27
The full include-list for sanity.cpp:
#include "sanity.h"
#include <unistd.h> // for intptr_t
#include "common.h" // for debug, _
#include "history.h" // for history_sanity_check
#include "kill.h" // for kill_sanity_check
#include "proc.h" // for get_is_interactive, etc
#include "reader.h" // for reader_sanity_check
tokenizer.h should add these lines:
#include <stddef.h> // for size_t
tokenizer.h should remove these lines:
The full include-list for tokenizer.h:
#include <stddef.h> // for size_t
#include <wchar.h> // for NULL
#include "common.h" // for wcstring
tokenizer.cpp should add these lines:
#include <assert.h> // for assert
#include <string> // for operator==
tokenizer.cpp should remove these lines:
- #include <stdio.h> // lines 12-12
- #include <stdlib.h> // lines 11-11
- #include <string.h> // lines 15-15
- #include "config.h" // lines 9-9
- #include "fallback.h" // lines 19-19
- #include "util.h" // lines 20-20
- #include "wutil.h" // lines 22-22
The full include-list for tokenizer.cpp:
#include "tokenizer.h"
#include <assert.h> // for assert
#include <fcntl.h> // for O_CREAT, O_WRONLY, O_APPEND, etc
#include <unistd.h> // for STDOUT_FILENO, etc
#include <wchar.h> // for NULL, wcslen, wcschr
#include <wctype.h> // for iswspace, iswdigit, etc
#include <string> // for operator==
#include "common.h" // for wcstring, _, N_, CHECK, etc
wildcard.h should add these lines:
wildcard.h should remove these lines:
- #include <wchar.h> // lines 15-15
- #include "util.h" // lines 18-18
- class completion_t; // lines 29-29
The full include-list for wildcard.h:
#include <vector> // for vector
#include "common.h" // for wcstring
#include "complete.h" // for completion_t (ptr only), etc
#include "expand.h" // for expand_flags_t
wildcard.cpp should add these lines:
#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include <wctype.h> // for towlower
#include <string> // for operator+, operator<
#include <utility> // for pair
wildcard.cpp should remove these lines:
- #include <limits.h> // lines 13-13
- #include <stdio.h> // lines 12-12
- #include <sys/types.h> // lines 16-16
- #include <algorithm> // lines 10-10
- #include "complete.h" // lines 31-31
- #include "config.h" // lines 9-9
- #include "exec.h" // lines 34-34
- #include "util.h" // lines 25-25
The full include-list for wildcard.cpp:
#include "wildcard.h"
#include <assert.h> // for assert
#include <dirent.h> // for closedir, rewinddir, DIR
#include <errno.h> // for ELOOP, ENOENT, errno
#include <stddef.h> // for size_t
#include <stdlib.h> // for free
#include <string.h> // for memcpy
#include <sys/stat.h> // for stat, S_ISDIR, S_ISLNK, etc
#include <unistd.h> // for X_OK
#include <wchar.h> // for wcslen, NULL, wcschr, etc
#include <wctype.h> // for towlower
#include <map> // for map
#include <set> // for set
#include <string> // for operator+, operator<
#include <utility> // for pair
#include "common.h" // for wcstring, _, etc
#include "complete.h" // for completion_t, etc
#include "expand.h" // for expand_flags_t, etc
#include "fallback.h" // for wcsndup
#include "reader.h" // for reader_interrupted, etc
#include "wutil.h" // for file_id_t, wstat, waccess, etc
wgetopt.h should add these lines:
#include <features.h> // for __GNU_LIBRARY__
wgetopt.h should remove these lines:
- #include <wchar.h> // lines 50-50
The full include-list for wgetopt.h:
#include <features.h> // for __GNU_LIBRARY__
wgetopt.cpp should add these lines:
#include "common.h" // for _
wgetopt.cpp should remove these lines:
- #include <dirent.h> // lines 68-68
- #include <string.h> // lines 201-201
- #include <sys/stat.h> // lines 67-67
- #include <sys/types.h> // lines 66-66
- #include <unistd.h> // lines 65-65
- #include "fallback.h" // lines 95-95
The full include-list for wgetopt.cpp:
#include "wgetopt.h"
#include <stdio.h> // for stderr, EOF
#include <stdlib.h> // for getenv
#include <wchar.h> // for fwprintf, NULL, wcslen, etc
#include "common.h" // for _
#include "config.h" // for HAVE_TRANSLATE_H, etc
#include "wutil.h" // for wgettext
wutil.h should add these lines:
#include <stddef.h> // for size_t
#include <time.h> // for time_t
wutil.h should remove these lines:
- #include <stdarg.h> // lines 16-16
- #include <stdlib.h> // lines 9-9
- #include <sys/stat.h> // lines 14-14
- #include <unistd.h> // lines 13-13
- #include <wchar.h> // lines 11-11
- #include <utility> // lines 18-18
The full include-list for wutil.h:
#include <dirent.h> // for DIR
#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t, uint64_t
#include <stdio.h> // for FILE
#include <sys/types.h> // for dev_t, ino_t, mode_t
#include <time.h> // for time_t
#include <string> // for wstring
#include "common.h" // for wcstring
wutil.cpp should add these lines:
#include <assert.h> // for assert
#include <features.h> // for _BSD_SOURCE, _SVID_SOURCE, etc
wutil.cpp should remove these lines:
- #include <libintl.h> // lines 27-27
- #include <stdarg.h> // lines 18-18
- #include <wctype.h> // lines 15-15
- #include "util.h" // lines 31-31
The full include-list for wutil.cpp:
#include "wutil.h"
#include <assert.h> // for assert
#include <dirent.h> // for dirent, readdir, DIR, etc
#include <errno.h> // for errno, ERANGE, EINVAL, etc
#include <fcntl.h> // for fcntl, O_NONBLOCK, etc
#include <features.h> // for _BSD_SOURCE, _SVID_SOURCE, etc
#include <libgen.h> // for dirname, basename
#include <limits.h> // for PATH_MAX
#include <pthread.h> // for pthread_mutex_init, etc
#include <stdio.h> // for NULL, FILE, fdopen, rename, etc
#include <stdlib.h> // for free, malloc, mbstowcs, etc
#include <string.h> // for strlen, strerror, strncat
#include <sys/stat.h> // for stat, fstat, lstat, mkdir, etc
#include <sys/types.h> // for dev_t, ino_t, mode_t
#include <unistd.h> // for close, access, chdir, etc
#include <wchar.h> // for fwprintf, wcsdup, wcstol
#include <map> // for map, map<>::value_compare
#include <string> // for wstring, operator<, string
#include "common.h" // for wcstring, wcs2string, etc
#include "config.h" // for HAVE_SYS_ERRLIST, etc
#include "fallback.h" // for fish_bindtextdomain, etc
input.h should add these lines:
#include <stddef.h> // for wint_t, size_t
#include <string> // for basic_string
#include <vector> // for vector
#include "common.h" // for wcstring, wcstring_list_t
#include "env.h" // for env_var_t
input.h should remove these lines:
- #include <wchar.h> // lines 11-11
- #include <utility> // lines 12-12
The full include-list for input.h:
#include <stddef.h> // for wint_t, size_t
#include <string> // for basic_string
#include <vector> // for vector
#include "common.h" // for wcstring, wcstring_list_t
#include "env.h" // for env_var_t
#include "input_common.h" // for ::R_NULL
input.cpp should add these lines:
#include "io.h" // for io_chain_t
input.cpp should remove these lines:
- #include <dirent.h> // lines 40-40
- #include <signal.h> // lines 39-39
- #include <stdio.h> // lines 10-10
- #include <stdlib.h> // lines 9-9
- #include <string.h> // lines 12-12
- #include <sys/ioctl.h> // lines 19-19
- #include <sys/stat.h> // lines 16-16
- #include <sys/types.h> // lines 15-15
- #include <termios.h> // lines 14-14
- #include "expand.h" // lines 57-57
- #include "fallback.h" // lines 45-45
- #include "intern.h" // lines 62-62
- #include "sanity.h" // lines 52-52
- #include "signal.h" // lines 59-59
- #include "util.h" // lines 46-46
- #include "wutil.h" // lines 48-48
The full include-list for input.cpp:
#include "input.h"
#include <assert.h> // for assert
#include <errno.h> // for EILSEQ, ENOENT, errno
#include <ncurses.h> // for ERR
#include <term.h> // for TERMTYPE, setupterm, etc
#include <unistd.h> // for STDOUT_FILENO
#include <wchar.h> // for NULL, wcscmp
#include <wctype.h> // for iswcntrl
#include <algorithm> // for lower_bound, sort
#include <vector> // for vector, etc
#include "common.h" // for wcstring, wcstring_list_t, etc
#include "config.h" // for HAVE_NCURSES_H, etc
#include "env.h" // for env_var_t, env_get_string, etc
#include "event.h" // for event_fire
#include "input_common.h" // for input_common_next_ch, etc
#include "io.h" // for io_chain_t
#include "output.h" // for output_set_color_support, etc
#include "parser.h" // for parser_t, block_type_t::TOP
#include "proc.h" // for job_reap, etc
#include "reader.h" // for reader_reading_interrupted, etc
output.h should add these lines:
#include <stddef.h> // for wint_t
#include <vector> // for vector
#include "common.h" // for wcstring
output.h should remove these lines:
- #include <wchar.h> // lines 11-11
- #include "screen.h" // lines 13-13
The full include-list for output.h:
#include <stddef.h> // for wint_t
#include <vector> // for vector
#include "color.h" // for rgb_color_t
#include "common.h" // for wcstring
#include "fallback.h" // for tputs_arg_t
output.cpp should add these lines:
#include <limits.h> // for MB_LEN_MAX
#include <string> // for operator==
output.cpp should remove these lines:
- #include <dirent.h> // lines 39-39
- #include <errno.h> // lines 10-10
- #include <fcntl.h> // lines 38-38
- #include <signal.h> // lines 37-37
- #include <sys/ioctl.h> // lines 16-16
- #include <sys/stat.h> // lines 13-13
- #include <sys/time.h> // lines 19-19
- #include <sys/types.h> // lines 12-12
- #include <termios.h> // lines 11-11
- #include <time.h> // lines 40-40
- #include <unistd.h> // lines 20-20
- #include <wctype.h> // lines 21-21
- #include "env.h" // lines 52-52
- #include "expand.h" // lines 48-48
- #include "highlight.h" // lines 51-51
- #include "util.h" // lines 45-45
- #include "wutil.h" // lines 47-47
The full include-list for output.cpp:
#include "output.h"
#include <limits.h> // for MB_LEN_MAX
#include <ncurses.h> // for tparm
#include <stdio.h> // for snprintf
#include <stdlib.h> // for wcstombs
#include <string.h> // for strcat, strlen, memset
#include <term.h> // for TERMTYPE, enter_bold_mode, etc
#include <wchar.h> // for mbstate_t, wcrtomb, NULL
#include <string> // for operator==
#include "common.h" // for wcstring, debug, etc
#include "config.h" // for HAVE_NCURSES_H, etc
#include "fallback.h" // for tputs_arg_t
intern.h should add these lines:
intern.h should remove these lines:
- #include <wchar.h> // lines 10-10
The full include-list for intern.h:
intern.cpp should add these lines:
#include <pthread.h> // for PTHREAD_MUTEX_INITIALIZER, etc
#include <vector> // for vector
intern.cpp should remove these lines:
- #include <stdio.h> // lines 10-10
- #include <stdlib.h> // lines 9-9
- #include <unistd.h> // lines 12-12
- #include <set> // lines 13-13
- #include "config.h" // lines 6-6
- #include "fallback.h" // lines 16-16
- #include "util.h" // lines 17-17
- #include "wutil.h" // lines 19-19
The full include-list for intern.cpp:
#include "intern.h"
#include <pthread.h> // for PTHREAD_MUTEX_INITIALIZER, etc
#include <wchar.h> // for wcscmp, wcsdup, NULL
#include <algorithm> // for lower_bound
#include <vector> // for vector
#include "common.h" // for scoped_lock
env_universal_common.h should add these lines:
#include <pthread.h> // for pthread_mutex_t
#include <stdio.h> // for fprintf, stderr
#include <vector> // for vector
#include "common.h" // for wcstring, wcstring_list_t
struct callback_data_t;
struct callback_data_t;
env_universal_common.h should remove these lines:
- #include <queue> // lines 5-5
- #include "util.h" // lines 9-9
The full include-list for env_universal_common.h:
#include <pthread.h> // for pthread_mutex_t
#include <stdio.h> // for fprintf, stderr
#include <wchar.h> // for NULL
#include <set> // for set
#include <string> // for basic_string
#include <vector> // for vector
#include "common.h" // for wcstring, wcstring_list_t
#include "env.h" // for var_table_t, env_var_t
#include "wutil.h" // for file_id_t
struct callback_data_t;
struct callback_data_t;
env_universal_common.cpp should add these lines:
#include <assert.h> // for assert
#include <bits/socket_type.h> // for SOCK_STREAM
#include <errno.h> // for errno, ENOENT, EINTR, etc
#include <limits.h> // for NAME_MAX, ULLONG_MAX
#include <netinet/in.h> // for htonl, ntohl
#include <stdarg.h> // for va_end, va_list, va_start
#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t
#include <stdlib.h> // for getenv, free, malloc, etc
#include <string.h> // for memcpy, strcmp, strerror, etc
#include <sys/stat.h> // for stat, fstat, lstat, mkdir, etc
#include <sys/time.h> // for timeval
#include <sys/types.h> // for ssize_t, u_int
#include <unistd.h> // for close, getuid, ftruncate, etc
#include <wctype.h> // for iswalnum
#include <map> // for map<>::const_iterator
#include <utility> // for pair
env_universal_common.cpp should remove these lines:
- #include <arpa/inet.h> // lines 18-18
- #include <sys/un.h> // lines 13-13
- #include "fallback.h" // lines 25-25
- #include "iothread.h" // lines 32-32
- #include "path.h" // lines 31-31
The full include-list for env_universal_common.cpp:
#include "env_universal_common.h"
#include <assert.h> // for assert
#include <bits/socket_type.h> // for SOCK_STREAM
#include <errno.h> // for errno, ENOENT, EINTR, etc
#include <fcntl.h> // for O_RDWR, O_CREAT, O_NONBLOCK, etc
#include <limits.h> // for NAME_MAX, ULLONG_MAX
#include <net/if.h> // for ifreq, ifr_name, ifr_hwaddr
#include <netinet/in.h> // for htonl, ntohl
#include <pwd.h> // for getpwuid, passwd
#include <stdarg.h> // for va_end, va_list, va_start
#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t
#include <stdlib.h> // for getenv, free, malloc, etc
#include <string.h> // for memcpy, strcmp, strerror, etc
#include <sys/file.h> // for flock, LOCK_EX
#include <sys/ioctl.h> // for SIOCGIFHWADDR, ioctl
#include <sys/mman.h> // for mmap, munmap, shm_open, etc
#include <sys/select.h> // for select, FD_ISSET, FD_SET, etc
#include <sys/socket.h> // for socket, AF_INET, sockaddr
#include <sys/stat.h> // for stat, fstat, lstat, mkdir, etc
#include <sys/time.h> // for timeval
#include <sys/types.h> // for ssize_t, u_int
#include <unistd.h> // for close, getuid, ftruncate, etc
#include <wctype.h> // for iswalnum
#include <map> // for map<>::const_iterator
#include <utility> // for pair
#include "common.h" // for wcstring, debug, etc
#include "config.h" // for HAVE_GETIFADDRS, etc
#include "utf8.h" // for utf8_to_wchar_string, etc
#include "util.h" // for get_time, mini
#include "wutil.h" // for wopen_cloexec, file_id_t, etc
input_common.h should add these lines:
#include <stddef.h> // for wint_t
input_common.h should remove these lines:
- #include <wchar.h> // lines 9-9
The full include-list for input_common.h:
#include <stddef.h> // for wint_t
input_common.cpp should add these lines:
#include <cwchar> // for wint_t
#include <deque> // for deque
#include <utility> // for swap, pair
#include "env.h" // for env_universal_barrier
input_common.cpp should remove these lines:
- #include <stdio.h> // lines 10-10
- #include <stdlib.h> // lines 9-9
- #include <sys/types.h> // lines 14-14
- #include <stack> // lines 17-17
- #include "fallback.h" // lines 24-24
- #include "wutil.h" // lines 28-28
The full include-list for input_common.cpp:
#include "input_common.h"
#include <errno.h> // for EAGAIN, EINTR, errno
#include <string.h> // for memset
#include <sys/select.h> // for FD_SET, select, FD_ISSET, etc
#include <sys/time.h> // for timeval
#include <unistd.h> // for STDIN_FILENO
#include <wchar.h> // for WEOF, mbrtowc, mbstate_t, etc
#include <cwchar> // for wint_t
#include <deque> // for deque
#include <list> // for list
#include <queue> // for queue
#include <utility> // for swap, pair
#include "common.h" // for debug, read_blocked, etc
#include "config.h" // for HAVE_SYS_SELECT_H
#include "env.h" // for env_universal_barrier
#include "env_universal_common.h" // for universal_notifier_t
#include "iothread.h" // for iothread_port, etc
#include "util.h" // for maxi
event.h should add these lines:
#include <ctime> // for NULL, pid_t
#include <vector> // for vector
event.h should remove these lines:
- #include <memory> // lines 15-15
The full include-list for event.h:
#include <ctime> // for NULL, pid_t
#include <vector> // for vector
#include "common.h" // for wcstring, wcstring_list_t
event.cpp should add these lines:
#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include <string> // for operator==, operator!=
#include "io.h" // for io_chain_t
event.cpp should remove these lines:
- #include <stdlib.h> // lines 8-8
- #include <string.h> // lines 14-14
- #include <termios.h> // lines 12-12
- #include <unistd.h> // lines 11-11
- #include <wchar.h> // lines 10-10
- #include "config.h" // lines 6-6
- #include "fallback.h" // lines 17-17
- #include "function.h" // lines 21-21
- #include "util.h" // lines 18-18
- #include "wutil.h" // lines 20-20
The full include-list for event.cpp:
#include "event.h"
#include <assert.h> // for assert
#include <signal.h> // for NSIG
#include <stddef.h> // for size_t
#include <stdio.h> // for NULL
#include <algorithm> // for for_each, find
#include <string> // for operator==, operator!=
#include "common.h" // for wcstring, format_string, _, etc
#include "input_common.h" // for input_common_add_callback
#include "io.h" // for io_chain_t
#include "parser.h" // for parser_t, etc
#include "proc.h" // for job_t, is_event, job_get, etc
#include "signal.h" // for sig2wcs, signal_handle, etc
(signal.h has correct #includes/fwd-decls)
signal.cpp should add these lines:
#include <wchar.h> // for wcscasecmp, wcsncasecmp
signal.cpp should remove these lines:
- #include <dirent.h> // lines 14-14
- #include <stdlib.h> // lines 10-10
- #include <sys/types.h> // lines 12-12
- #include <unistd.h> // lines 15-15
- #include "config.h" // lines 7-7
- #include "fallback.h" // lines 23-23
- #include "util.h" // lines 24-24
The full include-list for signal.cpp:
#include "signal.h"
#include <errno.h> // for errno
#include <signal.h> // for sigaction, SA_SIGINFO, etc
#include <stdio.h> // for NULL
#include <wchar.h> // for wcscasecmp, wcsncasecmp
#include "common.h" // for N_, FATAL_EXIT, _, etc
#include "event.h" // for event_is_signal_observed, etc
#include "proc.h" // for get_is_interactive, etc
#include "reader.h" // for reader_exit, etc
#include "wutil.h" // for wperror, fish_wcstoi
io.h should add these lines:
#include <stddef.h> // for NULL, size_t
#include <stdlib.h> // for free
#include "common.h" // for wcs2str, wcstring
io.h should remove these lines:
The full include-list for io.h:
#include <stddef.h> // for NULL, size_t
#include <stdlib.h> // for free
#include <tr1/memory> // for shared_ptr
#include <vector> // for vector
#include "common.h" // for wcs2str, wcstring
class io_chain_t; // lines 129-129
io.cpp should add these lines:
#include <assert.h> // for assert
io.cpp should remove these lines:
- #include <fcntl.h> // lines 23-23
- #include <ncurses.h> // lines 26-26
- #include <stdlib.h> // lines 9-9
- #include <string.h> // lines 12-12
- #include <sys/ioctl.h> // lines 19-19
- #include <sys/types.h> // lines 14-14
- #include <term.h> // lines 34-34
- #include <wchar.h> // lines 11-11
- #include <algorithm> // lines 16-16
- #include <set> // lines 15-15
- #include "fallback.h" // lines 39-39
- #include "util.h" // lines 40-40
The full include-list for io.cpp:
#include "io.h"
#include <assert.h> // for assert
#include <errno.h> // for errno, EAGAIN, EINTR
#include <stdio.h> // for fprintf, stderr, NULL
#include <unistd.h> // for dup
#include "common.h" // for debug, read_blocked, _
#include "config.h" // for HAVE_NCURSES_H, etc
#include "exec.h" // for exec_close, PIPE_ERROR, etc
#include "wutil.h" // for wperror, etc
parse_util.h should add these lines:
#include <stddef.h> // for size_t
#include <vector> // for vector
#include "common.h" // for wcstring, wcstring_list_t
#include "parse_constants.h" // for parse_error_list_t, etc
class parse_node_t;
parse_util.h should remove these lines:
- #include <map> // lines 13-13
- #include <set> // lines 14-14
- #include "autoload.h" // lines 10-10
- #include "parse_tree.h" // lines 11-11
The full include-list for parse_util.h:
#include <stddef.h> // for size_t
#include <wchar.h> // for NULL
#include <vector> // for vector
#include "common.h" // for wcstring, wcstring_list_t
#include "parse_constants.h" // for parse_error_list_t, etc
class parse_node_t;
parse_util.cpp should add these lines:
#include <stdarg.h> // for va_end, va_list, va_start
#include <string> // for operator==, basic_string
parse_util.cpp should remove these lines:
- #include <stdio.h> // lines 15-15
- #include <sys/types.h> // lines 16-16
- #include <time.h> // lines 25-25
- #include <unistd.h> // lines 17-17
- #include <wctype.h> // lines 18-18
- #include <algorithm> // lines 23-23
- #include <map> // lines 21-21
- #include <set> // lines 22-22
- #include "config.h" // lines 11-11
- #include "exec.h" // lines 37-37
- #include "intern.h" // lines 36-36
- #include "parser.h" // lines 42-42
- #include "signal.h" // lines 39-39
- #include "wutil.h" // lines 31-31
The full include-list for parse_util.cpp:
#include "parse_util.h"
#include <assert.h> // for assert
#include <stdarg.h> // for va_end, va_list, va_start
#include <stdlib.h> // for free
#include <wchar.h> // for NULL, wcslen, wcschr, etc
#include <string> // for operator==, basic_string
#include "builtin.h" // for builtin_exists
#include "common.h" // for wcstring, _, CHECK, etc
#include "env.h" // for env_set, ::ENV_LOCAL, etc
#include "expand.h" // for ::VARIABLE_EXPAND, etc
#include "fallback.h" // for wcsndup
#include "parse_tree.h" // for parse_node_t, etc
#include "tokenizer.h" // for tok_get_pos, tok_last_type, etc
#include "util.h" // for maxi
#include "wildcard.h" // for ::ANY_CHAR, ::ANY_STRING, etc
common.h should add these lines:
#include <stdarg.h> // for va_list
#include <stddef.h> // for size_t
#include <sys/types.h> // for ssize_t
#include "config.h" // for __sentinel
#include "fallback.h" // for __func__
common.h should remove these lines:
- #include <assert.h> // lines 22-22
- #include "util.h" // lines 23-23
- class completion_t; // lines 31-31
The full include-list for common.h:
#include <errno.h> // for errno
#include <pthread.h> // for pthread_mutex_t, etc
#include <stdarg.h> // for va_list
#include <stddef.h> // for size_t
#include <stdio.h> // for fprintf, NULL, stderr, FILE
#include <stdlib.h> // for abort, free
#include <string.h> // for strerror, strchr
#include <sys/types.h> // for ssize_t
#include <termios.h> // for termios
#include <wchar.h> // for fwprintf, wcschr
#include <sstream> // for wstringstream, stringstream
#include <string> // for string, basic_string, etc
#include <vector> // for vector
#include "config.h" // for __sentinel
#include "fallback.h" // for __func__
common.cpp should add these lines:
#include <assert.h> // for assert
#include <math.h> // for nan
#include <signal.h> // for pthread_sigmask, sigaddset, etc
common.cpp should remove these lines:
- #include <dirent.h> // lines 25-25
- #include <fcntl.h> // lines 41-41
- #include <ncurses.h> // lines 49-49
- #include <stropts.h> // lines 13-13
- #include <sys/types.h> // lines 26-26
- #include <term.h> // lines 57-57
- #include <time.h> // lines 39-39
- #include <unistd.h> // lines 33-33
- #include "complete.h" // lines 71-71
- #include "parser.h" // lines 70-70
- #include "proc.h" // lines 68-68
- #include "util.h" // lines 63-63
The full include-list for common.cpp:
#include "common.h"
#include <assert.h> // for assert
#include <errno.h> // for errno, EAGAIN, EINTR, etc
#include <execinfo.h> // for backtrace, etc
#include <limits.h> // for MB_LEN_MAX
#include <locale.h> // for setlocale, LC_CTYPE
#include <math.h> // for nan
#include <signal.h> // for pthread_sigmask, sigaddset, etc
#include <stdarg.h> // for va_list, va_end, va_start, etc
#include <stdio.h> // for NULL, fprintf, stderr, etc
#include <stdlib.h> // for free, malloc, realloc
#include <string.h> // for memset, strlen, strstr, etc
#include <sys/ioctl.h> // for winsize, ioctl, TIOCGWINSZ
#include <sys/stat.h> // for stat, S_ISDIR
#include <sys/time.h> // for timeval, gettimeofday
#include <termios.h> // for pid_t, termios
#include <unistd.h> // for getpid, read, ssize_t, etc
#include <wchar.h> // for wcslen, WEOF, mbstate_t, etc
#include <wctype.h> // for iswalnum
#include <algorithm> // for copy, find
#include "config.h" // for HAVE_EXECINFO_H, etc
#include "expand.h" // for ::INTERNAL_SEPARATOR, etc
#include "fallback.cpp" // for fish_wcswidth, fish_wcwidth, etc
#include "fallback.h" // for __func__
#include "util.cpp"
#include "wildcard.h" // for ::ANY_STRING, ::ANY_CHAR, etc
#include "wutil.h" // for wdirname, wmkdir, wstat
screen.h should add these lines:
#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include "common.h" // for wcstring
screen.h should remove these lines:
The full include-list for screen.h:
#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include <sys/stat.h> // for stat
#include <vector> // for vector
#include "common.h" // for wcstring
#include "highlight.h" // for highlight_spec_t
class page_rendering_t; // lines 19-19
screen.cpp should add these lines:
#include <algorithm> // for min
#include <string> // for string, operator!=, etc
screen.cpp should remove these lines:
- #include <errno.h> // lines 14-14
- #include <sys/types.h> // lines 16-16
- #include <termios.h> // lines 15-15
- #include <wctype.h> // lines 19-19
- #include "wutil.h" // lines 45-45
The full include-list for screen.cpp:
#include "screen.h"
#include <assert.h> // for assert
#include <ncurses.h> // for tparm
#include <stdio.h> // for NULL, fflush, stderr, etc
#include <stdlib.h> // for abs
#include <string.h> // for strlen, strcmp
#include <term.h> // for TERMTYPE, clr_eos, etc
#include <time.h> // for timespec
#include <unistd.h> // for STDOUT_FILENO
#include <wchar.h> // for wcslen, wcscmp, wcsstr, etc
#include <algorithm> // for min
#include <string> // for string, operator!=, etc
#include <vector> // for vector
#include "common.h" // for wcstring, write_loop, etc
#include "config.h" // for HAVE_NCURSES_H, etc
#include "env.h" // for env_var_t, env_get_string
#include "fallback.h" // for fish_wcwidth, fish_wcswidth
#include "highlight.h" // for highlight_get_color, etc
#include "output.h" // for output_set_writer, writembs, etc
#include "pager.h" // for page_rendering_t
#include "util.h" // for maxi, mini
path.h should add these lines:
#include <stddef.h> // for NULL
#include "common.h" // for wcstring
path.h should remove these lines:
The full include-list for path.h:
#include <stddef.h> // for NULL
#include "common.h" // for wcstring
#include "env.h" // for env_vars_snapshot_t
path.cpp should add these lines:
#include <assert.h> // for assert
#include <string> // for operator==, allocator, etc
#include <vector> // for vector, etc
path.cpp should remove these lines:
- #include <libgen.h> // lines 10-10
- #include <stdlib.h> // lines 3-3
- #include <sys/types.h> // lines 6-6
- #include "config.h" // lines 1-1
- #include "fallback.h" // lines 12-12
- #include "util.h" // lines 13-13
The full include-list for path.cpp:
#include "path.h"
#include <assert.h> // for assert
#include <errno.h> // for errno, EACCES, ENOENT, etc
#include <stdio.h> // for NULL
#include <sys/stat.h> // for stat, S_ISREG, S_ISDIR
#include <unistd.h> // for F_OK, X_OK
#include <wchar.h> // for wcslen
#include <string> // for operator==, allocator, etc
#include <vector> // for vector, etc
#include "common.h" // for wcstring, etc
#include "env.h" // for env_var_t, env_get_string, etc
#include "expand.h" // for ARRAY_SEP_STR, expand_tilde
#include "wutil.h" // for wstat, waccess, wperror
autoload.h should add these lines:
#include <pthread.h> // for pthread_mutex_t
#include <stddef.h> // for size_t
#include <time.h> // for time_t
autoload.h should remove these lines:
- #include <wchar.h> // lines 9-9
- #include <list> // lines 12-12
- #include <map> // lines 10-10
- struct builtin_script_t; // lines 43-43
The full include-list for autoload.h:
#include <pthread.h> // for pthread_mutex_t
#include <stddef.h> // for size_t
#include <time.h> // for time_t
#include <set> // for set
#include "common.h" // for wcstring, wcstring_list_t
#include "lru.h" // for lru_node_t, lru_cache_t
class env_vars_snapshot_t; // lines 44-44
autoload.cpp should add these lines:
#include <errno.h> // for errno
#include <sys/stat.h> // for stat, st_mtime
#include <unistd.h> // for R_OK
#include <wchar.h> // for NULL, wcscmp
#include <map> // for allocator
#include <string> // for operator+, char_traits, etc
#include <utility> // for pair
#include <vector> // for vector
autoload.cpp should remove these lines:
- #include "config.h" // lines 6-6
- #include "signal.h" // lines 10-10
The full include-list for autoload.cpp:
#include "autoload.h"
#include <assert.h> // for assert
#include <errno.h> // for errno
#include <sys/stat.h> // for stat, st_mtime
#include <unistd.h> // for R_OK
#include <wchar.h> // for NULL, wcscmp
#include <algorithm> // for lower_bound
#include <map> // for allocator
#include <string> // for operator+, char_traits, etc
#include <utility> // for pair
#include <vector> // for vector
#include "common.h" // for wcstring, scoped_lock, etc
#include "env.h" // for env_var_t, env_get_string, etc
#include "exec.h" // for exec_subshell
#include "wutil.h" // for waccess, wstat
parser_keywords.h should add these lines:
#include "common.h" // for wcstring
parser_keywords.h should remove these lines:
The full include-list for parser_keywords.h:
#include "common.h" // for wcstring
parser_keywords.cpp should add these lines:
parser_keywords.cpp should remove these lines:
- #include <stdio.h> // lines 10-10
- #include <stdlib.h> // lines 9-9
- #include "config.h" // lines 6-6
- #include "fallback.h" // lines 12-12
The full include-list for parser_keywords.cpp:
#include "parser_keywords.h"
#include "common.h" // for contains, wcstring
(iothread.h has correct #includes/fwd-decls)
iothread.cpp should add these lines:
#include <sys/select.h> // for select, FD_SET, FD_ZERO, etc
#include <sys/time.h> // for timeval
#include <algorithm> // for swap
iothread.cpp should remove these lines:
- #include <errno.h> // lines 6-6
- #include <stdlib.h> // lines 9-9
- #include <string.h> // lines 8-8
- #include "config.h" // lines 1-1
The full include-list for iothread.cpp:
#include "iothread.h"
#include <assert.h> // for assert
#include <fcntl.h> // for fcntl, FD_CLOEXEC, F_SETFD
#include <pthread.h> // for pthread_mutex_init, etc
#include <signal.h> // for pthread_sigmask, sigfillset, etc
#include <stdio.h> // for NULL, fprintf, stderr
#include <sys/select.h> // for select, FD_SET, FD_ZERO, etc
#include <sys/time.h> // for timeval
#include <unistd.h> // for intptr_t, pipe
#include <algorithm> // for swap
#include <queue> // for queue
#include "common.h" // for VOMIT_ON_FAILURE, etc
color.h should add these lines:
#include <string.h> // for memcmp
#include <string> // for string
color.h should remove these lines:
- #include <stdint.h> // lines 6-6
- #include <cstddef> // lines 7-7
- #include "config.h" // lines 8-8
The full include-list for color.h:
#include <string.h> // for memcmp
#include <string> // for string
#include "common.h" // for wcstring, wcstring_list_t
color.cpp should add these lines:
#include <assert.h> // for assert
#include <stdint.h> // for uint32_t
#include <stdlib.h> // for abort, labs
#include <wchar.h> // for wcscasecmp
#include <cstddef> // for size_t
color.cpp should remove these lines:
- #include "fallback.h" // lines 5-5
The full include-list for color.cpp:
#include "color.h"
#include <assert.h> // for assert
#include <stdint.h> // for uint32_t
#include <stdlib.h> // for abort, labs
#include <wchar.h> // for wcscasecmp
#include <cstddef> // for size_t
postfork.h should add these lines:
#include <stddef.h> // for size_t
class job_t;
class process_t;
postfork.h should remove these lines:
- #include <signal.h> // lines 10-10
- #include <sys/time.h> // lines 12-12
- #include <wchar.h> // lines 9-9
- #include <list> // lines 13-13
- #include "common.h" // lines 16-16
- #include "proc.h" // lines 18-18
- #include "util.h" // lines 17-17
- #include "wutil.h" // lines 19-19
The full include-list for postfork.h:
#include <spawn.h> // for posix_spawn_file_actions_t, etc
#include <stddef.h> // for size_t
#include <unistd.h> // for pid_t
#include "config.h" // for HAVE_SPAWN_H
#include "io.h" // for io_chain_t
class job_t;
class process_t;
postfork.cpp should add these lines:
#include <errno.h> // for errno, E2BIG, EAGAIN, etc
#include <signal.h> // for sigemptyset, sigset_t
#include <stdio.h> // for fprintf, stderr
#include <string.h> // for strlen
#include <time.h> // for timespec, nanosleep
#include <wchar.h> // for NULL
#include <tr1/memory> // for shared_ptr, __shared_ptr
#include "common.h" // for debug_safe, etc
#include "proc.h" // for job_t, job_get_flag, etc
#include "wutil.h" // for safe_perror, safe_strerror
postfork.cpp should remove these lines:
The full include-list for postfork.cpp:
#include "postfork.h"
#include <errno.h> // for errno, E2BIG, EAGAIN, etc
#include <fcntl.h> // for open, O_EXCL
#include <signal.h> // for sigemptyset, sigset_t
#include <stdio.h> // for fprintf, stderr
#include <string.h> // for strlen
#include <time.h> // for timespec, nanosleep
#include <wchar.h> // for NULL
#include <tr1/memory> // for shared_ptr, __shared_ptr
#include "common.h" // for debug_safe, etc
#include "exec.h" // for exec_close, get_interpreter
#include "iothread.h" // for iothread_drain_all
#include "proc.h" // for job_t, job_get_flag, etc
#include "signal.h" // for get_signals_with_handlers, etc
#include "wutil.h" // for safe_perror, safe_strerror
builtin.h should add these lines:
#include <stddef.h> // for size_t
#include <vector> // for vector
class completion_t;
builtin.h should remove these lines:
- #include <wchar.h> // lines 8-8
- #include "util.h" // lines 10-10
The full include-list for builtin.h:
#include <stddef.h> // for size_t
#include <vector> // for vector
#include "common.h" // for _, wcstring, etc
#include "io.h" // for io_chain_t
class completion_t;
class parser_t; // lines 14-14
builtin_test.cpp should add these lines:
#include <assert.h> // for assert
#include <stdarg.h> // for va_end, va_list, va_start
#include <stdio.h> // for printf
#include <unistd.h> // for getegid, geteuid, isatty, etc
#include <wchar.h> // for NULL, wcscmp, wcstoll
#include <string> // for operator==, basic_string, etc
builtin_test.cpp should remove these lines:
- #include "config.h" // lines 8-8
The full include-list for builtin_test.cpp:
#include "builtin.h"
#include <assert.h> // for assert
#include <stdarg.h> // for va_end, va_list, va_start
#include <stdio.h> // for printf
#include <sys/stat.h> // for stat, S_ISBLK, S_ISCHR, etc
#include <unistd.h> // for getegid, geteuid, isatty, etc
#include <wchar.h> // for NULL, wcscmp, wcstoll
#include <memory> // for auto_ptr, etc
#include <string> // for operator==, basic_string, etc
#include "common.h" // for wcstring_list_t, wcstring, etc
#include "proc.h" // for STATUS_BUILTIN_ERROR, etc
#include "wutil.h" // for wstat, waccess, lwstat
namespace test_expressions { class expression; } // lines 158-158
parse_tree.h should add these lines:
#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include <stdint.h> // for uint8_t, uint32_t
parse_tree.h should remove these lines:
- #include <inttypes.h> // lines 17-17
- #include "config.h" // lines 11-11
- #include "util.h" // lines 12-12
- class parse_node_t; // lines 19-19
The full include-list for parse_tree.h:
#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include <stdint.h> // for uint8_t, uint32_t
#include <wchar.h> // for NULL
#include <vector> // for vector
#include "common.h" // for wcstring
#include "parse_constants.h" // for parse_token_type_t, etc
#include "tokenizer.h" // for token_type
class parse_node_tree_t; // lines 20-20
parse_tree.cpp should add these lines:
#include <assert.h> // for assert
#include <stdarg.h> // for va_end, va_list, va_start
#include <stddef.h> // for NULL, size_t
#include <stdint.h> // for uint8_t
#include <stdio.h> // for fprintf, stderr
#include <wchar.h> // for wcscmp, wcschr
#include <string> // for operator+, basic_string, etc
#include "common.h" // for wcstring, append_format, etc
#include "parse_constants.h" // for parse_error_t, etc
#include "parse_tree.h" // for parse_node_t, etc
parse_tree.cpp should remove these lines:
- #include "expand.h" // lines 6-6
- #include "wutil.h" // lines 4-4
The full include-list for parse_tree.cpp:
#include <assert.h> // for assert
#include <stdarg.h> // for va_end, va_list, va_start
#include <stddef.h> // for NULL, size_t
#include <stdint.h> // for uint8_t
#include <stdio.h> // for fprintf, stderr
#include <wchar.h> // for wcscmp, wcschr
#include <algorithm> // for max, min
#include <string> // for operator+, basic_string, etc
#include <vector> // for vector, allocator
#include "common.h" // for wcstring, append_format, etc
#include "fallback.h" // for fish_wcwidth
#include "parse_constants.h" // for parse_error_t, etc
#include "parse_productions.h" // for production_element_t, etc
#include "parse_tree.h" // for parse_node_t, etc
#include "proc.h" // for get_is_interactive
#include "tokenizer.h" // for token_type, tok_last, etc
parse_productions.h should add these lines:
#include <stdint.h> // for uint8_t, uint32_t
#include "common.h" // for wcstring
#include "parse_constants.h" // for parse_token_type_t, etc
struct parse_token_t;
parse_productions.h should remove these lines:
- #include <inttypes.h> // lines 10-10
- #include "parse_tree.h" // lines 9-9
The full include-list for parse_productions.h:
#include <stdint.h> // for uint8_t, uint32_t
#include "common.h" // for wcstring
#include "parse_constants.h" // for parse_token_type_t, etc
struct parse_token_t;
parse_productions.cpp should add these lines:
#include <assert.h> // for assert
#include <stdio.h> // for fprintf, NULL, stderr
#include "parse_tree.h" // for parse_token_t, etc
parse_productions.cpp should remove these lines:
The full include-list for parse_productions.cpp:
#include "parse_productions.h"
#include <assert.h> // for assert
#include <stdio.h> // for fprintf, NULL, stderr
#include "parse_tree.h" // for parse_token_t, etc
parse_execution.h should add these lines:
#include <stddef.h> // for size_t
#include "common.h" // for wcstring, wcstring_list_t
#include "io.h" // for io_chain_t
#include "parse_constants.h"
class parser_t;
parse_execution.h should remove these lines:
- #include "config.h" // lines 9-9
- #include "util.h" // lines 10-10
- class job_t; // lines 14-14
The full include-list for parse_execution.h:
#include <stddef.h> // for size_t
#include "common.h" // for wcstring, wcstring_list_t
#include "io.h" // for io_chain_t
#include "parse_constants.h"
#include "parse_tree.h" // for parse_node_t (ptr only), etc
#include "proc.h" // for job_t (ptr only), etc
class parser_t;
struct block_t; // lines 15-15
parse_execution.cpp should add these lines:
#include <assert.h> // for assert
#include <errno.h> // for errno, ENOENT
#include <stdarg.h> // for va_end, va_list, va_start
#include <stdio.h> // for fprintf, stderr
#include <stdlib.h> // for EXIT_SUCCESS, free
#include <termios.h> // for tcgetattr, termios
#include <unistd.h> // for STDIN_FILENO
#include <wchar.h> // for wcschr
#include <wctype.h> // for iswspace
#include <string> // for operator==, basic_string
#include <tr1/memory> // for shared_ptr
#include <vector> // for vector
#include "env.h" // for env_set, ::ENV_LOCAL
#include "event.h" // for event_fire_generic
#include "function.h" // for function_exists
#include "tokenizer.h" // for fd_redirected_by_pipe, etc
#include "util.h" // for get_time
parse_execution.cpp should remove these lines:
- #include <algorithm> // lines 21-21
The full include-list for parse_execution.cpp:
#include "parse_execution.h"
#include <assert.h> // for assert
#include <errno.h> // for errno, ENOENT
#include <stdarg.h> // for va_end, va_list, va_start
#include <stdio.h> // for fprintf, stderr
#include <stdlib.h> // for EXIT_SUCCESS, free
#include <termios.h> // for tcgetattr, termios
#include <unistd.h> // for STDIN_FILENO
#include <wchar.h> // for wcschr
#include <wctype.h> // for iswspace
#include <string> // for operator==, basic_string
#include <tr1/memory> // for shared_ptr
#include <vector> // for vector
#include "builtin.h" // for builtin_exists, etc
#include "complete.h" // for completion_t
#include "env.h" // for env_set, ::ENV_LOCAL
#include "event.h" // for event_fire_generic
#include "exec.h" // for exec_job
#include "expand.h" // for expand_one, expand_string, etc
#include "function.h" // for function_exists
#include "parse_util.h"
#include "parser.h" // for parser_t, for_block_t, etc
#include "path.h" // for path_can_be_implicit_cd, etc
#include "reader.h" // for shell_is_exiting
#include "tokenizer.h" // for fd_redirected_by_pipe, etc
#include "util.h" // for get_time
#include "wildcard.h" // for wildcard_match
#include "wutil.h" // for fish_wcstoi, wperror
pager.h should add these lines:
#include <stddef.h> // for size_t
#include <string> // for basic_string
#include <vector> // for vector
#include "common.h" // for wcstring, wcstring_list_t, etc
pager.h should remove these lines:
The full include-list for pager.h:
#include <stddef.h> // for size_t
#include <string> // for basic_string
#include <vector> // for vector
#include "common.h" // for wcstring, wcstring_list_t, etc
#include "complete.h" // for completion_t
#include "reader.h" // for editable_line_t
#include "screen.h" // for screen_data_t, line_t
pager.cpp should add these lines:
#include <assert.h> // for assert
#include <wchar.h> // for wcwidth, wcslen
#include <wctype.h> // for iswspace
#include "util.h" // for maxi, mini
pager.cpp should remove these lines:
- #include "config.h" // lines 1-1
- #include "input_common.h" // lines 5-5
- #include "wutil.h" // lines 6-6
The full include-list for pager.cpp:
#include "pager.h"
#include <assert.h> // for assert
#include <wchar.h> // for wcwidth, wcslen
#include <wctype.h> // for iswspace
#include <map> // for map
#include <vector> // for vector
#include "highlight.h" // for highlight_make_background, etc
#include "util.h" // for maxi, mini
utf8.h should add these lines:
#include <stddef.h> // for size_t
utf8.h should remove these lines:
- #include <sys/types.h> // lines 23-23
- #include <wchar.h> // lines 26-26
The full include-list for utf8.h:
#include <stddef.h> // for size_t
#include <string> // for string, wstring
utf8.cpp should add these lines:
#include <algorithm> // for copy, min
utf8.cpp should remove these lines:
- #include <vector> // lines 24-24
The full include-list for utf8.cpp:
#include "utf8.h"
#include <stdint.h> // for uint32_t
#include <sys/types.h> // for int32_t
#include <wchar.h> // for NULL
#include <algorithm> // for copy, min
#include <limits> // for numeric_limits
#include <string> // for string, wstring
(fish_version.h has correct #includes/fwd-decls)
(fish_version.cpp has correct #includes/fwd-decls)
wcstringutil.h should add these lines:
#include <string> // for basic_string<>::size_type
wcstringutil.h should remove these lines:
The full include-list for wcstringutil.h:
#include <string> // for basic_string<>::size_type
#include <utility> // for pair
#include "common.h" // for wcstring
wcstringutil.cpp should add these lines:
wcstringutil.cpp should remove these lines:
- #include "config.h" // lines 6-6
The full include-list for wcstringutil.cpp:
#include "wcstringutil.h"
fish.cpp should add these lines:
#include <bits/socket_type.h> // for SOCK_DGRAM
#include <limits.h> // for PATH_MAX
#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t
#include <sys/stat.h> // for stat
#include <string> // for string, allocator, etc
#include <vector> // for vector
#include "io.h" // for io_chain_t
fish.cpp should remove these lines:
- #include <signal.h> // lines 46-46
- #include <sys/param.h> // lines 35-35
- #include <sys/types.h> // lines 38-38
- #include <termios.h> // lines 33-33
- #include <unistd.h> // lines 32-32
- #include "complete.h" // lines 55-55
- #include "exec.h" // lines 63-63
- #include "fallback.h" // lines 48-48
- #include "output.h" // lines 65-65
- #include "sanity.h" // lines 58-58
- #include "util.h" // lines 49-49
The full include-list for fish.cpp:
#include <bits/socket_type.h> // for SOCK_DGRAM
#include <errno.h> // for errno, EPROTOTYPE
#include <fcntl.h> // for open, O_RDONLY
#include <getopt.h> // for no_argument, optarg, etc
#include <limits.h> // for PATH_MAX
#include <locale.h> // for NULL, LC_ALL
#include <pwd.h> // for getpwuid, passwd
#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t
#include <stdio.h> // for printf, stderr
#include <stdlib.h> // for getenv, free, realpath, etc
#include <string.h> // for strcmp, strlen, strcasecmp, etc
#include <sys/socket.h> // for AF_UNIX, connect, socket
#include <sys/stat.h> // for stat
#include <sys/un.h> // for sockaddr_un
#include <unistd.h> // for readlink, STDIN_FILENO, etc
#include <wchar.h> // for fwprintf, wcsdup
#include <string> // for string, allocator, etc
#include <vector> // for vector
#include "builtin.h" // for builtin_destroy, etc
#include "common.h" // for wcstring, debug, etc
#include "config.h" // for HAVE_GETOPT_H, PACKAGE_NAME
#include "env.h" // for config_paths_t, env_init, etc
#include "event.h" // for event_destroy, event_init, etc
#include "expand.h"
#include "fish_version.h" // for get_fish_version
#include "function.h" // for function_init
#include "history.h" // for history_destroy, etc
#include "input.h" // for update_fish_color_support
#include "intern.h" // for intern
#include "io.h" // for io_chain_t
#include "parser.h" // for parser_t, block_type_t::TOP
#include "path.h" // for path_get_config
#include "proc.h" // for is_interactive_session, etc
#include "reader.h" // for reader_current_filename, etc
#include "wutil.h" // for wstat, wperror, set_cloexec, etc
fish_indent.cpp should add these lines:
#include <assert.h> // for assert
#include <locale.h> // for LC_ALL
#include <stddef.h> // for size_t, wint_t
#include <string> // for string
#include "color.h" // for rgb_color_t
#include "highlight.h" // for highlight_spec_t, etc
#include "parse_constants.h"
fish_indent.cpp should remove these lines:
- #include <map> // lines 28-28
- #include "screen.h" // lines 36-36
The full include-list for fish_indent.cpp:
#include <assert.h> // for assert
#include <getopt.h> // for no_argument, getopt_long, etc
#include <locale.h> // for LC_ALL
#include <stddef.h> // for size_t, wint_t
#include <stdio.h> // for ferror, fputs, FILE, NULL, etc
#include <stdlib.h> // for exit
#include <wchar.h> // for fgetwc, fwprintf, NULL, etc
#include <string> // for string
#include <vector> // for vector
#include "color.h" // for rgb_color_t
#include "common.h" // for wcstring, wcs2string, etc
#include "config.h" // for HAVE_GETOPT_H
#include "env.h" // for env_init, etc
#include "fish_version.h" // for get_fish_version
#include "highlight.h" // for highlight_spec_t, etc
#include "input.h" // for input_init
#include "output.h" // for output_set_writer, etc
#include "parse_constants.h"
#include "parse_tree.h" // for parse_node_t, etc
#include "print_help.h" // for print_help
#include "wutil.h" // for wperror
(print_help.h has correct #includes/fwd-decls)
print_help.cpp should add these lines:
#include <stddef.h> // for size_t
#include <sys/types.h> // for ssize_t
print_help.cpp should remove these lines:
The full include-list for print_help.cpp:
#include "print_help.h"
#include <stddef.h> // for size_t
#include <stdio.h> // for snprintf
#include <stdlib.h> // for system
#include <string.h> // for strlen
#include <sys/types.h> // for ssize_t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment