------------------------------------------------------------------------------- -- Phase: Environment ------------------------------------------------------------------------------- NO_DEPENDS=1 UNAME_r=6.5 UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=unknown UNAME_s=DragonFly PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SSL_NO_VERIFY_PEER=1 LANG=C HOME=/root USER=root TERM=dumb SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: showconfig ------------------------------------------------------------------------------- ===> The following configuration options are available for clex-4.7: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: CONFIGURE_ENV ------------------------------------------------------------------------------- MAKE=gmake XDG_DATA_HOME=/construction/misc/clex XDG_CONFIG_HOME=/construction/misc/clex XDG_CACHE_HOME=/construction/misc/clex/.cache HOME=/construction/misc/clex TMPDIR="/tmp" PATH=/construction/misc/clex/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/construction/misc/clex/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc80 CONFIG_SITE=/xports/Templates/config.site lt_cv_sys_max_cmd_len=262144 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: CONFIGURE_ARGS ------------------------------------------------------------------------------- --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: MAKE_ENV ------------------------------------------------------------------------------- XDG_DATA_HOME=/construction/misc/clex XDG_CONFIG_HOME=/construction/misc/clex XDG_CACHE_HOME=/construction/misc/clex/.cache HOME=/construction/misc/clex TMPDIR="/tmp" PATH=/construction/misc/clex/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/construction/misc/clex/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -L/usr/local/lib -Wl,-rpath=/usr/local/lib " LIBS="" CXX="c++" CXXFLAGS=" -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: MAKE_ARGS ------------------------------------------------------------------------------- DESTDIR=/construction/misc/clex/stage SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: PLIST_SUB ------------------------------------------------------------------------------- PORTDOCS="" OSREL=6.5 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/clex" EXAMPLESDIR="share/examples/clex" DATADIR="share/clex" WWWDIR="www/clex" ETCDIR="etc/clex" SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: SUB_LIST ------------------------------------------------------------------------------- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/clex DOCSDIR=/usr/local/share/doc/clex EXAMPLESDIR=/usr/local/share/examples/clex WWWDIR=/usr/local/www/clex ETCDIR=/usr/local/etc/clex SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: /etc/make.conf ------------------------------------------------------------------------------- DPORTS_BUILDER=yes DISABLE_LICENSES=yes DEFAULT_VERSIONS=ssl=openssl FORCE_PACKAGE=yes DEVELOPER=yes DFLY_STING_XFAIL=yes USE_PACKAGE_DEPENDS_ONLY=yes PORTSDIR=/xports PORT_DBDIR=/options PKG_DBDIR=/var/db/pkg PKG_CACHEDIR=/var/cache/pkg PKG_COMPRESSION_FORMAT=.tgz DEVELOPER=1 WITH_CCACHE_BUILD=yes CCACHE_DIR=/ccache UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=600503 OSVERSION=9999999 OSREL=6.5 _OSRELEASE=6.5-SYNTH DISTDIR=/distfiles WRKDIRPREFIX=/construction BATCH=yes PACKAGE_BUILDING=yes PKG_CREATE_VERBOSE=yes MAKE_JOBS_NUMBER=13 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: setup ------------------------------------------------------------------------------- Installing /packages/All/ncurses-6.4.pkg ===== Message from ncurses-6.4: -- To get the terminfo database please install the terminfo-db package: pkg install terminfo-db Installing /packages/All/indexinfo-0.3.1.pkg Installing /packages/All/gettext-runtime-0.21.1.pkg Installing /packages/All/gmake-4.3_2.pkg Installing /packages/All/ccache-3.7.12_4.pkg Create compiler links... create symlink for cc create symlink for cc (world) create symlink for c++ create symlink for c++ (world) create symlink for CC create symlink for CC (world) create symlink for gcc create symlink for gcc (world) create symlink for g++ create symlink for g++ (world) ===== Message from ccache-3.7.12_4: -- NOTE: Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for information on using ccache with FreeBSD ports and src. SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: check-sanity ------------------------------------------------------------------------------- ===> NOTICE: The clex port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: pkg-depends ------------------------------------------------------------------------------- ===> clex-4.7 depends on file: /usr/local/sbin/pkg - found SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: fetch-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: fetch ------------------------------------------------------------------------------- ===> NOTICE: The clex port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> clex-4.7 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by clex-4.7 for building SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: checksum ------------------------------------------------------------------------------- ===> NOTICE: The clex port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> clex-4.7 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by clex-4.7 for building => SHA256 Checksum OK for clex-4.7.tar.gz. SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: extract-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: extract ------------------------------------------------------------------------------- ===> NOTICE: The clex port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> clex-4.7 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by clex-4.7 for building ===> Extracting for clex-4.7 => SHA256 Checksum OK for clex-4.7.tar.gz. Extracted Memory Use: 1.15M SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: patch-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: patch ------------------------------------------------------------------------------- ===> Patching for clex-4.7 ===> Applying dragonfly patches for clex-4.7 from /xports/misc/clex/dragonfly SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: build-depends ------------------------------------------------------------------------------- ===> clex-4.7 depends on file: /usr/local/lib/libncurses.so.6 - found ===> clex-4.7 depends on package: gmake>=4.3 - found ===> clex-4.7 depends on file: /usr/local/bin/ccache - found SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: lib-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: configure ------------------------------------------------------------------------------- ===> clex-4.7 depends on file: /usr/local/lib/libncurses.so.6 - found ===> clex-4.7 depends on package: gmake>=4.3 - found ===> clex-4.7 depends on file: /usr/local/bin/ccache - found ===> Configuring for clex-4.7 configure: loading site script /xports/Templates/config.site checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p checking for gawk... (cached) /usr/bin/awk checking whether gmake sets $(MAKE)... yes checking whether gmake supports nested variables... yes checking for gcc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking whether cc understands -c and -o together... yes checking whether gmake supports the include directive... yes (GNU style) checking dependency style of cc... gcc3 checking for library containing setupterm... -ltinfo checking for library containing addwstr... -lncursesw checking how to run the C preprocessor... cpp checking for grep that handles long lines and -e... (cached) /usr/bin/grep checking for egrep... (cached) /usr/bin/egrep checking for ANSI C header files... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking whether sys/types.h defines makedev... yes checking for fcntl.h... (cached) yes checking for langinfo.h... (cached) yes checking for limits.h... (cached) yes checking for locale.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for unistd.h... (cached) yes checking for wchar.h... (cached) yes checking for wctype.h... (cached) yes checking ncursesw.h usability... no checking ncursesw.h presence... no checking for ncursesw.h... no checking ncurses.h usability... yes checking ncurses.h presence... no configure: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: ncurses.h: proceeding with the compiler's result checking for ncurses.h... yes checking term.h usability... yes checking term.h presence... no configure: WARNING: term.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: term.h: proceeding with the compiler's result checking for term.h... yes checking for uid_t in sys/types.h... (cached) yes checking for mode_t... (cached) yes checking for off_t... (cached) yes checking for pid_t... (cached) yes checking for size_t... (cached) yes checking for ssize_t... (cached) yes checking return type of signal handlers... void checking for struct stat.st_rdev... yes checking whether sys_siglist is declared... (cached) yes checking for working POSIX fnmatch... yes checking for vfork.h... (cached) no checking for fork... (cached) yes checking for vfork... (cached) yes checking for working fork... yes checking for working vfork... (cached) yes checking for working strcoll... yes checking for alarm... (cached) yes checking for btowc... (cached) yes checking for dup2... (cached) yes checking for endgrent... (cached) yes checking for endpwent... yes checking for getcwd... (cached) yes checking for iswprint... yes checking for memset... (cached) yes checking for nl_langinfo... (cached) yes checking for setenv... (cached) yes checking for setlocale... (cached) yes checking for strchr... (cached) yes checking for strerror... (cached) yes checking for strsignal... (cached) yes checking for uname... (cached) yes checking for wcwidth... (cached) yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating clex.spec config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands SUCCEEDED 00:00:06 ------------------------------------------------------------------------------- -- Phase: build ------------------------------------------------------------------------------- ===> Building for clex-4.7 gmake[1]: Entering directory '/construction/misc/clex/clex-4.7' gmake all-recursive gmake[2]: Entering directory '/construction/misc/clex/clex-4.7' Making all in src gmake[3]: Entering directory '/construction/misc/clex/clex-4.7/src' sed -f convert.sed help_en.hlp > help.inc gmake all-am gmake[4]: Entering directory '/construction/misc/clex/clex-4.7/src' cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/ncurses -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -pedantic -Wstrict-overflow=0 -Wformat-overflow=0 -MT bookmarks.o -MD -MP -MF .deps/bookmarks.Tpo -c -o bookmarks.o bookmarks.c cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/ncurses -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -pedantic -Wstrict-overflow=0 -Wformat-overflow=0 -MT cfg.o -MD -MP -MF .deps/cfg.Tpo -c -o cfg.o cfg.c cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/ncurses -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -pedantic -Wstrict-overflow=0 -Wformat-overflow=0 -MT cmp.o -MD -MP -MF .deps/cmp.Tpo -c -o cmp.o cmp.c cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/ncurses -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -pedantic -Wstrict-overflow=0 -Wformat-overflow=0 -MT completion.o -MD -MP -MF .deps/completion.Tpo -c -o completion.o completion.c cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/ncurses -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -pedantic -Wstrict-overflow=0 -Wformat-overflow=0 -MT control.o -MD -MP -MF .deps/control.Tpo -c -o control.o control.c cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/ncurses -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -pedantic -Wstrict-overflow=0 -Wformat-overflow=0 -MT directory.o -MD -MP -MF .deps/directory.Tpo -c -o directory.o directory.c cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/ncurses -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -pedantic -Wstrict-overflow=0 -Wformat-overflow=0 -MT edit.o -MD -MP -MF .deps/edit.Tpo -c -o edit.o edit.c cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/ncurses -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -pedantic -Wstrict-overflow=0 -Wformat-overflow=0 -MT exec.o -MD -MP -MF .deps/exec.Tpo -c -o exec.o exec.c cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/ncurses -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -pedantic -Wstrict-overflow=0 -Wformat-overflow=0 -MT filepanel.o -MD -MP -MF .deps/filepanel.Tpo -c -o filepanel.o filepanel.c cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/ncurses -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -pedantic -Wstrict-overflow=0 -Wformat-overflow=0 -MT filter.o -MD -MP -MF .deps/filter.Tpo -c -o filter.o filter.c cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/ncurses -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -pedantic -Wstrict-overflow=0 -Wformat-overflow=0 -MT filerw.o -MD -MP -MF .deps/filerw.Tpo -c -o filerw.o filerw.c cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/ncurses -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -pedantic -Wstrict-overflow=0 -Wformat-overflow=0 -MT help.o -MD -MP -MF .deps/help.Tpo -c -o help.o help.c cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/ncurses -pipe -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -Wall -pedantic -Wstrict-overflow=0 -Wformat-overflow=0 -MT history.o -MD -MP -MF .deps/history.Tpo -c -o history.o history.c In file included from cfg.c:15: clexheaders.h:1: error: unterminated #if #if defined(__APPLE__) In file included from control.c:15: clexheaders.h:1: error: unterminated #if #if defined(__APPLE__) In file included from cfg.c:22: cfg.h:6:14: error: unknown type name 'wchar_t' extern const wchar_t *cfg_print_value(int); ^~~~~~~ In file included from cfg.c:27: edit.h:7:1: warning: parameter names (without types) in function declaration extern int edit_isspecial(wchar_t); ^~~~~~ edit.h:9:1: warning: parameter names (without types) in function declaration extern void edit_nu_insertchar(wchar_t); ^~~~~~ edit.h:10:1: warning: parameter names (without types) in function declaration extern void edit_insertchar(wchar_t); ^~~~~~ edit.h:11:37: error: unknown type name 'wchar_t' extern void edit_nu_insertstr(const wchar_t *, int); ^~~~~~~ edit.h:12:34: error: unknown type name 'wchar_t' extern void edit_insertstr(const wchar_t *, int); ^~~~~~~ edit.h:13:34: error: unknown type name 'wchar_t' extern void edit_nu_putstr(const wchar_t *); ^~~~~~~ edit.h:14:31: error: unknown type name 'wchar_t' extern void edit_putstr(const wchar_t *); ^~~~~~~ edit.h:16:30: error: unknown type name 'wchar_t' extern void edit_macro(const wchar_t *); ^~~~~~~ edit.h:17:28: error: unknown type name 'TEXTLINE' extern void edit_setprompt(TEXTLINE *, const wchar_t *); ^~~~~~~~ edit.h:17:46: error: unknown type name 'wchar_t' extern void edit_setprompt(TEXTLINE *, const wchar_t *); ^~~~~~~ In file included from cfg.c:28: exec.h:4:30: error: unknown type name 'wchar_t' extern int execute_cmd(const wchar_t *); ^~~~~~~ In file included from cfg.c:30: history.h:5:29: error: unknown type name 'wchar_t' extern void hist_save(const wchar_t *, int); ^~~~~~~ history.h:7:14: error: unknown type name 'HIST_ENTRY' extern const HIST_ENTRY *get_history_entry(int i); ^~~~~~~~~~ In file included from cfg.c:31: inout.h:8:8: error: unknown type name 'wint_t' extern wint_t kbd_input(void); ^~~~~~ inout.h:13:32: error: unknown type name 'wchar_t' extern void win_settitle(const wchar_t *); ^~~~~~~ inout.h:27:36: error: unknown type name 'wchar_t' extern void win_sethelp(int, const wchar_t *); ^~~~~~~ In file included from cfg.c:34: mbwstring.h:1:14: error: unknown type name 'wchar_t' extern const wchar_t *usw_convert2w(const char *, USTRINGW *); ^~~~~~~ mbwstring.h:1:51: error: unknown type name 'USTRINGW' extern const wchar_t *usw_convert2w(const char *, USTRINGW *); ^~~~~~~~ mbwstring.h:2:14: error: unknown type name 'wchar_t' extern const wchar_t *convert2w(const char *); ^~~~~~~ mbwstring.h:3:40: error: unknown type name 'wchar_t' extern const char *us_convert2mb(const wchar_t *, USTRING *); ^~~~~~~ mbwstring.h:3:51: error: unknown type name 'USTRING' extern const char *us_convert2mb(const wchar_t *, USTRING *); ^~~~~~~ mbwstring.h:4:37: error: unknown type name 'wchar_t' extern const char *convert2mb(const wchar_t *); ^~~~~~~ mbwstring.h:5:1: warning: parameter names (without types) in function declaration extern int utf_iscomposing(wchar_t); ^~~~~~ mbwstring.h:6:26: error: unknown type name 'wchar_t' extern int wc_cols(const wchar_t *, int, int); ^~~~~~~ In file included from cfg.c:36: panel.h:12:24: error: unknown type name 'PANEL_DESC' extern void pan_adjust(PANEL_DESC *); ^~~~~~~~~~ In file included from cfg.c:37: xterm_title.h:3:54: error: unknown type name 'wchar_t' extern void xterm_title_set(int, const char *, const wchar_t *); ^~~~~~~ cfg.c:46:7: warning: ISO C forbids forward references to 'enum' types [-Wpedantic] enum CFG_TYPE code; /* CFG_XXX */ ^~~~~~~~ cfg.c:46:16: error: field 'code' has incomplete type enum CFG_TYPE code; /* CFG_XXX */ ^~~~ cfg.c:47:8: error: unknown type name 'wchar_t' const wchar_t *extra_val; /* if defined - name of the special value (represented as 0) */ ^~~~~~~ cfg.c:49:8: error: unknown type name 'wchar_t' const wchar_t *desc[4]; /* if defined - show this text instead ^~~~~~~ cfg.c:56:4: error: 'CFG_CMD_LINES' undeclared here (not in a function) { CFG_CMD_LINES, 0, ^~~~~~~~~~~~~ cfg.c:57:9: error: 'MAX_CMDLINES' undeclared here (not in a function) 2, 2, MAX_CMDLINES, ^~~~~~~~~~~~ cfg.c:62:4: error: 'CFG_FRAME' undeclared here (not in a function); did you mean 'CFG_TYPE'? { CFG_FRAME, 0, ^~~~~~~~~ CFG_TYPE cfg.c:67:4: error: 'CFG_KILOBYTE' undeclared here (not in a function); did you mean 'CFG_TYPE'? { CFG_KILOBYTE, 0, ^~~~~~~~~~~~ CFG_TYPE cfg.c:71:4: error: 'CFG_LAYOUT' undeclared here (not in a function); did you mean 'CFG_TYPE'? { CFG_LAYOUT, 0, ^~~~~~~~~~ CFG_TYPE cfg.c:76:4: error: 'CFG_MOUSE' undeclared here (not in a function); did you mean 'CFG_TYPE'? { CFG_MOUSE, 0, ^~~~~~~~~ CFG_TYPE cfg.c:81:4: error: 'CFG_TIME_DATE' undeclared here (not in a function) { CFG_TIME_DATE, 0, ^~~~~~~~~~~~~ cfg.c:86:4: error: 'CFG_XTERM_TITLE' undeclared here (not in a function) { CFG_XTERM_TITLE, 0, ^~~~~~~~~~~~~~~ cfg.c:91:4: error: 'CFG_C_SIZE' undeclared here (not in a function); did you mean 'CFG_TYPE'? { CFG_C_SIZE, 0, 10, 120, 200 }, ^~~~~~~~~~ CFG_TYPE cfg.c:92:4: error: 'CFG_D_SIZE' undeclared here (not in a function); did you mean 'CFG_TYPE'? { CFG_D_SIZE, L"AUTO", 10, 0, 200 }, ^~~~~~~~~~ CFG_TYPE cfg.c:93:4: error: 'CFG_H_SIZE' undeclared here (not in a function); did you mean 'CFG_TYPE'? { CFG_H_SIZE, 0, 10, 60, 200 }, ^~~~~~~~~~ CFG_TYPE cfg.c:94:4: error: 'CFG_MOUSE_SCROLL' undeclared here (not in a function) { CFG_MOUSE_SCROLL, 0, 1, 3, 8 }, ^~~~~~~~~~~~~~~~ cfg.c:95:4: error: 'CFG_DOUBLE_CLICK' undeclared here (not in a function) { CFG_DOUBLE_CLICK, 0, 200, 400, 800 } ^~~~~~~~~~~~~~~~ cfg.c:99:7: warning: ISO C forbids forward references to 'enum' types [-Wpedantic] enum CFG_TYPE code; /* CFG_XXX */ ^~~~~~~~ cfg.c:99:16: error: field 'code' has incomplete type enum CFG_TYPE code; /* CFG_XXX */ ^~~~ cfg.c:100:8: error: unknown type name 'wchar_t' const wchar_t *extra_val; /* if defined - name of special value (represented as L"") */ ^~~~~~~ cfg.c:101:2: error: unknown type name 'wchar_t' wchar_t *initial; ^~~~~~~ cfg.c:102:2: error: unknown type name 'wchar_t' wchar_t current[CFGVALUE_LEN + 1], new[CFGVALUE_LEN + 1]; ^~~~~~~ cfg.c:106:4: error: 'CFG_CMD_F3' undeclared here (not in a function) { CFG_CMD_F3, 0, L"more $f" }, ^~~~~~~~~~ cfg.c:107:4: error: 'CFG_CMD_F4' undeclared here (not in a function) { CFG_CMD_F4, 0, L"vi $f" }, ^~~~~~~~~~ cfg.c:108:4: error: 'CFG_CMD_F5' undeclared here (not in a function) { CFG_CMD_F5, 0, L"cp -ir $f $2" }, ^~~~~~~~~~ cfg.c:109:4: error: 'CFG_CMD_F6' undeclared here (not in a function) { CFG_CMD_F6, 0, L"mv -i $f $2" }, ^~~~~~~~~~ cfg.c:110:4: error: 'CFG_CMD_F7' undeclared here (not in a function) { CFG_CMD_F7, 0, L"mkdir " }, ^~~~~~~~~~ In file included from control.c:25: bookmarks.h:7:14: error: unknown type name 'BOOKMARK' extern const BOOKMARK *get_bookmark(const wchar_t *); ^~~~~~~~ cfg.c:111:4: error: 'CFG_CMD_F8' undeclared here (not in a function) { CFG_CMD_F8, 0, L"rm $f" }, ^~~~~~~~~~ cfg.c:112:4: error: 'CFG_CMD_F9' undeclared here (not in a function) { CFG_CMD_F9, 0, L"lpr $f" }, ^~~~~~~~~~ In file included from control.c:30: edit.h:17:28: error: unknown type name 'TEXTLINE' extern void edit_setprompt(TEXTLINE *, const wchar_t *); ^~~~~~~~ In file included from control.c:35: history.h:7:14: error: unknown type name 'HIST_ENTRY' extern const HIST_ENTRY *get_history_entry(int i); ^~~~~~~~~~ cfg.c:113:4: error: 'CFG_CMD_F10' undeclared here (not in a function) { CFG_CMD_F10, 0, L"" }, ^~~~~~~~~~~ cfg.c:114:4: error: 'CFG_CMD_F11' undeclared here (not in a function) { CFG_CMD_F11, 0, L"" }, ^~~~~~~~~~~ In file included from control.c:42: panel.h:12:24: error: unknown type name 'PANEL_DESC' extern void pan_adjust(PANEL_DESC *); ^~~~~~~~~~ cfg.c:115:4: error: 'CFG_CMD_F12' undeclared here (not in a function) { CFG_CMD_F12, 0, L"" }, ^~~~~~~~~~~ cfg.c:116:4: error: 'CFG_FMT_TIME' undeclared here (not in a function); did you mean 'CFG_TYPE'? { CFG_FMT_TIME, L"AUTO", L"" }, ^~~~~~~~~~~~ CFG_TYPE control.c:77:2: error: unknown type name 'CODE' CODE fkey; /* type of the key */ ^~~~ control.c:78:2: error: unknown type name 'FLAG' FLAG escp; /* press escape key first */ ^~~~ cfg.c:117:4: error: 'CFG_FMT_DATE' undeclared here (not in a function); did you mean 'CFG_TYPE'? { CFG_FMT_DATE, L"AUTO", L"" }, ^~~~~~~~~~~~ CFG_TYPE control.c: In function 'cx_mode_bm': control.c:103:59: error: 'MODE_BM' undeclared (first use in this function) #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:104:8: note: in expansion of macro 'CXM' static CXM(bm,BM) ^~~ cfg.c:118:4: error: 'CFG_LAYOUT1' undeclared here (not in a function) { CFG_LAYOUT1, 0, L"$d $S $>$t $M $*|$p $o $L" }, ^~~~~~~~~~~ control.c:103:59: note: each undeclared identifier is reported only once for each function it appears in #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:104:8: note: in expansion of macro 'CXM' static CXM(bm,BM) ^~~ cfg.c:119:4: error: 'CFG_LAYOUT2' undeclared here (not in a function) { CFG_LAYOUT2, 0, L"$d $R $t $*|$p $o", }, ^~~~~~~~~~~ control.c: In function 'cx_mode_cfg': control.c:103:59: error: 'MODE_CFG' undeclared (first use in this function) #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:105:8: note: in expansion of macro 'CXM' static CXM(cfg,CFG) ^~~ cfg.c:120:4: error: 'CFG_LAYOUT3' undeclared here (not in a function) { CFG_LAYOUT3, 0, L"$p $o $s $d $>$t $*|mode=$m atime=$a ctime=$i links=$l" }, ^~~~~~~~~~~ cfg.c:121:4: error: 'CFG_PROMPT' undeclared here (not in a function); did you mean 'CFG_TYPE'? { CFG_PROMPT, 0, L"$s $p " }, ^~~~~~~~~~ CFG_TYPE control.c: In function 'cx_mode_cmp': control.c:103:59: error: 'MODE_CMP' undeclared (first use in this function) #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:106:8: note: in expansion of macro 'CXM' static CXM(cmp,CMP) ^~~ cfg.c:122:4: error: 'CFG_QUOTE' undeclared here (not in a function); did you mean 'CFG_TYPE'? { CFG_QUOTE, 0, L"" } ^~~~~~~~~ CFG_TYPE cfg.c:127:2: error: unknown type name 'CODE' CODE code; /* internal code */ ^~~~ cfg.c:129:8: error: unknown type name 'wchar_t' const wchar_t *help; /* help text - should fit on minimal width screen */ ^~~~~~~ cfg.c:130:14: error: 'CFG_TOTAL_' undeclared here (not in a function); did you mean 'CFG_TYPE'? } table_desc[CFG_TOTAL_] = { ^~~~~~~~~~ CFG_TYPE cfg.c:130:3: error: size of array 'table_desc' has non-integer type } table_desc[CFG_TOTAL_] = { ^~~~~~~~~~ cfg.c:130:1: warning: variably modified 'table_desc' at file scope } table_desc[CFG_TOTAL_] = { ^ cfg.c:131:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_C_SIZE, "C_PANEL_SIZE", ^~~~~~~~~~ cfg.c:131:4: note: (near initialization for 'table_desc[0].code') cfg.c:131:4: error: initializer element is not constant cfg.c:131:4: note: (near initialization for 'table_desc[0].code') cfg.c:133:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_CMD_F3, "CMD_F3", ^~~~~~~~~~ cfg.c:133:4: note: (near initialization for 'table_desc[1].code') cfg.c:133:4: error: initializer element is not constant cfg.c:133:4: note: (near initialization for 'table_desc[1].code') cfg.c:133:2: warning: excess elements in array initializer { CFG_CMD_F3, "CMD_F3", ^ cfg.c:133:2: note: (near initialization for 'table_desc') cfg.c:135:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_CMD_F4, "CMD_F4", ^~~~~~~~~~ cfg.c:135:4: note: (near initialization for 'table_desc[1].code') control.c: In function 'cx_mode_deselect': cfg.c:135:4: error: initializer element is not constant cfg.c:135:4: note: (near initialization for 'table_desc[1].code') control.c:103:59: error: 'MODE_DESELECT' undeclared (first use in this function); did you mean 'KEY_SELECT'? #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:107:8: note: in expansion of macro 'CXM' static CXM(deselect,DESELECT) ^~~ cfg.c:135:2: warning: excess elements in array initializer { CFG_CMD_F4, "CMD_F4", ^ cfg.c:135:2: note: (near initialization for 'table_desc') cfg.c:137:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_CMD_F5, "CMD_F5", ^~~~~~~~~~ cfg.c:137:4: note: (near initialization for 'table_desc[1].code') cfg.c:137:4: error: initializer element is not constant cfg.c:137:4: note: (near initialization for 'table_desc[1].code') cfg.c:137:2: warning: excess elements in array initializer { CFG_CMD_F5, "CMD_F5", ^ cfg.c:137:2: note: (near initialization for 'table_desc') cfg.c:139:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_CMD_F6, "CMD_F6", ^~~~~~~~~~ cfg.c:139:4: note: (near initialization for 'table_desc[1].code') cfg.c:139:4: error: initializer element is not constant cfg.c:139:4: note: (near initialization for 'table_desc[1].code') cfg.c:139:2: warning: excess elements in array initializer { CFG_CMD_F6, "CMD_F6", ^ cfg.c:139:2: note: (near initialization for 'table_desc') cfg.c:141:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_CMD_F7, "CMD_F7", ^~~~~~~~~~ cfg.c:141:4: note: (near initialization for 'table_desc[1].code') cfg.c:141:4: error: initializer element is not constant cfg.c:141:4: note: (near initialization for 'table_desc[1].code') cfg.c:141:2: warning: excess elements in array initializer { CFG_CMD_F7, "CMD_F7", ^ cfg.c:141:2: note: (near initialization for 'table_desc') cfg.c:143:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_CMD_F8, "CMD_F8", ^~~~~~~~~~ cfg.c:143:4: note: (near initialization for 'table_desc[1].code') cfg.c:143:4: error: initializer element is not constant cfg.c:143:4: note: (near initialization for 'table_desc[1].code') cfg.c:143:2: warning: excess elements in array initializer { CFG_CMD_F8, "CMD_F8", ^ cfg.c:143:2: note: (near initialization for 'table_desc') cfg.c:145:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_CMD_F9, "CMD_F9", ^~~~~~~~~~ cfg.c:145:4: note: (near initialization for 'table_desc[1].code') cfg.c:145:4: error: initializer element is not constant cfg.c:145:4: note: (near initialization for 'table_desc[1].code') cfg.c:145:2: warning: excess elements in array initializer { CFG_CMD_F9, "CMD_F9", ^ cfg.c:145:2: note: (near initialization for 'table_desc') cfg.c:147:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_CMD_F10, "CMD_F10", ^~~~~~~~~~~ cfg.c:147:4: note: (near initialization for 'table_desc[1].code') cfg.c:147:4: error: initializer element is not constant cfg.c:147:4: note: (near initialization for 'table_desc[1].code') cfg.c:147:2: warning: excess elements in array initializer { CFG_CMD_F10, "CMD_F10", ^ cfg.c:147:2: note: (near initialization for 'table_desc') cfg.c:149:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_CMD_F11, "CMD_F11", ^~~~~~~~~~~ cfg.c:149:4: note: (near initialization for 'table_desc[1].code') cfg.c:149:4: error: initializer element is not constant cfg.c:149:4: note: (near initialization for 'table_desc[1].code') cfg.c:149:2: warning: excess elements in array initializer { CFG_CMD_F11, "CMD_F11", ^ cfg.c:149:2: note: (near initialization for 'table_desc') cfg.c:151:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_CMD_F12, "CMD_F12", ^~~~~~~~~~~ cfg.c:151:4: note: (near initialization for 'table_desc[1].code') cfg.c:151:4: error: initializer element is not constant cfg.c:151:4: note: (near initialization for 'table_desc[1].code') cfg.c:151:2: warning: excess elements in array initializer { CFG_CMD_F12, "CMD_F12", ^ cfg.c:151:2: note: (near initialization for 'table_desc') cfg.c:153:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_CMD_LINES, "CMD_LINES", ^~~~~~~~~~~~~ cfg.c:153:4: note: (near initialization for 'table_desc[1].code') cfg.c:153:4: error: initializer element is not constant cfg.c:153:4: note: (near initialization for 'table_desc[1].code') cfg.c:153:2: warning: excess elements in array initializer { CFG_CMD_LINES, "CMD_LINES", ^ cfg.c:153:2: note: (near initialization for 'table_desc') cfg.c:155:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_D_SIZE, "D_PANEL_SIZE", ^~~~~~~~~~ cfg.c:155:4: note: (near initialization for 'table_desc[1].code') cfg.c:155:4: error: initializer element is not constant cfg.c:155:4: note: (near initialization for 'table_desc[1].code') cfg.c:155:2: warning: excess elements in array initializer { CFG_D_SIZE, "D_PANEL_SIZE", ^ cfg.c:155:2: note: (near initialization for 'table_desc') cfg.c:157:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_DOUBLE_CLICK, "DOUBLE_CLICK", ^~~~~~~~~~~~~~~~ cfg.c:157:4: note: (near initialization for 'table_desc[1].code') cfg.c:157:4: error: initializer element is not constant cfg.c:157:4: note: (near initialization for 'table_desc[1].code') cfg.c:157:2: warning: excess elements in array initializer { CFG_DOUBLE_CLICK, "DOUBLE_CLICK", ^ cfg.c:157:2: note: (near initialization for 'table_desc') cfg.c:159:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_FRAME, "FRAME", ^~~~~~~~~ cfg.c:159:4: note: (near initialization for 'table_desc[1].code') cfg.c:159:4: error: initializer element is not constant cfg.c:159:4: note: (near initialization for 'table_desc[1].code') cfg.c:159:2: warning: excess elements in array initializer { CFG_FRAME, "FRAME", ^ cfg.c:159:2: note: (near initialization for 'table_desc') cfg.c:161:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_FMT_TIME, "TIME_FMT", ^~~~~~~~~~~~ cfg.c:161:4: note: (near initialization for 'table_desc[1].code') cfg.c:161:4: error: initializer element is not constant cfg.c:161:4: note: (near initialization for 'table_desc[1].code') cfg.c:161:2: warning: excess elements in array initializer { CFG_FMT_TIME, "TIME_FMT", ^ cfg.c:161:2: note: (near initialization for 'table_desc') cfg.c:163:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_FMT_DATE, "DATE_FMT", ^~~~~~~~~~~~ cfg.c:163:4: note: (near initialization for 'table_desc[1].code') cfg.c:163:4: error: initializer element is not constant cfg.c:163:4: note: (near initialization for 'table_desc[1].code') cfg.c:163:2: warning: excess elements in array initializer { CFG_FMT_DATE, "DATE_FMT", ^ cfg.c:163:2: note: (near initialization for 'table_desc') cfg.c:165:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_H_SIZE, "H_PANEL_SIZE", ^~~~~~~~~~ cfg.c:165:4: note: (near initialization for 'table_desc[1].code') cfg.c:165:4: error: initializer element is not constant cfg.c:165:4: note: (near initialization for 'table_desc[1].code') cfg.c:165:2: warning: excess elements in array initializer { CFG_H_SIZE, "H_PANEL_SIZE", ^ cfg.c:165:2: note: (near initialization for 'table_desc') cfg.c:167:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_KILOBYTE, "KILOBYTE", ^~~~~~~~~~~~ cfg.c:167:4: note: (near initialization for 'table_desc[1].code') cfg.c:167:4: error: initializer element is not constant cfg.c:167:4: note: (near initialization for 'table_desc[1].code') cfg.c:167:2: warning: excess elements in array initializer { CFG_KILOBYTE, "KILOBYTE", ^ cfg.c:167:2: note: (near initialization for 'table_desc') cfg.c:169:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_LAYOUT, "LAYOUT_ACTIVE", ^~~~~~~~~~ cfg.c:169:4: note: (near initialization for 'table_desc[1].code') cfg.c:169:4: error: initializer element is not constant cfg.c:169:4: note: (near initialization for 'table_desc[1].code') cfg.c:169:2: warning: excess elements in array initializer { CFG_LAYOUT, "LAYOUT_ACTIVE", ^ cfg.c:169:2: note: (near initialization for 'table_desc') cfg.c:171:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_LAYOUT1, "LAYOUT1", ^~~~~~~~~~~ cfg.c:171:4: note: (near initialization for 'table_desc[1].code') cfg.c:171:4: error: initializer element is not constant cfg.c:171:4: note: (near initialization for 'table_desc[1].code') cfg.c:171:2: warning: excess elements in array initializer { CFG_LAYOUT1, "LAYOUT1", ^ cfg.c:171:2: note: (near initialization for 'table_desc') cfg.c:173:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_LAYOUT2, "LAYOUT2", ^~~~~~~~~~~ cfg.c:173:4: note: (near initialization for 'table_desc[1].code') cfg.c:173:4: error: initializer element is not constant cfg.c:173:4: note: (near initialization for 'table_desc[1].code') cfg.c:173:2: warning: excess elements in array initializer { CFG_LAYOUT2, "LAYOUT2", ^ cfg.c:173:2: note: (near initialization for 'table_desc') cfg.c:175:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_LAYOUT3, "LAYOUT3", ^~~~~~~~~~~ cfg.c:175:4: note: (near initialization for 'table_desc[1].code') cfg.c:175:4: error: initializer element is not constant cfg.c:175:4: note: (near initialization for 'table_desc[1].code') cfg.c:175:2: warning: excess elements in array initializer { CFG_LAYOUT3, "LAYOUT3", ^ cfg.c:175:2: note: (near initialization for 'table_desc') cfg.c:177:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_MOUSE, "MOUSE", ^~~~~~~~~ cfg.c:177:4: note: (near initialization for 'table_desc[1].code') cfg.c:177:4: error: initializer element is not constant cfg.c:177:4: note: (near initialization for 'table_desc[1].code') cfg.c:177:2: warning: excess elements in array initializer { CFG_MOUSE, "MOUSE", ^ cfg.c:177:2: note: (near initialization for 'table_desc') cfg.c:179:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_MOUSE_SCROLL, "MOUSE_SCROLL", ^~~~~~~~~~~~~~~~ cfg.c:179:4: note: (near initialization for 'table_desc[1].code') cfg.c:179:4: error: initializer element is not constant cfg.c:179:4: note: (near initialization for 'table_desc[1].code') cfg.c:179:2: warning: excess elements in array initializer { CFG_MOUSE_SCROLL, "MOUSE_SCROLL", ^ cfg.c:179:2: note: (near initialization for 'table_desc') cfg.c:181:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_PROMPT, "PROMPT", ^~~~~~~~~~ cfg.c:181:4: note: (near initialization for 'table_desc[1].code') cfg.c:181:4: error: initializer element is not constant cfg.c:181:4: note: (near initialization for 'table_desc[1].code') cfg.c:181:2: warning: excess elements in array initializer { CFG_PROMPT, "PROMPT", ^ cfg.c:181:2: note: (near initialization for 'table_desc') cfg.c:183:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_QUOTE, "QUOTE", ^~~~~~~~~ cfg.c:183:4: note: (near initialization for 'table_desc[1].code') cfg.c:183:4: error: initializer element is not constant cfg.c:183:4: note: (near initialization for 'table_desc[1].code') cfg.c:183:2: warning: excess elements in array initializer { CFG_QUOTE, "QUOTE", ^ cfg.c:183:2: note: (near initialization for 'table_desc') cfg.c:185:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_TIME_DATE, "TIME_DATE", ^~~~~~~~~~~~~ cfg.c:185:4: note: (near initialization for 'table_desc[1].code') cfg.c:185:4: error: initializer element is not constant cfg.c:185:4: note: (near initialization for 'table_desc[1].code') cfg.c:185:2: warning: excess elements in array initializer { CFG_TIME_DATE, "TIME_DATE", ^ cfg.c:185:2: note: (near initialization for 'table_desc') cfg.c:187:4: warning: initialization of 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] { CFG_XTERM_TITLE, "XTERM_TITLE", ^~~~~~~~~~~~~~~ cfg.c:187:4: note: (near initialization for 'table_desc[1].code') cfg.c:187:4: error: initializer element is not constant cfg.c:187:4: note: (near initialization for 'table_desc[1].code') cfg.c:187:2: warning: excess elements in array initializer { CFG_XTERM_TITLE, "XTERM_TITLE", ^ cfg.c:187:2: note: (near initialization for 'table_desc') cfg.c:191:8: error: unknown type name 'CFG_ENTRY' static CFG_ENTRY config[CFG_TOTAL_]; ^~~~~~~~~ cfg.c:191:18: error: size of array 'config' has non-integer type static CFG_ENTRY config[CFG_TOTAL_]; ^~~~~~ cfg.c:191:1: warning: variably modified 'config' at file scope static CFG_ENTRY config[CFG_TOTAL_]; ^~~~~~ cfg.c: In function 'set_value': cfg.c:208:8: error: unknown type name 'wchar_t' const wchar_t *src_str; ^~~~~~~ cfg.c:209:2: error: unknown type name 'wchar_t' wchar_t *dst_str; ^~~~~~~ cfg.c:209:2: note: 'wchar_t' is defined in header ''; did you forget to '#include '? cfg.c:38:1: +#include cfg.c:209:2: wchar_t *dst_str; ^~~~~~~ cfg.c:213:18: error: request for member 'isnum' in something not a structure or union if (config[code].isnum) { ^ cfg.c:214:22: error: request for member 'table' in something not a structure or union pnum = config[code].table; ^ cfg.c:214:8: warning: assignment to 'CNUM *' {aka 'struct *'} from incompatible pointer type 'CSTR *' {aka 'struct *'} [-Wincompatible-pointer-types] pnum = config[code].table; ^ cfg.c:228:22: error: request for member 'table' in something not a structure or union pstr = config[code].table; ^ cfg.c:239:3: warning: implicit declaration of function 'wcscpy'; did you mean 'strcpy'? [-Wimplicit-function-declaration] wcscpy(dst_str,src_str); ^~~~~~ strcpy cfg.c: At top level: cfg.c:243:8: error: unknown type name 'CFG_ENTRY' static CFG_ENTRY * ^~~~~~~~~ cfg.c: In function 'get_variable_by_name': cfg.c:248:16: warning: comparison between pointer and integer for (i = 0; i < CFG_TOTAL_; i++) ^ control.c: In function 'cx_mode_dir': control.c:103:59: error: 'MODE_DIR' undeclared (first use in this function) #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:108:8: note: in expansion of macro 'CXM' static CXM(dir,DIR) ^~~ control.c: In function 'cx_mode_fopt': control.c:103:59: error: 'MODE_FOPT' undeclared (first use in this function) #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:109:8: note: in expansion of macro 'CXM' static CXM(fopt,FOPT) ^~~ In file included from cmp.c:17: clexheaders.h:1: error: unterminated #if #if defined(__APPLE__) In file included from directory.c:15: clexheaders.h:1: error: unterminated #if #if defined(__APPLE__) In file included from directory.c:26: edit.h:17:28: error: unknown type name 'TEXTLINE' extern void edit_setprompt(TEXTLINE *, const wchar_t *); ^~~~~~~~ In file included from directory.c:31: mbwstring.h:1:51: error: unknown type name 'USTRINGW' extern const wchar_t *usw_convert2w(const char *, USTRINGW *); ^~~~~~~~ mbwstring.h:3:51: error: unknown type name 'USTRING' extern const char *us_convert2mb(const wchar_t *, USTRING *); ^~~~~~~ cfg.c: In function 'get_numeric': cfg.c:259:18: warning: implicit declaration of function 'ARRAY_SIZE' [-Wimplicit-function-declaration] for (i = 0; i < ARRAY_SIZE(table_numeric); i++) ^~~~~~~~~~ cfg.c:260:29: warning: comparison between pointer and integer if (table_numeric[i].code == code) ^~ control.c: In function 'cx_mode_group': control.c:103:59: error: 'MODE_GROUP' undeclared (first use in this function) #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:110:8: note: in expansion of macro 'CXM' static CXM(group,GROUP) ^~~ In file included from directory.c:32: panel.h:12:24: error: unknown type name 'PANEL_DESC' extern vIn file included from cmp.c:29: inout.h:8:8: error: unknown type name 'wint_t' extern wint_t kbd_input(void); ^~~~~~ oid pan_adjust(PANEL_DESC *); ^~~~~~~~~~ cfg.c: In function 'get_string': directory.c:50:2: error: unknown type name 'USTRING' USTRING dirname; /* directory name */ ^~~~~~~ cfg.c:271:28: warning: comparison between pointer and integer if (table_string[i].code == code) ^~ control.c: In function 'cx_mode_help': directory.c:51:2: error: unknown type name 'USTRINGW' USTRINGW dirnamew; /* wide char version (converted on demand) */ ^~~~~~~~ In file included from cmp.c:33: panel.h:12:24: error: unknown type name 'PANEL_DESC' extern void pan_adjust(PANEL_DESC *); ^~~~~~~~~~ directory.c:52:2: error: unknown type name 'SDSTRING' SDSTRING savefile; /* file panel's current file */ ^~~~~~~~ In file included from history.c:15: clexheaders.h:1: error: unterminated #if #if defined(__APPLE__) control.c:103:59: error: 'MODE_HELP' undeclared (first use in this function); did you mean 'KEY_HELP'? #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:111:8: note: in expansion of macro 'CXM' static CXM(help,HELP) ^~~ cfg.c: In function 'get_desc': cfg.c:281:16: warning: comparison between pointer and integer for (i = 0; i < CFG_TOTAL_; i++) ^ cfg.c: In function 'cfgfile_read': cfg.c:304:8: error: unknown type name 'wchar_t' const wchar_t *wvalue; ^~~~~~~ cmp.c: In function 'cmp_prepare': cmp.c:40:13: warning: implicit declaration of function 'USTR' [-Wimplicit-function-declaration] if (strcmp(USTR(ppanel_file->dir),USTR(ppanel_file->other->dir)) == 0) { ^~~~ directory.c: In function 'dir_initialize': directory.c:68:2: warning: implicit declaration of function 'edit_setprompt'; did you mean 'edit_macro'? [-Wimplicit-function-declaration] edit_setprompt(&line_dir,L"Change directory: "); ^~~~~~~~~~~~~~ edit_macro cfg.c:305:2: error: unknown type name 'CFG_ENTRY' CFG_ENTRY *pce; ^~~~~~~~~ cmp.c:40:18: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? if (strcmp(USTR(ppanel_file->dir),USTR(ppanel_file->other->dir)) == 0) { ^~~~~~~~~~~ pan_line cmp.c:40:18: note: each undeclared identifier is reported only once for each function it appears in control.c: In function 'cx_mode_history': control.c:103:59: error: 'MODE_HIST' undeclared (first use in this function) #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:112:8: note: in expansion of macro 'CXM' static CXM(history,HIST) ^~~ directory.c:68:18: error: 'line_dir' undeclared (first use in this function) edit_setprompt(&line_dir,L"Change directory: "); ^~~~~~~~ cmp.c:45:2: error: 'panel_cmp' undeclared (first use in this function) panel_cmp.pd->top = panel_fopt.pd->min; ^~~~~~~~~ directory.c:68:18: note: each undeclared identifier is reported only once for each function it appears in In file included from directory.c:23: directory.c: In function 'dir_reconfig': cfg.h:17:35: error: 'pcfg' undeclared (first use in this function) #define cfg_num(X) (*(const int *)pcfg[X]) ^~~~ directory.c:75:11: note: in expansion of macro 'cfg_num' dp_max = cfg_num(CFG_D_SIZE); ^~~~~~~ control.c: In function 'cx_mode_inschar': cmp.c:45:22: error: 'panel_fopt' undeclared (first use in this function); did you mean 'win_panel_opt'? panel_cmp.pd->top = panel_fopt.pd->min; ^~~~~~~~~~ win_panel_opt control.c:103:59: error: 'MODE_INSCHAR' undeclared (first use in this function) #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:113:8: note: in expansion of macro 'CXM' static CXM(inschar,INSCHAR) ^~~ cmp.c:47:2: error: 'panel' undeclared (first use in this function) panel = panel_cmp.pd; ^~~~~ directory.c:75:19: error: 'CFG_D_SIZE' undeclared (first use in this function); did you mean 'FD_SETSIZE'? dp_max = cfg_num(CFG_D_SIZE); ^~~~~~~~~~ cfg.h:17:40: note: in definition of macro 'cfg_num' #define cfg_num(X) (*(const int *)pcfg[X]) ^ directory.c:61:18: error: 'panel_dir' undeclared (first use in this function) #define DP_LIST (panel_dir.dir) ^~~~~~~~~ directory.c:80:9: note: in expansion of macro 'DP_LIST' efree(DP_LIST); ^~~~~~~ cmp.c:48:2: warning: implicit declaration of function 'pan_adjust' [-Wimplicit-function-declaration] pan_adjust(panel); ^~~~~~~~~~ directory.c:82:39: error: 'DIR_ENTRY' undeclared (first use in this function) DP_LIST = emalloc(dp_alloc * sizeof(DIR_ENTRY)); ^~~~~~~~~ cmp.c:49:2: error: 'textline' undeclared (first use in this function); did you mean 'pan_line'? textline = 0; ^~~~~~~~ pan_line control.c: In function 'cx_mode_log': control.c:103:59: error: 'MODE_LOG' undeclared (first use in this function) #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:114:8: note: in expansion of macro 'CXM' static CXM(log,LOG) ^~~ directory.c: In function 'dir_cmp': cmp.c: In function 'cmp_summary_prepare': directory.c:148:9: error: unknown type name 'USTRING' static USTRING cut1 = UNULL, cut2 = UNULL; ^~~~~~~ cmp.c:57:2: error: 'panel_cmp_sum' undeclared (first use in this function) panel_cmp_sum.pd->top = panel_cmp_sum.pd->curs = panel_cmp_sum.pd->min; ^~~~~~~~~~~~~ directory.c:148:24: error: 'UNULL' undeclared (first use in this function); did you mean 'NULL'? static USTRING cut1 = UNULL, cut2 = UNULL; ^~~~~ NULL cmp.c:59:2: error: 'panel' undeclared (first use in this function) panel = panel_cmp_sum.pd; ^~~~~ directory.c:165:17: warning: implicit declaration of function 'us_copyn'; did you mean 'va_copy'? [-Wimplicit-function-declaration] return strcoll(us_copyn(&cut1,dir1,len1),us_copyn(&cut2,dir2,len2)); ^~~~~~~~ va_copy cmp.c:60:2: error: 'textline' undeclared (first use in this function); did you mean 'pan_line'? textline = 0; ^~~~~~~~ pan_line directory.c:165:17: warning: passing argument 1 of 'strcoll' makes pointer from integer without a cast [-Wint-conversion] return strcoll(us_copyn(&cut1,dir1,len1),us_copyn(&cut2,dir2,len2)); ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from directory.c:19: /usr/include/string.h:93:14: note: expected 'const char *' but argument is of type 'int' int strcoll(const char *, const char *); ^~~~~~~~~~~~ directory.c:165:43: warning: passing argument 2 of 'strcoll' makes pointer from integer without a cast [-Wint-conversion] return strcoll(us_copyn(&cut1,dir1,len1),us_copyn(&cut2,dir2,len2)); ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from directory.c:19: /usr/include/string.h:93:28: note: expected 'const char *' but argument is of type 'int' int strcoll(const char *, const char *); ^~~~~~~~~~~~ cmp.c: In function 'cmp_saveopt': cmp.c:73:19: error: 'CMP_TOTAL_' undeclared (first use in this function) static char buff[CMP_TOTAcontrol.c: In function 'cx_mode_mainmenu': L_ + 1]; ^~~~~~~~~~ control.c:103:59: error: 'MODE_MAINMENU' undeclared (first use in this function) #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:115:8: note: in expansion of macro 'CXM' static CXM(mainmenu,MAINMENU) ^~~ directory.c: In function 'qcmp': cmp.c:76:7: warning: implicit declaration of function 'COPT' [-Wimplicit-function-declaration] if (COPT(i)) ^~~~ directory.c:175:19: error: 'DIR_ENTRY' undeclared (first use in this function) return dir_cmp(((DIR_ENTRY *)e1)->name,((DIR_ENTRY *)e2)->name); ^~~~~~~~~ cmp.c:73:14: warning: unused variable 'buff' [-Wunused-variable] static char buff[CMP_TOTAL_ + 1]; ^~~~ directory.c:175:30: error: expected expression before ')' token return dir_cmp(((DIR_ENTRY *)e1)->name,((DIR_ENTRY *)e2)->name); ^ directory.c:175:54: error: expected expression before ')' token return dir_cmp(((DIR_ENTRY *)e1)->name,((DIR_ENTRY *)e2)->name); ^ directory.c: In function 'dir_panel_data': directory.c:184:2: error: unknown type name 'FLAG' FLAG store; ^~~~ In file included from directory.c:23: cfg.h:17:35: error: 'pcfg' undeclared (first use in this function) #define cfg_num(X) (*(const int *)pcfg[X]) ^~~~ directory.c:189:6: note: in expansion of macro 'cfg_num' if (cfg_num(CFG_D_SIZE) == 0) { ^~~~~~~ cmp.c: In function 'cmp_restoreopt': cmp.c:90:18: error: 'CMP_TOTAL_' undeclared (first use in this function) for (i = 0; i < CMP_TOTAL_; i++) ^~~~~~~~~~ cmp.c:91:11: error: lvalue required as left operand of assignment COPT(i) = 0; ^ control.c: In function 'cx_mode_notif': cmp.c:96:18: error: lvalue required as left operand of assignment COPT(ch - 'A') = 1; ^ control.c:103:59: error: 'MODE_NOTIF' undeclared (first use in this function); did you mean 'MSG_NOTIFY'? #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:116:8: note: in expansion of macro 'CXM' static CXM(notif,NOTIF) ^~~ directory.c:189:14: error: 'CFG_D_SIZE' undeclared (first use in this function); did you mean 'FD_SETSIZE'? if (cfg_num(CFG_D_SIZE) == 0) { ^~~~~~~~~~ cfg.h:17:40: note: in definition of macro 'cfg_num' #define cfg_num(X) (*(const int *)pcfg[X]) ^ cmp.c: In function 'qcmp': cmp.c:106:4: warning: implicit declaration of function 'SDSTR' [-Wimplicit-function-declaration] SDSTR((*(FILE_ENTRY **)e1)->file), ^~~~~ directory.c:194:12: error: 'disp_data' undeclared (first use in this function) dp_max = disp_data.panlines + panel_dir.pd->min - 1; ^~~~~~~~~ directory.c:194:33: error: 'panel_dir' undeclared (first use in this function) dp_max = disp_data.panlines + panel_dir.pd->min - 1; ^~~~~~~~~ cmp.c:106:13: error: 'FILE_ENTRY' undeclared (first use in this function) SDSTR((*(FILE_ENTRY **)e1)->file), ^~~~~~~~~~ cmp.c:106:26: error: expected expression before ')' token SDSTR((*(FILE_ENTRY **)e1)->file), ^ cmp.c:107:26: error: expected expression before ')' token SDSTR((*(FILE_ENTRY **)e2)->file)); ^ In file included from bookmarks.c:15: clexheaders.h:1: error: unterminated #if #if defined(__APPLE__) directory.c:195:3: warning: implicit declaration of function 'LIMIT_MAX'; did you mean 'WINT_MAX'? [-Wimplicit-function-declaration] LIMIT_MAX(dp_max,dp_alloc); ^~~~~~~~~ WINT_MAX directory.c:204:14: warning: implicit declaration of function 'USTR' [-Wimplicit-function-declaration] dirname = USTR(dirlist[i]->dirname); ^~~~ directory.c:204:12: warning: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] dirname = USTR(dirlist[i]->dirname); ^ directory.c:205:12: warning: assignment to 'const wchar_t *' {aka 'const int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] dirnamew = USTR(dirlist[i]->dirnamew); ^ In file included from history.c:21: history.h:7:14: error: unknown type name 'HIST_ENTRY' extern const HIST_ENTRY *get_history_entry(int i); ^~~~~~~~~~ directory.c:207:15: warning: implicit declaration of function 'usw_convert2w'; did you mean 'convert2w'? [-Wimplicit-function-declaration] dirnamew = usw_convert2w(dirname,&dirlist[i]->dirnamew); ^~~~~~~~~~~~~ convert2w directory.c:207:13: warning: assignment to 'const wchar_t *' {aka 'const int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] dirnamew = usw_convert2w(dirname,&dirlist[i]->dirnamew); ^ cmp.c: In function 'data_cmp': cmp.c:137:7: error: 'ctrlc_flag' undeclared (first use in this function); did you mean 'strtofflags'? if (ctrlc_flag) ^~~~~~~~~~ strtofflags directory.c:233:27: error: 'DIR_ENTRY' undeclared (first use in this function) qsort(DP_LIST,cnt,sizeof(DIR_ENTRY),qcmp); ^~~~~~~~~ cmp.c: In function 'cmp_directories': cmp.c:183:2: error: unknown type name 'FILE_ENTRY' FILE_ENTRY *pfe1, *pfe2; ^~~~~~~~~~ directory.c: In function 'dir_main_prepare': In file included from edit.c:15: clexheaders.h:1: error: unterminated #if #if defined(__APPLE__) directory.c:258:2: error: 'panel_dir' undeclared (first use in this function); did you mean 'prevdir'? panel_dir.pd->filtering = 0; ^~~~~~~~~ prevdir cmp.c:184:9: error: unknown type name 'FILE_ENTRY' static FILE_ENTRY **p1 = 0; /* copy of panel #1 sorted for binary search */ ^~~~~~~~~~ directory.c:268:10: warning: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] prevdir = USTR(dirlist[(dir_cnt > 1) /* [1] or [0] */ ]->dirname); ^ directory.c:274:2: error: 'panel' undeclared (first use in this function) panel = panel_dir.pd; ^~~~~ directory.c:275:2: error: 'textline' undeclared (first use in this function); did you mean 'pan_line'? textline = &line_dir; ^~~~~~~~ pan_line directory.c:275:14: error: 'line_dir' undeclared (first use in this function); did you mean 'prevdir'? textline = &line_dir; ^~~~~~~~ prevdir directory.c: In function 'dir_split_dir': directory.c:285:9: error: unknown type name 'USTRING' static USTRING copy = UNULL; ^~~~~~~ directory.c:285:24: error: 'UNULL' undeclared (first use in this function); did you mean 'NULL'? static USTRING copy = UNULL; ^~~~~ NULL directory.c:288:10: error: 'panel_dir_split' undeclared (first use in this function) return panel_dir_split.name; ^~~~~~~~~~~~~~~ directory.c:292:11: warning: implicit declaration of function 'us_copy'; did you mean 'va_copy'? [-Wimplicit-function-declaration] for (p = us_copy(©,panel_dir_split.name); /* until return */ ;) ^~~~~~~ va_copy directory.c:295:11: warning: returning 'int' from a function with return type 'const char *' makes pointer from integer without a cast [-Wint-conversion] return USTR(copy); ^~~~~~~~~~ directory.c: In function 'dir_split_prepare': directory.c:305:12: error: 'panel_dir_split' undeclared (first use in this function) dirname = panel_dir_split.name = DP_LIST[panel_dir.pd->curs].name; ^~~~~~~~~~~~~~~ directory.c:61:18: error: 'panel_dir' undeclared (first use in this function) #define DP_LIST (panel_dir.dir) ^~~~~~~~~ directory.c:305:36: note: in expansion of macro 'DP_LIST' dirname = panel_dir_split.name = DP_LIST[panel_dir.pd->curs].name; ^~~~~~~ In file included from help.c:48: clexheaders.h:1: error: unterminated #if #if defined(__APPLE__) directory.c:316:2: error: 'panel' undeclared (first use in this function) panel = panel_dir_split.pd; ^~~~~ directory.c: In function 'filepos_save': directory.c:329:2: error: unknown type name 'FLAG' FLAG new = 1; ^~~~ directory.c:338:4: warning: implicit declaration of function 'US_INIT' [-Wimplicit-function-declaration] US_INIT(storage[i].dirname); ^~~~~~~ directory.c:340:4: warning: implicit declaration of function 'SD_INIT' [-Wimplicit-function-declaration] SD_INIT(storage[i].savefile); ^~~~~~~ In file included from completion.c:15: clexheaders.h:1: error: unterminated #if #if defined(__APPLE__) directory.c:345:13: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? dir = USTR(ppanel_file->dir); ^~~~~~~~~~~ pan_line In file included from filepanel.c:15: clexheaders.h:1: error: unterminated #if #if defined(__APPLE__) directory.c:354:14: warning: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion] if (strcmp(USTR(top->dirname),dir) == 0) { ^~~~~~~~~~~~~~~~~~ In file included from directory.c:19: /usr/include/string.h:88:13: note: expected 'const char *' but argument is of type 'int' int strcmp(const char *, const char *) __pure; ^~~~~~~~~~~~ directory.c:362:3: warning: implicit declaration of function 'usw_reset' [-Wimplicit-function-declaration] usw_reset(&top->dirnamew); ^~~~~~~~~ directory.c:366:3: warning: implicit declaration of function 'sd_copy'; did you mean 'va_copy'? [-Wimplicit-function-declaration] sd_copy(&top->savefile,SDSTR(ppanel_file->files[ppanel_file->pd->curs]->file)); ^~~~~~~ va_copy In file included from bookmarks.c:23: bookmarks.h:7:14: error: unknown type name 'BOOKMARK' extern const BOOKMARK *get_bookmark(const wchar_t *); ^~~~~~~~ directory.c:366:26: warning: implicit declaration of function 'SDSTR' [-Wimplicit-function-declaration] sd_copy(&top->savefile,SDSTR(ppanel_file->files[ppanel_file->pd->curs]->file)); ^~~~~ directory.c: In function 'filepos_set': In file included from bookmarks.c:28: edit.h:17:28: error: unknown type name 'TEXTLINE' extern void edit_setprompt(TEXTLINE *, const wchar_t *); ^~~~~~~~ directory.c:386:6: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? if (ppanel_file->pd->cnt == 0) ^~~~~~~~~~~ pan_line directory.c:392:18: warning: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion] if (strcmp(dir,USTR(pe->dirname)) == 0) { ^~~~~~~~~~~~~~~~~ In file included from directory.c:19: /usr/include/string.h:88:27: note: expected 'const char *' but argument is of type 'int' int strcmp(const char *, const char *) __pure; ^~~~~~~~~~~~ directory.c:394:21: warning: passing argument 1 of 'file_find' makes pointer from integer without a cast [-Wint-conversion] line = file_find(SDSTR(pe->savefile)); ^~~~~~~~~~~~~~~~~~~ In file included from directory.c:27: filepanel.h:4:22: note: expected 'const char *' but argument is of type 'int' extern int file_find(const char *); ^~~~~~~~~~~~ In file included from bookmarks.c:31: inout.h:8:8: error: unknown type name 'wint_t' extern wint_t kbd_input(void); ^~~~~~ directory.c:397:4: warning: implicit declaration of function 'pan_adjust'; did you mean 'edit_adjust'? [-Wimplicit-function-declaration] pan_adjust(ppanel_file->pd); ^~~~~~~~~~ edit_adjust In file included from bookmarks.c:34: mbwstring.h:1:51: error: unknown type name 'USTRINGW' extern const wchar_t *usw_convert2w(const char *, USTRINGW *); ^~~~~~~~ In file included from edit.c:21: edit.h:7:1: warning: parameter names (without types) in function declaration extern int edit_isspecial(wchar_t); ^~~~~~ edit.h:9:1: warning: parameter names (without types) in function declaration extern void edit_nu_insertchar(wchar_t); ^~~~~~ edit.h:10:1: warning: parameter names (without types) in function declaration extern void edit_insertchar(wchar_t); ^~~~~~ edit.h:11:37: error: unknown type name 'wchar_t' extern void edit_nu_insertstr(const wchar_t *, int); ^~~~~~~ edit.h:12:34: error: unknown type name 'wchar_t' extern void edit_insertstr(const wchar_t *, int); ^~~~~~~ edit.h:13:34: error: unknown type name 'wchar_t' extern void edit_nu_putstr(const wchar_t *); ^~~~~~~ edit.h:14:31: error: unknown type name 'wchar_t' extern void edit_putstr(const wchar_t *); ^~~~~~~ edit.h:16:30: error: unknown type name 'wchar_t' extern void edit_macro(const wchar_t *); ^~~~~~~ mbwstring.h:3:51: error: unknown type name 'USTRING' extern const char *us_convert2mb(const wchar_t *, USTRING *); ^~~~~~~ directory.c: In function 'dir_paste': edit.h:17:28: error: unknown type name 'TEXTLINE' extern void edit_setprompt(TEXTLINE *, const wchar_t *); ^~~~~~~~ directory.c:417:26: error: 'MODE_DIR_SPLIT' undeclared (first use in this function) get_current_mode() == MODE_DIR_SPLIT ^~~~~~~~~~~~~~ edit.h:17:46: error: unknown type name 'wchar_t' extern void edit_setprompt(TEXTLINE *, const wchar_t *); ^~~~~~~ In file included from bookmarks.c:35: panel.h:12:24: error: unknown type name 'PANEL_DESC' extern void pan_adjust(PANEL_DESC *); ^~~~~~~~~~ In file included from edit.c:23: cfg.h:6:14: error: unknown type name 'wchar_t' extern const wchar_t *cfg_print_value(int); ^~~~~~~ bookmarks.c:41:8: error: unknown type name 'BOOKMARK' static BOOKMARK *bmlist[BM_SIZE]; /* list of bookmarks */ ^~~~~~~~ bookmarks.c:42:8: error: unknown type name 'BOOKMARK' static BOOKMARK *filtbm[BM_SIZE]; /* filtered list of bookmarks */ ^~~~~~~~ bookmarks.c:48:8: error: unknown type name 'FLAG' static FLAG changed = 0; /* nonzero if unsaved changes exist */ ^~~~ In file included from edit.c:25: filter.h:13:1: warning: parameter names (without types) in function declaration extern void filteredit_insertchar(wchar_t); ^~~~~~ filter.h:14:1: warning: parameter names (without types) in function declaration extern void filteredit_nu_insertchar(wchar_t); ^~~~~~ bookmarks.c:59:7: error: unknown type name 'BOOKMARK' const BOOKMARK * ^~~~~~~~ directory.c:418:30: error: 'panel_dir_split' undeclared (first use in this function) ? convert2w(dir_split_dir(panel_dir_split.pd->curs)) ^~~~~~~~~~~~~~~ bookmarks.c: In function 'get_bookmark': bookmarks.c:65:7: warning: implicit declaration of function 'wcscmp'; did you mean 'ewcsdup'? [-Wimplicit-function-declaration] if (wcscmp(SDSTR(bmlist[i]->name),name) == 0) { ^~~~~~ ewcsdup In file included from edit.c:27: inout.h:13:32: error: unknown type name 'wchar_t' extern void win_settitle(const wchar_t *); ^~~~~~~ directory.c:61:18: error: 'panel_dir' undeclared (first use in this function) #define DP_LIST (panel_dir.dir) ^~~~~~~~~ directory.c:419:6: note: in expansion of macro 'DP_LIST' : DP_LIST[panel_dir.pd->curs].namew; ^~~~~~~ inout.h:27:36: error: unknown type name 'wchar_t' extern void win_sethelp(int, const wchar_t *); ^~~~~~~ In file included from edit.c:28: history.h:5:29: error: unknown type name 'wchar_t' extern void hist_save(const wchar_t *, int); ^~~~~~~ history.h:7:14: error: unknown type name 'HIST_ENTRY' extern const HIST_ENTRY *get_history_entry(int i); ^~~~~~~~~~ bookmarks.c:65:14: warning: implicit declaration of function 'SDSTR' [-Wimplicit-function-declaration] if (wcscmp(SDSTR(bmlist[i]->name),name) == 0) { ^~~~~ bookmarks.c:65:29: error: request for member 'name' in something not a structure or union if (wcscmp(SDSTR(bmlist[i]->name),name) == 0) { ^~ directory.c:424:6: error: 'panel' undeclared (first use in this function) if (panel->filtering == In file included from edit.c:30: mbwstring.h:1:14: error: unknown type name 'wchar_t' extern const wchar_t *usw_convert2w(const char *, USTRINGW *); ^~~~~~~ In file included from help.c:59: inout.h:8:8: error: unknown type name 'wint_t' extern wint_t kbd_i1) ^~~~~ nput(void); ^~~~~~ bookmarks.c:66:10: warning: implicit declaration of function 'USTR' [-Wimplicit-function-declaration] if (*(USTR(bmlist[i]->dir)) != '/') { ^~~~ bookmarks.c:66:24: error: request for member 'dir' in something not a structure or union if (*(USTR(bmlist[i]->dir)) != '/') { ^~ mbwstring.h:1:51: error: unknown type name 'USTRINGW' extern const wchar_t *usw_convert2w(const char *, USTRINGW *); ^~~~~~~~ mbwstring.h:2:14: error: unknown type name 'wchar_t' extern const wchar_t *convert2w(const char *); ^~~~~~~ mbwstring.h:3:40: error: unknown type name 'wchar_t' extern const char *us_convert2mb(const wchar_t *, USTRING *); ^~~~~~~ directory.c: In function 'cx_dir_tab': directory.c:431:6: error: 'textline' undeclared (first use in this function); did you mean 'pan_line'? if (textline->size) ^~~~~~~~ pan_line mbwstring.h:3:51: error: unknown type name 'USTRING' extern const char *us_convert2mb(const wchar_t *, USTRING *); ^~~~~~~ mbwstring.h:4:37: error: unknown type name 'wchar_t' extern const char *convert2mb(const wchar_t *); ^~~~~~~ mbwstring.h:5:1: warning: parameter names (without types) in function declaration extern int utf_iscomposing(wchar_t); ^~~~~~ mbwstring.h:6:26: error: unknown type name 'wchar_t' extern int wc_cols(const wchar_t *, int, int); ^~~~~~~ directory.c:433:11: error: 'panel' undeclared (first use in this function) else if (panel->curs >= 0) ^~~~~ In file included from edit.c:31: util.h:6:8: error: unknown type name 'wchar_t' extern wchar_t *ewcsdup(const wchar_t *); ^~~~~~~ In file included from help.c:61: mbwstring.h:1:51: error: unknown type name 'USTRINGW' extern constutil.h:6:31: error: unknown type name 'wchar_t' extern wchar_t *ewcsdup(const wchar_t *); wchar_t *usw_convert2w(const char *, USTRINGW *); ^~~~~~~~ ^~~~~~~ directory.c: In function 'cx_dir_mouse': mbwstring.h:3:51: error: unknown type name 'USTRING' extern const char *us_convert2mb(const wchar_t *, USTRING *); ^~~~~~~ In file included from filepanel.c:25: bookmarks.h:7:14: error: unknown type name 'BOOKMARK' extern const BOOKMARK *get_bookmark(const wchar_t *); ^~~~~~~~ util.h:10:8: error: unknown type name 'ssize_t' extern ssize_t read_fd(int, char *, size_t); ^~~~~~~ bookmarks.c: In function 'bm_save_main': bookmarks.c:83:21: error: 'user_data' undeclared (first use in this function) if ( (fp = fw_open(user_data.file_bm)) ) { ^~~~~~~~~ util.h:11:34: error: unknown type name 'wchar_t' extern unsigned int jshash(const wchar_t *); ^~~~~~~ bookmarks.c:83:21: note: each undeclared identifier is reported only once for each function it appears in directory.c:440:6: error: 'textline' undeclared (first use in this function); did you mean 'pan_line'? if (textline->size == 0 && MI_PASTE) ^~~~~~~~ pan_line bookmarks.c:86:26: error: request for member 'name' in something not a structure or union name = SDSTR(bmlist[i]->name); ^~ edit.c:33:8: error: unknown type name 'FLAG' static FLAG cmd_auto = 0; /* $! control sequence */ ^~~~ In file included from help.c:62: panel.h:12:24: error: unknown type name 'PANEL_DESC' extern void pan_adjust(PANEL_DESC *); ^~~~~~~~~~ In file included from filepanel.c:30: edit.h:17:28: error: unknown type name 'TEXTLINE'; did you mean 'ENOLINK'? extern void edit_setprompt(TEXTLINE *, const wchar_t *); ^~~~~~~~ ENOLINK edit.c: In function 'edit_adjust': In file included from filepanel.c:32: history.h:7:14: error: unknown type name 'HIST_ENTRY' extern const HIST_ENTRY *get_history_entry(int i); ^~~~~~~~~~ directory.c:440:29: error: 'MI_PASTE' undeclared (first use in this function) if (textline->size == 0 && MI_PASTE) ^~~~~~~~ edit.c:42:2: error: unknown type name 'wchar_t' wchar_t *str; ^~~~~~~ bookmarks.c:89:36: error: request for member 'dir' in something not a structure or union fprintf(fp,"%s\n",USTR(bmlist[i]->dir)); ^~ help.c:70:8: error: unknown type name 'FLAG' static FLAG helperror; /* there was an error */ ^~~~ edit.c:42:2: note: 'wchar_t' is defined in header ''; did you forget to '#include '? edit.c:32:1: +#include edit.c:42:2: wchar_t *str; ^~~~~~~ In file included from filepanel.c:33: inout.h:8:8: error: unknown type name 'wint_t' extern wint_t kbd_input(void); ^~~~~~ directory.c: In function 'cx_dir_enter': directory.c:449:6: error: 'panel' undeclared (first use in this function) if (panel->norev) { ^~~~~ edit.c:44:6: error: 'textline' undeclared (first use in this function) if (textline == 0) ^~~~~~~~ edit.c:44:6: note: each undeclared identifier is reported only once for each function it appears in edit.c:50:8: warning: implicit declaration of function 'USTR' [-Wimplicit-function-declaration] str = USTR(textline->line); ^~~~ directory.c:451:35: error: 'textline' undeclared (first use in this function); did you mean 'pan_line'? dir = convert2mb(dir_tilde(USTR(textline->line))); ^~~~~~~~ pan_line bookmarks.c: In function 'bm_save': bookmarks.c:106:6: error: 'user_data' undeclared (first use in this function) if (user_data.nowrite) ^~~~~~~~~ directory.c:453:4: error: 'next_mode' undeclared (first use in this function); did you mean 'strmode'? next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ strmode edit.c:65:12: error: 'disp_data' undeclared (first use in this function) screen = (disp_data.scrcols - 1) * disp_data.cmdlines - 2; ^~~~~~~~~ cfg.c:308:16: error: 'user_data' undeclared (first use in this function) tfd = fr_open(user_data.file_cfg,CFG_FILESIZE_LIMIT); ^~~~~~~~~ cfg.c:308:16: note: each undeclared identifier is reported only once for each function it appears in cfg.c:308:25: error: '(CSTR *)&' is a pointer; did you mean to use '->'? tfd = fr_open(user_data.file_cfg,CFG_FILESIZE_LIMIT); ^ -> bookmarks.c: In function 'cx_bm_save': bookmarks.c:118:2: error: 'next_mode' undeclared (first use in this function); did you mean 'strmode'? next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ strmode directory.c:453:16: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~~~~~~~~~~~ edit.c: In function 'edit_islong': edit.c:129:9: error: 'textline' undeclared (first use in this function) return textline->offset || sum_linechars() < textline->size; ^~~~~~~~ directory.c:460:6: error: 'kinp' undeclared (first use in this function); did you mean 'uint'? if (kinp.fkey == 2 && !MI_AREA(PANEL)) ^~~~ uint edit.c: In function 'cx_edit_begin': edit.c:141:2: error: 'textline' undeclared (first use in this function) textline->curs = 0; ^~~~~~~~ directory.c:460:25: warning: implicit declaration of function 'MI_AREA' [-Wimplicit-function-declaration] if (kinp.fkey == 2 && !MI_AREA(PANEL)) ^~~~~~~ edit.c: In function 'cx_edit_end': edit.c:148:2: error: 'textline' undeclared (first use in this function) textline->curs = textline->size; ^~~~~~~~ edit.c: In function 'edit_nu_left': edit.c:164:2: error: unknown type name 'FLAG' FLAG move = 1; ^~~~ bookmarks.c:118:14: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~~~~~~~~~~~ directory.c:460:33: error: 'PANEL' undeclared (first use in this function) if (kinp.fkey == 2 && !MI_AREA(PANEL)) ^~~~~ edit.c:167:17: error: 'textline' undeclared (first use in this function) while (move && textline->curs > 0) ^~~~~~~~ edit.c: In function 'edit_nu_right': bookmarks.c: In function 'bm_reset': edit.c:181:2: error: unknown type name 'FLAG' FLAG move = 1; ^~~~ bookmarks.c:134:2: warning: implicit declaration of function 'sdw_reset'; did you mean 'bm_reset'? [-Wimplicit-function-declaration] sdw_reset(&bmlist[i]->name); ^~~~~~~~~ bm_reset directory.c:467:28: error: 'MODE_DIR' undeclared (first use in this function); did you mean 'SAVEDIR'? if (get_current_mode() == MODE_DIR) ^~~~~~~~ SAVEDIR bookmarks.c:134:22: error: request for member 'name' in something not a structure or union sdw_reset(&bmlist[i]->name); ^~ edit.c:184:17: error: 'textline' undeclared (first use in this function) while (move && textline->curs < textline->size) ^~~~~~~~ bookmarks.c:135:2: warning: implicit declaration of function 'us_reset'; did you mean 'bm_reset'? [-Wimplicit-function-declaration] us_reset( &bmlist[i]->dir); ^~~~~~~~ bm_reset edit.c: In function 'cx_edit_up': bookmarks.c:135:22: error: request for member 'dir' in something not a structure or union us_reset( &bmlist[i]->dir); ^~ edit.c:199:2: error: unknown type name 'wchar_t' wchar_t *line; ^~~~~~~ edit.c:199:2: note: 'wchar_t' is defined in header ''; did you forget to '#include '? edit.c:201:14: error: 'textline' undeclared (first use in this function); did you mean 'line'? line = USTR(textline->line); ^~~~~~~~ line directory.c:468:15: error: 'MODE_DIR_SPLIT' undeclared (first use in this function) next_mode = MODE_DIR_SPLIT; ^~~~~~~~~~~~~~ bookmarks.c:136:2: warning: implicit declaration of function 'usw_reset'; did you mean 'bm_reset'? [-Wimplicit-function-declaration] usw_reset(&bmlist[i]->dirw); ^~~~~~~~~ bm_reset bookmarks.c:136:22: error: request for member 'dirw' in something not a structure or union usw_reset(&bmlist[i]->dirw); ^~ cfg.c:308:16: warning: passing argument 1 of 'fr_open' from incompatible pointer type [-Wincompatible-pointer-types] tfd = fr_open(user_data.file_cfg,CFG_FILESIZE_LIMIT); ^~~~~~~~~~~~~~~~~~ bookmarks.c: In function 'bm_read_main': bookmarks.c:159:2: error: unknown type name 'FLAG' FLAG corrupted, name; ^~~~ edit.c:202:10: error: 'disp_data' undeclared (first use in this function) width = disp_data.scrcols; ^~~~~~~~~ directory.c:469:35: error: 'panel_dir_split' undeclared (first use in this function) else if (changedir(dir_split_dir(panel_dir_split.pd->curs)) == 0) ^~~~~~~~~~~~~~~ In file included from edit.c:30: mbwstring.h:12:25: error: 'lang_data' undeclared (first use in this function) #define ISWPRINT(CH) (!(lang_data.utf8 && ((CH) == L'\xa0' || (CH) == L'\xad')) && iswprint(CH)) ^~~~~~~~~ mbwstring.h:13:17: note: in expansion of macro 'ISWPRINT' #define WCW(X) (ISWPRINT(X) ? wcwidth(X) : 1) ^~~~~~~~ edit.c:206:12: note: in expansion of macro 'WCW' width -= WCW(line[curs]); ^~~ bookmarks.c:161:16: error: 'user_data' undeclared (first use in this function) tfd = fr_open(user_data.file_bm,BM_MAXMEM); ^~~~~~~~~ mbwstring.h:13:31: warning: implicit declaration of function 'wcwidth' [-Wimplicit-function-declaration] #define WCW(X) (ISWPRINT(X) ? wcwidth(X) : 1) ^~~~~~~ edit.c:206:12: note: in expansion of macro 'WCW' width -= WCW(line[curs]); ^~~ edit.c: In function 'cx_edit_down': edit.c:216:2: error: unknown type name 'wchar_t' wchar_t *line; ^~~~~~~ bookmarks.c:184:4: warning: implicit declaration of function 'us_copy'; did you mean 'va_copy'? [-Wimplicit-function-declaration] us_copy(&bmlist[bm_cnt]->dir,line); ^~~~~~~ va_copy edit.c:216:2: note: 'wchar_t' is defined in header ''; did you forget to '#include '? bookmarks.c:184:27: error: request for member 'dir' in something not a structure or union us_copy(&bmlist[bm_cnt]->dir,line); ^~ edit.c:218:14: error: 'textline' undeclared (first use in this function); did you mean 'line'? line = USTR(textline->line); ^~~~~~~~ line bookmarks.c:185:4: warning: implicit declaration of function 'usw_convert2w'; did you mean 'convert2w'? [-Wimplicit-function-declaration] usw_convert2w(line,&bmlist[bm_cnt]->dirw); ^~~~~~~~~~~~~ convert2w bookmarks.c:185:38: error: request for member 'dirw' in something not a structure or union usw_convert2w(line,&bmlist[bm_cnt]->dirw); ^~ edit.c:219:10: error: 'disp_data' undeclared (first use in this function) width = disp_data.scrcols; ^~~~~~~~~ bookmarks.c:190:8: warning: implicit declaration of function 'TSET'; did you mean 'FD_SET'? [-Wimplicit-function-declaration] if (TSET(name)) ^~~~ FD_SET In file included from edit.c:30: mbwstring.h:12:25: error: 'lang_data' undeclared (first use in this function) #define ISWPRINT(CH) (!(lang_data.utf8 && ((CH) == L'\xa0' || (CH) == L'\xad')) && iswprint(CH)) ^~~~~~~~~ mbwstring.h:13:17: note: in expansion of macro 'ISWPRINT' #define WCW(X) (ISWPRINT(X) ? wcwidth(X) : 1) ^~~~~~~~ edit.c:223:12: note: in ebookmarks.c:192:4: warning: implicit declaration of function 'sdw_copy'; did you mean 'va_copy'? [-Wxpansion of macro 'WCW' width -= WCW(line[curs]); ^~~ implicit-function-declaration] sdw_copy(&bmlist[bm_cnt]->name,convert2w(line + 1)); ^~~~~~~~ va_copy bookmarks.c:192:28: error: request for member 'name' in something not a structure or union sdw_copy(&bmlist[bm_cnt]->name,convert2w(line + 1)); ^~ edit.c: At top level: edit.c:229:8: error: unknown type name 'wchar_t' static wchar_t ^~~~~~~ bookmarks.c: In function 'bm_read': bookmarks.c:214:17: error: 'user_data' undeclared (first use in this function) mod = mod_time(user_data.file_bm); ^~~~~~~~~ edit.c: In function 'wordsep': edit.c:232:6: error: 'textline' undeclared (first use in this function) if (textline == &line_cmd) ^~~~~~~~ bookmarks.c: In function 'bm_panel_data': bookmarks.c:238:2: error: unknown type name 'BOOKMARK' BOOKMARK *curs; ^~~~~~~~ edit.c:232:19: error: 'line_cmd' undeclared (first use in this function) if (textline == &line_cmd) ^~~~~~~~ gmake[4]: *** [Makefile:512: directory.o] Error 1 gmake[4]: *** Waiting for unfinished jobs.... control.c: In function 'cx_mode_paste': control.c:103:59: error: 'MODE_PASTE' undeclared (first use in this function) #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:117:8: note: in expansion of macro 'CXM' static CXM(paste,PASTE) edit.c:234:19: error: 'line_dir' undeclared (first use in this function); did you mean 'win_edit'? if (textline == &line_dir) ^~~~~~~~ win_edit bookmarks.c:240:9: warning: implicit declaration of function 'VALID_CURSOR' [-Wimplicit-function-declaration] curs = VALID_CURSOR(panel_bm.pd) ? panel_bm.bm[panel_bm.pd->curs] : 0; ^~~~~~~~~~~~ edit.c:236:31: error: 'MODE_BM_EDIT2' undeclared (first use in this function) return get_current_mode() == MODE_BM_EDIT2 ? L'/' : L' '; ^~~~~~~~~~~~~ edit.c: In function 'cx_edit_w_left': edit.c:243:8: error: unknown type name 'wchar_t' const wchar_t *line; ^~~~~~~ edit.c:244:2: error: unknown type name 'wchar_t' wchar_t wsep; ^~~~~~~ edit.c:244:2: note: 'wchar_t' is defined in header ''; did you forget to '#include '? edit.c:248:14: error: 'textline' undeclared (first use in this function); did you mean 'line'? if ((curs = textline->curs) > 0) { ^~~~~~~~ line bookmarks.c:240:22: error: 'panel_bm' undeclared (first use in this function); did you mean 'pan_line'? curs = VALID_CURSOR(panel_bm.pd) ? panel_bm.bm[panel_bm.pd->curs] : 0; ^~~~~~~~ pan_line edit.c: In function 'cx_edit_w_right': edit.c:263:8: error: unknown type name 'wchar_t' const wchar_t *line; ^~~~~~~ edit.c:264:2: error: unknown type name 'wchar_t' wchar_t wsep; ^~~~~~~ edit.c:264:2: note: 'wchar_t' is defined in header ''; did you forget to '#include '? bookmarks.c:247:36: error: request for member 'dirw' in something not a structure or union if (!match_substr(USTR(bmlist[i]->dirw)) && !match_substr_ic(SDSTR(bmlist[i]->name))) ^~ In file included from cfg.c:29: filerw.h:7:20: note: expected 'const char *' but argument is of type 'CSTR *' {aka 'struct *'} extern int fr_open(const char *, size_t); ^~~~~~~~~~~~ edit.c:268:14: error: 'textline' undeclared (first use in this function); did you mean 'line'? if ((curs = textline->curs) < textline->size) { ^~~~~~~~ line bookmarks.c:247:80: error: request for member 'name' in something not a structure or union if (!match_substr(USTR(bmlist[i]->dirw)) && !match_substr_ic(SDSTR(bmlist[i]->name))) ^~ cfg.c:310:17: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (!user_data.nowrite) { ^ -> edit.c: In function 'cx_edit_mouse': edit.c:284:7: warning: implicit declaration of function 'MI_AREA' [-Wimplicit-function-declaration] if (!MI_AREA(LINE)) ^~~~~~~ cfg.c:311:19: error: '(CSTR *)&' is a pointer; did you mean to use '->'? medit.c:284:15: error: 'LINE' undeclared (first use in this function) if (!MI_AREA(LINE)) kdir(user_data.subdir,0755); /* might exist already */ ^ -> ^~~~ cmp.c:195:2: error: 'panel_cmp_sum' undeclared (first use in this function) panel_cmp_sum.errors = panel_cmp_sum.names = panel_cmp_sum.equal = 0; ^~~~~~~~~~~~~ bookmarks.c: In function 'cx_bm_revert': bookmarks.c:272:2: error: 'next_mode' undeclared (first use in this function); did you mean 'strmode'? next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ strmode cfg.c:311:10: warning: passing argument 1 of 'mkdir' from incompatible pointer type [-Wincompatible-pointer-types] mkdir(user_data.subdir,0755); /* might exist already */ ^~~~~~~~~~~~~~~~ cmp.c:200:2: error: 'ctrlc_flag' undeclared (first use in this function); did you mean 'strtofflags'? ctrlc_flag = 0; ^~~~~~~~~~ strtofflags edit.c:286:7: error: 'MI_CLICK' undeclared (first use in this function) if (!MI_CLICK && !MI_WHEEL) ^~~~~~~~ bookmarks.c:272:14: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~~~~~~~~~~~ bookmarks.c: In function 'bm_initialize': bookmarks.c:278:9: error: unknown type name 'BOOKMARK' static BOOKMARK storage[BM_SIZE]; ^~~~~~~~ In file included from cfg.c:17: /usr/include/sys/stat.h:301:11: note: expected 'const char *' but argument is of type 'CSTR *' {aka 'struct *'} int mkdir(const char *, mode_t); ^~~~~~~~~~~~ bookmarks.c:283:2: error: 'panel_bm' undeclared (first use in this function); did you mean 'pan_line'? panel_bm.bm = bmlist; ^~~~~~~~ pan_line cmp.c:201:11: error: 'CMP_DATA' undeclared (first use in this function); did you mean 'SEEK_DATA'? if (COPT(CMP_DATA)) { /* going to compare data */ ^~~~~~~~ SEEK_DATA edit.c:286:20: error: 'MI_WHEEL' undeclared (first use in this function) if (!MI_CLICK && !MI_WHEEL) ^~~~~~~~ bookmarks.c: In function 'set_field_width': cfg.c:314:13: error: '(CSTR *)&' is a pointer; did you mean to use '->'? user_data.noconfig = 1; /* cfg-clex will appear on the command line */ ^ -> cmp.c:204:31: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? pathname_set_directory(USTR(ppanel_file->other->dir)); ^~~~~~~~~~~ pan_line edit.c:289:6: error: 'textline' undeclared (first use in this function) if (textline->size) { ^~~~~~~~ bookmarks.c:295:32: error: request for member 'name' in something not a structure or union len = wc_cols(SDSTR(bmlist[i]->name),0,-1); ^~ cfg.c:314:4: warning: statement with no effect [-Wunused-value] user_data.noconfig = 1; /* cfg-clex will appear on the command line */ ^~~~~~~~~ cfg.c:320:75: error: '(CSTR *)&' is a pointer; did you mean to use '->'? msgout(MSG_DEBUG,"CONFIG: Processing configuration file \"%s\"",user_data.file_cfg); ^ edit.c:291:8: error: 'minp' undeclared (first use in this function); did you mean 'int'? if (min -> p.cursor < 0) ^~~~ int cmp.c:207:11: error: 'CMP_REGULAR' undeclared (first use in this function) if (COPT(CMP_REGULAR)) { ^~~~~~~~~~~ bookmarks.c:297:14: error: 'disp_data' undeclared (first use in this function) if (len > disp_data.pancols / 3) { ^~~~~~~~~ cmp.c:210:14: error: request for member 'select' in something not a structure or union if ( (pfe1->select = IS_FT_PLAIN(pfe1->file_type)) ) ^~ cfg.c:353:10: error: request for member 'isnum' in something not a structure or union if (pce->isnum) { ^~ cfg.c:354:14: error: request for member 'table' in something not a structure or union pnum = pce->table; ^~ cfg.c:354:9: warning: assignment to 'CNUM *' {aka 'struct *'} from incompatible pointer type 'CSTR *' {aka 'struct *'} [-Wincompatible-pointer-types] pnum = pce->table; ^ edit.c:297:16: error: 'MODE_SELECT' undeclared (first use in this function) if (mode == MODE_SELECT || mode == MODE_DESELECT || mode == MODE_CFG_EDIT_NUM) ^~~~~~~~~~~ bookmarks.c:305:2: error: 'panel_bm' undeclared (first use in this function); did you mean 'pan_line'? panel_bm.cw_name = cw; ^~~~~~~~ pan_line cmp.c:210:25: warning: implicit declaration of function 'IS_FT_PLAIN' [-Wimplicit-function-declaration] if ( (pfe1->select = IS_FT_PLAIN(pfe1->file_type)) ) ^~~~~~~~~~~ cmp.c:210:41: error: request for member 'file_type' in something not a structure or union if ( (pfe1->select = IS_FT_PLAIN(pfe1->file_type)) ) ^~ cfg.c:364:8: warning: implicit declaration of function 'wcslen'; did you mean 'strlen'? [-Wimplicit-function-declaration] if (wcslen(wvalue) > CFGVALUE_LEN) ^~~~~~ strlen cfg.c:367:24: error: request for member 'table' in something not a structure or union wcscpy(((CSTR *)pce->table)->current,wvalue); ^~ cfg.c: In function 'cfg_initialize': cfg.c:388:16: warning: comparison between pointer and integer for (i = 0; i < CFG_TOTAL_; i++) { ^ cfg.c:390:13: error: request for member 'isnum' in something not a structure or union config[i].isnum = 1; ^ cfg.c:390:4: warning: statement with no effect [-Wunused-value] config[i].isnum = 1; ^~~~~~ cfg.c:391:13: error: request for member 'table' in something not a structure or union config[i].table = pnum; ^ edit.c:297:39: error: 'MODE_DESELECT' undeclared (first use in this function) if (mode == MODE_SELECT || mode == MODE_DESELECT || mode == MODE_CFG_EDIT_NUM) ^~~~~~~~~~~~~ cfg.c:391:4: warning: statement with no effect [-Wunused-value] config[i].table = pnum; ^~~~~~ bookmarks.c: In function 'bm_prepare': cmp.c:225:35: error: 'FILE_ENTRY' undeclared (first use in this function) p1 = emalloc(p1_alloc * sizeof(FILE_ENTRY *)); ^~~~~~~~~~ bookmarks.c:316:3: error: 'panel_bm' undeclared (first use in this function); did you mean 'pan_line'? panel_bm.pd->curs = panel_bm.pd->min; ^~~~~~~~ pan_line cfg.c:392:4: error: 'pcfg' undeclared (first use in this function) pcfg[i] = &pnum->current; ^~~~ cmp.c:225:47: error: expected expression before ')' token p1 = emalloc(p1_alloc * sizeof(FILE_ENTRY *)); ^ edit.c:297:64: error: 'MODE_CFG_EDIT_NUM' undeclared (first use in this function) if (mode == MODE_SELECT || mode == MODE_DESELECT || mode == MODE_CFG_EDIT_NUM) ^~~~~~~~~~~~~~~~~ bookmarks.c:325:29: error: request for member 'dir' in something not a structure or union if (strcmp(USTR(bmlist[i]->dir),dir) == 0) { ^~ cfg.c:392:12: error: incompatible types when assigning to type 'CSTR' {aka 'struct '} from type 'int *' pcfg[i] = &pnum->current; ^ cmp.c:231:13: error: request for member 'select' in something not a structure or union if (pfe1->select) ^~ cfg.c:392:4: warning: statement with no effect [-Wunused-value] pcfg[i] = &pnum->current; ^~~~ cmp.c:237:9: error: request for member 'select' in something not a structure or union pfe1->select = 1; ^~ cmp.c:240:36: error: expected expression before ')' token qsort(p1,cnt1,sizeof(FILE_ENTRY *),qcmp); ^ cfg.c:395:13: error: request for member 'table' in something not a structure or union config[i].table = pstr; ^ cmp.c:247:14: error: request for member 'select' in something not a structure or union if ( !(pfe2->select = !COPT(CMP_REGULAR) || IS_FT_PLAIN(pfe2->file_type)) ) { ^~ bookmarks.c:333:28: error: request for member 'name' in something not a structure or union sdw_reset(&bmlist[bm_cnt]->name); ^~ cmp.c:247:63: error: request for member 'file_type' in something not a structure or union if ( !(pfe2->select = !COPT(CMP_REGULAR) || IS_FT_PLAIN(pfe2->file_type)) ) { ^~ edit.c:298:5: warning: implicit declaration of function 'MI_B' [-Wimplicit-function-declaration] bookmarks.c:334:26: error: request for member 'dir' in something not a structure or union us_copy(&bmlist[bm_cnt]->dir,dir); ^~ MI_B(4) ? cx_edit_left() : cx_edit_right(); ^~~~ cfg.c:395:4: warning: statement with no effect [-Wunused-value] config[i].table = pstr; ^~~~~~ cmp.c:257:21: error: request for member 'file' in something not a structure or union name2 = SDSTR(pfe2->file); ^~ bookmarks.c:335:36: error: request for member 'dirw' in something not a structure or union usw_convert2w(dir,&bmlist[bm_cnt]->dirw); ^~ cfg.c:396:12: error: incompatible types when assigning to type 'CSTR' {aka 'struct '} from type 'int (*)[81]' pcfg[i] = &pstr->current; ^ cmp.c:260:36: error: request for member 'file' in something not a structure or union cmp = strcmp(name2,SDSTR(p1[med]->file)); ^~ cfg.c:396:4: warning: statement with no effect [-Wunused-value] pcfg[i] = &pstr->current; ^~~~ cmp.c:271:25: error: request for member 'select' in something not a structure or union if (pfe1 == 0 || !pfe1->select) ^~ cmp.c:277:11: error: request for member 'file_type' in something not a structure or union if (pfe1->file_type == FT_NA || !( ^~ edit.c:303:6: error: 'panel' undeclared (first use in this function) if (panel->filtering == 1) ^~~~~ cfg.c:404:12: error: request for member 'var' in something not a structure or union config[i].var = table_desc[desc].name; ^ cfg.c:404:3: warning: statement with no effect [-Wunused-value] config[i].var = table_desc[desc].name; ^~~~~~ cfg.c:405:12: error: request for member 'help' in something not a structure or union config[i].help = table_desc[desc].help; ^ cfg.c:405:3: warning: statement with no effect [-Wunused-value] config[i].help = table_desc[desc].help; ^~~~~~ bookmarks.c:347:2: error: 'panel' undeclared (first use in this function) panel = panel_bm.pd; ^~~~~ cfg.c:406:23: error: request for member 'help' in something not a structure or union if (wcslen(cedit.c: In function 'edit_nu_kill': onfig[i].help) > MIN_COLS - 4) ^ cmp.c:277:26: error: 'FT_NA' undeclared (first use in this function) if (pfe1->file_type == FT_NA || !( ^~~~~ bookmarks.c:348:2: error: 'textline' undeclared (first use in this function); did you mean 'getline'? textline = 0; ^~~~~~~~ getline cmp.c:278:21: error: request for member 'file_type' in something not a structure or union (IS_FT_PLAIN(pfe1->file_type) && IS_FT_PLAIN(pfe2->file_type)) ^~ edit.c:310:6: error: 'textline' undeclared (first use in this function) if (textline == &line_cmd) ^~~~~~~~ cmp.c:278:53: error: request for member 'file_type' in something not a structure or union (IS_FTedit.c:310:19: error: 'line_cmd' undeclared (first use in this function) if (textline == &line_cmdbookmarks.c: In function 'cx_bm_chdir': _PLAIN(pfe1->file_type) && IS_FT_PLAIN(pfe2->file_type)) ^~ ) ^~~~~~~~ bookmarks.c:356:28: error: 'panel_bm' undeclared (first use in this function); did you mean 'pan_line'? if (changedir(USTR(bmlist[panel_bm.pd->curs]->dir)) == 0) ^~~~~~~~ pan_line edit.c:318:2: warning: implicit declaration of function 'usw_copy'; did you mean 'va_copy'? [-Wimplicit-function-declaration] usw_copy(&textline->line,L""); ^~~~~~~~ va_copy In file included from history.c:24: edit.h:17:28: error: unknown type name 'TEXTLINE' extern void edit_setprompt(TEXTLINE *, const wchar_t *); ^~~~~~~~ cmp.c:279:8: warning: implicit declaration of function 'IS_FT_DIR'; did you mean 'S_ISDIR'? [-Wimplicit-function-declaration] || (IS_FT_DIR(pfe1->file_type) && IS_FT_DIR(pfe2->file_type)) ^~~~~~~~~ S_ISDIR cfg.c:406:32: error: 'MIN_COLS' undeclared (first use in this function) if (wcslen(config[i].help) > MIN_COLS - 4) ^~~~~~~~ cmp.c:279:22: error: request for member 'file_type' in something not a structure or union || (IS_FT_DIR(pfe1->file_type) && IS_FT_DIR(pfe2->file_type)) ^~ cfg.c:406:30: warning: comparison between pointer and integer if (wcslen(config[i].help) > MIN_COedit.c:319:2: error: 'disp_data' undeclared (first use in this function) disp_data.noenter = 0; ^~~~~~~~~ LS - 4) ^ bookmarks.c:357:3: error: 'next_mode' undeclared (first use in this function); did you mean 'strmode'? next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ strmode In file included from history.c:26: inout.h:8:8: error: unknown type name 'wint_t' extern wint_t kbd_input(void); ^~~~~~ cmp.c:279:52: error: request for member 'file_type' in something not a structure or union || (IS_FT_DIR(pfe1->file_type) && IS_FT_DIR(pfe2->file_type)) ^~ cmp.c:280:12: error: request for member 'file_type' in something not a structure or union || (pfe1->file_type == pfe2->file_type) ) ^~ cmp.c:280:31: error: request for member 'file_type' in something not a structure or union || (pfe1->file_type == pfe2->file_type) ) ^~ edit.c: In function 'delete_chars': cfg.c:408:15: error: request for member 'var' in something not a structure or union config[i].var,convert2mb(config[i].help)); ^ edit.c:334:2: error: unknown type name 'wchar_t' wchar_t *line; ^~~~~~~ cmp.c:283:11: error: request for member 'symlink' in something not a structure or union if (pfe1-cfg.c:408:40: error: request for member 'help' in something not a structure or union config[i].var,convert2mb(config[i].help)); ^ >symlink != pfe2->symlink) ^~ edit.c:334:2: note: 'wchar_t' is defined in header ''; did you forget to '#include '? cmp.c:283:28: error: request for member 'symlink' in something not a structure or union if (pfe1->symlink != pfe2->symlink) ^~ cfg.c:408:31: warning: passing argument 1 of 'convert2mb' from incompatible pointer type [-Wincompatible-pointer-types] config[i].var,convert2mb(config[i].help)); ^~~~~~~~~~~~~~ In file included from history.c:27: lex.h:4:24: error: unknown type name 'USTRINGW' extern int usw_bookmarks.c:357:15: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~~~~~~~~~~~ dequote(USTRINGW *, const wchar_t *, size_t); ^~~~~~~~ cmp.c:287:12: error: 'CMP_SIZE' undeclared (first use in this function); did you mean 'EMSGSIZE'? if (COPT(CMP_SIZE) ^~~~~~~~ EMSGSIZE edit.c:336:14: error: 'textline' undeclared (first use in this function); did you mean 'line'? line = USTR(textline->line); ^~~~~~~~ line In file included from cfg.c:34: mbwstring.h:4:20: note: expected 'const int *' but argument is of type 'CSTR *' {aka 'struct *'} extern const char *convert2mb(const wchar_t *); ^~~~~~~~~~ cmp.c:288:10: warning: implicit declaration of function 'IS_FT_DEV' [-Wimplicit-function-declaration] && ((IS_FT_DEV(pfe1->file_type) && pfe1->devnum != pfe2->devnum) ^~~~~~~~~ bookmarks.c: In function 'bm_rotate': edit.c: In function 'cx_edit_backsp': cmp.c:288:24: error: request for member 'file_type' in something not a structure or union && ((IS_FT_DEV(pfe1->file_type) && pfe1->devnum != pfe2->devnum) ^~ bookmarks.c:363:2: error: unknown type name 'BOOKMARK' BOOKMARK *b; ^~~~~~~~ In file included from history.c:30: panel.h:12:24: error: unknown type name 'PANEL_DESC' extern void pan_adjust(PANEL_DESC *); ^~~~~~~~~~ help.c:80:8: error: unknown type name 'HELP_LINE' static HELP_LINE *helpline = 0; ^~~~~~~~~ cmp.c:288:44: error: request for member 'devnum' in something not a structure or union && ((IS_FT_DEV(pfe1->file_type) && pfe1->devnum != pfe2->devnum) ^~ edit.c:346:2: error: unknown type name 'FLAG' FLAG del = 1; ^~~~ history.c:33:8: error: unknown type name 'HIST_ENTRY' static HIST_ENTRY **history;/* command line hIn file included from filter.c:15: clexheaders.h:1: error: unterminated #if #if defined(__APPLE__) istory */ ^~~~~~~~~~ cmp.c:288:60: error: request for member 'devnum' in something not a structure or union && ((IS_FT_DEV(pfe1->file_type) && pfe1->devnum != pfe2->devnum) ^~ bookmarks.c: In function 'cx_bm_up': cmp.c:289:25: error: request for member 'file_type' in something not a structure or union || (IS_FT_PLAIN(pfe1->file_type) && pfe1->size != pfe2->size))) ^~ bookmarks.c:386:13: error: 'panel_bm' undeclared (first use in this function); did you mean 'pan_linedit.c:348:6: error: 'textline' undeclared (first use in this function) if (textline->curs == 0) ^~~~~~~~ e'? if ((pos = panel_bm.pd->curs - 1) < 0) ^~~~~~~~ pan_line cmp.c:289:45: error: request for member 'size' in something not a structure or union || (IS_FT_PLAIN(pfe1->file_type) && pfe1->size != pfe2->size))) ^~ history.c:37:8: error: unknown type name 'USTRINGW' static USTRINGW save_line = UNULL; ^~~~~~~~ cmp.c:289:59: error: request for member 'size' in something not a structure or union || (IS_FT_PLAIN(pfe1->file_type) && pfe1->size != pfe2->size))) ^~ In file included from filter.c:19: filter.h:13:1: warning: parameter names (without types) in function declaration extern void filteredit_insertchar(wchar_t); ^~~~~~ filter.h:14:1: warning: parameter names (without types) in function declaration extern void filteredit_nu_insertchar(wchar_t); ^~~~~~ edit.c: In function 'cx_edit_delchar': edit.c:363:2: error: unknown type name 'FLAG' FLAG del = 1; ^~~~ history.c:37:29: error: 'UNULL' undeclared here (not in a function); did you mean 'NULL'? static USTRINGW save_line = UNULL; ^~~~~ NULL history.c: In function 'hist_reconfig': In file included from filter.c:21: bookmarks.h:7:14: error: unknown type name 'BOOKMARK' extern concmp.c:292:12: error: 'CMP_OWNER' undeclared (first use in this function) if (COPT(CMP_OWNER) ^~~~~~~~~ st BOOKMARK *get_bookmark(const wchar_t *); ^~~~~~~~ cmp.c:293:13: error: request for member 'uid' in something not a structure or union && (pfe1->uhistory.c:44:9: error: unknown type name 'HIST_ENTRY' static HIST_ENTRY *storage; ^~~~~~~~~~ id != pfe2->uid || pfe1->gid != pfe2->gid)) ^~ edit.c:365:6: error: 'textline' undeclared (first use in this function) if (textline->curs == textline->size) ^~~~~~~~ bookmarks.c:392:2: warning: implicit declaration of function 'LIMIT_MAX'; did you mean 'WINT_MAX'? [-Wimplicit-function-declaration] LIMIT_MAX(panel_bm.pd->top,pos); ^~~~~~~~~ WINT_MAX bookmarks.h:7:43: error: unknown type name 'wchar_t' extern const BOOKMARK *get_bookmark(const wchacmp.c:293:26: error: request for member 'uid' in something not a structure or union && (pfe1->ur_t *); ^~~~~~~ id != pfe2->uid || pfe1->gid != pfe2->gid)) ^~ edit.c: In function 'cx_edit_delend': history.c:48:4: warning: implicit declaration of function 'usw_reset' [-Wimplicit-function-declaration] usw_reset(&history[i]->cmd); ^~~~~~~~~ bookmarks.c: In function 'cx_bm_down': edit.c:380:7: error: 'textline' undeclared (first use in this function) USTR(textline->line)[textline->size = textline->curs] = L'\0'; ^~~~~~~~ history.c:48:25: error: request for member 'cmd' in something not a structure or union usw_reset(&history[i]->cmd); ^~ cmp.c:293:39: error: request for member 'gid' in something not a structure or union && (pfe1->uid != pfe2->uid || pfe1->gid != pfe2->gid)) ^~ In file included from filter.c:26: history.h:5:29: error: unknown type name 'wchar_t' extern void hist_save(const wchar_t *, int); ^~~~~~~ bookmarks.c:401:13: error: 'panel_bm' undeclared (first use in this function); did you mean 'pan_line'? if ((pos = panel_bm.pd->curs + 1) == bm_cnt) ^~~~~~~~ pan_line history.h:7:14: error: unknown type name 'HIST_ENTRY' extern const HIST_ENTRY *get_history_entry(int i); ^~~~~~~~~~ cmp.c:293:52: error: request for member 'gid' in something not a structure or union && (pfe1->uid != pfe2->uid || pfe1->gid != pfe2->gid)) ^~ edit.c: In function 'cx_edit_w_del': In file included from filter.c:27: inout.h:8:8: error: unknown type name 'wint_t' extern wint_t kbdcmp.c:296:12: error: 'CMP_MODE' undeclared (first use in this function) if (COPT(CMP_MODE) && pfe_input(void); ^~~~~~ 1->mode12 != pfe2->mode12) ^~~~~~~~ bookmarks.c:407:2: warning: implicit declaration of function 'LIMIT_MIN'; did you mean 'WINT_MIN'? [-Wimplicit-function-declaration] LIMIT_MIN(panel_bm.pd->top,pos - disp_data.panlines + 1); ^~~~~~~~~ WINT_MIN cmp.c:296:29: error: request for member 'mode12' in something not a structure or union if (COPT(CMP_MODE) && pfe1->mode12 != pfe2->mode12) ^~ edit.c:389:2: error: unknown type name 'wchar_t' wchar_t *line; ^~~~~~~ bookmarks.c:407:35: error: 'disp_data' undeclared (first use in this function) LIMIT_MIN(panel_bm.cmp.c:296:45: error: request for member 'mode12' in something not a structure or union if (COPT(CMP_MODE) && pfe1->mode12 != pfe2->mode12) ^~ pd->top,pos - disp_data.panlines + 1); ^~~~~~~~~ inout.h:13:32: error: unknown type name 'wchar_t' extern void win_settitle(const wchar_t *); ^~~~~~~ In file included from filepanel.c:36: mbwstring.h:1:51: error: unknown type name 'USTRINGW' extern const wchar_t *usw_convert2w(const char *, USTRINGW *); ^~~~~~~~ edit.c:389:2: note: 'wchar_t' is defined in header ''; did you forget to '#include '? cmp.c:299:41: error: request for member 'file_type' in something not a structure or union if (COPT(CMP_DATA) && IS_FT_PLAIN(pfe1->file_type)) { ^~ cmp.c:300:12: error: request for member 'size' in something not a structure or union if (pfe1->size != pfe2->size) ^~ cmp.c:300:26: error: request for member 'size' in something not a structure or union if (pfe1->size != pfe2->size) ^~ cmp.c:302:35: error: request for member 'file' in something not a structure or union if ( (cmp = file_cmp(SDSTR(pfe1->file),pathname_join(name2))) ) { ^~ inout.h:27:36: error: unknown type name 'wchar_t' extern void win_sethelp(int, const wchar_t *); ^~~~~~~ cmp.c:312:7: error: request for member 'select' in something not a structure or union pfe1->select = 0; ^~ cmp.c:314:7: error: request for member 'select' in something not a structure or union pfe2->select = 0; ^~ bookmarks.c: In function 'cx_bm_del': In file included from filter.c:28: list.h:10:1: warning: parameter names (without types) in function declaration extern int stat2type(mode_t, uid_t); ^~~~~~ bookmarks.c:414:11: error: 'panel_bm' undeclared (first use in this function); did you mean 'pan_line'? bm_reset(panel_bm.pd->curs); ^~~~~~~~ pan_line cmp.c:334:3: error: 'next_mode' undeclared (first use in this function); did you mean 'setmode'? next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ setmode In file included from filter.c:30: match.h:1:37: error: unknown type name 'wchar_t' extern void match_pattern_set(const wchar_t *); ^~~~~~~ match.h:3:36: error: unknown type name 'wchar_t' extern void match_substr_set(const wchar_t *); ^~~~~~~ match.h:4:31: error: unknown type name 'wchar_t' extern int match_substr(const wchar_t *); ^~~~~~~ match.h:5:34: error: unknown type name 'wchar_t' extern int match_substr_ic(const wchar_t *); ^~~~~~~ edit.c:391:8: error: 'textline' undeclared (first use in this function); did you mean 'line'? eow = textline->curs; ^~~~~~~~ line In file included from filter.c:31: mbwstring.h:1:14: error: unknown type name 'wchar_t' extern const wchar_t *usw_convert2w(const char *, USTRINGW *); ^~~~~~~ cmp.c:334:15: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~~~~~~~~~~~ edit.c: At top level: bookmarks.c:420:3: warning: implicit declaration of function 'pan_adjust'; did you mean 'edit_adjust'? [-Wimplicit-function-declaration] pan_adjust(panel_bm.pd); ^~~~~~~~~~ edit_adjust edit.c:407:8: error: unknown type name 'wchar_t' static wchar_t * ^~~~~~~ cmp.c:338:14: error: 'MODE_CMP_SUM' undeclared (first use in this function) next_mode = MODE_CMP_SUM; ^~~~~~~~~~~~ history.c:51:8: error: 'panel_hist' undeclared (first use in this function); did you mean 'pan_line'? free(panel_hist.hist); ^~~~~~~~~~ pan_line mbwstring.h:1:51: error: unknown type name 'USTRINGW' extern const wchar_t *usw_convert2w(const char *, USTRINGW *); ^~~~~~~~ mbwstring.h:3:51: error: unknown type name 'USTRING' extern const char *us_convert2mb(const wchar_t *, USTRING *); ^~~~~~~ history.c:51:8: note: each undeclared identifier is reported only once for each function it appears in edit.c: In function 'insert_space': mbwstring.h:2:14: error: unknown type name 'wchar_t' extern const wchar_t *convert2w(const char *); ^~~~~~~ edit.c:411:2: error: unknown type name 'wchar_t' wchar_t *line, *ins; ^~~~~~~ mbwstring.h:3:40: error: unknown type name 'wchar_t' extern const char *us_convert2mb(const wchar_t *, USTRING *); ^~~~~~~ In file included from history.c:23: cfg.h:17:35: error: 'pcfg' undeclared (first use in this function) #define cfg_num(X) (*(const int *)pcfg[X]) ^~~~ history.c:54:13: note: in expansion of macro 'cfg_num' hs_alloc = cfg_num(CFG_H_SIZE); ^~~~~~~ edit.c:411:2: note: 'wchar_t' is defined in header ''; did you forget to '#include '? mbwstring.h:3:51: error: unknown type name 'USTRING' extern const char *us_convert2mb(const wchar_t *, USTRING *); ^~~~~~~ mbwstring.h:4:37: error: unknown type name 'wchar_t' extern const char *convert2mb(const wchar_t *); ^~~~~~~ cmp.c: In function 'cx_cmp': In file included from filepanel.c:37: panel.h:12:24: error: unknown type name 'PANEL_DESC' extern void pan_adjust(PANEL_DESC *); ^~~~~~~~~~ mbwstring.h:5:1: warning: parameter names (without types) in function declaration extern int utf_iscomposing(wchar_t); ^~~~~~ cmp.c:346:8: error: 'panel_cmp' undeclared (first use in this function); did you mean 'file_cmp'? sel = panel_cmp.pd->curs; ^~~~~~~~~ file_cmp edit.c:413:2: warning: implicit declaration of function 'usw_resize' [-Wimplicit-function-declaration] usw_resize(&textline->line,textline->size + cnt + 1); ^~~~~~~~~~ mbwstring.h:6:26: error: unknown type name 'wchar_t' extern int wc_cols(const wchar_t *, int, int); ^~~~~~~ history.c:54:21: error: 'CFG_H_SIZE' undeclared (first use in this function); did you mean 'FD_SETSIZE'? hs_alloc = cfg_num(CFG_H_SIZE); ^~~~~~~~~~ cfg.h:17:40: note: in definition of macro 'cfg_num' #define cfg_num(X) (*(const int *)pcfg[X]) ^ In file included from filepanel.c:40: ustringutil.h:1:22: error: unknown type name 'USTRING'; did you mean 'ISWPRINT'? extern int us_getcwd(USTRING *); ^~~~~~~ ISWPRINT bookmarks.c: In function 'bm_edit0_prepare': bookmarks.c:431:2: error: 'panel_bm_edit' undeclared (first use in this function); did you mean 'cx_ustringutil.h:2:24: error: unknown type name 'USTRING'; did you mean 'ISWPRINT'? extern int us_readIn file included from filter.c:33: panel.h:12:24: error: unknown type name 'PANEL_DESC' extern void pan_adjust(PANEL_DESC *); ^~~~~~~~~~ edit.c:413:14: error: 'textline' undeclared (first use in this function); did you mean 'line'? uswIn file included from filter.c:34: userdata.h:4:14: error: unknown type name 'wchar_t' extern const wchar_t *lookup_login(uid_t); ^~~~~~~ bm_edit'? panel_bm_edit.pd->top = panel_bm_edit.pd->min; ^~~~~~~~~~~~~ cx_bm_edit _resize(&textline->line,textline->size + cnt + 1); ^~~~~~~~ line history.c:55:38: error: 'HIST_ENTRY' undeclared (first use in this function) storage = emalloc(hs_alloc * sizeof(HIST_ENTRY)); ^~~~~~~~~~ cmp.c:347:12: error: 'CMP_TOTAL_' undeclared (first use in this function) if (sel < CMP_TOTAL_) { ^~~~~~~~~~ userdata.h:4:1: warning: parameter names (without types) in function declaration extern const wchar_t *lookup_login(uid_t); ^~~~~~ userdata.h:5:14: error: unknown type name 'wchar_t' extern const wchar_t *lookup_group(gid_t); ^~~~~~~ history.c:56:50: error: expected expression before ')' token history = emalloc(hs_alloc * sizeof(HIST_ENTRY *)); ^ bookmarks.c:433:2: error: 'panel' undeclared (first use in this function) panel = panel_bm_edit.pd; ^~~~~ cmp.c:348:3: warning: implicit declaration of function 'TOGGLE' [-Wimplicit-function-declaration] TOGGLE(COPT(sel)); ^~~~~~ userdata.h:5:1: warning: parameter names (without types) in function declaration extern const wcharedit.c: At top level: link(USTRING *, const char *); ^~~~~~~ ISWPRINT history.c:57:58: error: expected expression before ')' token panel_hist.hist = emalloc(hs_alloc * sizeof(HIST_ENTRY *)); ^ _t *lookup_group(gid_t); ^~~~~~ bookmarks.c:434:2: error: 'textline' undeclared (first use in this function); did you mean 'getline'? textline = 0; ^~~~~~~~ getline cmp.c: In function 'cmp_saveopt': cmp.c:81:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ userdata.h:6:38: error: unknown type name 'wchar_t' extern void username_find_init(const wchar_t *, size_t); ^~~~~~~ edit.c:425:20: error: unknown type name 'wchar_t' edit_nu_insertchar(wchar_t ch) ^~~~~~~ edit.c:425:20: note: 'wchar_t' is defined in header ''; did you forget to '#include '? userdata.h:6:49: error: unknown type name 'size_t' extern void username_find_init(const wchar_t *, size_t); ^~~~~~ userdata.h:6:49: note: 'size_t' is defined in header ''; did you forget to '#include '? userdata.h:1:1: +#include extern void userdata_initialize(void); userdata.h:6:49: extern void username_find_init(const wchar_t *, size_t); edit.c:431:17: error: unknown type name 'wchar_t' edit_insertchar(wchar_t ch) ^~~~~~~ edit.c:431:17: note: 'wchar_t' is defined in header ''; did you forget to '#include '? edit.c:438:22: error: unknown type name 'wchar_t' edit_nu_putstr(const wchar_t *str) ^~~~~~~ history.c:60:3: warning: implicit declaration of function 'US_INIT' [-Wimplicit-function-declaration] US_INIT(history[i]->cmd); ^~~~~~~ bookmarks.c: In function 'bm_edit1_prepare': history.c:60:21: error: request for member 'cmd' in something not a structure or union US_INIT(history[i]->cmd); ^~ bookmarks.c:442:2: error: 'textline' undeclared (first use in this function); did you mean 'getline'? textline = &line_tmp; ^~~~~~~~ getline edit.c: In function 'edit_nu_putstr': edit.c:440:12: error: 'textline' undeclared (first use in this function) usw_copy(&textline->line,str); ^~~~~~~~ history.c: In function 'hist_panel_data': history.c:71:2: error: unknown type name 'HIST_ENTRY' HIST_ENTRY *curs; ^~~~~~~~~~ edit.c:441:36: warning: implicit declaration of function 'wcslen'; did you mean 'strlen'? [-Wimplicit-function-declaration] textline->curs = textline->size = wcslen(str); ^~~~~~ strlen bookmarks.c:442:14: error: 'line_tmp' undeclared (first use in this function); did you mean 'nlink_t'? textline = &line_tmp; ^~~~~~~~ nlink_t edit.c: At top level: edit.c:445:19: error: unknown type name 'wchar_t' edit_putstr(const wchar_t *str) ^~~~~~~ edit.c:459:16: error: unknown type name 'wchar_t' edit_isspecial(wchar_t ch) ^~~~~~~ edit.c:459:16: note: 'wchar_t' is defined in header ''; did you forget to '#include '? history.c:73:9: warning: implicit declaration of function 'VALID_CURSOR' [-Wimplicit-function-declaration] curs = VALID_CURSOR(panel_hist.pd) ? panel_hist.hist[panel_hist.pd->curs] : 0; ^~~~~~~~~~~~ edit.c:478:14: error: unknown type name 'wchar_t' how_to_quote(wchar_t ch, int qlevel) ^~~~~~~ edit.c:478:14: note: 'wchar_t' is defined in header ''; did you forget to '#include '? edit.c:496:25: error: unknown type name 'wchar_t' edit_nu_insertstr(const wchar_t *str, int qlevel) ^~~~~~~ edit.c: In function 'edit_nu_insertstr': edit.c:499:2: error: unknown type name 'wchar_t' wchar_t ch, *ins; ^~~~~~~ edit.c:499:2: note: 'wchar_t' is defined in header ''; did you forget to '#include '? history.c:73:22: error: 'panel_hist' undeclared (first use in this function); did you mean 'pan_line'? curs = VALID_CURSOR(panel_hist.pd) ? panel_hist.hist[panel_hist.pd->curs] : 0; ^~~~~~~~~~ pan_line bookmarks.c:443:2: warning: implicit declaration of function 'edit_setprompt'; did you mean 'edit_macro'? [-Wimplicit-function-declaration] edit_setprompt(textline,L"Bookmark name: "); ^~~~~~~~~~~~~~ edit_macro edit.c:503:11: warning: implicit declaration of function 'how_to_quote' [-Wimplicit-function-declaration] mch += how_to_quote(ch,qlevel); ^~~~~~~~~~~~ ^~~~~~ history.c:80:49: warning: implicit declaration of function 'USTR' [-Wimplicit-function-declaration] if (panel_hist.pd->filtering && !match_substr(USTR(history[i]->cmd))) ^~~~ gmake[4]: *** [Makefile:512: cmp.o] Error 1 userdata.h:7:14: error: unknown type name 'wchar_t' extern const wchar_t *username_find(const wchar_t **); ^~~~~~~ history.c:80:64: error: request for member 'cmd' in something not a structure or union if (panel_hist.pd->filtering && !match_substr(USTR(history[i]->cmd))) ^~ edit.c: At top level: userdata.h:7:43: error: unknown type name 'wchar_t' extern const wchar_t *username_find(const wchar_t **); ^~~~~~~ bookmarks.c:444:23: error: 'panel_bm_edit' undeclared (first use in this function); did you mean 'cx_bm_edit'? edit_nu_putstr(SDSTR(panel_bm_edit.bm->name)); ^~~~~~~~~~~~~ cx_bm_edit edit.c:529:22: error: unknown type name 'wchar_t' edit_insertstr(const wchar_t *str, int qlevel) ^~~~~~~ userdata.h:8:39: error: unknown type name 'wchar_t' extern void groupname_find_init(const wchar_t *, size_t); ^~~~~~~ userdata.h:8:50: error: unknown type name 'size_t' extern void groupname_find_init(const wchar_t *, size_t); ^~~~~~ userdata.h:8:50: note: 'size_t' is defined in header ''; did you forget to '#include '? userdata.h:9:14: error: unknown type name 'wchar_t' extern const wchar_t *groupname_find(void); ^~~~~~~ userdata.h:10:31: error: unknown type name 'wchar_t' extern int is_dir_tilde(const wchar_t *); ^~~~~~~ edit.c:548:18: error: unknown type name 'wchar_t' edit_macro(const wchar_t *macro) bookmarks.c: In function 'bm_edit2_prepare': ^~~~~~~ bookmarks.c:455:2: error: 'textline' undeclared (first use in this function); did you mean 'getline'? textline = &line_tmp; ^~~~~~~~ getline history.c: In function 'hist_prepare': In file included from completion.c:33: edit.h:17:28: error: unknown type name 'TEXTLINE'; did you mean 'ENOLINK'? extern void edit_setprompt(TEXTLINE *, const wchar_t *); ^~~~~~~~ ENOLINK userdata.h:11:14: error: unknown type name 'wchar_t' extern const wchar_t *dir_tilde(const wchar_t *); ^~~~~~~ history.c:90:2: error: 'panel_hist' undeclared (first use in this function); did you mean 'pan_line'? panel_hist.pd->filtering = 0; ^~~~~~~~~~ pan_line userdata.h:11:39: error: unknown type name 'wchar_t' extern const wchar_t *dir_tilde(const wchar_t *); ^~~~~~~ edit.c: In function 'edit_macro': edit.c:550:2: error: unknown type name 'wchar_t' wchar_t ch, *ins; ^~~~~~~ edit.c:550:2: note: 'wchar_t' is defined in header ''; did you forget to '#include '? edit.c:551:8: error: unknown type name 'wchar_t' const wchar_t *src; ^~~~~~~ In file included from completion.c:34: history.h:7:14: error: unknown type name 'HIST_ENTRY' extern const HIST_ENTRY *get_history_entry(int i); ^~~~~~~~~~ history.c:96:2: error: 'panel' undeclared (first use in this function) panel = panel_hist.pd; ^~~~~ edit.c:553:2: error: unknown type name 'FLAG' FLAG prefix, noenter = 0, automatic = 0, warn_dotdir = 0; ^~~~ filter.c: In function 'fopt_prepare': filter.c:39:2: error: 'panel_fopt' undeclared (first use in this function); did you mean 'win_panel_opt'? panel_fopt.pd->top = panel_fopt.pd->curs = panel_fopt.pd->min; ^~~~~~~~~~ win_panel_opt filter.c:39:2: note: each undeclared identifier is reported only once for each function it appears in bookmarks.c:455:14: error: 'line_tmp' undeclared (first use in this function); did you mean 'nlink_t'? textline = &line_tmp; ^~~~~~~~ nlink_t history.c:97:2: error: 'textline' undeclared (first use in this function); did you mean 'pan_line'? textline = &line_cmd; ^~~~~~~~ pan_line edit.c:554:2: error: unknown type name 'FILE_ENTRY' FILE_ENTRY *pfe; ^~~~~~~~~~ filter.c:40:2: error: 'panel' undeclared (first use in this function); did you mean 'pan_line'? panel = panel_fopt.pd; ^~~~~ pan_line filter.c:41:2: error: 'textline' undeclared (first use in this function); did you mean 'pan_line'? textline = 0; ^~~~~~~~ pan_line history.c:97:14: error: 'line_cmd' undeclared (first use in this function) textline = &line_cmd; ^~~~~~~~ history.c: At top level: history.c:101:7: error: unknown type name 'HIST_ENTRY' const HIST_ENTRY * ^~~~~~~~~~ edit.c:561:6: error: 'textline' undeclared (first use in this function) if (textline->curs == 0 || wcschr(L" :=",USTR(textline->line)[textline->curs - 1])) ^~~~~~~~ filter.c: In function 'cx_fopt_enter': filter.c:48:2: warning: implicit declaration of function 'TOGGLE' [-Wimplicit-function-declaration] TOGGLE(FOPT(panel_fopt.pd->curs)); ^~~~~~ In file included from completion.c:36: lex.h:4:24: error: unknown type name 'USTRINGW' extern int usw_dequote(USTRINGW *, const wchar_t *, size_t); ^~~~~~~~ filter.c:48:9: warning: implicit declaration of function 'FOPT' [-Wimplicit-function-declaration] TOGGLE(FOPT(panel_fopt.pd->curs)); ^~~~ edit.c:561:29: warning: implicit declaration of function 'wcschr'; did you mean 'strchr'? [-Wimplicit-function-declaration] if (textline->curs == 0 || wcschr(L" :=",USTR(textline->line)[textline->curs - 1])) ^~~~~~ strchr bookmarks.c:457:14: error: 'panel_bm_edit' undeclared (first use in this function); did you mean 'cx_bm_edit'? dirw = USTR(panel_bm_edit.bm->dirw); ^~~~~~~~~~~~~ cx_bm_edit history.c: In function 'hist_save': history.c:121:2: error: unknown type name 'FLAG' FLAG new = 1; ^~~~ filter.c:48:14: error: 'panel_fopt' undeclared (first use in this function); did you mean 'win_panelIn file included from completion.c:40: mbwstring.h:1:51: error: unknown type name 'USTRINGW' extern const wchar_t *usw_convert2w(const char *, USTRINGW *); ^~~~~~~~ history.c:122:2: error: unknown type name 'HIST_ENTRY' HIST_ENTRY *x, *top; ^~~~~~~~~~ edit.c:567:7: warning: implicit declaration of function 'TCLR' [-Wimplicit-function-declaration] if (TCLR(prefix)) { ^~~~ _opt'? TOGGLE(FOPT(panel_fopt.pd->curs)); ^~~~~~~~~~ win_panel_opt bookmarks.c: In function 'cx_bm_edit': mbwstring.h:3:51: error: unknown type name 'USTRING' extern const char *us_convert2mb(const wchar_t *, USTRING *); ^~~~~~~ bookmarks.c:466:2: error: 'panel_bm_edit' undeclared (first use in this function); did you mean 'cx_bm_edit'? panel_bm_edit.bm = bmlist[panel_bm.pd->curs]; /* current bookmark */ ^~~~~~~~~~~~~ cx_bm_edit cfg.c:412:16: warning: comparison between pointer and integer for (i = 0; i < CFG_TOTAL_; i++) ^ edit.c:571:5: warning: implicit declaration of function 'wcsncpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration] wcsncpy(insert_space(cnt),src,cnt); ^~~~~~~ strncpy completion.c:54:2: error: unknown type name 'SDSTRING' SDSTRING cmd; /* command name */ ^~~~~~~~ edit.c:575:22: error: 'panel' undeclared (first use in this function) if (ch == L'f' && panel->cnt > 0) { ^~~~~ completion.c:55:2: error: unknown type name 'SDSTRINGW' SDSTRINGW cmdw; /* command name */ ^~~~~~~~~ filter.c: In function 'fopt_saveopt': filter.c:59:19: error: 'FOPT_TOTAL_' undeclared (first use in this function) static char buff[FOPT_TOTAL_ + 1]; ^~~~~~~~~~~ bookmarks.c:466:28: error: 'panel_bm' undeclared (first use in this function); did you mean 'pan_line'? panel_bm_edit.bm = bmlist[panel_bm.pd->curs]; /* current bookmark */ ^~~~~~~~ pan_line completion.c:77:2: error: unknown type name 'CODE' CODE type; /* type of completion - one of COMPL_TYPE_XXX */ ^~~~ completion.c:83:2: error: unknown type name 'CODE' CODE qflags; /* other quoting issues - one of QFL_XXX */ ^~~~ edit.c:576:10: error: 'ppanel_file' undeclared (first use in this function) ch = ppanel_file->selected && kinp.prev_esc ? L'S' : L'F'; ^~~~~~~~~~~ filter.c:59:14: warning: unused variable 'buff' [-Wunused-variable] static char buff[FOPT_TOTAL_ + 1]; ^~~~ edit.c:576:35: error: 'kinp' undeclared (first use in this function); did you mean 'ins'? ch = ppanel_file->selected && kinp.prev_esc ? L'S' : L'F'; ^~~~ ins bookmarks.c:467:15: error: 'MODE_BM_EDIT0' undeclared (first use in this function) control_loop(MODE_BM_EDIT0); ^~~~~~~~~~~~~ completion.c:88:2: error: unknown type name 'FLAG' FLAG filenames; /* names are filenames */ ^~~~ completion.c:96:8: error: unknown type name 'COMPL_ENTRY' static COMPL_ENTRY *cc_list = 0; /* list of all candidates */ ^~~~~~~~~~~ completion.c:99:8: error: unknown type name 'FLAG' static FLAG unfinished; /* completion not finished (partial success) */ ^~~~ edit.c:578:11: warning: implicit declaration of function 'NOPT' [-Wimplicit-function-declaration] && !NOPT(NOTIF_SELECTED)) ^~~~ filter.c: In function 'fopt_restoreopt': filter.c:76:18: error: 'FOPT_TOTAL_' undeclared (first use in this function) for (i = 0; i < FOPT_TOTAL_; i++) ^~~~~~~~~~~ filter.c:77:11: error: lvalue required as left operand of assignment FOPT(i) = 0; ^ completion.c: In function 'environ_init': completion.c:146:9: error: unknown type name 'USTRING' static USTRING buff = UNULL; ^~~~~history.c:134:7: warning: implicit declaration of function 'wcscmp'; did you mean 'ewcsdup'? [-Wimplicit-function-declaration] if (wcscmp(USTR(top->cmd),cmd) == 0) { ^~~~~~ ewcsdup edit.c:578:16: error: 'NOTIF_SELECTED' undeclared (first use in this function) && !NOPT(NOTIF~~ _SELECTED)) ^~~~~~~~~~~~~~ bookmarks.c: In function 'cx_bm_new': filter.c:82:18: error: lvalue required as left operand of assignment FOPT(ch - 'A') = 1; ^ bookmarks.c:478:2: error: 'panel_bm_edit' undeclared (first use in this function); did you mean 'cx_bm_edit'? panel_bm_edit.bm = bmlist[bm_cnt]; ^~~~~~~~~~~~~ cx_bm_edit cfg.c:415:8: error: 'user_data' undeclared (first use in this function) if (!user_data.nowrite) ^~~~~~~~~ filter.c: In function 'cx_filteredit_begin': filter.c:91:2: error: 'panel' undeclared (first use in this function); did you mean 'pan_line'? panel->filter->curs = 0; ^~~~~ pan_line edit.c:599:14: error: request for member 'select' in something not a structure or union if (pfe->select) { ^~ edit.c:600:15: error: request for member 'dotdir' in something not a structure or union if (pfe->dotdir) { ^~ cfg.c:415:17: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (!user_data.nowrite) ^ -> filter.c: In function 'cx_filteredit_end': filter.c:97:2: error: 'panel' undeclared (first use in this function); did you mean 'pan_line'? panel->filter->curs = panel->filter->size; ^~~~~ pan_line edit.c:607:26: warning: implicit declaration of function 'SDSTR' [-Wimplicit-function-declaration] edit_nu_insertstr(SDSTR(pfe->filew),QUOT_NORMAL); ^~~~~ bookmarks.c:480:15: error: 'MODE_BM_EDIT0' undeclared (first use in this function) control_loop(MODE_BM_EDIT0); ^~~~~~~~~~~~~ completion.c:146:24: error: 'UNULL' undeclared (first use in this function); did you mean 'NULL'? static USTRING buff = UNULL; ^~~~~ NULL completion.c:146:24: note: each undeclared identifier is reported only once for each function it appears in edit.c:607:35: error: request for member 'filew' in something not a structure or union edit_nu_insertstr(SDSTR(pfe->filew),QUOT_NORMAL); ^~ filter.c: In function 'cx_filteredit_left': filter.c:103:2: error: unknown type name 'FLAG' FLAG move = 1; ^~~~ edit.c:617:33: error: request for member 'filew' in something not a structure or union edit_nu_insertstr(SDSTR(pfe->filew),QUOT_NORMAL); ^~ filter.c:105:17: error: 'panel' undeclared (first use in this function) while (move && panel->filter->curs > 0) ^~~~~ filter.c: In function 'cx_filteredit_right': filter.c:112:2: error: unknown type name 'FLAG' FLAG move = 1; ^~~~ bookmarks.c:486:12: error: 'panel_bm' undeclared (first use in this function); did you mean 'pan_line'? LIMIT_MIN(panel_bm.pd->curs,-1); ^~~~~~~~ pan_line filter.c:114:17: error: 'panel' undeclared (first use in this function) while (move && panel->filter->curs < panel->filter->size) ^~~~~ filter.c: In function 'cx_filteredit_kill': filter.c:121:2: error: 'panel' undeclared (first use in this function); did you mean 'pan_line'? panel->filter->line[panel->filter->curs = panel->filter->size = 0] = L'\0'; ^~~~~ pan_line completion.c:152:20: warning: implicit declaration of function 'us_copy'; did you mean 'va_copy'? [-Wimplicit-function-declaration] for (var = val = us_copy(&buff,environ[i]); *val != '\0'; val++) ^~~~~~~ va_copy edit.c:647:3: error: 'disp_data' undeclared (first use in this function) disp_data.noenter = 1; ^~~~~~~~~ completion.c:152:18: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] for (var = val = us_copy(&buff,environ[i]); *val != '\0'; val++) ^ bookmarks.c: In function 'cx_bm_addcwd': filter.c: In function 'delete_chars': edit.c:651:27: error: 'NOTIF_DOTDIR' undeclared (first use in this function) if (warn_dotdir && !NOPT(NOTIF_DOTDIR)) ^~~~~~~~~~~~ filter.c:132:2: error: 'panel' undeclared (first use in this function) panel->filter->size -= cnt; ^~~~~ bookmarks.c:499:16: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? append = USTR(ppanel_file->dir); ^~~~~~~~~~~ pan_line filter.c: In function 'cx_filteredit_backsp': filter.c:142:2: error: unknown type name 'FLAG' FLAG del = 1; ^~~~ In file included from edit.c:23: edit.c: In function 'cx_edit_cmd_f3': cfg.h:18:28: error: unknown type name 'wchar_t' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~~~~ edit.c:665:40: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f3(void) { edit_macro(cfg_str(CFG_CMD_F3)); } ^~~~~~~ bookmarks.c:500:15: error: 'MODE_BM' undeclared (first use in this function) control_loop(MODE_BM); ^~~~~~~ filter.c:144:6: error: 'panel' undeclared (first use in this function) if (panel->filter->curs == 0) ^~~~~ cfg.c:420:2: error: 'panel_cfg' undeclared (first use in this function) panel_cfg.config = config; ^~~~~~~~~ cfg.c:420:11: error: '(CSTR *)&' is a pointer; did you mean to use '->'? panel_cfg.config = config; ^ -> filter.c: In function 'cx_filteredit_delchar': filter.c:159:2: error: unknown type name 'FLAG' FLAG del = 1; ^~~~ cfg.c:420:2: warning: statement with no effect [-Wunused-value] panel_cfg.config = config; ^~~~~~~~~ cfg.h:18:38: error: 'pcfg' undeclared (first use in this function) #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~ edit.c:665:40: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f3(void) { edit_macro(cfg_str(CFG_CMD_F3)); } ^~~~~~~ cfg.c: At top level: completion.c: In function 'compl_reconfig': filter.c:161:6: error: 'panel' undeclared (first use in this function) if (panel->filter->curs == completion.c:178:4: warning: implicit declaration of function 'sdw_reset' [-Wimplicit-function-declapanel->filter->size) ^~~~~ ration] sdw_reset(&cc_list[i].str); ^~~~~~~~~ bookmarks.c: In function 'cx_bm_edit0_enter': edit.c:665:48: error: 'CFG_CMD_F3' undeclared (first use in this function) void cx_edit_cmd_f3(void) { edit_macro(cfg_str(CFG_CMD_F3)); } ^~~~~~~~~~ cfg.h:18:43: note: in definition of macro 'cfg_str' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^ completion.c:178:25: error: request for member 'str' in something not a structure or union sdw_reset(&cc_list[i].str); ^ bookmarks.c:506:15: error: 'panel_bm_edit' undeclared (first use in this function); did you mean 'cx_bm_edit'? control_loop(panel_bm_edit.pd->curs ? MODE_BM_EDIT2 : MODE_BM_EDIT1); ^~~~~~~~~~~~~ cx_bm_edit edit.c: In function 'cx_edit_cmd_f4': filter.c: In function 'cx_filteredit_delend': completion.c:180:8: error: 'panel_compl' undeclared (first use in this function); did you mean 're_comp'? free(panel_compl.cand); ^~~~~~~~~~~ re_comp filter.c:176:2: error: 'panel' undeclared (first use in this function); did you mean 'pan_line'? panel->filter->line[panel->filter->size = panel->filter->curs] = L'\0'; ^~~~~ pan_line bookmarks.c:506:40: error: 'MODE_BM_EDIT2' undeclared (first use in this function) control_loop(panel_bm_edit.pd->curs ? MODE_BM_EDIT2 : MODE_BM_EDIT1); ^~~~~~~~~~~~~ cfg.h:18:28: error: unknown type name 'wchar_t' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~~~~ edit.c:666:40: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f4(void) { edit_macro(cfg_str(CFG_CMD_F4)); } ^~~~~~~ In file included from completion.c:31: cfg.h:17:35: error: 'pcfg' undeclared (first use in this function) #define cfg_num(X) (*(const int *)pcfg[X]) ^~~~ completion.c:183:13: note: in expansion of macro 'cfg_num' cc_alloc = cfg_num(CFG_C_SIZE); ^~~~~~~ filter.c: At top level: help.c:84:2: error: unknown type name 'FLAG' FLAG valid; ^~~~ filter.c:182:8: error: unknown type name 'wchar_t' static wchar_t * ^~~~~~~ ^~~ filter.c: In function 'insert_space': filter.c:186:2: error: unknown type name 'wchar_t' wchar_t *ins; ^~~~~~~ filter.c:186:2: note: 'wchar_t' is defined in header ''; did you forget to '#include '? filter.c:35:1: +#include filter.c:186:2: wchar_t *ins; ^~~~~~~ bookmarks.c:506:56: error: 'MODE_BM_EDIT1' undeclared (first use in this function) control_loop(panel_bm_edit.pd->curs ? MODE_BM_EDIT2 : MODE_BM_EDIT1); ^~~~~~~~~~~~~ cfg.h:18:38: error: 'pcfg' undeclared (first use in this function) #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~ edit.c:666:40: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f4(void) { edit_macro(cfg_str(CFG_CMD_F4)); } ^~~~~~~ filter.c:188:6: error: 'panel' undeclared (first use in this function) if (panel->filter->size + cnt >= INPUT_STR) ^~~~~ history.c:134:22: error: request for member 'cmd' in something not a structure or union if (wcscmp(USTR(top->cmd),cmd) == 0) { ^~ filter.c:188:35: error: 'INPUT_STR' undeclared (first use in this function) if (panel->filter->size + cnt >= INPUT_STR) ^~~~~~~~~control.c: In function 'cx_mode_preview': history.c:141:3: warning: implicit declaration of function 'usw_copy'; did you mean 'va_copy'? [-Wimplicit-function-declaration] usw_copy(&top->cmd,cmd); ^~~~~~~~ va_copy bookmarks.c: In function 'cx_bm_edit1_enter': completion.c:183:21: error: 'CFG_C_SIZE' undeclared (first use in this function); did you mean 'FD_S edit.c:666:48: error: 'CFG_CMD_F4' undeclared (first use in this function) void cx_edit_cmd_f4(voidETSIZE'? cc_alloc = cfg_num(CFG_C_SIZE); ^~~~~~~~~~ cfg.h:17:40: note: in definition of macro 'cfg_num' #define cfg_num(X) (*(const int *)pcfg[X]) ^ ) { edit_macro(cfg_str(CFG_CMD_F4)); } ^~~~~~~~~~ cfg.h:18:43: note: in definition of macro 'cfg_str' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^ In file included from exec.c:15: clexheaders.h:1: error: unterminated #if #if defined(__APPLE__) bookmarks.c:512:12: error: 'panel_bm_edit' undeclared (first use in this function); did you mean 'cx_bm_edit'? sdw_copy(&panel_bm_edit.bm->name,USTR(textline->line)); ^~~~~~~~~~~~~ cx_bm_edit cfg.c:424:14: error: unknown type name 'wchar_t' static const wchar_t * ^~~~~~~ edit.c: In function 'cx_edit_cmd_f5': filter.c: At top level: cfg.h:18:28: error: unknown type name 'wchar_t' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~~~~ edit.c:667:40: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f5(void) { edit_macro(cfg_str(CFG_CMD_F5)); } ^~~~~~~ filter.c:202:26: error: unknown type name 'wchar_t' filteredit_nu_insertchar(wchar_t ch) ^~~~~~~ filter.c:202:26: note: 'wchar_t' is defined in header ''; did you forget to '#include '? filter.c:211:23: error: unknown type name 'wchar_t' filteredit_insertchar(wchar_t ch) ^~~~~~~ filter.c:211:23: note: 'wchar_t' is defined in header ''; did you forget to '#include '? cfg.c: In function 'print_str_value': ustringutil.h:3:24: error: unknown type name 'USTRING'; did you mean 'ISWPRINT'? extern void us_vprintf(USTRING *, const char *, va_list); ^~~~~~~ ISWPRINT cfg.c:429:18: error: request for member 'table' in something not a structure or union pstr = config[i].table; ^ cfg.c: At top level: cfg.h:18:38: error: 'pcfg' undeclared (first use in this function) #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~ edit.c:667:40: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f5(void) { edit_macro(cfg_str(CFG_CMD_F5)); } filter.c: In function 'dir_panel_data_wrapper': ^~~~~~~ bookmarks.c:512:40: error: 'textline' undeclared (first use in this function); did you mean 'getline'? sdw_copy(&panel_bm_edit.bm->name,USTR(textline->line)); ^~~~~~~~ getline completion.c:184:38: error: 'COMPL_ENTRY' undeclared (first use in this function); did you mean 'COMPL_TYPE_ENV'? cc_list = emalloc(cc_alloc * sizeof(COMPL_ENTRY)); ^~~~~~~~~~~ COMPL_TYPE_ENV filter.c:227:6: warning: implicit declaration of function 'VALID_CURSOR' [-Wimplicit-function-declaration] if (VALID_CURSOR(panel_dir.pd)) { ^~~~~~~~~~~~ filepanel.c: In function 'try_all_parents': completion.c:185:60: error: expected expression before ')' token panel_compl.cand = emalloc(cc_alloc * sizeof(COMPL_ENTRY *)); ^ cfg.c:436:14: error: unknown type name 'wchar_t' static const wchar_t * ^~~~~~~ filepanel.c:46:2: error: unknown type name 'FLAG' FLAG root; ^~~~ cfg.c: In function 'print_num_value': cfg.c:439:9: error: unknown type name 'wchar_t' static wchar_t buff[16]; ^~~~~~~ filter.c:227:19: error: 'panel_dir' undeclared (first use in this function) if (VALID_CURSOR(panel_dir.pd)) { ^~~~~~~~~ cfg.c:442:18: error: request for member 'table' in something not a structure or union pnum = config[i].table; ^ cfg.c:442:7: warning: assignment to 'CNUM *' {aka 'struct *'} from incompatible pointer type 'CSTR *' {aka 'struct *'} [-Wincompatible-pointer-types] pnum = config[i].table; ^ edit.c:667:48: error: 'CFG_CMD_F5' undeclared (first use in this function) void cx_edit_cmd_f5(void) { edit_macro(cfg_str(CFG_CMD_F5)); } ^~~~~~~~~~ cfg.h:18:43: note: in definition of macro 'cfg_str' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^ completion.c:187:3: warning: implicit declaration of function 'SD_INIT'; did you mean 'S_IFMT'? [-Wimplicit-function-declaration] SD_INIT(cc_list[i].str); ^~~~~~~ S_IFMT filter.c: In function 'match_help': edit.c: In function 'cx_edit_cmd_f6': filter.c:253:2: error: unknown type name 'HELP_LINE' HELP_LINE *ph; ^~~~~~~~~ bookmarks.c:515:2: error: 'next_mode' undeclared (first use in this function); did you mean 'strmode'? next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ strmode filepanel.c:50:35: warning: implicit declaration of function 'us_getcwd'; did you mean 'getcwd'? [-Wimplicit-function-declaration] for (root = 0; chdir(dir) < 0 || us_getcwd(&ppanel_file->dir) < 0; ) { ^~~~~~~~~ getcwd cfg.h:18:28: error: unknown type name 'wchar_t' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~~~~ edit.c:668:40: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f6(void) { edit_macro(cfg_str(CFG_CMD_F6)); } ^~~~~~~ filter.c:256:7: error: 'panel_help' undeclared (first use in this function); did you mean 'match_help'? ph = panel_help.line[ln]; ^~~~~~~~~~ match_help help.c: In function 'help_linecnt': completion.c:187:21: error: request for member 'str' in something not a structure or union SD_INIT(cc_list[i].str); ^ filter.c:257:24: error: request for member 'text' in something not a structure or union if (match_substr_ic(ph->text)) ^~ help.c:154:9: warning: implicit declaration of function 'ARRAY_SIZE' [-Wimplicit-function-declaratiocontrol.c:103:59: error: 'MODE_PREVIEW' undeclared (first use in this function) #define CXM(X,M) vofilter.c:259:20: error: request for member 'links' in something not a structure or union for (i = 0; i < ph->links; i++) ^~ filepanel.c:50:46: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? for (root = 0; chdir(dir) < 0 || us_getcwd(&ppanel_file->dir) < 0; ) { ^~~~~~~~~~~ pan_line cfg.h:18:38: error: 'pcfg' undeclared (first use in this function) #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~ edit.c:668:40: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f6(void) { edit_macro(cfg_str(CFG_CMD_F6)); } ^~~~~~~ filepanel.c:50:46: note: each undeclared identifier is reported only once for each function it appears in filter.c:260:36: error: request for member 'text' in something not a structure or union if (match_substr_ic(ph[i * 3 + 2].text) || match_substr_ic(ph[i * 3 + 3].text)) ^ bookmarks.c:515:14: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~~~~~~~~~~~ filter.c:260:75: error: request for member 'text' in something not a structure or union if (match_substr_ic(ph[i * 3 + 2].text) || match_substr_ic(ph[i * 3 + 3].text)) ^ completion.c: In function 'qcmp': completion.c:193:10: error: 'panel_sort' undeclared (first use in this function); did you mean 'radixsort'? return (panel_sort.order == SORT_NAME_NUM ? num_wcscoll : wcscoll)( ^~~~~~~~~~ radixsort filepanel.c: In function 'files_initialize': filepanel.c:67:8: error: unknown type name 'BOOKMARK' const BOOKMARK *bm; ^~~~~~~~ filepanel.c:69:9: error: unknown type name 'INPUTLINE' static INPUTLINE filter1, filter2; ^~~~~~~~~ filepanel.c:70:9: error: unknown type name 'PANEL_DESC' static PANEL_DESC panel_desc_1 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter1,draw_line_file }; ^~~~~~~~~~ filepanel.c:70:39: warning: excess elements in scalar initializer static PANEL_DESC panel_desc_1 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter1,draw_line_file }; ^ filepanel.c:70:39: note: (near initialization for 'panel_desc_1') filepanel.c:70:41: warning: excess elements in scalar initializer static PANEL_DESC panel_desc_1 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter1,draw_line_file }; ^ filepanel.c:70:41: note: (near initialization for 'panel_desc_1') filepanel.c:70:43: warning: excess elements in scalar initializer static PANEL_DESC panel_desc_1 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter1,draw_line_file }; ^ filepanel.c:70:43: note: (near initialization for 'panel_desc_1') filter.c: In function 'filter_update_help': edit.c:668:48: error: 'CFG_CMD_F6' undeclared (first use in this function) void cx_edit_cmd_f6(void) { edit_macro(cfg_str(CFG_CMD_F6)); } ^~~~~~~~~~ cfg.h:18:43: note: in definition of macro 'cfg_str' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^ filter.c:271:19: error: 'panel_help' undeclared (first use in this function); did you mean 'match_help'? match_substr_set(panel_help.pd->filter->line); ^~~~~~~~~~ match_help bookmarks.c: In function 'cx_bm_edit2_enter': edit.c: In function 'cx_edit_cmd_f7': completion.c:193:30: error: 'SORT_NAME_NUM' undeclared (first use in this function) return (panel_bookmarks.c:523:14: error: 'textline' undeclared (first use in this function); did you mean 'getline'? dirw = USTR(textline->line); ^~~~~~~~ getline sort.order == SORT_NAME_NUM ? num_wcscoll : wcscoll)( ^~~~~~~~~~~~~ filepanel.c:70:45: error: 'PANEL_TYPE_FILE' undeclared (first use in this function); did you mean 'COMPL_TYPE_FILE'? static PANEL_DESC panel_desc_1 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter1,draw_line_file }; ^~~~~~~~~~~~~~~ COMPL_TYPE_FILE filter.c:274:6: error: 'panel' undeclared (first use in this function); did you mean 'pan_line'? if (panel->filter->changed && match_help(panel_help.pd->curs)) ^~~~~ pan_line filepanel.c:70:45: warning: excess elements in scalar initializer cfg.h:18:28: error: unknown type name 'wchar_t' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~~~~ edit.c:669:40: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f7(void) { edit_macro(cfg_str(CFG_CMD_F7)); } ^~~~~~~ filepanel.c:70:45: note: (near initialization for 'panel_desc_1') filepanel.c:70:61: warning: excess elements in scalar initializer static PANEL_DESC panel_desc_1 =cfg.h:18:38: error: 'pcfg' undeclared (first use in this function) #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~ edit.c:669:40: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f7(void) { edit_macro(cfg_str(CFG_CMD_F7)); } ^~~~~~~ completion.c:193:60: error: 'wcscoll' undeclared (first use in this function); did you mean 'wc_cols'? return (panel_sort.order == SORT_NAME_NUM ? num_wcscoll : wcscoll)( ^~~~~~~ wc_cols { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter1,draw_line_file }; ^ bookmarks.c:528:2: warning: implicit declaration of function 'usw_copy'; did you mean 'va_copy'? [-Wimplicit-function-declaration] usw_copy(&panel_bm_edit.bm->dirw,dirw); ^~~~~~~~ va_copy filter.c: In function 'filter_update': filepanel.c:70:61: note: (near initialization for 'panel_desc_1') history.c:141:16: error: request for member 'cmd' in something not a structure or union usw_copy(&top->cmd,cmd); ^~ filepanel.c:70:63: warning: excess elements in scalar initializer static PANEL_DESC panel_desc_1 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter1,draw_line_file }; ^ filter.c:293:10: error: 'panel' undeclared (first use in this function); did you mean 'pan_line'? switch (panel->type) { ^~~~~ pan_line filepanel.c:70:63: note: (near initialization for 'panel_desc_1') filepanel.c:70:65: warning: excess elements in scalar initializer static PANEL_DESC panel_desc_1 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter1,draw_line_file }; ^ filepanel.c:70:65: note: (near initialization for 'panel_desc_1') filepanel.c:70:74: warning: excess elements in scalar initializer static PANEL_DESC panel_desc_1 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter1,draw_line_file }; ^~~~~~~~~~~~~~ filepanel.c:70:74: note: (near initialization for 'panel_desc_1') filepanel.c:71:9: error: unknown type name 'PANEL_DESC' static PANEL_DESC panel_desc_2 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter2,draw_line_file }; ^~~~~~~~~~ filepanel.c:71:39: warning: excess elements in scalar initializer static PANEL_DESC panel_desc_2 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter2,draw_line_file }; ^ filepanel.c:71:39: note: (near initialization for 'panel_desc_2') filepanel.c:71:41: warning: excess elements in scalar initializer static PANEL_DESC panel_desc_2 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter2,draw_line_file }; ^ filepanel.c:71:41: note: (near initialization for 'panel_desc_2') filepanel.c:71:43: warning: excess elements in scalar initializer static PANEL_DESC panel_desc_2 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter2,draw_line_file }; ^ filepanel.c:71:43: note: (near initialization for 'panel_desc_2') filepanel.c:71:45: warning: excess elements in scalar initializer static PANEL_DESC panel_desc_2 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter2,draw_line_file }; ^~~~~~~~~~~~~~~ filepanel.c:71:45: note: (near initialization for 'panel_desc_2') filepanel.c:71:61: warning: excess elements in scalar initializer static PANEL_DESC panel_desc_2 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter2,draw_line_file }; ^ filepanel.c:71:61: note: (near initialization for 'panel_desc_2') filepanel.c:71:63: warning: excess elements in scalar initializer static PANEL_DESC panel_desc_2 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter2,draw_line_file }; ^ filepanel.c:71:63: note: (near initialization for 'panel_desc_2') filepanel.c:71:65: warning: excess elements in scalar initializer static PANEL_DESC panel_desc_2 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter2,draw_line_file }; ^ filepanel.c:71:65: note: (near initialization for 'panel_desc_2') filepanel.c:71:74: warning: excess elements in scalar initializer static PANEL_DESC panel_desc_2 = { 0,0,0,0,PANEL_TYPE_FILE,0,0,&filter2,draw_line_file }; ^~~~~~~~~~~~~~ filepanel.c:71:74: note: (near initialization for 'panel_desc_2') filepanel.c:72:9: error: unknown type name 'PANEL_FILE' static PANEL_FILE panel_f1 = { &panel_desc_1 }; ^~~~~~~~~~ filepanel.c:72:33: warning: initialization of 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] static PANEL_FILE panel_f1 = { &panel_desc_1 }; ^ filepanel.c:72:33: note: (near initialization for 'panel_f1') filepanel.c:72:33: error: initializer element is not computable at load time filepanel.c:72:33: note: (near initialization for 'panel_f1') filepanel.c:73:9: error: unknown type name 'PANEL_FILE' static PANEL_FILE panel_f2 = { &panel_desc_2 }; ^~~~~~~~~~ filepanel.c:73:33: warning: initialization of 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] static PANEL_FILE panel_f2 = { &panel_desc_2 }; ^ filepanel.c:73:33: note: (near initialization for 'panel_f2') filepanel.c:73:33: error: initializer element is not computable at load time filepanel.c:73:33: note: (near initialization for 'panel_f2') filepanel.c:75:10: error: request for member 'other' in something not a structure or union panel_f1.other = &panel_f2; ^ filter.c:294:7: error: 'PANEL_TYPE_BM' undeclared (first use in this function); did you mean 'COMPL_TYPE_CMD'? case PANEL_TYPE_BM: ^~~~~~~~~~~~~ COMPL_TYPE_CMD completion.c:194:4: warning: implicit declaration of function 'SDSTR' [-Wimplicit-function-declaration] SDSTR(((COMPL_ENTRY *)e1)->str), ^~~~~ edit.c:669:48: error: 'CFG_CMD_F7' undeclared (first use in this function) void cx_edit_cmd_f7(void) { edit_macro(cfg_str(CFG_CMD_F7)); } ^~~~~~~~~~ cfg.h:18:43: note: in definition of macro 'cfg_str' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^ edit.c: In function 'cx_edit_cmd_f8': cfg.h:18:28: error: unknown type name 'wchar_t' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~~~~ edit.c:670:40: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f8(void) { edit_macro(cfg_str(CFG_CMD_F8)); } ^~~~~~~ bookmarks.c:528:12: error: 'panel_bm_edit' undeclared (first use in this function); did you mean 'cx_bm_edit'? usw_copy(&panel_bm_edit.bm->dirw,dirw); ^~~~~~~~~~~~~ cx_bm_edit filter.c:297:7: error: 'PANEL_TYPE_COMPL' undeclared (first use in this function); did you mean 'COMPL_TYPE_CMD'? case PANEL_TYPE_COMPL: ^~~~~~~~~~~~~~~~ COMPL_TYPE_CMD filepanel.c:76:2: error: 'ppanel_file' undeclared (first use in this function); did you mean 'panel_f2'? ppanel_file = panel_f2.other = &panel_f1; ^~~~~~~~~~~ panel_f2 cfg.h:18:38: error: 'pcfg' undeclared (first use in this function) #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~ edit.c:670:40: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f8(void) { edit_macro(cfg_str(CFG_CMD_F8)); } ^~~~~~~ completion.c:194:12: error: 'COMPL_ENTRY' undeclared (first use in this function); did you mean 'COMPL_TYPE_ENV'? SDSTR(((COMPL_ENTRY *)e1)->str), ^~~~~~~~~~~ COMPL_TYPE_ENV filter.c:300:7: error: 'PANEL_TYPE_DIR' undeclared (first use in this function); did you mean 'COMPLfilepanel.c:76:24: error: request for member 'other' in something not a structure or union ppanel_edit.c:670:48: error: 'CFG_CMD_F8' undeclared (first use in this function) void cx_edit_cmd_f8(void) { edit_macro(cfg_str(CFG_CMD_F8)); } ^~~~~~~~~~ cfg.h:18:43: note: in definition of macro 'cfg_str' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^ file = panel_f2.other = &panel_f1; ^ _TYPE_DIR'? case PANEL_TYPE_DIR: ^~~~~~~~~~~~~~ COMPL_TYPE_DIR bookmarks.c:529:2: warning: implicit declaration of function 'us_convert2mb'; did you mean 'convert2mb'? [-Wimplicit-function-declaration] us_convert2mb(dirw,&panel_bm_edit.bm->dir); ^~~~~~~~~~~~~ convert2mb completion.c:194:25: error: expected expression before ')' token SDSTR(((COMPL_ENTRY *)e1)->str), ^ edit.c: In function 'cx_edit_cmd_f9': completion.c:195:25: error: expected expression before ')' token SDSTR(((COMPL_ENTRY *)e2)->str)); ^ cfg.h:18:28: error: unknown type name 'wchar_t' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~~~~ edit.c:671:40: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f9(void) { edit_macro(cfg_str(CFG_CMD_F9)); } ^~~~~~~ bookmarks.c:532:2: error: 'next_mode' undeclared (first use in this function); did you mean 'strmode'? next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ strmode filter.c:303:7: error: 'PANEL_TYPE_FILE' undeclared (first use in this function); did you mean 'COMPL_TYPE_FILE'? case PANEL_TYPE_FILE: ^~~~~~~~~~~~~~~ COMPL_TYPE_FILE filepanel.c:78:45: warning: implicit declaration of function 'USTR' [-Wimplicit-function-declaration] if ( (bm = get_bookmark(L"DIR1")) && chdir(USTR(bm->dir)) < 0) ^~~~ cfg.h:18:38: error: 'pcfg' undeclared (first use in this function) #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~ edit.c:671:40: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f9(void) { edit_macro(cfg_str(CFG_CMD_F9)); } ^~~~~~~ filepanel.c:78:52: error: request for member 'dir' in something not a structure or union if ( (bm = get_bookmark(L"DIR1")) && chdir(USTR(bm->dir)) < 0) ^~ filter.c:306:7: error: 'PANEL_TYPE_GROUP' undeclared (first use in this function); did you mean 'COMPL_TYPE_GROUP'? case PANEL_TYPE_GROUP: ^~~~~~~~~~~~~~~~ COMPL_TYPE_GROUP filepanel.c:80:25: error: request for member 'dir' in something not a structure or union if (us_getcwd(&panel_f1.dir) < 0) { ^ In file included from exec.c:30: edit.h:17:28: error: unknown type name 'TEXTLINE'; did you mean 'ENOLINK'? extern void edit_setprompt(TEXTLINE *, const wchar_t *); ^~~~~~~~ ENOLINK bookmarks.c:532:14: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~~~~~~~~~~~ filter.c:309:7: error: 'PANEL_TYPE_HELP' undeclared (first use in this function); did you mean 'COMPL_TYPE_FILE'? case PANEL_TYPE_HELP: ^~~~~~~~~~~~~~~ COMPL_TYPE_FILE edit.c:671:48: error: 'CFG_CMD_F9' undeclared (first use in this function)completion.c: In function 'sort_group': filter.c:312:7: error: 'PANEL_TYPE_HIST' undeclared (first use in this function); did you mean 'COMPL_TYPE_HIST'? case PANEL_TYPE_HIST: ^~~~~~~~~~~~~~~ COMPL_TYPE_HIST completion.c:205:6: warning: implicit declaration of function 'IS_FT_PLAIN' [-Wimplicit-function-declaration] if (IS_FT_PLAIN(type)) ^~~~~~~~~~~ cfg.c:449:2: warning: implicit declaration of function 'swprintf'; did you mean 'snprintf'? [-Wimplicit-function-declaration] swprintf(buff,ARRAY_SIZE(buff),L"%d",pnum->new); ^~~~~~~~ snprintf cfg.c: At top level: cfg.c:453:7: error: unknown type name 'wchar_t' const wchar_t * ^~~~~~~ filepanel.c:83:61: error: 'user_data' undeclared (first use in this function) try_all_parents(checkabs(getenv("PWD")) ? getenv("PWD") : user_data.homedir); ^~~~~~~~~ void cx_edit_cmd_f9(voidfilter.c:315:7: error: 'PANEL_TYPE_LOG' undeclared (first use in this function); did you mean 'COMPL_TYPE_ENV'? case PANEL_TYPE_LOG: ^~~~~~~~~~~~~~ COMPL_TYPE_ENV completion.c:207:6: warning: implicit declaration of function 'IS_FT_DIR'; did you mean 'DT_DIR'? [-Wimplicit-function-declaration] if (IS_FT_DIR(type)) ^~~~~~~~~ DT_DIR filepanel.c:85:2: warning: implicit declaration of function 'usw_convert2w'; did you mean 'convert2w'? [-Wimplicit-function-declaration] usw_convert2w(USTR(panel_f1.dir),&panel_f1.dirw); ^~~~~~~~~~~~~ convert2w filter.c:318:7: error: 'PANEL_TYPE_USER' undeclared (first use in this function); did you mean 'COMPL_TYPE_USER'? case PANEL_TYPE_USER: ^~~~~~~~~~~~~~~ COMPL_TYPE_USER filepanel.c:85:29: error: request for member 'dir' in something not a structure or union usw_convert2w(USTR(panel_f1.dir),&panel_f1.dirw); ^ filepanel.c:85:44: error: request for member 'dirw' in something not a structure or union usw_convert2w(USTR(panel_f1.dir),&panel_f1.dirw); ^ cfg.c: In function 'cfg_print_value': cfg.c:456:18: error: request for member 'isnum' in something not a structure or union return config[i].isnum ? print_num_value(i) : print_str_value(i); ^ filter.c:325:2: warning: implicit declaration of function 'pan_adjust' [-Wimplicit-function-declaration] pan_adjust(panel); ^~~~~~~~~~ In file included from exec.c:31: inout.h:8:8: error: unknown type name 'wint_t' extern wint_t kbd_input(void); ^~~~~~ filter.c: In function 'filter_off': completion.c:209:6: error: 'panel_sort' undeclared (first use in this function); did you mean 'radixsort'? if (panel_sort.group == GROUP_DBCOP) { ^~~~~~~~~~ radixsort filter.c:332:2: error: 'panel' undeclared (first use in this function); did you mean 'pan_line'? panel->filtering = 0; ^~~~~ pan_line filepanel.c:90:3: warning: implicit declaration of function 'usw_copy'; did you mean 'va_copy'? [-Wimplicit-function-declaration] usw_copy(&panel_f2.dirw,USTR(bm->dirw)); ^~~~~~~~ va_copy filepanel.c:90:21: error: request for member 'dirw' in something not a structure or union usw_copy(&panel_f2.dirw,USTR(bm->dirw)); ^ filepanel.c:90:34: error: request for member 'dirw' in something not a structure or union usw_copy(&panel_f2.dirw,USTR(bm->dirw)); ^~ filepanel.c:91:3: warning: implicit declaration of function 'us_copy'; did you mean 'va_copy'? [-Wimplicit-function-declaration] us_copy(&panel_f2.dir,USTR(bm->dir)); ^~~~~~~ va_copy gmake[4]: *** [Makefile:512: bookmarks.o] Error 1 filepanel.c:91:20: error: request for member 'dir' in something not a structure or union us_copy(&panel_f2.dir,USTR(bm->dir)); ^ filepanel.c:91:32: error: request for member 'dir' in something not a structure or union us_copy(&panel_f2.dir,USTR(bm->dir)); ^~ filter.c:333:21: error: 'PANEL_TYPE_HELP' undeclared (first use in this function); did you mean 'COMPL_TYPE_FILE'? if (panel->type == PANEL_TYPE_HELP) ^~~~~~~~~~~~~~~ COMPL_TYPE_FILE filepanel.c:94:21: error: request for member 'dirw' in something not a structure or union usw_copy(&panel_f2.dirw,user_data.homedirw); /* tested by checkabs() already */ ^ cfg.c: In function 'cfgfile_save': filter.c: In function 'filter_help': cfg.c:465:6: error: 'user_data' undeclared (first use in this function) if (user_data.nowrite) { ^~~~~~~~~ filter.c:345:6: error: 'panel' undeclared (first use in this function); did you mean 'pan_line'? ifilepanel.c:95:3: warning: implicit declaration of function 'us_convert2mb'; did you mean 'convert2mb'? [-Wimplicit-function-declaration] us_convert2mb(user_data.homedirw,&panel_f2.dir); ^~~~~~~~~~~~~ convert2mb f (panel->filtering == 1) ^~~~~ pan_line filepanel.c:95:45: error: request for member 'dir' in something not a structure or union us_convert2mb(user_data.homedirw,&panel_f2.dir); ^ filter.c:346:47: error: 'PANEL_TYPE_HELP' undeclared (first use in this function); did you mean 'COMPL_TYPE_FILE'? win_sethelp(HELPMSG_OVERRIDE,panel->type != PANEL_TYPE_HELP ? ^~~~~~~~~~~~~~~ COMPL_TYPE_FILE completion.c:209:26: error: 'GROUP_DBCOP' undeclared (first use in this function) if (panel_sort.group == GROUP_DBCOP) { ^~~~~~~~~~~ filepanel.c:98:10: error: request for member 'order' in something not a structure or union panel_f1.order = panel_f2.order = panel_sort.order; ^ filepanel.c:98:27: error: request for member 'order' in something not a structure or union panel_f1.order = panel_f2.order = panel_sort.order; ^ filter.c: In function 'cx_filter': completion.c:210:15: error: 'FT_DEV_CHAR' undeclared (first use in this function) if (type == FT_DEV_CHAR) ^~~~~~~~~~~ filter.c:355:6: error: 'panel' undeclared (first use in this function); did you mean 'pan_line'? if (panel->filter == 0) { ^~~~~ pan_line cfg.c:465:15: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (user_data.nowrite) { ^ -> cfg.c:470:30: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if ( (fp = fw_open(user_data.file_cfg)) ) { ^ -> cfg.c:470:21: warning: passing argument 1 of 'fw_open' from incompatible pointer type [-Wincompatible-pointer-types] if ( (fp = fw_open(user_data.file_cfg)) ) { ^~~~~~~~~~~~~~~~~~ In file included from cfg.c:29: filerw.h:17:14: note: expected 'const char *' but argument is of type 'CSTR *' {aka 'struct *'} extern FILE *fw_open(const char *); ^~~~~~~ cfg.c:472:17: warning: comparison between pointer and integer for (i = 0; i < CFG_TOTAL_; i++) ^ filter.c:361:22: error: 'PANEL_TYPE_FILE' undeclared (first use in this function); did you mean 'COMPL_TYPE_FILE'? if (panel->type == PANEL_TYPE_FILE) { ^~~~~~~~~~~~~~~ COMPL_TYPE_FILE n] return ARRAY_SIZE(internal_help); ^~~~~~~~~~ filepanel.c:98:36: error: 'panel_sort' undeclared (first use in this function); did you mean 'panel_f2'? panel_f1.order = panel_f2.order = panel_sort.order; ^~~~~~~~~~ panel_f2 id cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:118:8: note: in expansion of macro 'CXM' static CXM(preview,PREVIEW) ^~~ completion.c:212:15: error: 'FT_DEV_BLOCK' undeclared (first use in this function); did you mean 'F_ULOCK'? if (type == FT_DEV_BLOCK) ^~~~~~~~~~~~ F_ULOCK filter.c:362:28: error: 'PANEL_EXPTIME' undeclared (first use in this function) if (list_directory_cond(PANEL_EXPTIME) == 0) ^~~~~~~~~~~~~ filepanel.c:99:10: error: request for member 'group' in something not a structure or union panel_f1.group = panel_f2.group = panel_sort.group; ^ filepanel.c:99:27: error: request for member 'group' in something not a structure or union panel_ffilter.c:364:4: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? ppanel_file->filtype = 0; ^~~~~~~~~~~ pan_line 1.group = panel_f2.group = panel_sort.group; ^ filepanel.c:100:10: error: request for member 'hide' in something not a structure or union panel_f1.hide = panel_f2.hide = panel_sort.hide; ^ filepanel.c:100:26: error: request for member 'hide' in something not a structure or union panel_f1.hide = panel_f2.hide = panel_sort.hide; ^ filepanel.c: In function 'files_main_prepare': completion.c: In function 'qcmp_group': filepanel.c:106:9: error: unknown type name 'FLAG' static FLAG prepared = 0; ^~~~ completion.c:223:24: error: 'COMPL_ENTRY' undeclared (first use in this function); did you mean 'COMPL_TYPE_ENV'? group1 = sort_group(((COMPL_ENTRY *)e1)->file_type); ^~~~~~~~~~~ COMPL_TYPE_ENV completion.c:223:37: error: expected expression before ')' token group1 = sort_group(((COMPL_ENTRY *)e1)->file_type); ^ completion.c:224:37: error: expected expression before ')' token group2 = sort_group(((COMPL_ENTRY *)e2)->file_type); ^ filter.c:369:22: error: 'PANEL_TYPE_HELP' undeclared (first use in this function); did you mean 'COMPL_TYPE_FILE'? if (panel->type == PANEL_TYPE_HELP) ^~~~~~~~~~~~~~~ COMPL_TYPE_FILE filepanel.c:115:2: error: 'panel' undeclared (first use in this function) panel = ppanel_file->pd; ^~~~~ filter.c:379:11: error: 'textline' undeclared (first use in this function); did you mean 'pan_line'? else if (textline == 0) ^~~~~~~~ pan_line control.c: In function 'cx_mode_rename': control.c:103:59: error: 'MODE_RENAME' undeclared (first use in this function) #define CXM(X,M) voicompletion.c: In function 'compl_panel_data': d cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:119:8: note: in expansion of macro 'CXM' static CXM(rename,RENAME) filter.c: In function 'cx_filter2': ^~~ completion.c:235:2: error: unknown type name 'COMPL_ENTRY'; did you mean 'COMPL_TYPE_ENV'? COMPL_ENTRY *pcc, *curs; ^~~~~~~~~~~ COMPL_TYPE_ENV filter.c:392:2: error: 'panel' undeclared (first use in this function); did you mean 'pan_line'? panel = ppanel_file->pd; ^~~~~ pan_line cfg.c:473:17: error: request for member 'saveit' in something not a structure or union if (config[i].saveit) { ^ cfg.c:474:31: error: request for member 'var' in something not a structure or union fprintf(fp,"%s=",config[i].var); ^ filepanel.c:115:10: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? panel = ppanel_file->pd; ^~~~~~~~~~~ pan_line filter.c:392:10: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? panel = ppanel_file->pd; ^~~~~~~~~~~ pan_line cfg.c:474:18: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'CSTR *' {aka 'struct *'} [-Wformat=] fprintf(fp,"%s=",config[i].var); ~^ ~~~~~~~~~~~~~ cfg.c:475:18: error: request for member 'isnum' in something not a structure or union if (config[i].isnum) ^ cfg.c:476:42: error: request for member 'table' in something not a structure or union fprintf(fp,"%d\n",((CNUM *)config[i].table)->new); ^ cfg.c:478:53: error: request for member 'table' in something not a structure or union fprintf(fp,"%s\n",convert2mb(((CSTR *)config[i].table)->new)); ^ ) { edit_macro(cfg_str(CFG_CMD_F9)); } ^~~~~~~~~~ cfg.h:18:43: note: in definition of macro 'cfg_str' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^ edit.c: In function 'cx_edit_cmd_f10': filter.c:394:10: error: 'panel_mainmenu' undeclared (first use in this function); did you mean 'pan_line'? panel = panel_mainmenu.pd; ^~~~~~~~~~~~~~ pan_line cfg.h:18:28: error: unknown type name 'wchar_t' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~~~~ edit.c:672:41: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f10(void) { edit_macro(cfg_str(CFG_CMD_F10)); } ^~~~~~~ filepanel.c:119:2: error: 'textline' undeclared (first use in this function); did you mean 'pan_line'? textline = &line_cmd; ^~~~~~~~ pan_line cfg.c: In function 'cfg_prepare': cfg.c:494:16: warning: comparison between pointer and integer for (i = 0; i < CFG_TOTAL_; i++) ^ completion.c:237:9: warning: implicit declaration of function 'VALID_CURSOR' [-Wimplicit-function-declaration] curs = VALID_CURSOR(panel_compl.pd) ? panel_compl.cand[panel_compl.pd->curs] : 0; ^~~~~~~~~~~~ filter.c: In function 'fopt_saveopt': filter.c:67:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ filepanel.c:119:14: error: 'line_cmd' undeclared (first use in this function); did you mean 'dir_cmp'? textline = &line_cmd; ^~~~~~~~ dir_cmp history.c:142:5: error: request for member 'failed' in something not a structure or union top->failed = failed; ^~ cfg.h:18:38: error: 'pcfg' undeclared (first use in this function) #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~ edit.c:672:41: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f10(void) { edit_macro(cfg_str(CFG_CMD_F10)); } ^~~~~~~ completion.c:237:22: error: 'panel_compl' undeclared (first use in this function); did you mean 're_comp'? curs = VALID_CURSOR(panel_compl.pd) ? panel_compl.cand[panel_compl.pd->curs] : 0; ^~~~~~~~~~~ re_comp filepanel.c:121:6: error: 'user_data' undeclared (first use in this function) if (user_data.noconfig) ^~~~~~~~~ control.c: In function 'cx_mode_select': At top level: control.c:103:59: error: 'MODE_SELECT' undeclared (first use in this function); did you mean 'KEY_SELECT'? #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:120:8: note: in expansion of macro 'CXM' static CXM(select,SELECT) ^~~ edit.c:672:49: error: 'CFG_CMD_F10' undeclared (first use in this function) void cx_edit_cmd_f10(void) { edit_macro(cfg_str(CFG_CMD_F10)); } ^~~~~~~~~~~ cfg.h:18:43: note: in definition of macro 'cfg_str' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^ filter.c:183:1: warning: 'insert_space' defined but not used [-Wunused-function] insert_space(int cnt) ^~~~~~~~~~~~ filepanel.c: In function 'convert_dir': completion.c:245:59: error: request for member 'str' in something not a structure or union if (panel_compl.pd->filtering && !match_substr(SDSTR(pcc->str))) ^~ filepanel.c:132:21: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? usw_convert2w(USTR(ppanel_file->dir),&ppanel_file->dirw); ^~~~~~~~~~~ pan_line edit.c: In function 'cx_edit_cmd_f11': cfg.h:18:28: error: unknown type name 'wchar_t' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~~~~ edit.c:673:41: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f11(void) { edit_macro(cfg_str(CFG_CMD_F11)); } ^~~~~~~ cfg.c:496:2: error: 'panel_cfg' undeclared (first use in this function) panel_cfg.pd->top = panel_cfg.pd->curs = panel_cfg.pd->min; ^~~~~~~~~ cfg.c:496:11: error: '(CSTR *)&' is a pointer; did you mean to use '->'? panel_cfg.pd->top = panel_cfg.pd->curs = panel_cfg.pd->min; ^ -> cfg.h:18:38: error: 'pcfg' undeclared (first use in this function) #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~ edit.c:673:41: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f11(void) { edit_macro(cfg_str(CFG_CMD_F11)); } ^~~~~~~ cfg.c:496:14: error: 'CSTR' {aka 'struct '} has no member named 'top' panel_cfg.pd->top = panel_cfg.pd->curs = panel_cfg.pd->min; ^~ cfg.c:496:31: error: '(CSTR *)&' is a pointer; did you mean to use '->'? panel_cfg.pd->top = panel_cfg.pd->curs = panel_cfg.pd->min; ^ -> completion.c: In function 'compl_prepare': completion.c:259:3: warning: implicit declaration of function 'swprintf'; did you mean 'snprintf'? [-Wimplicit-function-declaration] swprintf(msg,ARRAY_SIZE(msg),L"%d additional entries not shown (table full)",compl.cnt - cc_alloc); ^~~~~~~~ snprintf filepanel.c: In function 'file_find': edit.c:673:49: error: 'CFG_CMD_F11' undeclared (first use in this function) void cx_edit_cmd_f11(void) { edit_macro(cfg_str(CFG_CMD_F11)); } ^~~~~~~~~~~ cfg.h:18:43: note: in definition of macro 'cfg_str' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^ filepanel.c:141:18: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? for (i = 0; i < ppanel_file->pd->cnt; i++) ^~~~~~~~~~~ pan_line edit.c: In function 'cx_edit_cmd_f12': cfg.h:18:28: error: unknown type name 'wchar_t' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~~~~ edit.c:674:41: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f12(void) { edit_macro(cfg_str(CFG_CMD_F12)); } ^~~~~~~ filepanel.c:142:14: warning: implicit declaration of function 'SDSTR' [-Wimplicit-function-declaration] if (strcmp(SDSTR(ppanel_file->files[i]->file),name) == 0) ^~~~~ cfg.c:496:34: error: 'CSTR' {aka 'struct '} has no member named 'curs' panel_cfg.pd->top = panel_cfg.pd->curs = panel_cfg.pd->min; ^~ cfg.c:496:52: error: '(CSTR *)&' is a pointer; did you mean to use '->'? panel_cfg.pd->top = panel_cfg.pd->curs = panel_cfg.pd->min; ^ -> cfg.c:496:55: error: 'CSTR' {aka 'struct '} has no member named 'min' panel_cfg.pd->top = panel_cfg.pd->curs = panel_cfg.pd->min; ^~ cfg.h:18:38: error: 'pcfg' undeclared (first use in this function) #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~ edit.c:674:41: note: in expansion of macro 'cfg_str' void cx_edit_cmd_f12(void) { edit_macro(cfg_str(CFG_CMD_F12)); } gmake[4]: *** [Makefile:512: filter.o] Error 1 ^~~~~~~ filepanel.c: In function 'find_valid_cwd': completion.c:259:16: warning: implicit declaration of function 'ARRAY_SIZE' [-Wimplicit-function-declaration] swprintf(msg,ARRAY_SIZE(msg),L"%d additional entries not shown (table full)",compl.cnt - cc_alloc); ^~~~~~~~~~ filepanel.c:161:23: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? try_all_parents(USTR(ppanel_file->dir)); ^~~~~~~~~~~ pan_line cfg.c:496:2: warning: statement with no effect [-Wunused-value] panel_cfg.pd->top = panel_cfg.pd->curs = panel_cfg.pd->min; ^~~~~~~~~ filepanel.c: In function 'changedir': filepanel.c:178:2: error: unknown type name 'FLAG' FLAG parent = 0; ^~~~ filepanel.c:179:9: error: unknown type name 'USTRING' static USTRING savedir_buff = UNULL; ^~~~~~~ edit.c:674:49: error: 'CFG_CMD_F12' undeclared (first use in this function) void cx_edit_cmd_f12(void) { edit_macro(cfg_str(CFG_CMD_F12)); } ^~~~~~~~~~~ cfg.h:18:43: note: in definition of macro 'cfg_str' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^ cfg.c:497:2: error: 'panel' undeclared (first use in this function) panel = panel_cfg.pd; ^~~~~ cfg.c:497:19: error: '(CSTR *)&' is a pointer; did you mean to use '->'? panel = panel_cfg.pd; ^ -> cfg.c:497:2: warning: statement with no effect [-Wunused-value] panel = panel_cfg.pd; ^~~~~ filepanel.c:179:32: error: 'UNULL' undeclared (first use in this function); did you mean 'NULL'? static USTRING savedir_buff = UNULL; ^~~~~ NULL edit.c: In function 'paste_exit': edit.c:680:28: error: 'MODE_PASTE' undeclared (first use in this function) if (get_current_mode() == MODE_PASTE) ^~~~~~~~~~ cfg.c:498:2: error: 'textline' undeclared (first use in this function); did you mean 'getline'? textline = 0; ^~~~~~~~ getline cfg.c:498:2: warning: statement with no effect [-Wunused-value] completion.c:265:34: error: 'COMPL_ENTRY' undeclared (first use in this function); did you mean 'COMPL_TYPE_ENV'? qsort(cc_list,compl.cnt,sizeof(COMPL_ENTRY), ^~~~~~~~~~~ COMPL_TYPE_ENV filepanel.c:188:39: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? savedir = us_copy(&savedir_buff,USTR(ppanel_file->dir)); ^~~~~~~~~~~ pan_line edit.c:681:3: error: 'next_mode' undeclared (first use in this function); did you mean 'strmode'? next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ strmode cfg.c: In function 'cfg_menu_prepare': cfg.c:507:16: error: 'panel_cfg' undeclared (first use in this function) pnum = config[panel_cfg.pd->curs].table; ^~~~~~~~~ edit.c:681:15: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~~~~~~~~~~~ cfg.c:507:25: error: '(CSTR *)&' is a pointer; did you mean to use '->'? pnum = config[panel_cfg.pd->curs].table; ^ -> cfg.c:507:28: error: 'CSTR' {aka 'struct '} has no member named 'curs' pnum = config[panel_cfg.pd->curs].table; ^~ filepanel.c:219:4: warning: implicit declaration of function 'pan_adjust'; did you mean 'edit_adjust'? [-Wimplicit-function-declaration] pan_adjust(ppanel_file->pd); ^~~~~~~~~~ edit_adjust cfg.c:507:15: error: array subscript is not an integer pnum = config[panel_cfg.pd->curs].table; ^ cfg.c:507:35: error: '(CSTR *)&' is a pointer; did you mean to use '->'? pnum = config[panel_cfg.pd->curs].table; ^ -> cfg.c:507:7: warning: assignment to 'CNUM *' {aka 'struct *'} from incompatible pointer type 'CSTR *' {aka 'struct *'} [-Wincompatible-pointer-types] pnum = config[panel_cfg.pd->curs].table; ^ completion.c:266:25: error: 'panel_sort' undeclared (first use in this function); did you mean 'radixsort'? (compl.filenames && panel_sort.group) ? qcmp_group : qcmp); ^~~~~~~~~~ radixsort filepanel.c: In function 'cx_files_cd': edit.c: In function 'cx_edit_paste_path': filepanel.c:230:2: error: unknown type name 'FILE_ENTRY' FILE_ENTRY *pfe; ^~~~~~~~~~ edit.c:687:6: error: 'ppanel_file' undeclared (first use in this function) if (ppanel_file->pd->cnt) ^~~~~~~~~~~ edit.c: In function 'cx_edit_paste_link': completion.c:302:2: error: 'panel_compl' undeclared (first use in this function); did you mean 're_comp'? panel_compl.title = title; ^~~~~~~~~~~ re_comp edit.c:695:2: error: unknown type name 'FILE_ENTRY' FILE_ENTRY *pfe; ^~~~~~~~~~ filepanel.c:232:8: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? pfe = ppanel_file->files[ppanel_file->pd->curs]; ^~~~~~~~~~~ pan_line completion.c:312:2: error: 'panel' undeclared (first use in this function) panel = panel_compl.pd; ^~~~~ completion.c: In function 'register_candidate': completion.c:326:8: warning: implicit declaration of function 'wcscmp'; did you mean 'qcmp'? [-Wimplicit-function-declaration] if (wcscmp(SDSTR(cc_list[i].str),cand) == 0) ^~~~~~ qcmp filepanel.c:233:6: warning: implicit declaration of function 'IS_FT_DIR' [-Wimplicit-function-declaration] if (IS_FT_DIR(pfe->file_type)) { ^~~~~~~~~ completion.c:326:31: error: request for member 'str' in something not a structure or union if (wcscmp(SDSTR(cc_list[i].str),cand) == 0) ^ filepanel.c:233:19: error: request for member 'file_type' in something not a structure or union if (IS_FT_DIR(pfe->file_type)) { ^~ filepanel.c:234:26: error: request for member 'file' in something not a structure or union if (changedir(SDSTR(pfe->file)) == 0) { ^~ filepanel.c: In function 'cx_files_cd_xchg': filepanel.c:247:2: error: unknown type name 'FILE_ENTRY' FILE_ENTRY *pfe; ^~~~~~~~~~ edit.c:697:6: error: 'ppanel_file' undeclared (first use in this function) if (ppanel_file->pd->cnt) { ^~~~~~~~~~~ completion.c:330:3: warning: implicit declaration of function 'sdw_copy'; did you mean 'va_copy'? [-Wimplicit-function-declaration] sdw_copy(&cc_list[compl.cnt].str,cand); ^~~~~~~~ va_copy edit.c:699:11: error: request for member 'symlink' in something not a structure or union if (!pfe->symlink) ^~ completion.c:330:31: error: request for member 'str' in something not a structure or union sdw_copy(&cc_list[compl.cnt].str,cand); ^ completion.c:331:21: error: request for member 'is_link' in something not a structure or union cc_list[compl.cnt].is_link = is_link; ^ edit.c:702:30: error: request for member 'linkw' in something not a structure or union edit_nu_insertstr(USTR(pfe->linkw),QUOT_NORMAL); ^~ completion.c:332:21: error: request for member 'file_type' in something not a structure or union cc_list[compl.cnt].file_type = file_type; ^ completion.c:333:21: error: request for member 'aux' in something not a structure or union cc_list[compl.cnt].aux = aux; ^ completion.c:337:27: error: request for member 'str' in something not a structure or union cand0 = SDSTR(cc_list[0].str); /* cand0 = cand; would be an error */ ^ edit.c: In function 'cx_edit_paste_currentfile': edit.c:712:6: error: 'ppanel_file' undeclared (first use in this function) if (ppanel_file->pd->cnt) ^~~~~~~~~~~ cfg.c:508:2: error: 'panel_cfg_menu' undeclared (first use in this function); did you mean 'draw_line_cfg_menu'? panel_cfg_menu.pd->top = 0; ^~~~~~~~~~~~~~ draw_line_cfg_menu filepanel.c:249:8: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? pfe = ppanel_file->files[ppanel_file->pd->curs]; ^~~~~~~~~~~ pan_line completion.c:338:16: warning: implicit declaration of function 'wcslen'; did you mean 'strlen'? [-Wimplicit-function-declaration] compl.clen = wcslen(cand0) - rq.strlen; ^~~~~~ strlen edit.c: In function 'cx_edit_paste_filenames': filepanel.c:250:19: error: request for member 'file_type' in something not a structure or union if (IS_FT_DIR(pfe->file_type)) { ^~ edit.c:720:6: error: 'ppanel_file' undeclared (first use in this function) if (ppanel_file->pd->cnt) { ^~~~~~~~~~~ cfg.c:508:16: error: '(CSTR *)&' is a pointer; did you mean to use '->'? panel_cfg_menu.pd->top = 0; ^ -> edit.c: In function 'cx_edit_flipcase': edit.c:746:2: error: unknown type name 'wchar_t' wchar_t ch; ^~~~~~~ edit.c:746:2: note: 'wchar_t' is defined in header ''; did you forget to '#include '? cfg.c:508:19: error: 'CSTR' {aka 'struct '} has no member named 'top' panel_cfg_menu.pd->top = 0; ^~ cfg.c:508:2: warning: statement with no effect [-Wunused-value] panel_cfg_menu.pd->top = 0; ^~~~~~~~~~~~~~ cfg.c:509:16: error: '(CSTR *)&' is a pointer; did you mean to use '->'? panel_cfg_menu.pd->cnt = pnum->max - pnum->min + 1; ^ -> filepanel.c:251:3: error: 'panel' undeclared (first use in this function) panel = (ppanel_file = ppanel_file->other)->pd; ^~~~~ filepanel.c:252:26: error: request for member 'file' in something not a structure or union if (changedir(SDSTR(pfe->file)) == 0) { ^~ edit.c:748:12: error: 'textline' undeclared (first use in this function) ch = USTR(textline->line)[textline->curs]; ^~~~~~~~ cfg.c:509:19: error: 'CSTR' {aka 'struct '} has no member named 'cnt' panel_cfg_menu.pd->cnt = pnum->max - pnum->min + 1; ^~ cfg.c:509:2: warning: statement with no effect [-Wunused-value] panel_cfg_menu.pd->cnt = pnum->max - pnum->min + 1; ^~~~~~~~~~~~~~ cfg.c:510:16: error: '(CSTR *)&' is a pointer; did you mean to use '->'? panel_cfg_menu.pd->curs = pnum->new - pnum->min; ^ -> cfg.c:510:19: error: 'CSTR' {aka 'struct '} has no member named 'curs' panel_cfg_menu.pd->curs = pnum->new - pnum->min; ^~ completion.c: In function 'complete_environ': completion.c:355:25: warning: implicit declaration of function 'wcsncmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration] if (rq.strlen == 0 || wcsncmp(enw[i].var,rq.str,rq.strlen) == 0) ^~~~~~~ strncmp filepanel.c:256:4: error: 'next_mode' undeclared (first use in this function); did you mean 'setmode'? next_mode = MODE_FILE; ^~~~~~~~~ setmode cfg.c:510:2: warning: statement with no effect [-Wunused-value] panel_cfg_menu.pd->curs = pnum->new - pnum->min; ^~~~~~~~~~~~~~ completion.c: In function 'complete_history': completion.c:363:8: error: unknown type name 'HIST_ENTRY' const HIST_ENTRY *ph; ^~~~~~~~~~ cfg.c:511:16: error: '(CSTR *)&' is a pointer; did you mean to use '->'? panel_cfg_menu.desc = pnum->desc; ^ -> cfg.c:511:2: warning: statement with no effect [-Wunused-value] panel_cfg_menu.desc = pnum->desc; ^~~~~~~~~~~~~~ completion.c:366:15: warning: implicit declaration of function 'USTR' [-Wimplicit-function-declaration] if (wcsncmp(USTR(ph->cmd),rq.str,rq.strlen) == 0) ^~~~ completion.c:366:22: error: request for member 'cmd' in something not a structure or union if (wcsncmp(USTR(ph->cmd),rq.str,rq.strlen) == 0) ^~ completion.c:367:30: error: request for member 'cmd' in something not a structure or union register_candidate(USTR(ph->cmd),0,0, ^~ filepanel.c:256:16: error: 'MODE_FILE' undeclared (first use in this function); did you mean 'ENFILE'? next_mode = MODE_FILE; ^~~~~~~~~ ENFILE completion.c:368:8: error: request for member 'failed' in something not a structure or union ph->failed ? L"this command failed last time" : 0); ^~ cfg.c:512:2: error: 'panel' undeclared (first use in this function) panel = panel_cfg_menu.pd; ^~~~~ cfg.c:512:24: error: '(CSTR *)&' is a pointer; did you mean to use '->'? panel = panel_cfg_menu.pd; ^ -> cfg.c:512:2: warning: statement with no effect [-Wunused-value] panel = panel_cfg_menu.pd; ^~~~~ completion.c: In function 'complete_file': completion.c:394:2: error: unknown type name 'FLAG' FLAG is_link; ^~~~ cfg.c:513:2: error: 'textline' undeclared (first use in this function); did you mean 'getline'? textline = 0; ^~~~~~~~ getline cfg.c:513:2: warning: statement with no effect [-Wunused-value] completion.c:395:2: error: unknown type name 'CODE'; did you mean 'CMD'? CODE type; ^~~~ CMD filepanel.c: In function 'cx_files_cd_home': completion.c:401:9: error: unknown type name 'USTRING' static USTRING mbdir = UNULL; ^~~~filepanel.c:284:12: error: 'user_data' undeclared (first use in this function) changedir(user_data.homedir); ^~~~~~~~~ ~~~ cfg.c: In function 'cfg_edit_num_prepare': cfg.c:521:2: error: unknown type name 'wchar_t' wchar_t prompt[CFGVAR_LEN + 48]; ^~~~~~~ cfg.c:521:2: note: 'wchar_t' is defined in header ''; did you forget to '#include '? filepanel.c: In function 'cx_files_xchg': completion.c:401:25: error: 'UNULL' undeclared (first use in this function); did you mean 'NULL'? static USTRING mbdir = UNULL; ^~~~~ NULL filepanel.c:311:2: error: 'panel' undeclared (first use in this function) panel = (ppanel_file = ppanel_file->other)->pd; ^~~~~ cfg.c:525:16: error: 'panel_cfg' undeclared (first use in this function) pnum = config[panel_cfg.pd->curs].table; ^~~~~~~~~ cfg.c:525:25: error: '(CSTR *)&' is a pointer; did you mean to use '->'? pnum = config[panel_cfg.pd->curs].table; ^ -> cfg.c:525:28: error: 'CSTR' {aka 'struct '} has no member named 'curs' pnum = config[panel_cfg.pd->curs].table; ^~ cfg.c:525:15: error: array subscript is not an integer pnum = config[panel_cfg.pd->curs].table; ^ cfg.c:525:35: error: '(CSTR *)&' is a pointer; did you mean to use '->'? pnum = config[panel_cfg.pd->curs].table; ^ -> filepanel.c:311:11: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? panel = (ppanel_file = ppanel_file->other)->pd; ^~~~~~~~~~~ pan_line cfg.c:525:7: warning: assignment to 'CNUM *' {aka 'struct *'} from incompatible pointer type 'CSTR *' {aka 'struct *'} [-Wincompatible-pointer-types] pnum = config[panel_cfg.pd->curs].table; ^ control.c: In function 'cx_mode_sort': control.c:103:59: error: 'MODE_SORT' undeclared (first use in this function) #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:121:8: note: in expansion of macro 'CXM' static CXM(sort,SORT) ^~~ completion.c:406:30: error: 'FT_DIRECTORY' undeclared (first use in this function) register_candidate(L"~",0,FT_DIRECTORY,0); ^~~~~~~~~~~~ cfg.c:526:2: error: 'textline' undeclared (first use in this function); did you mean 'getline'? textline = &line_tmp; ^~~~~~~~ getline filepanel.c:319:36: error: 'PANEL_EXPTIME' undeclared (first use in this function) exp = ppanel_file->expired ? 0 : PANEL_EXPTIME; ^~~~~~~~~~~~~ completion.c:412:26: warning: implicit declaration of function 'us_convert2mb'; did you mean 'convert2mb'? [-Wimplicit-function-declaration] dir = rq.dir ? rq.dir : us_convert2mb(rq.dirw,&mbdir); ^~~~~~~~~~~~~ convert2mb completion.c:412:24: warning: pointer/integer type mismatch in conditional expression dir = rq.dir ? rq.dir : us_convert2mb(rq.dirw,&mbdir); ^ cfg.c:526:14: error: 'line_tmp' undeclared (first use in this function); did you mean 'dir_cmp'? textline = &line_tmp; ^~~~~~~~ dir_cmp filepanel.c:326:2: error: 'next_mode' undeclared (first use in this function); did you mean 'setmode'? next_mode = MODE_FILE; ^~~~~~~~~ setmode cfg.c:526:2: warning: statement with no effect [-Wunused-value] textline = &line_tmp; ^~~~~~~~ cfg.c:528:20: error: '(CSTR *)&' is a pointer; did you mean to use '->'? config[panel_cfg.pd->curs].var,pnum->min,pnum->max, ^ -> cfg.c:528:23: error: 'CSTR' {aka 'struct '} has no member named 'curs' config[panel_cfg.pd->curs].var,pnum->min,pnum->max, ^~ cfg.c:528:10: error: array subscript is not an integer config[panel_cfg.pd->curs].var,pnum->min,pnum->max, ^ cfg.c:528:30: error: '(CSTR *)&' is a pointer; did you mean to use '->'? config[panel_cfg.pd->curs].var,pnum->min,pnum->max, ^ -> filepanel.c:326:14: error: 'MODE_FILE' undeclared (first use in this function); did you mean 'ENFILE'? next_mode = MODE_FILE; ^~~~~~~~~ ENFILE control.c: In function 'cx_mode_user': control.c:103:59: error: 'MODE_USER' undeclared (first use in this function) #define CXM(X,M) void cx_mode_ ## X (void) { control_loop(MODE_ ## M); } ^~~~~ control.c:122:8: note: in expansion of macro 'CXM' static CXM(user,USER) ^~completion.c:432:11: error: 'FT_NA' undeclared (first use in this function) type = FT_NA; ^~~~~ ~ filepanel.c: In function 'cx_files_enter': filepanel.c:333:2: error: unknown type name 'FILE_ENTRY' FILE_ENTRY *pfe; ^~~~~~~~~~ filepanel.c:335:6: error: 'textline' undeclared (first use in this function); did you mean 'pan_line'? if (textline->size && (kinp.fkey != 2 || MI_AREA(LINE))) { ^~~~~~~~ pan_line cfg.c:531:2: warning: implicit declaration of function 'edit_setprompt'; did you mean 'set_shellprompt'? [-Wimplicit-function-declaration] edit_setprompt(textline,prompt); ^~~~~~~~~~~~~~ set_shellprompt cfg.c:532:42: error: '(CSTR *)&' is a pointer; did you mean to use '->'? edit_nu_putstr(print_num_value(panel_cfg.pd->curs)); ^ -> filepanel.c:335:25: error: 'kinp' undeclared (first use in this function); did you mean 'link'? if (textline->size && (kinp.fkey != 2 || MI_AREA(LINE))) { ^~~~ link cfg.c:532:45: error: 'CSTR' {aka 'struct '} has no member named 'curs' edit_nu_putstr(print_num_value(panel_cfg.pd->curs)); ^~ cfg.c:532:33: warning: passing argument 1 of 'print_num_value' makes integer from pointer without a cast [-Wint-conversion] edit_nu_putstr(print_num_value(panel_cfg.pd->curs)); ^~~~~~~~~~~~~~~~~~ cfg.c:437:21: note: expected 'int' but argument is of type 'CSTR *' {aka 'struct *'} print_num_value(int i) ~~~~^ cfg.c: In function 'cfg_edit_str_prepare': cfg.c:539:2: error: unknown type name 'wchar_t' wchar_t prompt[CFGVAR_LEN + 32]; ^~~~~~~ cfg.c:539:2: note: 'wchar_t' is defined in header ''; did you forget to '#include '? completion.c:438:57: warning: implicit declaration of function 'IS_FT_EXEC'; did you mean 'S_IEXEC'? [-Wimplicit-function-declaration] if (rq.type == COMPL_TYPE_CMD && !IS_FT_DIR(type) && !IS_FT_EXEC(type)) ^~~~~~~~~~ S_IEXEC filepanel.c:335:43: warning: implicit declaration of function 'MI_AREA' [-Wimplicit-function-declaration] if (textline->size && (kinp.fkey != 2 || MI_AREA(LINE))) { ^~~~~~~ control.c: In function 'cx_trans_bm': control.c:124:47: error: 'next_mode' undeclared (first use in this function); did you mean 'gettmode'? #define CXT(X,M) void cx_trans_ ## X (void) { next_mode = MODE_ ## M; } ^~~~~~~~~ control.c:125:8: note: in expansion of macro 'CXT' static CXT(bm,BM) ^~~ filepanel.c:335:51: error: 'LINE' undeclared (first use in this function) if (textline->size && (kinp.fkey != 2 || MI_AREA(LINE))) { ^~~~ completion.c: In function 'pathcmd_refresh': completion.c:451:2: error: unknown type name 'FLAG' FLAG stat_ok; ^~~~ cfg.c:543:16: error: 'panel_cfg' undeclared (first use in this function) pstr = config[panel_cfg.pd->curs].table; ^~~~~~~~~ cfg.c:543:25: error: '(CSTR *)&' is a pointer; did you mean to use '->'? pstr = config[panel_cfg.pd->curs].table; ^ -> cfg.c:543:28: error: 'CSTR' {aka 'struct '} has no member named 'curs' pstr = config[panel_cfg.pd->curs].table; ^~ filepanel.c:341:11: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? else if (ppanel_file->pd->cnt && (kinp.fkey != 2 || MI_AREA(PANEL))) { ^~~~~~~~~~~ pan_line cfg.c:543:15: error: array subscript is not an integer pstr = config[panel_cfg.pd->curs].table; ^ cfg.c:543:35: error: '(CSTR *)&' is a pointer; did you mean to use '->'? pstr = config[panel_cfg.pd->curs].table; ^ -> control.c:124:59: error: 'MODE_BM' undeclared (first use in this function) #define CXT(X,M) void cx_trans_ ## X (void) { next_mode = MODE_ ## M; } ^~~~~ control.c:125:8: note: in expansion of macro 'CXT' static CXT(bm,BM) ^~~ filepanel.c:341:62: error: 'PANEL' undeclared (first use in this function) else if (ppanel_file->pd->cnt && (kinp.fkey != 2 || MI_AREA(PANEL))) { ^~~~~ filepanel.c:343:20: error: request for member 'file_type' in something not a structure or union if (IS_FT_DIR(pfe->file_type)) { ^~ completion.c:473:4: warning: implicit declaration of function 'sd_reset'; did you mean 'strsep'? [-Wimplicit-function-declaration] sd_reset(&pc->cmd); ^~~~~~~~ strsep filepanel.c:345:27: error: request for member 'file' in something not a structure or union if (changedir(SDSTR(pfe->file)) == 0) { ^~ cfg.c:544:2: error: 'textline' undeclared (first use in this function); did you mean 'getline'? textline = &line_tmp; ^~~~~~~~ getline completion.c:496:3: warning: implicit declaration of function 'sd_copy'; did you mean 'va_copy'? [-Wimplicit-function-declaration] sd_copy(&pc->cmd,direntry->d_name); ^~~~~~~ va_copy filepanel.c:351:17: error: 'MODE_PREVIEW' undeclared (first use in this function) control_loop(MODE_PREVIEW); ^~~~~~~~~~~~ control.c: In function 'cx_trans_group': control.c:124:47: error: 'next_mode' undeclared (first use in this function); did you mean 'gettmode'? #define CXT(X,M) void cx_trans_ ## X (void) { next_mode = MODE_ ## M; } ^~~~~~~~~ control.c:126:8: note: in expansion of macro 'CXT' static CXT(group,GROUP) ^~~ completion.c: In function 'complete_pathcmd': completion.c:507:2: error: unknown type name 'FLAG' FLAG is_link; ^~~~ edit.c: At top level: edit.c:765:16: error: unknown type name 'TEXTLINE' edit_setprompt(TEXTLINE *pline, const wchar_t *prompt) ^~~~~~~~ completion.c:508:2: error: unknown type name 'CODE'; did you mean 'CMD'? CODE file_type; ^~~~ CMD edit.c:765:39: error: unknown type name 'wchar_t' edit_setprompt(TEXTLINE *pline, const wchar_t *prompt) ^~~~~~~ filepanel.c:352:12: warning: implicit declaration of function 'IS_FT_EXEC' [-Wimplicit-function-declaration] else if (IS_FT_EXEC(pfe->file_type)) ^~~~~~~~~~ filepanel.c:352:26: error: request for member 'file_type' in something not a structure or union else if (IS_FT_EXEC(pfe->file_type)) ^~ completion.c:529:11: warning: assignment to 'const wchar_t *' {aka 'const int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] filew = SDSTR(pc->cmdw); ^ completion.c:532:36: warning: passing argument 1 of 'pathname_join' makes pointer from integer without a cast [-Wint-conversion] if (lstat(path = pathname_join(SDSTR(pc->cmd)),&st) < 0) ^~~~~~~~~~~~~~ filepanel.c: In function 'cx_files_tab': control.c:124:59: error: 'MODE_GROUP' undeclared (first use in this function) #define CXT(X,M) void cx_trans_ ## X (void) { next_mode = MODE_ ## M; } ^~~~~ control.c:126:8: note: in expansion of macro 'CXT' static CXT(group,GROUP) ^~~ edit.c: In function 'edit_adjust': filepanel.c:363:6: error: 'panel' undeclared (first use in this function) if (panel->filtering == 1) { ^~~~~ edit.c:100:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ In file included from completion.c:43: util.h:9:14: note: expected 'const char *' but argument is of type 'int' extern char *pathname_join(const char *); ^~~~~~~~~~~~~ edit.c: In function 'edit_islong': edit.c:130:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ help.c: In function 'parse_help': help.c:161:2: error: unknown type name 'FLAG' FLAG pagestart; ^~~~ edit.c: In function 'wordsep': filepanel.c:366:22: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? if (compl == -1 && ppanel_file->pd->cnt ^~~~~~~~~~~ pan_line help.c:168:26: error: request for member 'type' in something not a structure or union for (i = 0; helpline[i].type != HL_END; i++) ^ help.c:169:29: error: request for member 'text' in something not a structure or union efree((void *)helpline[i].text); /* overriding const qualifier */ ^ control.c: In function 'cx_trans_user': control.c:124:47: error: 'next_mode' undeclared (first use in this function); did you mean 'gettmode'? #define CXT(X,M) void cx_trans_ ## X (void) { next_mode = MODE_ ## M; } ^~~~~~~~~ control.c:127:8: note: in expansion of macro 'CXT' static CXT(userfilepanel.c:380:60: error: 'FT_NA' undeclared (first use in this function) ppanel_file->files[ppanel_file->pd->curs]->file_type : FT_NA; ^~~~~ ,USER) ^~~ completion.c: In function 'condinsert': completion.c:585:11: error: 'textline' undeclared (first use in this function); did you mean 'getline'? if (USTR(textline->line)[textline->curs] == ch) ^~~~~~~~ getline filepanel.c: In function 'cx_files_mouse': filepanel.c:399:10: error: 'minp' undeclared (first use in this function); did you mean 'link'? switch (minp.area) { ^~~~ link help.c:172:40: error: 'HELP_LINE' undeclared (first use in this function); did you mean 'HELP_PAGE'? helpline = emalloc((cnt + 1) * sizeof(HELP_LINE)); ^~~~~~~~~ HELP_PAGE help.c:172:40: note: each undeclared identifier is reported only once for each function it appears in completion.c: At top level: completion.c:593:18: error: unknown type name 'COMPL_ENTRY'; did you mean 'COMPL_TYPE_ENV'? insert_candidate(COMPL_ENTRY *pcc) ^~~~~~~~~~~ COMPL_TYPE_ENV help.c:180:15: error: request for member 'data' in something not a structure or union helpline[i].data = ptr; ^ help.c:181:15: error: request for member 'text' in something not a structure or union helpline[i].text = 0; ^ help.c:184:16: error: request for member 'type' in something not a structure or union helpline[i].type = HL_LINK; ^ completion.c: In function 'show_results': completion.c:649:9: error: unknown type name 'SDSTRINGW' static SDSTRINGW common = SDNULL(L""); ^~~~~~~~~ help.c:188:17: error: request for member 'type' in something not a structure or union helpline[i].type = HL_END; ^ filepanel.c:400:7: error: 'AREA_TITLE' undeclared (first use in this function) case AREA_TITLE: ^~~~~~~~~~ help.c:189:52: warning: implicit declaration of function 'STR' [-Wimplicit-function-declaration] help_error("Too many help pages, allowed is ",STR(HELP_PAGES_LIMIT)); ^~~ filepanel.c:401:7: warning: implicit declaration of function 'MI_DC' [-Wimplicit-function-declaration] if (MI_DC(1)) { ^~~~~ help.c:192:16: error: request for member 'type' in something not a structure or union helpline[i].type = HL_PAGE; ^ help.c:195:16: error: request for member 'type' in something not a structure or union helpline[i].type = HL_TITLE; ^ help.c:196:16: error: request for member 'text' in something not a structure or union helpline[i].text = ewcsdup(convert2w(ptr)); ^ completion.c:649:28: warning: implicit declaration of function 'SDNULL'; did you mean 'NULL'? [-Wimplicit-function-declaration] static SDSTRINGW common = SDNULL(L""); ^~~~~~ NULL completion.c:649:28: error: initializer element is not constant help.c:199:16: error: request for member 'type' in something not a structure or union helpline[i].type = HL_VERSION; ^ help.c:201:16: error: request for member 'type' in something not a structure or union helpline[i].type = HL_IGNORE; ^ help.c:206:15: error: request for member 'type' in something not a structure or union helpline[i].type = HL_TEXT; ^ help.c:207:15: error: request for member 'data' in something not a structure or union helpline[i].data = 0; ^ help.c:208:15: error: request for member 'text' in something not a structure or union helpline[i].text = ewcsdup(convert2w(ptr)); ^ filepanel.c:402:18: error: 'disp_data' undeclared (first use in this function) if (minp.x <= disp_data.dir1end) ^~~~~~~~~ help.c:211:13: error: request for member 'type' in something not a structure or union helpline[i].type = HL_END; ^ help.c:212:13: error: request for member 'data' in something not a structure or union helpline[i].data = 0; ^ help.c:213:13: error: request for member 'text' in something not a structure or union helpline[i].text = 0; ^ help.c:220:45: error: request for member 'type' in something not a structure or union if (page < 0 && IS_HL_CONTENTS(helpline[i].type)) { ^ help.c:118:29: note: in definition of macro 'IS_HL_CONTENTS' #define IS_HL_CONTENTS(X) ((X) < 10) /* this item is part of a help page */ ^ help.c:222:15: error: request for member 'type' in something not a structure or union helpline[i].type = HL_IGNORE; ^ help.c:225:22: error: request for member 'type' in something not a structure or union switch (helpline[i].type) { ^ filepanel.c:403:18: error: 'MODE_DIR' undeclared (first use in this function) control_loop(MODE_DIR); ^~~~~~~~ help.c:234:36: error: request for member 'type' in something not a structure or union if (pagestart || helpline[i - 1].type != HL_TEXT ^ completion.c:658:3: warning: implicit declaration of function 'insert_candidate'; did you mean 'register_candidate'? [-Wimplicit-function-declaration] insert_candidate(&cc_list[0]); ^~~~~~~~~~~~~~~~ register_candidate filepanel.c:408:7: error: 'AREA_PANEL' undeclared (first use in this function) case AREA_PANEL: ^~~~~~~~~~ help.c:235:24: error: request for member 'type' in something not a structure or union || helpline[i + 1].type != HL_TEXT || helpline[i + 2].type != HL_TEXT) { ^ help.c:235:59: error: request for member 'type' in something not a structure or union || helpline[i + 1].type != HL_TEXT || helpline[i + 2].type != HL_TEXT) { ^ help.c:236:75: error: request for member 'data' in something not a structure or union help_error("Link \"%s\" is not correctly embedded in text",helpline[i].data); ^ help.c:237:16: error: request for member 'type' in something not a structure or union helpline[i].type = HL_IGNORE; ^ help.c:240:20: error: request for member 'type' in something not a structure or union helpline[i + 1].type = HL_TEXTLINK; ^ help.c:246:67: error: request for member 'data' in something not a structure or union if (helppage[pg].valid && strcmp(helppage[pg].name,helpline[i].data) == 0) { ^ help.c:247:64: error: request for member 'data' in something not a structure or union help_error("Existing page \"%s\" is redefined",helpline[i].data); ^ filepanel.c:409:7: error: 'MI_PASTE' undeclared (first use in this function) if (MI_PASTE) { ^~~~~~~~ help.c:256:37: error: request for member 'data' in something not a structure or union helppage[page].name = helpline[i].data; ^ help.c:262:38: error: request for member 'text' in something not a structure or union helppage[page].title = helpline[i].text; ^ help.c:265:26: error: request for member 'data' in something not a structure or union if (strcmp(helpline[i].data,VERSION)) ^ completion.c:664:3: warning: implicit declaration of function 'sdw_copyn'; did you mean 'va_copy'? [-Wimplicit-function-declaration] sdw_copyn(&common,SDSTR(cc_list[0].str) + rq.strlen,compl.clen); ^~~~~~~~~ va_copy completion.c:664:37: error: request for member 'str' in something not a structure or union sdw_copyn(&common,SDSTR(cc_list[0].str) + rq.strlen,compl.clen); ^ completion.c:665:18: warning: passing argument 1 of 'edit_insertstr' makes pointer from integer without a cast [-Wint-conversion] edit_insertstr(SDSTR(common),rq.qlevel); ^~~~~~~~~~~~~ In file included from completion.c:33: edit.h:12:28: note: expected 'const wchar_t *' {aka 'const int *'} but argument is of type 'int' extern void edit_insertstr(const wchar_t *, int); ^~~~~~~~~~~~~~~ filepanel.c:411:34: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? if (compl == -1 && IS_FT_EXEC(ppanel_file->files[ppanel_file->pd->curs]->file_type)) ^~~~~~~~~~~ pan_line help.c:265:32: error: 'VERSION' undeclared (first use in this function); did you mean 'HL_VERSION'? if (strcmp(helpline[i].data,VERSION)) ^~~~~~~ HL_VERSION help.c:268:18: error: request for member 'data' in something not a structure or union helpline[i].data); ^ help.c:275:18: error: request for member 'type' in something not a structure or union if (helpline[i].type == HL_LINK && page2num(helpline[i].data) < 0) ^ help.c:275:58: error: request for member 'data' in something not a structure or union if (helpline[i].type == HL_LINK && page2num(helpline[i].data) < 0) ^ filepanel.c:419:7: error: 'AREA_BAR' undeclared (first use in this function) case AREA_BAR: ^~~~~~~~ help.c:276:44: error: request for member 'data' in something not a structure or union help_error("Broken link: %s",helpline[i].data); ^ help.c:278:18: error: request for member 'type' in something not a structure or union if (helpline[i].type == HL_TEXT) { ^ help.c:279:39: error: request for member 'type' in something not a structure or union for (j = 0; helpline[i + 3 * j + 1].type == HL_LINK ;j++) ^ help.c:281:15: error: request for member 'links' in something not a structure or union helpline[i].links = j; ^ help.c:292:21: error: request for member 'type' in something not a structure or union while (helpline[j].type != HL_TEXT || helpline[j - 1].type == HL_TEXTLINK) ^ completion.c:673:15: error: 'MODE_COMPL' undeclared (first use in this function); did you mean 'FD_COPY'? control_loop(MODE_COMPL); ^~~~~~~~~~ FD_COPY completion.c: In function 'compl_name': completion.c:693:9: error: unknown type name 'USTRINGW' static USTRINGW str_buff = UNULL; ^~~~~~~~ help.c:292:56: error: request for member 'type' in something not a structure or union while (helpline[j].type != HL_TEXT || helpline[j - 1].type == HL_TEXTLINK) ^ help.c:294:18: error: request for member 'links' in something not a structure or union if (helpline[j].links == 1 && strcmp(helpline[j + 1].data,"MAIN") == 0) ^ help.c:294:55: error: request for member 'data' in something not a structure or union if (helpline[j].links == 1 && strcmp(helpline[j + 1].data,"MAIN") == 0) ^ filepanel.c:421:17: error: 'MODE_MAINMENU' undeclared (first use in this function) control_loop(MODE_MAINMENU); ^~~~~~~~~~~~~ completion.c:693:29: error: 'UNULL' undeclared (first use in this function); did you mean 'NULL'? static USTRINGW str_buff = UNULL; ^~~~~ NULL filepanel.c:422:16: error: 'AREA_NONE' undeclared (first use in this function); did you mean 'QUOT_NONE'? minp.area = AREA_NONE; /* disable further mouse event processing */ ^~~~~~~~~ QUOT_NONE help.c:306:8: error: 'panel_help' undeclared (first use in this function); did you mean 'parse_help'? efree(panel_help.line); ^~~~~~~~~~ parse_help completion.c:699:15: error: 'textline' undeclared (first use in this function); did you mean 'getline'? pline = USTR(textline->line); ^~~~~~~~ getline help.c: In function 'set_page': help.c:329:2: error: unknown type name 'FLAG' FLAG curs_set = 0; ^~~~ filepanel.c:425:7: error: 'AREA_PROMPT' undeclared (first use in this function) case AREA_PROMPT: ^~~~~~~~~~~ help.c:331:2: error: 'panel_help' undeclared (first use in this function); did you mean 'parse_help'? panel_help.pd->top = panel_help.pd->curs = panel_help.pd->min; ^~~~~~~~~~ parse_help help.c:335:21: error: request for member 'type' in something not a structure or union while (helpline[j].type != HL_TEXT || helpline[j - 1].type == HL_TEXTLINK) ^ help.c:335:56: error: request for member 'type' in something not a structure or union while (helpline[j].type != HL_TEXT || helpline[j - 1].type == HL_TEXTLINK) ^ filepanel.c:427:17: error: 'MODE_HIST' undeclared (first use in this function) control_loop(MODE_HIST); ^~~~~~~~~ help.c:339:24: error: 'disp_data' undeclared (first use in this function) if (!curs_set && i < disp_data.panlines && helpline[j].type == HL_LINK) { ^~~~~~~~~ help.c:339:57: error: request for member 'type' in something not a structure or union if (!curs_set && i < disp_data.panlines && helpline[j].type == HL_LINK) { ^ completion.c:707:11: error: 'panel_paste' undeclared (first use in this function) else if (panel_paste.wordstart || !TESTAZ09(start - 1)) ^~~~~~~~~~~ filepanel.c:428:12: error: 'MI_WHEEL' undeclared (first use in this function) else if (MI_WHEEL) ^~~~~~~~ filepanel.c:429:4: warning: implicit declaration of function 'MI_B' [-Wimplicit-function-declaration] MI_B(4) ? cx_hist_prev() : cx_hist_next(); ^~~~ cfg.c:544:14: error: 'line_tmp' undeclared (first use in this function); did you mean 'dir_cmp'? textline = &line_tmp; ^~~~~~~~ dir_cmp cfg.c:544:2: warning: statement with no effect [-Wunused-value] textline = &line_tmp; ^~~~~~~~ completion.c:734:11: warning: implicit declaration of function 'usw_copyn'; did you mean 'va_copy'? [-Wimplicit-function-declaration] rq.str = usw_copyn(&str_buff,pline + start,rq.strlen); ^~~~~~~~~ va_copy cfg.c:545:44: error: expected ')' before 'STR' swprintf(prompt,ARRAY_SIZE(prompt),L"%s (" STR(CFGVALUE_LEN) " chars max%s%ls): ", ^~~~ ) completion.c:734:9: warning: assignment to 'const wchar_t *' {aka 'const int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] rq.str = usw_copyn(&str_buff,pline + start,rq.strlen); ^ cfg.c:550:42: error: '(CSTR *)&' is a pointer; did you mean to use '->'? edit_nu_putstr(print_str_value(panel_cfg.pd->curs)); ^ -> completion.c: In function 'compl_file': completion.c:760:9: error: unknown type name 'USTRINGW' static USTRINGW dequote_str = UNULL, dequote_dir = UNULL; ^~~~~~~~ cfg.c:550:45: error: 'CSTR' {aka 'struct '} has no member named 'curs' edit_nu_putstr(print_str_value(panel_cfg.pd->curs)); ^~ cfg.c:550:33: warning: passing argument 1 of 'print_str_value' makes integer from pointer without a cast [-Wint-conversion] edit_nu_putstr(print_str_value(panel_cfg.pd->curs)); ^~~~~~~~~~~~~~~~~~ cfg.c:425:21: note: expected 'int' but argument is of type 'CSTR *' {aka 'struct *'} print_str_value(int i) ~~~~^ cfg.c:540:8: warning: variable 'pstr' set but not used [-Wunused-but-set-variable] CSTR *pstr; ^~~~ completion.c:760:32: error: 'UNULL' undeclared (first use in this function); did you mean 'NULL'? static USTRINGW dequote_str = UNULL, dequote_dir = UNULL; ^~~~~ NULL completion.c:765:2: error: unknown type name 'FLAG' FLAG tilde, wholeline, userdir; ^~~~ cfg.c: In function 'cx_cfg_menu_enter': cfg.c:559:16: error: 'panel_cfg' undeclared (first use in this function) pnum = config[panel_cfg.pd->curs].table; ^~~~~~~~~ cfg.c:559:25: error: '(CSTR *)&' is a pointer; did you mean to use '->'? pnum = config[panel_cfg.pd->curs].table; ^ -> cfg.c:559:28: error: 'CSTR' {aka 'struct '} has no member named 'curs' pnum = config[panel_cfg.pd->curs].table; ^~ cfg.c:559:15: error: array subscript is not an integer pnum = config[panel_cfg.pd->curs].table; ^ cfg.c:559:35: error: '(CSTR *)&' is a pointer; did you mean to use '->'? pnum = config[panel_cfg.pd->curs].table; ^ -> cfg.c:559:7: warning: assignment to 'CNUM *' {aka 'struct *'} from incompatible pointer type 'CSTR *' {aka 'struct *'} [-Wincompatible-pointer-types] pnum = config[panel_cfg.pd->curs].table; ^ completion.c:773:15: error: 'textline' undeclared (first use in this function); did you mean 'getline'? pline = USTR(textline->line); ^~~~~~~~ getline cfg.c:560:26: error: 'panel_cfg_menu' undeclared (first use in this function); did you mean 'draw_line_cfg_menu'? pnum->new = pnum->min + panel_cfg_menu.pd->curs; ^~~~~~~~~~~~~~ draw_line_cfg_menu cfg.c:560:40: error: '(CSTR *)&' is a pointer; did you mean to use '->'? pnum->new = pnum->min + panel_cfg_menu.pd->curs; ^ -> cfg.c:560:43: error: 'CSTR' {aka 'struct '} has no member named 'curs' pnum->new = pnum->min + panel_cfg_menu.pd->curs; ^~ cfg.c:560:12: warning: assignment to 'int' from 'CSTR *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] pnum->new = pnum->min + panel_cfg_menu.pd->curs; ^ gmake[4]: *** [Makefile:512: filepanel.o] Error 1 completion.c:794:44: error: 'panel_paste' undeclared (first use in this function) else if (IS_LEX_WORD(lex[start - 1]) && !panel_paste.wordstart) ^~~~~~~~~~~ control.c:124:59: error: 'MODE_USER' undeclared (first use in this function) #define CXT(X,M) void cx_trans_ ## X (void) { next_mode = MODE_ ## M; } ^~~~~ control.c:127:8: note: in expansion of macro 'CXT' static CXT(user,USER) ^~~ cfg.c:561:2: error: 'next_mode' undeclared (first use in this function); did you mean 'strmode'? next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ strmode help.c: In function 'help_goto': help.c:363:26: error: 'panel_help' undeclared (first use in this function); did you mean 'parse_help'? history[head].pagenum = panel_help.pagenum; ^~~~~~~~~~ parse_help help.c: In function 'link_add': help.c:380:29: error: request for member 'type' in something not a structure or union helpline[mainlink[ln] + 0].type = HL_IGNORE; ^ help.c:381:29: error: request for member 'type' in something not a structure or union helpline[mainlink[ln] + 1].type = HL_IGNORE; ^ help.c:382:29: error: request for member 'type' in something not a structure or union helpline[mainlink[ln] + 2].type = HL_IGNORE; ^ control.c: In function 'cx_trans_quit': control.c:124:47: error: 'next_mode' undeclared (first use in this function); did you mean 'gettmode'? #define CXT(X,M) void cx_trans_ ## X (void) { next_mode = MODE_ ## M; } ^~~~~~~~~ control.c:128:8: note: in expansion of macro 'CXT' static CXT(quit,SPECIAL_QUIT) ^~~ edit.c:237:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ help.c:383:29: error: request for member 'type' in something not a structure or union helpline[mainlink[ln] + 3].type = HL_IGNORE; ^ help.c:391:28: error: request for member 'type' in something not a structure or union helpline[mainlink[ln] + 0].type = HL_TEXT; ^ help.c:392:28: error: request for member 'type' in something not a structure or union helpline[mainlink[ln] + 1].type = HL_LINK; ^ help.c:393:28: error: request for member 'data' in something not a structure or union helpline[mainlink[ln] + 1].data = page; ^ help.c:394:28: error: request for member 'type' in something not a structure or union helpline[mainlink[ln] + 2].type = HL_TEXTLINK; ^ help.c:395:28: error: request for member 'text' in something not a structure or union helpline[mainlink[ln] + 2].text = helppage[pg].title; ^ help.c:396:28: error: request for member 'type' in something not a structure or union helpline[mainlink[ln] + 3].type = HL_TEXT; ^ completion.c:891:13: warning: implicit declaration of function 'usw_dequote' [-Wimplicit-function-declaration] dirlen = usw_dequote(&dequote_dir,rq.dirw,dirlen); ^~~~~~~~~~~ completion.c:897:11: warning: assignment to 'const wchar_t *' {aka 'const int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] rq.dirw = USTR(dequote_dir); ^ help.c: In function 'help_prepare': help.c:408:6: error: 'panel' undeclared (first use in this function); did you mean 'pages'? if (panel->filtering && link_add(link,"filter") >= 0) ^~~~~ pages completion.c:932:10: warning: assignment to 'const wchar_t *' {aka 'const int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] rq.str = USTR(dequote_str); ^ completion.c:935:10: warning: assignment to 'const wchar_t *' {aka 'const int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] rq.str = usw_copyn(&dequote_str,rq.str,rq.strlen); ^ help.c:420:2: error: 'panel_help' undeclared (first use in this function); did you mean 'parse_help'? panel_help.pd->filtering = 0; ^~~~~~~~~~ parse_help control.c:124:59: error: 'MODE_SPECIAL_QUIT' undeclared (first use in this function) #define CXT(X,M) void cx_trans_ ## X (void) { next_mode = MODE_ ## M; } ^~~~~ control.c:128:8: note: in expansion of macro 'CXT' static CXT(quit,SPECIAL_QUIT) ^~~ help.c:422:2: error: 'textline' undeclared (first use in this function); did you mean 'getline'? textline = 0; ^~~~~~~~ getline completion.c: In function 'compl_text': completion.c:951:6: error: 'textline' undeclared (first use in this function); did you mean 'getline'? if (textline->size == 0) ^~~~~~~~ getline help.c: In function 'cx_help_link': help.c:431:2: error: unknown type name 'HELP_LINE'; did you mean 'HELP_PAGE'? HELP_LINE *ph; ^~~~~~~~~ HELP_PAGE help.c:434:7: error: 'panel_help' undeclared (first use in this function); did you mean 'parse_help'? ph = panel_help.line[panel_help.pd->curs]; ^~~~~~~~~~ parse_help help.c:435:8: error: request for member 'links' in something not a structure or union if (ph->links == 0) ^~ help.c:438:30: error: request for member 'data' in something not a structure or union help_goto(ph[3 * active + 1].data); ^ control.c: In function 'cx_trans_return': control.c:124:47: error: 'next_mode' undeclared (first use in this function); did you mean 'gettmode'? #define CXT(X,M) void cx_trans_ ## X (void) { next_mode = MODE_ ## M; } ^~~~~~~~~ control.c:129:8: note: in expansion of macro 'CXT' static CXT(return,SPECIAL_RETURN) ^~~ completion.c:954:28: error: 'MODE_PASTE' undeclared (first use in this function) if (get_current_mode() != MODE_PASTE) ^~~~~~~~~~ help.c: In function 'cx_help_main': help.c:445:6: error: 'panel_help' undeclared (first use in this function); did you mean 'parse_help'? if (panel_help.pagenum != mainpage) ^~~~~~~~~~ parse_help help.c: In function 'cx_help_back': help.c:460:2: error: 'panel_help' undeclared (first use in this function); did you mean 'parse_help'? panel_help.pd->top = history[head].top; ^~~~~~~~~~ parse_help help.c:462:2: warning: implicit declaration of function 'pan_adjust' [-Wimplicit-function-declaration] pan_adjust(panel_help.pd); ^~~~~~~~~~ completion.c:955:3: error: 'panel_paste' undeclared (first use in this function) panel_paste.wordstart = 0; /* valid in the completion/insertion panel only */ ^~~~~~~~~~~ help.c: In function 'cx_help_up': help.c:469:6: error: 'panel_help' undeclared (first use in this function); did you mean 'parse_help'? if (panel_help.lnk_ln == panel->curs && panel_help.lnk_act > 0) ^~~~~~~~~~ parse_help help.c:469:27: error: 'panel' undeclared (first use in this function) if (panel_help.lnk_ln == panel->curs && panel_help.lnk_act > 0) ^~~~~ control.c:124:59: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) #define CXT(X,M) void cx_trans_ ## X (void) { next_mode = MODE_ ## M; } ^~~~~ control.c:129:8: note: in expansion of macro 'CXT' static CXT(return,SPECIAL_RETURN) ^~~ completion.c: In function 'complete_type': completion.c:971:9: error: 'textline' undeclared (first use in this function); did you mean 'getline'? curs = textline->curs; ^~~~~~~~ getline help.c:475:3: warning: implicit declaration of function 'LIMIT_MAX'; did you mean 'WINT_MAX'? [-Wimplicit-function-declaration] LIMIT_MAX(panel->top,panel->curs); ^~~~~~~~~ WINT_MAX completion.c:979:15: error: 'MODE_PASTE' undeclared (first use in this function) if (mode == MODE_PASTE && panel_paste.wordstart) { ^~~~~~~~~~ control.c: In function 'cx_trans_discard': control.c:134:2: error: 'next_mode' undeclared (first use in this function); did you mean 'gettmode'? next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ gettmode help.c: In function 'cx_help_down': help.c:485:6: error: 'panel_help' undeclared (first use in this function); did you mean 'parse_help'? if (panel_help.lnk_ln == panel->curs ^~~~~~~~~~ parse_help help.c:485:27: error: 'panel' undeclared (first use in this function) if (panel_help.lnk_ln == panel->curs ^~~~~ help.c:496:3: warning: implicit declaration of function 'LIMIT_MIN'; did you mean 'WINT_MIN'? [-Wimplicit-function-declaration] LIMIT_MIN(panel->top,panel->curs - disp_data.panlines + 1); ^~~~~~~~~ WINT_MIN In file included from exec.c:33: history.h:7:14: error: unknown type name 'HIST_ENTRY' extern const HIST_ENTRY *get_history_entry(int i); ^~~~~~~~~~ help.c:496:38: error: 'disp_data' undeclared (first use in this function) LIMIT_MIN(panel->top,panel->curs - disp_data.panlines + 1); ^~~~~~~~~ help.c: In function 'cx_help_mouse': control.c:134:14: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~~~~~~~~~~~ help.c:506:10: error: 'minp' undeclared (first use in this function); did you mean 'uint'? switch (minp.area) { ^~~~ uint In file included from exec.c:34: lex.h:4:24: error: unknown type name 'USTRINGW' extern int usw_dequote(USTRINGW *, const wchar_t *, size_t); ^~~~~~~~ help.c:507:7: error: 'AREA_PANEL' undeclared (first use in this function) case AREA_PANEL: ^~~~~~~~~~ help.c:508:7: error: 'MI_CLICK' undeclared (first use in this function); did you mean 'HL_LINK'? if (MI_CLICK && VALID_CURSOR(panel) && minp.cursor >= 0) { ^~~~~~~~ HL_LINK In file included from filerw.c:17: clexheaders.h:1: error: unterminated #if #if defined(__APPLE__) In file included from exec.c:37: mbwstring.h:1:51: error: unknown type name 'USTRINGW' extern const wchar_t *usw_convert2w(const char *, USTRINGW *); ^~~~~~~~ control.c: At top level: control.c:148:11: warning: implicit declaration of function 'WCH_CTRL' [-Wimplicit-function-declaration] { 0, 0, WCH_CTRL('M'), cx_bm_chdir, OPT_NOFILT }, ^~~~~~~~ control.c:148:11: error: initializer element is not constant control.c:148:11: note: (near initialization for 'tab_bm[0].key') control.c:149:11: error: initializer element is not constant { 0, 0, WCH_CTRL('C'), cx_bm_revert, OPT_NOFILT }, ^~~~~~~~ control.c:149:11: note: (near initialization for 'tab_bm[1].key') control.c:160:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_bm_edit0_enter, OPT_CURS }, ^~~~~~~~ control.c:160:11: note: (near initialization for 'tab_bm_edit0[0].key') mbwstring.h:3:51: error: unknown type name 'USTRING' extern const char *us_convert2mb(const wchar_t *, USTRING *); ^~~~~~~ help.c:508:19: warning: implicit declaration of function 'VALID_CURSOR' [-Wimplicit-function-declaration] if (MI_CLICK && VALID_CURSOR(panel) && minp.cursor >= 0) { ^~~~~~~~~~~~ help.c:508:32: error: 'panel' undeclared (first use in this function) if (MI_CLICK && VALID_CURSOR(panel) && minp.cursor >= 0) { ^~~~~ In file included from exec.c:41: ustringutil.h:1:22: error: unknown type name 'USTRING' extern int us_getcwd(USTRING *); ^~~~~~~ help.c:509:4: error: 'panel_help' undeclared (first use in this function); did you mean 'parse_help'? panel_help.lnk_ln = panel->curs; ^~~~~~~~~~ parse_help ustringutil.h:2:24: error: unknown type name 'USTRING' extern int us_readlink(USTRING *, const char *); ^~~~~~~ help.c:514:7: error: 'AREA_BAR' undeclared (first use in this function) case AREA_BAR: ^~~~~~~~ ustringutil.h:3:24: error: unknown type name 'USTRING' extern void us_vprintf(USTRING *, const char *, va_list); ^~~~~~~ help.c:515:7: warning: implicit declaration of function 'MI_DC' [-Wimplicit-function-declaration] if (MI_DC(1)) { ^~~~~ exec.c:45:8: error: unknown type name 'FLAG' static FLAG promptdir = 0; /* %p in prompt ? */ ^~~~ exec.c: In function 'short_dir': exec.c:59:9: error: unknown type name 'USTRINGW' static USTRINGW dir = UNULL; ^~~~~~~~ help.c:518:17: error: 'AREA_NONE' undeclared (first use in this function) minp.area = AREA_NONE; ^~~~~~~~~ exec.c:59:24: error: 'UNULL' undeclared (first use in this function); did you mean 'NULL'? static USTRINGW dir = UNULL; ^~~~~ NULL exec.c:59:24: note: each undeclared identifier is reported only once for each function it appears in exec.c:61:9: warning: implicit declaration of function 'usw_copy'; did you mean 'va_copy'? [-Wimplicit-function-declaration] pdir = usw_copy(&dir,fulldir); ^~~~~~~~ va_copy exec.c:61:7: warning: assignment to 'wchar_t *' {aka 'int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] pdir = usw_copy(&dir,fulldir); ^ exec.c:64:8: warning: implicit declaration of function 'wcslen'; did you mean 'strlen'? [-Wimplicit-function-declaration] len = wcslen(user_data.homedirw); ^~~~~~ strlen gmake[4]: *** [Makefile:512: edit.o] Error 1 exec.c:64:15: error: 'user_data' undeclared (first use in this function) len = wcslen(user_data.homedirw); ^~~~~~~~~ history.c: In function 'warn_fail': history.c:152:40: error: request for member 'failed' in something not a structure or union if (i >= 0 && i < hs_cnt && history[i]->failed) ^~ history.c: In function 'cx_hist_next': history.c:166:15: warning: passing argument 1 of 'edit_putstr' makes pointer from integer without a cast [-Wint-conversion] edit_putstr(USTR(save_line)); ^~~~~~~~~~~~~~~ In file included from history.c:24: edit.h:14:25: note: expected 'const wchar_t *' {aka 'const int *'} but argument is of type 'int' extern void edit_putstr(const wchar_t *); ^~~~~~~~~~~~~~~ history.c:168:37: error: request for member 'cmd' in something not a structure or union edit_putstr(USTR(history[pn_index]->cmd)); ^~ exec.c:65:6: warning: implicit declaration of function 'wcsncmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration] if (wcsncmp(pdir,user_data.homedirw,len) == 0 ^~~~~~~ strncmp history.c: In function 'cx_hist_prev': history.c:183:3: warning: implicit declaration of function 'usw_xchg' [-Wimplicit-function-declaraticompletion.c:979:29: error: 'panel_paste' undeclared (first use in this function) if (mode == MODE_PASTE && panel_paste.wordstart) { ^~~~~~~~~~~ on] usw_xchg(&save_line,&line_cmd.line); ^~~~~~~~ exec.c:73:13: error: 'MAX_SHORT_CWD_LEN' undeclared (first use in this function) if (len <= MAX_SHORT_CWD_LEN) ^~~~~~~~~~~~~~~~~ history.c:183:24: error: 'line_cmd' undeclared (first use in this function) usw_xchg(&save_line,&line_cmd.line); ^~~~~~~~ history.c:184:36: error: request for member 'cmd' in something not a structure or union edit_putstr(USTR(history[pn_index]->cmd)); ^~ history.c: In function 'cx_hist_paste': history.c:196:8: error: 'textline' undeclared (first use in this function); did you mean 'pan_line'? len = textline->size; ^~~~~~~~ pan_line exec.c:82:2: warning: implicit declaration of function 'wcsncpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration] wcsncpy(pshort,L"...",3); ^~~~~~~ strncpy exec.c: In function 'set_shellprompt': exec.c:89:9: error: unknown type name 'USTRINGW' static USTRINGW prompt = UNULL; ^~~~~~~~ completion.c:985:19: error: 'MODE_FILE' undeclared (first use in this function); did you mean 'EMFILE'? else if (mode != MODE_FILE) ^~~~~~~~~ EMFILE exec.c:89:27: error: 'UNULL' undeclared (first use in this function); did you mean 'NULL'? static USTRINGW prompt = UNULL; ^~~~~ NULL history.c:210:22: error: 'panel_hist' undeclared (first use in this function); did you mean 'pan_line'? edit_insertstr(USTR(panel_hist.hist[panel_hist.pd->curs]->cmd),QUOT_NONE); ^~~~~~~~~~ pan_line exec.c:95:2: error: unknown type name 'FLAG' FLAG var; ^~~~ history.c:211:6: error: 'panel' undeclared (first use in this function) if (panel->filtering == 1) ^~~~~ history.c: In function 'cx_hist_mouse': completion.c:986:3: error: 'next_mode' undeclared (first use in this function); did you mean 'setmodhistory.c:219:6: error: 'MI_PASTE' undeclared (first use in this function) if (MI_PASTE) ^~~e'? next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ setmode ~~~~~ exec.c:97:10: warning: implicit declaration of function 'usw_setsize'; did you mean 'win_settitle'? [-Wimplicit-function-declaration] alloc = usw_setsize(&prompt,ALLOC_UNIT); ^~~~~~~~~~~ win_settitle history.c: In function 'cx_hist_enter': history.c:226:6: error: 'line_cmd' undeclared (first use in this function) if (line_cmd.size == 0) ^~~~~~~~ history.c:229:2: error: 'next_mode' undeclared (first use in this function); did you mean 'strmode'? next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ strmode exec.c:97:30: error: 'ALLOC_UNIT' undeclared (first use in this function) alloc = usw_setsize(&prompt,ALLOC_UNIT); ^~~~~~~~~~ exec.c:98:8: warning: implicit declaration of function 'USTR' [-Wimplicit-function-declaration] dst = USTR(prompt); ^~~~ exec.c:98:6: warning: assignment to 'wchar_t *' {aka 'int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] dst = USTR(prompt); ^ history.c:229:14: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~~~~~~~~~~~ completion.c:986:15: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) next_mohistory.c: In function 'cx_hist_del': de = MODE_SPECIAL_RETURN; ^~~~~~~~~~~~~~~~~~~ exec.c:101:6: error: 'user_data' undeclared (first use in this function) if (user_data.isroot) { ^~~~~~~~~ history.c:236:2: error: unknown type name 'HIST_ENTRY' HIST_ENTRY *del; ^~~~~~~~~~ exec.c:102:3: warning: implicit declaration of function 'wcscpy'; did you mean 'strcpy'? [-Wimplicit-function-declaration] wcscpy(dst,L"ROOT "); ^~~~~~ strcpy completion.c: In function 'cx_compl_wordstart': history.c:237:2: error: unknown type name 'FLAG' FLAG move; ^~~~ completion.c:1001:2: warning: implicit declaration of function 'TOGGLE' [-Wimplicit-function-declaration] TOGGLE(panel_paste.wordstart); ^~~~~~ history.c:239:8: error: 'panel_hist' undeclared (first use in this function); did you mean 'pan_line'? del = panel_hist.hist[panel_hist.pd->curs]; ^~~~~~~~~~ pan_line history.c:254:2: warning: implicit declaration of function 'pan_adjust'; did you mean 'edit_adjust'? [-Wimplicit-function-declaration] pan_adjust(panel_hist.pd); ^~~~~~~~~~ edit_adjust completion.c:1001:9: error: 'panel_paste' undeclared (first use in this function) TOGGLE(panel_paste.wordstart); ^~~~~~~~~~~ cfg.c:561:14: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~~~~~~~~~~~ cfg.c:561:2: warning: statement with no effect [-Wunused-value] next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ gmake[4]: *** [Makefile:512: help.o] Error 1 control.c:165:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_bm_edit1_enter, 0 }, ^~~~~~~~ control.c:165:11: note: (near initialization for 'tab_bm_edit1[0].key') control.c:170:11: error: initializer element is not constant { 0, 0, WCH_CTRL('I'), cx_bm_edit2_compl, 0 }, ^~~~~~~~ control.c:170:11: note: (near initialization for 'tab_bm_edit2[0].key') control.c:171:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_bm_edit2_enter, 0 }, ^~~~~~~~ control.c:171:11: note: (near initialization for 'tab_bm_edit2[1].key') control.c:176:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_cfg_enter, 0 }, ^~~~~~~~ control.c:176:11: note: (near initialization for 'tab_cfg[0].key') control.c:180:11: error: initializer element is not constant { 0, 0, WCH_CTRL('C'), cx_trans_discard, 0 }, ^~~~~~~~ control.c:180:11: note: (near initialization for 'tab_cfg[4].key') control.c:185:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_cfg_num_enter, 0 }, ^~~~~~~~ control.c:185:11: note: (near initialization for 'tab_cfg_edit_num[0].key') completion.c: In function 'cx_compl_enter': control.c:190:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_cfg_str_enter, 0 }, ^~~~~~~~ control.c:190:11: note: (near initialization for 'tab_cfg_edit_str[0].key') completion.c:1008:19: error: 'panel_compl' undeclared (first use in this function); did you mean 're_comp'? insert_candidate(panel_compl.cand[panel_compl.pd->curs]); ^~~~~~~~~~~ re_comp control.c:195:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_cfg_menu_enter, 0 }, ^~~~~~~~ control.c:195:11: note: (near initialization for 'tab_cfg_menu[0].key') control.c:200:11: error: initializer element is not constant { 0, 0, WCH_CTRL('C'), cx_trans_return, 0 }, ^~~~~~~~ control.c:200:11: note: (near initialization for 'tab_common[0].key') control.c:201:11: error: initializer element is not constant { 0, 0, WCH_CTRL('F'), cx_filter, 0 }, ^~~~~~~~ control.c:201:11: note: (near initialization for 'tab_common[1].key') cfg.c: In function 'cx_cfg_num_enter': control.c:217:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_cmp, OPT_CURS }, ^~~~~~~~ control.c:217:11: note: (near initialization for 'tab_cmp[1].key') cfg.c:570:16: error: 'panel_cfg' undeclared (first use in this function) pnum = config[panel_cfg.pd->curs].table; ^~~~~~~~~ control.c:223:11: error: initializer element is not constant { 0, 0, WCH_CTRL('I'), cx_compl_enter, OPT_CURS }, ^~~~~~~~ control.c:223:11: note: (near initialization for 'tab_compl[0].key') control.c:224:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_compl_enter, OPT_CURS }, ^~~~~~~~ control.c:224:11: note: (near initialization for 'tab_compl[1].key') control.c:229:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_pan_home, 0 }, ^~~~~~~~ control.c:229:11: note: (near initialization for 'tab_compl_sum[0].key') cfg.c:570:25: error: '(CSTR *)&' is a pointer; did you mean to use '->'? pnum = config[panel_cfg.pd->curs].table; ^ -> control.c:235:11: error: initializer element is not constant { 0, 0, WCH_CTRL('I'), cx_dir_tab, 0 }, ^~~~~~~~ control.c:235:11: note: (near initialization for 'tab_dir[1].key') control.c:236:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_dir_enter, 0 }, ^~~~~~~~ control.c:236:11: note: (near initialization for 'tab_dir[2].key') cfg.c:570:28: error: 'CSTR' {aka 'struct '} has no member named 'curs' pnum = config[panel_cfg.pd->curs].table; ^~ cfg.c:570:15: error: array subscript is not an integer pnum = config[panel_cfg.pd->curs].table; ^ control.c:257:11: error: initializer element is not constant { 0, 0, WCH_CTRL('K'), cx_edit_delencompletion.c:1009:2: error: 'next_mode' undeclared (first use in this function); did you mean 'setmode'? next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ setmode cfg.c:570:35: error: '(CSTR *)&' is a pointer; did you mean to use '->'? pnum = config[panel_cfg.pd->curs].table; ^ -> cfg.c:570:7: warning: assignment to 'CNUM *' {aka 'struct *'} from incompatible pointer type 'CSTR *' {aka 'struct *'} [-Wincompatible-pointer-types] pnum = config[panel_cfg.pd->curs].table; ^ cfg.c:571:30: warning: implicit declaration of function 'wcscmp'; did you mean 'strcmp'? [-Wimplicit-function-declaration] if (pnum->extra_val != 0 && wcscmp(USTR(textline->line),pnum->extra_val) == 0) { ^~~~~~ strcmp d, 0 }, ^~~~~~~~ control.c:257:11: note: (near initialization for 'tab_edit[10].key') control.c:258:11: error: initializer element is not constant { 0, 0, WCH_CTRL('U'), cx_edit_kill, 0 }, ^~~~~~~~ control.c:258:11: note: (near initialization for 'tab_edit[11].key') control.c:259:11: error: initializer element is not constant { 0, 0, WCH_CTRL('V'), cx_edit_inschar, 0 }, ^~~~~~~~ control.c:259:11: note: (near initialization for 'tab_edit[12].key') control.c:260:11: error: initializer element is not constant { 0, 0, WCH_CTRL('Z'), cx_undo, 0 }, ^~~~~~~~ control.c:260:11: note: (near initialization for 'tab_edit[13].key') control.c:261:11: error: initializer element is not constant { 0, 1, WCH_CTRL('Y'), cx_undo, 0 }, ^~~~~~~~ control.c:261:11: note: (near initialization for 'tab_edit[14].key') control.c:262:11: error: initializer element is not constant { 0, 0, WCH_CTRL('Y'), cx_redo, 0 }, ^~~~~~~~ control.c:262:11: note: (near initialization for 'tab_edit[15].key') control.c:263:11: error: initializer element is not constant { 0, 1, WCH_CTRL('Z'), cx_redo, 0 }, ^~~~~~~~ control.c:263:11: note: (near initialization for 'tab_edit[16].key') cfg.c:571:37: warning: implicit declaration of function 'USTR' [-Wimplicit-function-declaration] if (pnum->extra_val != 0 && wcscmp(USTR(textline->line),pnum->extra_val) == 0) { ^~~~ control.c:276:11: error: initializer element is not constant { 0, 0, WCH_CTRL('A'), cx_edit_paste_path, 0 }, ^~~~~~~~ control.c:276:11: note: (near initialization for 'tab_editcmd[0].key') control.c:277:11: error: initializer element is not constant { 0, 0, WCH_CTRL('E'), cx_edit_paste_dir2, 0 }, ^~~~~~~~ control.c:277:11: note: (near initialization for 'tab_editcmd[1].key') control.c:278:11: error: initializer element is not constant { 0, 1, WCH_CTRL('E'), cx_edit_paste_dir1, 0 }, ^~~~~~~~ control.c:278:11: note: (near initialization for 'tab_editcmd[2].key') control.c:279:11: error: initializer element is not constant { 0, 0, WCH_CTRL('I'), cx_files_tab, 0 }, ^~~~~~~~ control.c:279:11: note: (near initialization for 'tab_editcmd[3].key') control.c:280:11: error: initializer element is not constant { 0, 1, WCH_CTRL('I'), cx_mode_paste, 0 }, ^~~~~~~~ control.c:280:11: note: (near initialization for 'tab_editcmd[4].key') control.c:281:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_files_enter, 0 }, ^~~~~~~~ control.c:281:11: note: (near initialization for 'tab_editcmd[5].key') completion.c:1009:14: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~~~~~~~~~~~ control.c:282:11: error: initializer element is not constant { 0, 1, WCH_CTRL('M'), cx_files_cd, OPT_CURS }, ^~~~~~~~ control.c:282:11: note: (near initialization for 'tab_editcmd[6].key') control.c:283:11: error: initializer element is not constant { 0, 0, WCH_CTRL('N'), cx_hist_next, 0 }, ^~~~~~~~ control.c:283:11: note: (near initialization for 'tab_editcmd[7].key') control.c:284:11: error: initializer element is not constant { 0, 0, WCH_CTRL('O'), cx_edit_paste_link, OPT_CURS }, ^~~~~~~~ control.c:284:11: note: (near initialization for 'tab_editcmd[8].key') control.c:285:11: error: initializer element is not constant { 0, 0, WCH_CTRL('P'), cx_hist_prev, 0 }, ^~~~~~~~ control.c:285:11: note: (near initialization for 'tab_editcmd[9].key') control.c:286:11: error: initializer element is not constant { 0, 1, WCH_CTRL('R'), cx_files_reread_ug, 0 }, ^~~~~~~~ control.c:286:11: note: (near initialization for 'tab_editcmd[10].key') control.c:287:11: error: initializer element is not constant { 0, 0, WCH_CTRL('T'), cx_select_toggle, OPT_CURS }, ^~~~~~~~ control.c:287:11: note: (near initialization for 'tab_editcmd[11].key') control.c:288:11: error: initializer element is not constant { 0, 1, WCH_CTRL('T'), cx_select_range, OPT_CURS }, ^~~~~~~~ control.c:288:11: note: (near initialization for 'tab_editcmd[12].key') control.c:289:11: error: initializer element is not constant { 0, 0, WCH_CTRL('X'), cx_files_xchg, 0 }, ^~~~~~~~ control.c:289:11: note: (near initialization for 'tab_editcmd[13].key') cfg.c:571:42: error: 'textline' undeclared (first use in this function); did you mean 'getline'? if (pnum->extra_val != 0 && wcscmp(USTR(textline->line),pnum->extra_val) == 0) { ^~~~~~~~ getline cfg.c:571:50: error: 'CSTR' {aka 'struct '} has no member named 'line' if (pnum->extra_val != 0 && wcscmp(USTR(textline->line),pnum->extra_val) == 0) { ^~ control.c:320:11: error: initializer element is not constant { 0, 0, WCH_CTRL('K'), cx_filteredit_delend, 0 }, ^~~~~~~~ control.c:320:11: note: (near initialization for 'tab_filteredit[0].key') control.c:321:11: error: initializer element is not constant { 0, 0, WCH_CTRL('U'), cx_filteredit_kill, 0 }, ^~~~~~~~ control.c:321:11: note: (near initialization for 'tab_filteredit[1].key') control.c:322:11: error: initializer element is not constant { 0, 0, WCH_CTRL('V'), cx_edit_inschar, 0 }, ^~~~~~~~ control.c:322:11: note: (near initialization for 'tab_filteredit[2].key') control.c:336:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_fopt_enter, OPT_CURS }, ^~~~~~~~ control.c:336:11: note: (near initialization for 'tab_fopt[1].key') control.c:342:11: error: initializer element is not constant { 0, 0, WCH_CTRL('I'), cx_group_paste, OPT_CURS }, ^~~~~~~~ control.c:342:11: note: (near initialization for 'tab_group[0].key') control.c:343:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_pan_home, 0 }, ^~~~~~~~ control.c:343:11: note: (near initialization for 'tab_group[1].key') control.c:351:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_help_link, OPT_NOFILT }, ^~~~~~~~ control.c:351:11: note: (near initialization for 'tab_help[0].key') control.c:352:11: error: initializer element is not constant { 0, 1, WCH_CTRL('M'), cx_help_link, 0 }, ^~~~~~~~ control.c:352:11: note: (near initialization for 'tab_help[1].key') cfg.c:573:3: error: 'next_mode' undeclared (first use in this function); did you mean 'strmode'? next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ strmode control.c:376:11: error: initializer element is not constant { 0, 0, WCH_CTRL('I'), cx_hist_paste, OPT_CURS }, ^~~~~~~~ control.c:376:11: note: (near initialization for 'tab_hist[2].key') control.c:377:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_hist_enter, OPT_CURS }, ^~~~~~~~ control.c:377:11: note: (near initialization for 'tab_hist[3].key') control.c:378:11: error: initializer element is not constant { 0, 0, WCH_CTRL('N'), cx_pan_up, 0 }, /* redefine history next */ ^~~~~~~~ control.c:378:11: note: (near initialization for 'tab_hist[4].key') control.c:379:11: error: initializer element is not constant { 0, 0, WCH_CTRL('P'), cx_pan_down, 0 }, /* redefine history prev */ ^~~~~~~~ control.c:379:11: note: (near initialization for 'tab_hist[5].key') control.c:391:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_ins_enter, 0 }, ^~~~~~~~ control.c:391:11: note: (near initialization for 'tab_inschar[0].key') control.c:396:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_pan_home, 0 }, ^~~~~~~~ control.c:396:11: note: (near initialization for 'tab_log[0].key') control.c:426:11: error: initializer element is not constant { 0, 0, WCH_CTRL('D'), cx_bm_addcwd, 0 }, ^~~~~~~~ control.c:426:11: note: (near initialization for 'tab_mainmenu[6].key') control.c:429:11: error: initializer element is not constant { 0, 0, WCH_CTRL('R'), cx_files_reread, 0 }, ^~~~~~~~ control.c:429:11: note: (near initialization for 'tab_mainmenu[9].key') control.c:461:11: error: initializer element is not constant { 0, 0, WCH_CTRL('F'), cx_filter2, 0 }, ^~~~~~~~ control.c:461:11: note: (near initialization for 'tab_mainmenu2[11].key') control.c:473:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_menu_pick, 0 }, ^~~~~~~~ control.c:473:11: note: (near initialization for 'tab_mainmenu2[22].key') cfg.c:573:15: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~~~~~~~~~~~ control.c:510:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_notif, OPT_CURS }, ^~~~~~~~ control.c:510:11: note: (near initialization for 'tab_notif[1].key') cfg.c:573:3: warning: statement with no effect [-Wunused-value] next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ cfg.c:577:6: warning: implicit declaration of function 'swscanf'; did you mean 'sscanf'? [-Wimplicit-function-declaration] if (swscanf(USTR(textline->line),L" %d %n",&nvalue,&len) < 1 || len != textline->size) ^~~~~~~ sscanf cfg.c:577:27: error: 'CSTR' {aka 'struct '} has no member named 'line' if (swscanf(USTR(textline->line),L" %d %n",&nvalue,&len) < 1 || len != textline->size) ^~ cfg.c:577:81: error: 'CSTR' {aka 'struct '} has no member named 'size' if (swscanf(USTR(textline->line),L" %d %n",&nvalue,&len) < 1 || len != textline->size) ^~ cfg.c:577:70: warning: comparison between pointer and integer if (swscanf(USTR(textline->line),L" %d %n",&nvalue,&len) < 1 || len != textline->size) ^~ cfg.c:583:3: warning: statement with no effect [-Wunused-value] next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ cfg.c: In function 'cx_cfg_str_enter': cfg.c:592:16: error: 'panel_cfg' undeclared (first use in this function) pstr = config[panel_cfg.pd->curs].table; ^~~~~~~~~ cfg.c:592:25: error: '(CSTR *)&' is a pointer; did you mean to use '->'? pstr = config[panel_cfg.pd->curs].table; ^ -> cfg.c:592:28: error: 'CSTR' {aka 'struct '} has no member named 'curs' pstr = config[panel_cfg.pd->curs].table; ^~ cfg.c:592:15: error: array subscript is not an integer pstr = config[panel_cfg.pd->curs].table; ^ cfg.c:592:35: error: '(CSTR *)&' is a pointer; did you mean to use '->'? pstr = config[panel_cfg.pd->curs].table; ^ -> cfg.c:593:42: error: 'textline' undeclared (first use in this function); did you mean 'getline'? if (pstr->extra_val != 0 && wcscmp(USTR(textline->line),pstr->extra_val) == 0) { ^~~~~~~~ getline cfg.c:593:50: error: 'CSTR' {aka 'struct '} has no member named 'line' if (pstr->extra_val != 0 && wcscmp(USTR(textline->line),pstr->extra_val) == 0) { ^~ At top level: completion.c:583:1: warning: 'condinsert' defined but not used [-Wunused-function] condinsert(wchar_t ch) ^~~~~~~~~~ cfg.c:595:3: error: 'next_mode' undeclared (first use in this function); did you mean 'strmode'? next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ strmode cfg.c:595:15: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~~~~~~~~~~~ cfg.c:595:3: warning: statement with no effect [-Wunused-value] next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ cfg.c:599:14: error: 'CSTR' {aka 'struct '} has no member named 'size' if (textline->size > CFGVALUE_LEN) ^~ cfg.c:599:21: warning: comparison between pointer and integer if (textline->size > CFGVALUE_LEN) ^ cfg.c:602:33: error: 'CSTR' {aka 'struct '} has no member named 'line' wcscpy(pstr->new,USTR(textline->line)); ^~ cfg.c:603:3: warning: statement with no effect [-Wunused-value] next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ cfg.c: In function 'cx_cfg_default': cfg.c:610:12: error: 'panel_cfg' undeclared (first use in this function) set_value(panel_cfg.pd->curs,CP_I2N); ^~~~~~~~~ cfg.c:610:21: error: '(CSTR *)&' is a pointer; did you mean to use '->'? set_value(panel_cfg.pd->curs,CP_I2N); ^ -> cfg.c:610:24: error: 'CSTR' {aka 'struct '} has no member named 'curs' set_value(panel_cfg.pd->curs,CP_I2N); ^~ cfg.c:610:12: warning: passing argument 1 of 'set_value' makes integer from pointer without a cast [-Wint-conversion] set_value(panel_cfg.pd->curs,CP_I2N); ^~~~~~~~~~~~~~~~~~ cfg.c:205:15: note: expected 'int' but argument is of type 'CSTR *' {aka 'struct *'} set_value(int code, int cp) ~~~~^~~~ cfg.c: In function 'cx_cfg_original': cfg.c:617:12: error: 'panel_cfg' undeclared (first use in this function) set_value(panel_cfg.pd->curs,CP_C2N); ^~~~~~~~~ cfg.c:617:21: error: '(CSTR *)&' is a pointer; did you mean to use '->'? set_value(panel_cfg.pd->curs,CP_C2N); ^ -> cfg.c:617:24: error: 'CSTR' {aka 'struct '} has no member named 'curs' set_value(panel_cfg.pd->curs,CP_C2N); ^~ cfg.c:617:12: warning: passing argument 1 of 'set_value' makes integer from pointer without a cast [-Wint-conversion] set_value(panel_cfg.pd->curs,CP_C2N); ^~~~~~~~~~~~~~~~~~ cfg.c:205:15: note: expected 'int' but argument is of type 'CSTR *' {aka 'struct *'} set_value(int code, int cp) ~~~~^~~~ cfg.c: In function 'detect_changes': cfg.c:629:16: warning: comparison between pointer and integer for (i = 0; i < CFG_TOTAL_; i++) ^ cfg.c:630:16: error: request for member 'isnum' in something not a structure or union if (config[i].isnum) { ^ cfg.c:631:20: error: request for member 'table' in something not a structure or union pnum = config[i].table; ^ cfg.c:631:9: warning: assignment to 'CNUM *' {aka 'struct *'} from incompatible pointer type 'CSTR *' {aka 'struct *'} [-Wincompatible-pointer-types] pnum = config[i].table; ^ cfg.c:632:13: error: request for member 'changed' in something not a structure or union config[i].changed = pnum->new != pnum->current; ^ cfg.c:632:4: warning: statement with no effect [-Wunused-value] config[i].changed = pnum->new != pnum->current; ^~~~~~ cfg.c:633:13: error: request for member 'saveit' in something not a structure or union config[i].saveit = pnum->new != pnum->initial; ^ cfg.c:633:4: warning: statement with no effect [-Wunused-value] config[i].saveit = pnum->new != pnum->initial; ^~~~~~ cfg.c:636:20: error: request for member 'table' in something not a structure or union pstr = config[i].table; ^ cfg.c:637:13: error: request for member 'changed' in something not a structure or union config[i].changed = wcscmp(pstr->new,pstr->current) != 0; ^ gmake[4]: *** [Makefile:512: completion.o] Error 1 cfg.c:637:4: warning: statement with no effect [-Wunused-value] config[i].changed = wcscmp(pstr->new,pstr->current) != 0; ^~~~~~ cfg.c:638:13: error: request for member 'saveit' in something not a structure or union config[i].saveit = wcscmp(pstr->new,pstr->initial) != 0; ^ cfg.c:638:4: warning: statement with no effect [-Wunused-value] config[i].saveit = wcscmp(pstr->new,pstr->initial) != 0; ^~~~~~ cfg.c: In function 'apply_changes': cfg.c:646:2: error: unknown type name 'FLAG' FLAG reread = 0; ^~~~ cfg.c:648:16: warning: comparison between pointer and integer for (i = 0; i < CFG_TOTAL_; i++) ^ cfg.c:649:16: error: request for member 'changed' in something not a structure or union if (config[i].changed) ^ cfg.c:652:12: error: array subscript is not an integer if (config[CFG_FRAME].changed) { ^ cfg.c:652:23: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (config[CFG_FRAME].changed) { ^ -> gmake[4]: *** [Makefile:512: history.o] Error 1 cfg.c:656:12: error: array subscript is not an integer if (config[CFG_CMD_LINES].changed) { ^ cfg.c:656:27: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (config[CFG_CMD_LINES].changed) { ^ -> cfg.c:661:12: error: array subscript is not an integer if (config[CFG_XTERM_TITLE].changed) { ^ cfg.c:661:29: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (config[CFG_XTERM_TITLE].changed) { ^ -> cfg.c:666:12: error: array subscript is not an integer if (config[CFG_MOUSE].changed) { ^ cfg.c:666:23: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (config[CFG_MOUSE].changed) { ^ -> cfg.c:671:12: error: array subscript is not an integer if (config[CFG_PROMPT].changed) ^ cfg.c:671:24: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (config[CFG_PROMPT].changed) ^ -> cfg.c:673:12: error: array subscript is not an integer if (config[CFG_LAYOUT].changed || config[CFG_LAYOUT1].changed ^ cfg.c:673:24: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (config[CFG_LAYOUT].changed || config[CFG_LAYOUT1].changed ^ -> cfg.c:673:42: error: array subscript is not an integer if (config[CFG_LAYOUT].changed || config[CFG_LAYOUT1].changed ^ cfg.c:673:55: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (config[CFG_LAYOUT].changed || config[CFG_LAYOUT1].changed ^ -> cfg.c:674:13: error: array subscript is not an integer || config[CFG_LAYOUT2].changed || config[CFG_LAYOUT3].changed) { ^ cfg.c:674:26: error: '(CSTR *)&' is a pointer; did you mean to use '->'? || config[CFG_LAYOUT2].changed || config[CFG_LAYOUT3].changed) { ^ -> cfg.c:674:44: error: array subscript is not an integer || config[CFG_LAYOUT2].changed || config[CFG_LAYOUT3].changed) { ^ cfg.c:674:57: error: '(CSTR *)&' is a pointer; did you mean to use '->'? || config[CFG_LAYOUT2].changed || config[CFG_LAYOUT3].changed) { ^ -> cfg.c:678:12: error: array subscript is not an integer if (config[CFG_FMT_TIME].changed || config[CFG_FMT_DATE].changed ^ cfg.c:678:26: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (config[CFG_FMT_TIME].changed || config[CFG_FMT_DATE].changed ^ -> cfg.c:678:44: error: array subscript is not an integer if (config[CFG_FMT_TIME].changed || config[CFG_FMT_DATE].changed ^ cfg.c:678:58: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (config[CFG_FMT_TIME].changed || config[CFG_FMT_DATE].changed ^ -> cfg.c:679:13: error: array subscript is not an integer || config[CFG_TIME_DATE].changed) { ^ cfg.c:679:28: error: '(CSTR *)&' is a pointer; did you mean to use '->'? || config[CFG_TIME_DATE].changed) { ^ -> cfg.c:683:12: error: array subscript is not an integer if (config[CFG_KILOBYTE].changed) { ^ cfg.c:683:26: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (config[CFG_KILOBYTE].changed) { ^ -> cfg.c:687:12: error: array subscript is not an integer if (config[CFG_C_SIZE].changed) ^ cfg.c:687:24: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (config[CFG_C_SIZE].changed) ^ -> cfg.c:689:12: error: array subscript is not an integer if (config[CFG_D_SIZE].changed) ^ cfg.c:689:24: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (config[CFG_D_SIZE].changed) ^ -> cfg.c:691:12: error: array subscript is not an integer if (config[CFG_H_SIZE].changed) ^ cfg.c:691:24: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (config[CFG_H_SIZE].changed) ^ -> cfg.c:696:3: error: 'ppanel_file' undeclared (first use in this function); did you mean 'pan_line'? ppanel_file->other->expired = 1; ^~~~~~~~~~~ pan_line cfg.c:696:14: error: 'CSTR' {aka 'struct '} has no member named 'other' ppanel_file->other->expired = 1; ^~ cfg.c:696:21: error: 'CSTR' {aka 'struct '} has no member named 'expired' ppanel_file->other->expired = 1; ^~ cfg.c:696:3: warning: statement with no effect [-Wunused-value] ppanel_file->other->expired = 1; ^~~~~~~~~~~ cfg.c: In function 'cx_cfg_enter': cfg.c:720:13: error: 'panel_cfg' undeclared (first use in this function) if (config[panel_cfg.pd->curs].isnum) { ^~~~~~~~~ cfg.c:720:22: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (config[panel_cfg.pd->curs].isnum) { ^ -> cfg.c:720:25: error: 'CSTR' {aka 'struct '} has no member named 'curs' if (config[panel_cfg.pd->curs].isnum) { ^~ cfg.c:720:12: error: array subscript is not an integer if (config[panel_cfg.pd->curs].isnum) { ^ cfg.c:720:32: error: '(CSTR *)&' is a pointer; did you mean to use '->'? if (config[panel_cfg.pd->curs].isnum) { ^ -> cfg.c:721:26: error: '(CSTR *)&' is a pointer; did you mean to use '->'? pnum = config[panel_cfg.pd->curs].table; ^ -> cfg.c:721:29: error: 'CSTR' {aka 'struct '} has no member named 'curs' pnum = config[panel_cfg.pd->curs].table; ^~ cfg.c:721:16: error: array subscript is not an integer pnum = config[panel_cfg.pd->curs].table; ^ cfg.c:721:36: error: '(CSTR *)&' is a pointer; did you mean to use '->'? pnum = config[panel_cfg.pd->curs].table; ^ -> cfg.c:721:8: warning: assignment to 'CNUM *' {aka 'struct *'} from incompatible pointer type 'CSTR *' {aka 'struct *'} [-Wincompatible-pointer-types] pnum = config[panel_cfg.pd->curs].table; ^ cfg.c:722:32: error: 'MODE_CFG_MENU' undeclared (first use in this function) control_loop(pnum->desc[0] ? MODE_CFG_MENU : MODE_CFG_EDIT_NUM); ^~~~~~~~~~~~~ cfg.c:722:48: error: 'MODE_CFG_EDIT_NUM' undeclared (first use in this function) control_loop(pnum->desc[0] ? MODE_CFG_MENU : MODE_CFG_EDIT_NUM); ^~~~~~~~~~~~~~~~~ cfg.c:722:46: warning: passing argument 1 of 'control_loop' makes integer from pointer without a cast [-Wint-conversion] control_loop(pnum->desc[0] ? MODE_CFG_MENU : MODE_CFG_EDIT_NUM); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from cfg.c:25: control.h:1:26: note: expected 'int' but argument is of type 'CSTR *' {aka 'struct *'} extern void control_loop(int); ^~~ In file included from exec.c:28: cfg.h:18:38: error: 'pcfg' undeclared (first use in this function) #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^~~~ exec.c:107:34: note: in expansion of macro 'cfg_str' for (var = promptdir = 0, src = cfg_str(CFG_PROMPT); (ch = *src++) != L'\0';) { ^~~~~~~ cfg.c:725:16: error: 'MODE_CFG_EDIT_TXT' undeclared (first use in this function) control_loop(MODE_CFG_EDIT_TXT); ^~~~~~~~~~~~~~~~~ cfg.c:725:16: warning: passing argument 1 of 'control_loop' makes integer from pointer without a cast [-Wint-conversion] In file included from cfg.c:25: control.h:1:26: note: expected 'int' but argument is of type 'CSTR *' {aka 'struct *'} extern void control_loop(int); ^~~ exec.c:107:42: error: 'CFG_PROMPT' undeclared (first use in this function) for (var = promptdir = 0, src = cfg_str(CFG_PROMPT); (ch = *src++) != L'\0';) { ^~~~~~~~~~ cfg.h:18:43: note: in definition of macro 'cfg_str' #define cfg_str(X) ((const wchar_t *)pcfg[X]) ^ exec.c:110:7: warning: implicit declaration of function 'TCLR' [-Wimplicit-function-declaration] if (TCLR(var)) { ^~~~ exec.c:126:29: error: 'ppanel_file' undeclared (first use in this function) append = short_dir(USTR(ppanel_file->dirw)); ^~~~~~~~~~~ exec.c:149:12: warning: implicit declaration of function 'usw_resize'; did you mean 'user_prepare'? [-Wimplicit-function-declaration] alloc = usw_resize(&prompt,size + len1 + len2 + 1); ^~~~~~~~~~ user_prepare exec.c:150:8: warning: assignment to 'wchar_t *' {aka 'int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] dst = USTR(prompt) + size; ^ exec.c:161:2: warning: implicit declaration of function 'edit_setprompt'; did you mean 'set_shellprompt'? [-Wimplicit-function-declaration] edit_setprompt(&line_cmd,USTR(prompt)); ^~~~~~~~~~~~~~ set_shellprompt exec.c:161:18: error: 'line_cmd' undeclared (first use in this function); did you mean 'timercmp'? edit_setprompt(&line_cmd,USTR(prompt)); ^~~~~~~~ timercmp exec.c:90:24: warning: variable 'promptchar' set but not used [-Wunused-but-set-variable] static const wchar_t *promptchar[3] ^~~~~~~~~~ gmake[4]: *** [Makefile:512: cfg.o] Error 1 exec.c: In function 'execute': exec.c:209:9: error: 'user_data' undeclared (first use in this function) execl(user_data.shell,user_data.shell,"-c",command,(char *)0); ^~~~~~~~~ control.c:532:11: error: initializer element is not constant { 0, 0, WCH_CTRL('A'), cx_edit_paste_path, 0 }, ^~~~~~~~ control.c:532:11: note: (near initialization for 'tab_pastemenu[11].key') control.c:533:11: error: initializer element is not constant { 0, 0, WCH_CTRL('E'), cx_edit_paste_dir2, 0 }, ^~~~~~~~ control.c:533:11: note: (near initialization for 'tab_pastemenu[12].key') control.c:534:11: error: initializer element is not constant { 0, 1, WCH_CTRL('E'), cx_edit_paste_dir1, 0 }, ^~~~~~~~ control.c:534:11: note: (near initialization for 'tab_pastemenu[13].key') control.c:535:11: error: initializer element is not constant { 0, 0, WCH_CTRL('O'), cx_edit_paste_link, 0 }, ^~~~~~~~ control.c:535:11: note: (near initialization for 'tab_pastemenu[14].key') control.c:537:11: error: initializer element is not constant { 0, 0, WCH_CTRL('I'), cx_paste_pick, OPT_CURS }, ^~~~~~~~ control.c:537:11: note: (near initialization for 'tab_pastemenu[15].key') exec.c:221:78: error: 'ppanel_file' undeclared (first use in this function) msgout(MSG_AUDIT,"Command: \"%s\", working directory: \"%s\"",command,USTR(ppanel_file->dir)); ^~~~~~~~~~~ control.c:538:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_paste_pick, 0 }, ^~~~~~~~ control.c:538:11: note: (near initialization for 'tab_pastemenu[16].key') control.c:543:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_trans_return, 0 }, ^~~~~~~~ control.c:543:11: note: (near initialization for 'tab_preview[0].key') control.c:549:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_rename, 0 }, ^~~~~~~~ control.c:549:11: note: (near initialization for 'tab_rename[0].key') exec.c:229:27: error: 'clex_data' undeclared (first use in this function) tcsetpgrp(STDIN_FILENO,clex_data.pid); ^~~~~~~~~ control.c:554:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_select_files, 0 }, ^~~~~~~~ control.c:554:11: note: (near initialization for 'tab_select[0].key') exec.c:302:3: error: 'disp_data' undeclared (first use in this function) disp_data.noenter = 0; ^~~~~~~~~ control.c:560:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_sort_set, OPT_CURS }, ^~~~~~~~ control.c:560:11: note: (near initialization for 'tab_sort[1].key') control.c:562:11: error: initializer element is not constant { 0, 0, WCH_CTRL('C'), cx_trans_discard, 0 }, ^~~~~~~~ control.c:562:11: note: (near initialization for 'tab_sort[3].key') control.c:567:11: error: initializer element is not constant { 0, 0, WCH_CTRL('I'), cx_user_paste, OPT_CURS }, ^~~~~~~~ control.c:567:11: note: (near initialization for 'tab_user[0].key') exec.c: In function 'check_rm': exec.c:315:2: error: unknown type name 'CODE' CODE state; /* 0 = no match, 1 = command name follows */ ^~~~ control.c:568:11: error: initializer element is not constant { 0, 0, WCH_CTRL('M'), cx_pan_home, 0 }, ^~~~~~~~ control.c:568:11: note: (near initialization for 'tab_user[1].key') control.c:576:7: warning: ISO C forbids forward references to 'enum' types [-Wpedantic] enum MODE_TYPE mode; ^~~~~~~~~ control.c:576:17: error: field 'mode' has incomplete type enum MODE_TYPE mode; ^~~~ control.c:577:2: error: unknown type name 'FLAG' FLAG saveopt; /* save options when returning from this mode */ ^~~~ exec.c: In function 'print_warnings': exec.c:348:9: error: unknown type name 'USTRING' static USTRING cwd = UNULL; ^~~~~~~ exec.c:348:23: error: 'UNULL' undeclared (first use in this function); did you mean 'NULL'? static USTRING cwd = UNULL; ^~~~~ NULL exec.c:354:6: warning: implicit declaration of function 'us_getcwd'; did you mean 'getcwd'? [-Wimplicit-function-declaration] if (us_getcwd(&cwd) < 0) { ^~~~~~~~~ getcwd exec.c:356:3: warning: implicit declaration of function 'us_copy'; did you mean 'va_copy'? [-Wimplicit-function-declaration] us_copy(&cwd,"???"); ^~~~~~~ va_copy control.c:590:4: error: 'MODE_BM_EDIT0' undeclared here (not in a function) { MODE_BM_EDIT0, 0, ^~~~~~~~~~~~~ exec.c:359:23: error: 'ppanel_file' undeclared (first use in this function) else if (strcmp(USTR(ppanel_file->dir),dir = USTR(cwd))) { ^~~~~~~~~~~ exec.c:359:45: warning: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] else if (strcmp(USTR(ppanel_file->dir),dir = USTR(cwd))) { ^ exec.c:368:8: warning: implicit declaration of function 'NOPT' [-Wimplicit-function-declaration] if ((!NOPT(NOTIF_RM) || edit_isauto()) && check_rm(cmd,lex)) { ^~~~ control.c:595:4: error: 'MODE_BM_EDIT1' undeclared here (not in a function) { MODE_BM_EDIT1, 0, ^~~~~~~~~~~~~ exec.c:368:13: error: 'NOTIF_RM' undeclared (first use in this function) if ((!NOPT(NOTIF_RM) || edit_isauto()) && check_rm(cmd,lex)) { ^~~~~~~~ exec.c:376:12: error: 'NOTIF_LONG' undeclared (first use in this function) if (!NOPT(NOTIF_LONG) && get_current_mode() == MODE_FILE ^~~~~~~~~~ control.c:599:4: error: 'MODE_BM_EDIT2' undeclared here (not in a function) { MODE_BM_EDIT2, 0, ^~~~~~~~~~~~~ exec.c:376:49: error: 'MODE_FILE' undeclared (first use in this function); did you mean 'ENFILE'? if (!NOPT(NOTIF_LONG) && get_current_mode() == MODE_FILE ^~~~~~~~~ ENFILE exec.c: In function 'check_cd': exec.c:389:9: error: unknown type name 'USTRINGW' static USTRINGW cut = UNULL; ^~~~~~~~ control.c:603:4: error: 'MODE_BM' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_BM, 0, ^~~~~~~ MODE_TYPE exec.c:389:24: error: 'UNULL' undeclared (first use in this function); did you mean 'NULL'? static USTRINGW cut = UNULL; ^~~~~ NULL exec.c:390:9: error: unknown type name 'USTRINGW' static USTRINGW dq = UNULL; ^~~~~~~~ exec.c:394:2: error: unknown type name 'FLAG' FLAG chop, tilde, dequote; ^~~~ exec.c:395:2: error: unknown type name 'CODE' CODE state; ^~~~ control.c:608:4: error: 'MODE_CFG' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_CFG, 0, ^~~~~~~~ MODE_TYPE exec.c:426:31: error: 'user_data' undeclared (first use in this function) return lx == LEX_END_OK ? user_data.homedir : 0; /* cd without args */ ^~~~~~~~~ control.c:612:4: error: 'MODE_CFG_EDIT_NUM' undeclared here (not in a function) { MODE_CFG_EDIT_NUM, 0, ^~~~~~~~~~~~~~~~~ exec.c:452:14: warning: implicit declaration of function 'usw_copyn'; did you mean 'va_copy'? [-Wimplicit-function-declaration] dirstr = usw_copyn(&cut,dirstr,len); ^~~~~~~~~ va_copy exec.c:452:12: warning: assignment to 'const wchar_t *' {aka 'const int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] dirstr = usw_copyn(&cut,dirstr,len); ^ exec.c:455:5: warning: implicit declaration of function 'usw_dequote' [-Wimplicit-function-declaration] usw_dequote(&dq,dirstr,len); ^~~~~~~~~~~ exec.c:456:12: warning: assignment to 'const wchar_t *' {aka 'const int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] dirstr = USTR(dq); ^ exec.c: In function 'execute_cmd': exec.c:472:9: error: unknown type name 'FLAG' static FLAG fail, do_it; ^~~~ exec.c:487:6: error: 'disp_data' undeclared (first use in this function) if (disp_data.noenter && disp_data.noenter_hash != jshash(cmdw)) ^~~~~~~~~ control.c:616:4: error: 'MODE_CFG_EDIT_TXT' undeclared here (not in a function) { MODE_CFG_EDIT_TXT, 0, ^~~~~~~~~~~~~~~~~ filerw.c:37:2: error: unknown type name 'FLAG' FLAG inuse; /* non-zero if valid */ ^~~~ filerw.c:38:2: error: unknown type name 'FLAG' FLAG truncated; ^~~~ control.c:620:4: error: 'MODE_CFG_MENU' undeclared here (not in a function) { MODE_CFG_MENU, 0, ^~~~~~~~~~~~~ filerw.c: In function 'fr_is_text': filerw.c:180:22: error: 'lang_data' undeclared (first use in this function) if (ch == '\0' || (lang_data.utf8 && (ch == 0xFE || ch == 0xFF))) ^~~~~~~~~ filerw.c:180:22: note: each undeclared identifier is reported only once for each function it appears in control.c:624:4: error: 'MODE_CMP' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_CMP, 1, ^~~~~~~~ MODE_TYPE filerw.c: At top level: filerw.c:296:2: error: unknown type name 'USTRING' USTRING file, tmpfile; /* destination file name, temporary file name */ ^~~~~~~ filerw.c: In function 'fw_open': filerw.c:316:4: warning: implicit declaration of function 'us_copy'; did you mean 'va_copy'? [-Wimplicit-function-declaration] us_copy(&wfile[i].file,file); ^~~~~~~ va_copy filerw.c:317:4: warning: implicit declaration of function 'us_cat'; did you mean 'strcat'? [-Wimplicit-function-declaration] us_cat(&wfile[i].tmpfile,file,"-",clex_data.pidstr,".tmp",(char *)0); ^~~~~~ strcat gmake[4]: *** [Makefile:512: exec.o] Error 1 control.c:628:4: error: 'MODE_CMP_SUM' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_CMP_SUM, 1, ^~~~~~~~~~~~ MODE_TYPE filerw.c:317:38: error: 'clex_data' undeclared (first use in this function) us_cat(&wfile[i].tmpfile,file,"-",clex_data.pidstr,".tmp",(char *)0); ^~~~~~~~~ filerw.c:327:22: warning: implicit declaration of function 'USTR' [-Wimplicit-function-declaration] wfile[i].fp = fopen(USTR(wfile[i].tmpfile),"w"); ^~~~ filerw.c:327:22: warning: passing argument 1 of 'fopen' makes pointer from integer without a cast [-Wint-conversion] wfile[i].fp = fopen(USTR(wfile[i].tmpfile),"w"); ^~~~~~~~~~~~~~~~~~~~~~ In file included from filerw.c:23: /usr/include/stdio.h:222:7: note: expected 'const char * restrict' but argument is of type 'int' FILE *fopen(const char * __restrict, const char * __restrict); ^~~~~ control.c:632:4: error: 'MODE_COMPL' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_COMPL, 0, ^~~~~~~~~~ MODE_TYPE filerw.c:335:3: warning: implicit declaration of function 'us_reset'; did you mean 'usleep'? [-Wimplicit-function-declaration] us_reset(&wfile[i].tmpfile); ^~~~~~~~ usleep filerw.c: In function 'fw_close': filerw.c:345:2: error: unknown type name 'FLAG' FLAG errflag; ^~~~ filerw.c:357:7: warning: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] file = USTR(wfile[i].file); ^ filerw.c:358:10: warning: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] tmpfile = USTR(wfile[i].tmpfile); ^ filerw.c: In function 'fw_cleanup': filerw.c:388:11: warning: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] tmpfile = USTR(wfile[i].tmpfile); ^ control.c:636:4: error: 'MODE_DESELECT' undeclared here (not in a function); did you mean 'KEY_SELECT'? { MODE_DESELECT, 0, ^~~~~~~~~~~~~ KEY_SELECT control.c:640:4: error: 'MODE_DIR' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_DIR, 0, ^~~~~~~~ MODE_TYPE control.c:644:4: error: 'MODE_DIR_SPLIT' undeclared here (not in a function) { MODE_DIR_SPLIT, 0, ^~~~~~~~~~~~~~ gmake[4]: *** [Makefile:512: filerw.o] Error 1 control.c:648:4: error: 'MODE_FILE' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_FILE, 0, ^~~~~~~~~ MODE_TYPE control.c:652:4: error: 'MODE_FOPT' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_FOPT, 1, ^~~~~~~~~ MODE_TYPE control.c:656:4: error: 'MODE_GROUP' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_GROUP, 0, ^~~~~~~~~~ MODE_TYPE control.c:660:4: error: 'MODE_HELP' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_HELP, 0, ^~~~~~~~~ MODE_TYPE control.c:664:4: error: 'MODE_HIST' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_HIST, 0, ^~~~~~~~~ MODE_TYPE control.c:668:4: error: 'MODE_INSCHAR' undeclared here (not in a function) { MODE_INSCHAR, 0, ^~~~~~~~~~~~ control.c:673:4: error: 'MODE_LOG' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_LOG, 0, ^~~~~~~~ MODE_TYPE control.c:677:4: error: 'MODE_MAINMENU' undeclared here (not in a function) { MODE_MAINMENU, 0, ^~~~~~~~~~~~~ control.c:681:4: error: 'MODE_NOTIF' undeclared here (not in a function); did you mean 'MSG_NOTIFY'? { MODE_NOTIF, 1, ^~~~~~~~~~ MSG_NOTIFY control.c:685:4: error: 'MODE_PASTE' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_PASTE, 0, ^~~~~~~~~~ MODE_TYPE control.c:689:4: error: 'MODE_PREVIEW' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_PREVIEW, 0, ^~~~~~~~~~~~ MODE_TYPE control.c:693:4: error: 'MODE_RENAME' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_RENAME, 0, ^~~~~~~~~~~ MODE_TYPE control.c:697:4: error: 'MODE_SELECT' undeclared here (not in a function); did you mean 'KEY_SELECT'? { MODE_SELECT, 0, ^~~~~~~~~~~ KEY_SELECT control.c:701:4: error: 'MODE_SORT' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_SORT, 1, ^~~~~~~~~ MODE_TYPE control.c:705:4: error: 'MODE_USER' undeclared here (not in a function); did you mean 'MODE_TYPE'? { MODE_USER, 0, ^~~~~~~~~ MODE_TYPE control.c:715:2: error: unknown type name 'PANEL_DESC' PANEL_DESC *panel; ^~~~~~~~~~ control.c:716:2: error: unknown type name 'TEXTLINE' TEXTLINE *textline; ^~~~~~~~ control.c:720:61: warning: implicit declaration of function 'ARRAY_SIZE' [-Wimplicit-function-declaration] static struct operation_mode mode_init = { &mode_definition[ARRAY_SIZE(mode_definition) - 1],0,0,0 }; ^~~~~~~~~~ control.c:720:44: error: initializer element is not constant static struct operation_mode mode_init = { &mode_definition[ARRAY_SIZE(mode_definition) - 1],0,0,0 }; ^ control.c:720:44: note: (near initialization for 'mode_init.modedef') control.c: In function 'get_current_mode': control.c:726:9: warning: returning 'MODE_DEFINITION *' {aka 'struct *'} from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion] return clex_mode->modedef->mode; ^~~~~~~~~ control.c: In function 'get_previous_mode': control.c:732:9: warning: returning 'MODE_DEFINITION *' {aka 'struct *'} from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion] return clex_mode->previous->modedef->mode; ^~~~~~~~~ control.c: In function 'fopt_change': control.c:741:19: error: request for member 'filter' in something not a structure or union if (pmode->panel->filter && pmode->panel->filtering) ^~ control.c:741:43: error: request for member 'filtering' in something not a structure or union if (pmode->panel->filter && pmode->panel->filtering) ^~ control.c:742:16: error: request for member 'filter' in something not a structure or union pmode->panel->filter->changed = 1; ^~ control.c:742:24: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'changed' pmode->panel->filter->changed = 1; ^~ control.c:742:4: warning: statement with no effect [-Wunused-value] pmode->panel->filter->changed = 1; ^~~~~ control.c: In function 'get_modedef': control.c:751:15: warning: comparison between pointer and integer if (p->mode == mode) ^~ control.c: In function 'callfn': control.c:769:2: error: unknown type name 'PANEL_DESC' PANEL_DESC *pd; ^~~~~~~~~~ control.c:771:40: warning: implicit declaration of function 'VALID_CURSOR' [-Wimplicit-function-declaration] if ((tab[idx].options & OPT_CURS) && !VALID_CURSOR(panel)) ^~~~~~~~~~~~ control.c:771:53: error: 'panel' undeclared (first use in this function) if ((tab[idx].options & OPT_CURS) && !VALID_CURSOR(panel)) ^~~~~ control.c:775:74: warning: comparison between pointer and integer if ((tab == tab_mainmenu || tab == tab_mainmenu2) && get_current_mode() == MODE_MAINMENU) ^~ control.c:776:8: error: 'panel_mainmenu' undeclared (first use in this function); did you mean 'tab_mainmenu'? pd = panel_mainmenu.pd; ^~~~~~~~~~~~~~ tab_mainmenu control.c:776:22: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? pd = panel_mainmenu.pd; ^ -> control.c:776:6: warning: assignment to 'int *' from incompatible pointer type 'MODE_DEFINITION *' {aka 'struct *'} [-Wincompatible-pointer-types] pd = panel_mainmenu.pd; ^ control.c:778:8: error: 'panel_paste' undeclared (first use in this function); did you mean 'cx_user_paste'? pd = panel_paste.pd; ^~~~~~~~~~~ cx_user_paste control.c:778:19: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? pd = panel_paste.pd; ^ -> control.c:778:6: warning: assignment to 'int *' from incompatible pointer type 'MODE_DEFINITION *' {aka 'struct *'} [-Wincompatible-pointer-types] pd = panel_paste.pd; ^ control.c:781:21: error: request for member 'curs' in something not a structure or union if (pd && idx != pd->curs && idx < pd->cnt) { ^~ control.c:781:16: warning: comparison between pointer and integer if (pd && idx != pd->curs && idx < pd->cnt) { ^~ control.c:781:39: error: request for member 'cnt' in something not a structure or union if (pd && idx != pd->curs && idx < pd->cnt) { ^~ control.c:781:35: warning: comparison between pointer and integer if (pd && idx != pd->curs && idx < pd->cnt) { ^ control.c:782:5: error: request for member 'curs' in something not a structure or union pd->curs = idx; ^~ control.c:782:3: warning: statement with no effect [-Wunused-value] pd->curs = idx; ^~ control.c:783:3: warning: implicit declaration of function 'pan_adjust'; did you mean 'edit_adjust'? [-Wimplicit-function-declaration] pan_adjust(pd); ^~~~~~~~~~ edit_adjust control.c: In function 'do_action': control.c:796:2: error: unknown type name 'FLAG' FLAG fkey, filt; ^~~~ control.c:797:2: error: unknown type name 'EXTRA_LINE'; did you mean 'EXIT_FAILURE'? EXTRA_LINE *extra; ^~~~~~~~~~ EXIT_FAILURE control.c:801:9: error: 'kinp' undeclared (first use in this function); did you mean 'uint'? fkey = kinp.fkey; ^~~~ uint control.c:801:13: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? fkey = kinp.fkey; ^ -> control.c:801:7: warning: assignment to 'int' from 'MODE_DEFINITION *' {aka 'struct *'} makes integer from pointer without a cast [-Wint-conversion] fkey = kinp.fkey; ^ control.c:802:9: error: 'panel' undeclared (first use in this function) filt = panel->filtering == 1; ^~~~~ control.c:802:14: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'filtering' filt = panel->filtering == 1; ^~ control.c:802:26: warning: comparison between pointer and integer filt = panel->filtering == 1; ^~ control.c:840:10: error: 'disp_data' undeclared (first use in this function); did you mean 'doupdate'? key = disp_data.bs177 ? KEY_BACKSPACE : KEY_DC; ^~~~~~~~~ doupdate control.c:840:19: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? key = disp_data.bs177 ? KEY_BACKSPACE : KEY_DC; ^ -> control.c:846:46: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? if (filt && ((key == WCH_CTRL('M') && !kinp.prev_esc) || key == WCH_CTRL('C'))) { ^ -> control.c:847:13: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'type' if (panel->type == PANEL_TYPE_DIR && panel->filter->size > 0) ^~ control.c:847:23: error: 'PANEL_TYPE_DIR' undeclared (first use in this function); did you mean 'COMPL_TYPE_DIR'? if (panel->type == PANEL_TYPE_DIR && panel->filter->size > 0) ^~~~~~~~~~~~~~ COMPL_TYPE_DIR control.c:847:46: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'filter' if (panel->type == PANEL_TYPE_DIR && panel->filter->size > 0) ^~ control.c:847:54: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'size' if (panel->type == PANEL_TYPE_DIR && panel->filter->size > 0) ^~ control.c:847:61: warning: ordered comparison of pointer with integer zero [-Wpedantic] if (panel->type == PANEL_TYPE_DIR && panel->filter->size > 0) ^ control.c:848:10: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'filtering' panel->filtering = 2; ^~ control.c:848:5: warning: statement with no effect [-Wunused-value] panel->filtering = 2; ^~~~~ control.c:856:12: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'filtering' if (panel->filtering == 2 && key == WCH_CTRL('C') && panel->type == PANEL_TYPE_FILE) { ^~ control.c:856:24: warning: comparison between pointer and integer if (panel->filtering == 2 && key == WCH_CTRL('C') && panel->type == PANEL_TYPE_FILE) { ^~ control.c:856:61: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'type' if (panel->filtering == 2 && key == WCH_CTRL('C') && panel->type == PANEL_TYPE_FILE) { ^~ control.c:856:71: error: 'PANEL_TYPE_FILE' undeclared (first use in this function); did you mean 'COMPL_TYPE_FILE'? if (panel->filtering == 2 && key == WCH_CTRL('C') && panel->type == PANEL_TYPE_FILE) { ^~~~~~~~~~~~~~~ COMPL_TYPE_FILE control.c:864:11: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'min' if (panel->min < 0 && panel->curs < 0 && ((fkey == 0 && key == WCH_CTRL('M')) || ^~ control.c:864:17: warning: ordered comparison of pointer with integer zero [-Wpedantic] if (panel->min < 0 && panel->curs < 0 && ((fkey == 0 && key == WCH_CTRL('M')) || ^ control.c:864:29: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'curs' if (panel->min < 0 && panel->curs < 0 && ((fkey == 0 && key == WCH_CTRL('M')) || ^~ control.c:864:36: warning: ordered comparison of pointer with integer zero [-Wpedantic] if (panel->min < 0 && panel->curs < 0 && ((fkey == 0 && key == WCH_CTRL('M')) || ^ control.c:865:18: warning: implicit declaration of function 'MI_DC'; did you mean 'KEY_DC'? [-Wimplicit-function-declaration] (fkey == 2 && MI_DC(1) && MI_AREA(PANEL) ^~~~~ KEY_DC control.c:865:30: warning: implicit declaration of function 'MI_AREA' [-Wimplicit-function-declaration] (fkey == 2 && MI_DC(1) && MI_AREA(PANEL) ^~~~~~~ control.c:865:38: error: 'PANEL' undeclared (first use in this function) (fkey == 2 && MI_DC(1) && MI_AREA(PANEL) ^~~~~ control.c:866:12: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'top' && panel->top + minp.ypanel < 0 && panel->top + minp.ypanel == panel->curs))) { ^~ control.c:866:20: error: 'minp' undeclared (first use in this function); did you mean 'uint'? && panel->top + minp.ypanel < 0 && panel->top + minp.ypanel == panel->curs))) { ^~~~ uint control.c:866:24: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? && panel->top + minp.ypanel < 0 && panel->top + minp.ypanel == panel->curs))) { ^ -> control.c:866:18: error: invalid operands to binary + (have 'MODE_DEFINITION *' {aka 'struct *'} and 'MODE_DEFINITION *' {aka 'struct *'}) && panel->top + minp.ypanel < 0 && panel->top + minp.ypanel == panel->curs))) { ~~ ^ control.c:866:32: warning: ordered comparison of pointer with integer zero [-Wpedantic] && panel->top + minp.ypanel < 0 && panel->top + minp.ypanel == panel->curs))) { ^ control.c:866:44: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'top' && panel->top + minp.ypanel < 0 && panel->top + minp.ypanel == panel->curs))) { ^~ control.c:866:56: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? && panel->top + minp.ypanel < 0 && panel->top + minp.ypanel == panel->curs))) { ^ -> control.c:866:50: error: invalid operands to binary + (have 'MODE_DEFINITION *' {aka 'struct *'} and 'MODE_DEFINITION *' {aka 'struct *'}) && panel->top + minp.ypanel < 0 && panel->top + minp.ypanel == panel->curs))) { ~~ ^ control.c:866:72: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'curs' && panel->top + minp.ypanel < 0 && panel->top + minp.ypanel == panel->curs))) { ^~ control.c:867:16: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'extra' extra = panel->extra + (panel->curs - panel->min); ^~ control.c:867:32: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'curs' extra = panel->extra + (panel->curs - panel->min); ^~ control.c:867:46: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'min' extra = panel->extra + (panel->curs - panel->min); ^~ control.c:867:9: warning: assignment to 'int *' from incompatible pointer type 'MODE_DEFINITION *' {aka 'struct *'} [-Wincompatible-pointer-types] extra = panel->extra + (panel->curs - panel->min); ^ control.c:868:3: error: 'next_mode' undeclared (first use in this function); did you mean 'clex_mode'? next_mode = extra->mode_next; ^~~~~~~~~ clex_mode control.c:868:20: error: request for member 'mode_next' in something not a structure or union next_mode = extra->mode_next; ^~ control.c:868:3: warning: statement with no effect [-Wunused-value] next_mode = extra->mode_next; ^~~~~~~~~ control.c:869:12: error: request for member 'fn' in something not a structure or union if (extra->fn) ^~ control.c:870:11: error: request for member 'fn' in something not a structure or union (*extra->fn)(); ^~ control.c:870:5: error: called object is not a function or function pointer (*extra->fn)(); ~^~~~~~~~~~~ control.c:870:4: warning: statement with no effect [-Wunused-value] (*extra->fn)(); ^ control.c:877:7: error: 'MI_CURSBAR' undeclared (first use in this function); did you mean 'MB_CUR_MAX'? if (MI_CURSBAR || (MI_AREA(LINE) && textline)) { ^~~~~~~~~~ MB_CUR_MAX control.c:877:30: error: 'LINE' undeclared (first use in this function); did you mean 'LINES'? if (MI_CURSBAR || (MI_AREA(LINE) && textline)) { ^~~~ LINES control.c:877:39: error: 'textline' undeclared (first use in this function); did you mean 'getline'? if (MI_CURSBAR || (MI_AREA(LINE) && textline)) { ^~~~~~~~ getline control.c:900:18: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? else if (kinp.prev_esc && !tab[i].escp) { ^ -> control.c:912:18: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? else if (kinp.prev_esc || !tab[i].escp) ^ -> control.c:920:24: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? if (fkey == 0 && !kinp.prev_esc && !iswcntrl(key)) { ^ -> control.c: In function 'control_loop': control.c:945:2: error: unknown type name 'FLAG' FLAG filter, nr; ^~~~ control.c:948:28: warning: comparison between pointer and integer if (pmode->modedef->mode == mode) { ^~ control.c:961:7: error: 'next_mode' undeclared (first use in this function); did you mean 'clex_mode'? for (next_mode = mode; /* until break */; ) { ^~~~~~~~~ clex_mode control.c:961:2: warning: statement with no effect [-Wunused-value] for (next_mode = mode; /* until break */; ) { ^~~ control.c:962:36: warning: passing argument 1 of 'get_modedef' makes integer from pointer without a cast [-Wint-conversion] clex_mode->modedef = get_modedef(next_mode); ^~~~~~~~~ control.c:746:17: note: expected 'int' but argument is of type 'MODE_DEFINITION *' {aka 'struct *'} get_modedef(int mode) ~~~~^~~~ control.c:963:3: warning: statement with no effect [-Wunused-value] next_mode = 0; ^~~~~~~~~ control.c:971:7: error: 'panel' undeclared (first use in this function) if (panel != clex_mode->panel) { ^~~~~ control.c:971:13: warning: comparison of distinct pointer types lacks a cast if (panel != clex_mode->panel) { ^~ control.c:972:13: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'filtering' if (panel->filtering || (clex_mode->panel && clex_mode->panel->filtering)) ^~ control.c:972:65: error: request for member 'filtering' in something not a structure or union if (panel->filtering || (clex_mode->panel && clex_mode->panel->filtering)) ^~ control.c:977:21: warning: assignment to 'int *' from incompatible pointer type 'MODE_DEFINITION *' {aka 'struct *'} [-Wincompatible-pointer-types] clex_mode->panel = panel; ^ control.c:980:7: error: 'textline' undeclared (first use in this function); did you mean 'getline'? if (textline != clex_mode->textline) { ^~~~~~~~ getline control.c:980:16: warning: comparison of distinct pointer types lacks a cast if (textline != clex_mode->textline) { ^~ control.c:984:24: warning: assignment to 'int *' from incompatible pointer type 'MODE_DEFINITION *' {aka 'struct *'} [-Wincompatible-pointer-types] clex_mode->textline = textline; ^ control.c:992:22: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) if (next_mode == MODE_SPECIAL_RETURN ^~~~~~~~~~~~~~~~~~~ control.c:995:6: warning: statement with no effect [-Wunused-value] next_mode = 0; ^~~~~~~~~ control.c:1002:12: error: switch quantity not an integer switch (clex_mode->modedef->mode) { ^~~~~~~~~ control.c:1005:6: warning: statement with no effect [-Wunused-value] next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ control.c:1009:17: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'size' if (textline->size == 0 || kb_tab == tab_panel) ^~ control.c:1012:11: error: 'minp' undeclared (first use in this function); did you mean 'uint'? nr = minp.area > AREA_BAR; ^~~~ uint control.c:1012:15: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? nr = minp.area > AREA_BAR; ^ -> control.c:1012:23: error: 'AREA_BAR' undeclared (first use in this function) nr = minp.area > AREA_BAR; ^~~~~~~~ control.c:1015:14: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'norev' if (panel->norev != nr) { ^~ control.c:1015:22: warning: comparison between pointer and integer if (panel->norev != nr) { ^~ control.c:1016:11: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'norev' panel->norev = nr; ^~ control.c:1016:6: warning: statement with no effect [-Wunused-value] panel->norev = nr; ^~~~~ control.c:1023:6: warning: statement with no effect [-Wunused-value] next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ control.c:1028:13: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'filtering' if (panel->filtering && panel->filter->changed) ^~ control.c:1028:33: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'filter' if (panel->filtering && panel->filter->changed) ^~ control.c:1028:41: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'changed' if (panel->filtering && panel->filter->changed) ^~ control.c:1035:20: error: 'MODE_SPECIAL_QUIT' undeclared (first use in this function) if (next_mode == MODE_SPECIAL_QUIT) ^~~~~~~~~~~~~~~~~ control.c:1040:4: warning: statement with no effect [-Wunused-value] next_mode = 0; ^~~~~~~~~ control.c:1047:12: warning: comparison of distinct pointer types lacks a cast if (panel != clex_mode->panel) { ^~ control.c:1048:17: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'filtering' filter = panel->filtering || clex_mode->panel->filtering; ^~ control.c:1048:48: error: request for member 'filtering' in something not a structure or union filter = panel->filtering || clex_mode->panel->filtering; ^~ control.c:1049:3: warning: statement with no effect [-Wunused-value] panel = clex_mode->panel; ^~~~~ control.c:1055:15: warning: comparison of distinct pointer types lacks a cast if (textline != clex_mode->textline) { ^~ control.c:1056:3: warning: statement with no effect [-Wunused-value] textline = clex_mode->textline; ^~~~~~~~ control.c: In function 'menu_prepare': control.c:1069:2: error: 'panel' undeclared (first use in this function) panel = panel_mainmenu.pd; ^~~~~ control.c:1069:10: error: 'panel_mainmenu' undeclared (first use in this function); did you mean 'tab_mainmenu'? panel = panel_mainmenu.pd; ^~~~~~~~~~~~~~ tab_mainmenu control.c:1069:24: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? panel = panel_mainmenu.pd; ^ -> control.c:1069:2: warning: statement with no effect [-Wunused-value] panel = panel_mainmenu.pd; ^~~~~ control.c:1070:2: error: 'textline' undeclared (first use in this function); did you mean 'getline'? textline = 0; ^~~~~~~~ getline control.c:1070:2: warning: statement with no effect [-Wunused-value] control.c: In function 'cx_menu_pick': control.c:1077:17: error: 'panel_mainmenu' undeclared (first use in this function); did you mean 'tab_mainmenu'? (*tab_mainmenu[panel_mainmenu.pd->curs].fn)(); ^~~~~~~~~~~~~~ tab_mainmenu control.c:1077:31: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? (*tab_mainmenu[panel_mainmenu.pd->curs].fn)(); ^ -> control.c:1077:34: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'curs' (*tab_mainmenu[panel_mainmenu.pd->curs].fn)(); ^~ control.c:1077:16: error: array subscript is not an integer (*tab_mainmenu[panel_mainmenu.pd->curs].fn)(); ^ control.c:1077:41: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? (*tab_mainmenu[panel_mainmenu.pd->curs].fn)(); ^ -> control.c:1077:3: error: called object is not a function or function pointer (*tab_mainmenu[panel_mainmenu.pd->curs].fn)(); ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ control.c:1077:2: warning: statement with no effect [-Wunused-value] (*tab_mainmenu[panel_mainmenu.pd->curs].fn)(); ^ control.c:1078:6: error: 'next_mode' undeclared (first use in this function); did you mean 'clex_mode'? if (next_mode == 0) ^~~~~~~~~ clex_mode control.c:1079:15: error: 'MODE_SPECIAL_RETURN' undeclared (first use in this function) next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~~~~~~~~~~~ control.c:1079:3: warning: statement with no effect [-Wunused-value] next_mode = MODE_SPECIAL_RETURN; ^~~~~~~~~ control.c: In function 'paste_prepare': control.c:1086:2: error: 'panel_paste' undeclared (first use in this function); did you mean 'cx_user_paste'? panel_paste.wordstart = 0; ^~~~~~~~~~~ cx_user_paste control.c:1086:13: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? panel_paste.wordstart = 0; ^ -> control.c:1086:2: warning: statement with no effect [-Wunused-value] panel_paste.wordstart = 0; ^~~~~~~~~~~ control.c:1087:2: error: 'panel' undeclared (first use in this function) panel = panel_paste.pd; ^~~~~ control.c:1087:21: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? panel = panel_paste.pd; ^ -> control.c:1087:2: warning: statement with no effect [-Wunused-value] panel = panel_paste.pd; ^~~~~ control.c: In function 'cx_paste_pick': control.c:1095:18: error: 'panel_paste' undeclared (first use in this function); did you mean 'cx_user_paste'? (*tab_pastemenu[panel_paste.pd->curs].fn)(); ^~~~~~~~~~~ cx_user_paste control.c:1095:29: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? (*tab_pastemenu[panel_paste.pd->curs].fn)(); ^ -> control.c:1095:32: error: 'MODE_DEFINITION' {aka 'struct '} has no member named 'curs' (*tab_pastemenu[panel_paste.pd->curs].fn)(); ^~ control.c:1095:17: error: array subscript is not an integer (*tab_pastemenu[panel_paste.pd->curs].fn)(); ^ control.c:1095:39: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? (*tab_pastemenu[panel_paste.pd->curs].fn)(); ^ -> control.c:1095:3: error: called object is not a function or function pointer (*tab_pastemenu[panel_paste.pd->curs].fn)(); ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ control.c:1095:2: warning: statement with no effect [-Wunused-value] (*tab_pastemenu[panel_paste.pd->curs].fn)(); ^ control.c: In function 'cx_version': control.c:1101:33: error: expected ')' before 'VERSION' msgout(MSG_i,"Welcome to CLEX " VERSION " !"); ^~~~~~~~ ) control.c: In function 'err_exit': control.c:1122:6: error: 'disp_data' undeclared (first use in this function); did you mean 'doupdate'? if (disp_data.curses) ^~~~~~~~~ doupdate control.c:1122:15: error: '(MODE_DEFINITION *)&' is a pointer; did you mean to use '->'? if (disp_data.curses) ^ -> gmake[4]: *** [Makefile:512: control.o] Error 1 gmake[4]: Leaving directory '/construction/misc/clex/clex-4.7/src' gmake[3]: *** [Makefile:339: all] Error 2 gmake[3]: Leaving directory '/construction/misc/clex/clex-4.7/src' gmake[2]: *** [Makefile:357: all-recursive] Error 1 gmake[2]: Leaving directory '/construction/misc/clex/clex-4.7' gmake[1]: *** [Makefile:296: all] Error 2 gmake[1]: Leaving directory '/construction/misc/clex/clex-4.7' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /xports/misc/clex FAILED 00:00:01