=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for ve-1.0 cc -O2 -march=i586 -I/usr/include -DVEDITOR -I/usr/include -c edit.c edit.c:49:3: warning: illegal character encoding in string literal [-Winvalid-source-encoding] {"N", "J"}; ^~~~~~~~~~~~ edit.c:49:11: warning: illegal character encoding in string literal [-Winvalid-source-encoding] {"N", "J"}; ^~~~~~~~~~~~ edit.c:61:20: warning: illegal character encoding in string literal [-Winvalid-source-encoding] fprintf(stderr, "Y %d\n", i); ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ edit.c:97:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register ansix = 0; ~~~~~~~~ ^ edit.c:128:33: warning: illegal character encoding in string literal [-Winvalid-source-encoding] static char *edit_mode[2] = {"N", "J"}; ^~~~~~~~~~~~ edit.c:128:41: warning: illegal character encoding in string literal [-Winvalid-source-encoding] static char *edit_mode[2] = {"N", "J"}; ^~~~~~~~~~~~ edit.c:134:3: warning: implicit declaration of function 'move' is invalid in C99 [-Wimplicit-function-declaration] move(b_lines, 0); ^ edit.c:135:3: warning: implicit declaration of function 'clrtoeol' is invalid in C99 [-Wimplicit-function-declaration] clrtoeol(); ^ edit.c:136:3: warning: implicit declaration of function 'prints' is invalid in C99 [-Wimplicit-function-declaration] prints("\033[%sm s峹 \033[31;47m (Ctrl-G)\033[30m uWU \033[31m(^X,^Q)\033[30m ɮ׳Bz %sx%c%c%c%c %3d:%3d \033[m", ^ edit.c:136:21: warning: illegal character encoding in string literal [-Winvalid-source-encoding] prints("\033[%sm s峹 \033[31;47m (Ctrl-G)\033[30m uWU \033[31m(^X,^Q)\033[30m ɮ׳Bz %sx%c%c%c%c %3d:%3d \033[m", ^~~~ ~~~~~~~~~~~~ edit.c:136:61: warning: illegal character encoding in string literal [-Winvalid-source-encoding] prints("\033[%sm s峹 \033[31;47m (Ctrl-G)\033[30m uWU \033[31m(^X,^Q)\033[30m ɮ׳Bz %sx%c%c%c%c %3d:%3d \033[m", ^~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ edit.c:136:99: warning: illegal character encoding in string literal [-Winvalid-source-encoding] prints("\033[%sm s峹 \033[31;47m (Ctrl-G)\033[30m uWU \033[31m(^X,^Q)\033[30m ɮ׳Bz %sx%c%c%c%c %3d:%3d \033[m", ^~~~ ~~~~ ~~~~~~~~ ~~~~ ~~~~~~~~ edit.c:214:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = (textline *) malloc(sizeof(textline))) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ edit.c:214:9: note: place parentheses around the assignment to silence this warning if (p = (textline *) malloc(sizeof(textline))) ^ ( ) edit.c:214:9: note: use '==' to turn this assignment into an equality comparison if (p = (textline *) malloc(sizeof(textline))) ^ == edit.c:221:3: warning: implicit declaration of function 'abort_bbs' is invalid in C99 [-Wimplicit-function-declaration] abort_bbs(); ^ edit.c:222:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ edit.c:235:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p->next = n = line->next) ~~~~~~~~^~~~~~~~~~~~~~~~ edit.c:235:15: note: place parentheses around the assignment to silence this warning if (p->next = n = line->next) ^ ( ) edit.c:235:15: note: use '==' to turn this assignment into an equality comparison if (p->next = n = line->next) ^ == edit.c:280:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] undelete_line() ^~~~~~~~~~~~~ edit.c:296:4: warning: implicit declaration of function 'insert_string' is invalid in C99 [-Wimplicit-function-declaration] insert_string(deleted_lines->data); ^ edit.c:307:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ edit.c:468:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] insert_string(str) ^~~~~~~~~~~~~ edit.c:473:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (ch = *str++) ~~~^~~~~~~~ edit.c:473:13: note: place parentheses around the assignment to silence this warning while (ch = *str++) ^ ( ) edit.c:473:13: note: use '==' to turn this assignment into an equality comparison while (ch = *str++) ^ == edit.c:477:9: warning: implicit declaration of function 'isprint2' is invalid in C99 [-Wimplicit-function-declaration] if (isprint2(ch) || ch == '') ^ edit.c:495:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ edit.c:503:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (len = currline->len) ~~~~^~~~~~~~~~~~~~~ edit.c:503:11: note: place parentheses around the assignment to silence this warning if (len = currline->len) ^ ( ) edit.c:503:11: note: use '==' to turn this assignment into an equality comparison if (len = currline->len) ^ == edit.c:542:24: warning: illegal character encoding in string literal [-Winvalid-source-encoding] static char msg[] = "пܼȦs (0-9)[0]: "; ^~~~ ~~~~~~~~ ~~~~~~~~ edit.c:547:10: warning: implicit declaration of function 'getdata' is invalid in C99 [-Wimplicit-function-declaration] if (!getdata(3, 0, msg, fp_buf + 4, 4, DOECHO)) ^ edit.c:572:3: warning: implicit declaration of function 'setuserfile' is invalid in C99 [-Wimplicit-function-declaration] setuserfile(fp_tmpbuf, tmpf); ^ edit.c:577:27: warning: implicit declaration of function 'more' is invalid in C99 [-Wimplicit-function-declaration] if (n != 0 && n != 5 && more(fp_tmpbuf, NA) != -1) ^ edit.c:578:31: warning: illegal character encoding in string literal [-Winvalid-source-encoding] getdata(b_lines - 1, 0, "TJ(Y/N)?[Y]", ans, 4, LCECHO); ^~~~ ~~~~ ~~~~ ~~~~~~~~ edit.c:602:7: warning: implicit declaration of function 'dashf' is invalid in C99 [-Wimplicit-function-declaration] if (dashf(fp_tmpbuf)) ^ edit.c:605:30: warning: illegal character encoding in string literal [-Winvalid-source-encoding] getdata(b_lines - 1, 0, "Ȧsɤw (A)[ (W)мg (Q)H[A] ", ^~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~ edit.c:633:31: warning: illegal character encoding in string literal [-Winvalid-source-encoding] getdata(b_lines - 1, 0, "TwR(Y/N)?[N]", ans, 4, LCECHO); ^~~~ ~~~~ ~~~~ ~~~~~~~~~~~~~~~~ edit.c:654:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fp = fopen(bakfile, "w")) ~~~^~~~~~~~~~~~~~~~~~~~~ edit.c:654:12: note: place parentheses around the assignment to silence this warning if (fp = fopen(bakfile, "w")) ^ ( ) edit.c:654:12: note: use '==' to turn this assignment into an equality comparison if (fp = fopen(bakfile, "w")) ^ == edit.c:677:5: warning: implicit declaration of function 'stand_title' is invalid in C99 [-Wimplicit-function-declaration] stand_title("s۰ʴ_"); ^ edit.c:677:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] stand_title("s۰ʴ_"); ^~~~ ~~~~ ~~~~ ~~~~~~~~ edit.c:678:20: warning: illegal character encoding in string literal [-Winvalid-source-encoding] getdata(1, 0, "z@g|A(S)gJȦs (Q)FH[S] ", ^~~~ ~~~~~~~~~~~~ ~~~~ ~~~~ ~~~~ ~~~~~~~~~~~~ edit.c:721:19: warning: illegal character encoding in string literal [-Winvalid-source-encoding] stand_title("ɮ׳Bz"); ^~~~ ~~~~ edit.c:722:24: warning: illegal character encoding in string literal [-Winvalid-source-encoding] getdata(1, 0, "[S]xs (A) (E)~ (R/W/D)ŪgRȦsɡH", ans, 4, LCECHO); ^~~~ ~~~~ ~~~~~~~~~~~~~~~~ ~~~~ ~~~~~~~~ ~~~~ ~~~~ edit.c:730:5: warning: implicit declaration of function 'outs' is invalid in C99 [-Wimplicit-function-declaration] outs("[1m S [0msJ"); ^ edit.c:730:11: warning: illegal character encoding in string literal [-Winvalid-source-encoding] outs("[1m S [0msJ"); ^~~~ ~~~~ ~~~~~~~~ ~~~~ ~~~~ edit.c:761:23: warning: illegal character encoding in string literal [-Winvalid-source-encoding] sprintf(buf, "gi: %s wQ{ʹL", FPath); ^~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~~~~~~~~~ edit.c:763:24: warning: illegal character encoding in string literal [-Winvalid-source-encoding] getdata(1, 0, "Twxs(Y/N)H[N]", ans, 4, LCECHO); ^~~~ ~~~~ ~~~~ ~~~~ ~~~~ edit.c:768:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] stand_title("gJ: gȦs"); ^~~~ ~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ edit.c:782:9: warning: implicit declaration of function 'trim' is invalid in C99 [-Wimplicit-function-declaration] trim(line); ^ edit.c:796:6: warning: implicit declaration of function 'convert' is invalid in C99 [-Wimplicit-function-declaration] convert(FPath); ^ edit.c:805:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] edit_outs(text) ^~~~~~~~~ edit.c:813:5: warning: implicit declaration of function 'outch' is invalid in C99 [-Wimplicit-function-declaration] outch(ch == 27 ? '*' : ch); ^ edit.c:815:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ edit.c:817:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] block_outs(char* text, int column) ^~~~~~~~~~ edit.c:825:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ edit.c:861:15: warning: '&&' within '||' [-Wlogical-op-parentheses] && (currln - curr_window_line + i) <= currln ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ edit.c:861:15: note: place parentheses around the '&&' expression to silence this warning && (currln - curr_window_line + i) <= currln ^ edit.c:864:15: warning: '&&' within '||' [-Wlogical-op-parentheses] && (currln - curr_window_line + i) <= blockln)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ edit.c:864:15: note: place parentheses around the '&&' expression to silence this warning && (currln - curr_window_line + i) <= blockln)) { ^ edit.c:908:7: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "\01@O", ^~~~ ~~~~~~~~~~~~~~~~~~~~ edit.c:909:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "^X ɮ׳Bz ^L sܵe", ^~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~ edit.c:910:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "^V ANSIm ^G ܥDUe", ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~ ~~~~ edit.c:911:7: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "\01вʫO", ^~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~ edit.c:912:4: warning: illegal character encoding in string literal [-Winvalid-source-encoding] " ʤ@ ^A,Home }Y", ^~~~~~~~ ~~~~~~~~~~~~ ~~~~ ~~~~~~~~ ~~~~~~~~ edit.c:913:4: warning: illegal character encoding in string literal [-Winvalid-source-encoding] " eʤ@ ^E,End ", ^~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~ edit.c:914:4: warning: illegal character encoding in string literal [-Winvalid-source-encoding] ",^P Wʤ@ (ESC-,) ɮ}Y", ^~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~ edit.c:915:4: warning: illegal character encoding in string literal [-Winvalid-source-encoding] ",^N Uʤ@ (ESC-.),^T ɮ", ^~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~ edit.c:916:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "^B,PgUp Wʤ@ ^F,PgDn Uʤ@", ^~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~ edit.c:917:7: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "\01RJO", ^~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ edit.c:918:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "^O,Ins ܼҦ J/л\\[m", ^~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~ edit.c:919:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "^H,BS Re@Ӧr", ^~~~ ~~~~~~~~~~~~ ~~~~ ~~~~ ~~~~~~~~ edit.c:920:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "(ESC-l) аO϶", ^~~~ ~~~~ ~~~~ edit.c:921:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "^D,Del Rثer ANSIx¬ŵQ", ^~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~ ~~~~ edit.c:922:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "^K RФܦ ex[47;30;1m30[31m31[32m32[33m33[34m34[35m35[36m36[37m37[0m", ^~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ edit.c:923:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "^Y Rثeo Ix[40;33;1m40[41m41[42m42[43m43[44m44[45m45[46m46[47m47[0m", ^~~~ ~~~~~~~~~~~~ ~~~~ ~~~~~~~~ ~~~~ ~~~~~~~~ edit.c:924:7: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "\01SO", ^~~~ ~~~~~~~~~~~~~~~~~~~~ edit.c:925:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "^U J ESC X(H * ) ^C ٭/]w ANSI m", ^~~~~~~~~~~~ ~~~~ ~~~~ ~~~~~~~~~~~~~~~~ ~~~~ ~~~~ ~~~~ edit.c:926:4: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "ԲӪGless -r /usr/pkg/share/ve/ve.hlp", ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ edit.c:937:3: warning: implicit declaration of function 'clear' is invalid in C99 [-Wimplicit-function-declaration] clear(); ^ edit.c:941:19: warning: illegal character encoding in string literal [-Winvalid-source-encoding] prints("[1mi %s j[0m\n", str + 1); ^~~~ ~~~~ edit.c:943:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] prints("\n[36mi %s j[m\n", str + 1); ^~~~ ~~~~ edit.c:959:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] goto_line(int lino) ^~~~~~~~~ edit.c:963:45: warning: illegal character encoding in string literal [-Winvalid-source-encoding] if (lino > 0 || getdata(b_lines - 1, 0, "ܲĴX:", buf, 10, DOECHO) ^~~~~~~~~~~~ ~~~~~~~~ edit.c:964:36: warning: '&&' within '||' [-Wlogical-op-parentheses] && sscanf(buf, "%d", &lino) && lino > 0) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ edit.c:964:36: note: place parentheses around the '&&' expression to silence this warning && sscanf(buf, "%d", &lino) && lino > 0) { ^ edit.c:996:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ edit.c:1022:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] search_str(int mode) ^~~~~~~~~~ edit.c:1031:21: warning: illegal character encoding in string literal [-Winvalid-source-encoding] sprintf(buf, "Mr[%s]", str); ^~~~ ~~~~~~~~~~~~ ~~~~~~~~ edit.c:1035:39: warning: illegal character encoding in string literal [-Winvalid-source-encoding] if (getdata(b_lines - 1, 0, "Ϥjpg(Y/N/Q)? [N] ", ans, 4, LCECHO) ^~~~ ~~~~~~~~ ~~~~ ~~~~ edit.c:1038:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ edit.c:1101:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ edit.c:1237:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] block_del(int hide) ^~~~~~~~~ edit.c:1256:51: warning: illegal character encoding in string literal [-Winvalid-source-encoding] else if (!hide && !getdata(b_lines - 1, 0, "϶ܼȦs (0:Cut, 5:Copy, 6-9, q: Cancel)[0] ", tmpfname + 4, 4, LCECHO)) ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~ edit.c:1264:38: warning: illegal character encoding in string literal [-Winvalid-source-encoding] getdata(b_lines - 1, 0, "Ȧsɤw (A)[ (W)мg (Q)H[W] ", ans, 4, LCECHO); ^~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~ edit.c:1271:39: warning: illegal character encoding in string literal [-Winvalid-source-encoding] getdata(b_lines - 1, 0, "R϶(Y/N)?[N] ", ans + 2, 4, LCECHO); ^~~~ ~~~~~~~~~~~~ ~~~~ edit.c:1305:16: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ edit.c:1329:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fp = fopen(fp_tmpbuf, ans)) { ~~~^~~~~~~~~~~~~~~~~~~~~~~ edit.c:1329:17: note: place parentheses around the assignment to silence this warning if (fp = fopen(fp_tmpbuf, ans)) { ^ ( ) edit.c:1329:17: note: use '==' to turn this assignment into an equality comparison if (fp = fopen(fp_tmpbuf, ans)) { ^ == edit.c:1380:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ edit.c:1382:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] block_shift_left() ^~~~~~~~~~~~~~~~ edit.c:1409:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ edit.c:1411:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] block_shift_right() ^~~~~~~~~~~~~~~~~ edit.c:1442:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ edit.c:1445:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] transform_to_color(char* line) ^~~~~~~~~~~~~~~~~~ edit.c:1455:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ edit.c:1458:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] block_color() ^~~~~~~~~~~ edit.c:1479:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ edit.c:1535:10: warning: implicit declaration of function 'igetkey' is invalid in C99 [-Wimplicit-function-declaration] ch = igetkey(); ^ edit.c:1550:25: warning: '&&' within '||' [-Wlogical-op-parentheses] else if (phone_mode && (pstr = phone_char(ch)) || ch < 0x100 && isprint2(ch)) ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ edit.c:1550:25: note: place parentheses around the '&&' expression to silence this warning else if (phone_mode && (pstr = phone_char(ch)) || ch < 0x100 && isprint2(ch)) ^ ( ) edit.c:1550:66: warning: '&&' within '||' [-Wlogical-op-parentheses] else if (phone_mode && (pstr = phone_char(ch)) || ch < 0x100 && isprint2(ch)) ~~ ~~~~~~~~~~~^~~~~~~~~~~~~~~ edit.c:1550:66: note: place parentheses around the '&&' expression to silence this warning else if (phone_mode && (pstr = phone_char(ch)) || ch < 0x100 && isprint2(ch)) ^ ( ) edit.c:1625:14: warning: implicit declaration of function 'ask' is invalid in C99 [-Wimplicit-function-declaration] ch = ask("xs (Y/N)? [N]: "); ^ edit.c:1625:19: warning: illegal character encoding in string literal [-Winvalid-source-encoding] ch = ask("xs (Y/N)? [N]: "); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ edit.c:1649:40: warning: illegal character encoding in string literal [-Winvalid-source-encoding] if (getdata(b_lines - 1, 0, "пJ G/e/I[`զr©][0wb]G", ans, 4, LCECHO)) ^~~~ ~~~~~~~~ ~~~~ ~~~~~~~~ ~~~~ ~~~~~~~~ ~~~~ ~~~~ edit.c:1666:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tmp = strchr(t, toupper(*(apos++)))) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ edit.c:1666:26: note: place parentheses around the assignment to silence this warning if (tmp = strchr(t, toupper(*(apos++)))) ^ ( ) edit.c:1666:26: note: use '==' to turn this assignment into an equality comparison if (tmp = strchr(t, toupper(*(apos++)))) ^ == edit.c:1674:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tmp = strchr(t, toupper(*(apos++)))) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ edit.c:1674:26: note: place parentheses around the assignment to silence this warning if (tmp = strchr(t, toupper(*(apos++)))) ^ ( ) edit.c:1674:26: note: use '==' to turn this assignment into an equality comparison if (tmp = strchr(t, toupper(*(apos++)))) ^ == edit.c:1700:23: warning: illegal character encoding in string literal [-Winvalid-source-encoding] ch = ask("Tws (Y/N)? [Y]: "); ^~~~ ~~~~ ~~~~ ~~~~~~~~ edit.c:1892:9: warning: implicit declaration of function 'refresh' is invalid in C99 [-Wimplicit-function-declaration] refresh(); ^ edit.c:1893:9: warning: implicit declaration of function 'reset_tty' is invalid in C99 [-Wimplicit-function-declaration] reset_tty(); ^ edit.c:1895:9: warning: implicit declaration of function 'restore_tty' is invalid in C99 [-Wimplicit-function-declaration] restore_tty(); ^ edit.c:2047:37: warning: illegal character encoding in string literal [-Winvalid-source-encoding] getdata(b_lines - 1, 0, "϶LեkJr(w]ťզr)", ans, 4); ^~~~ ~~~~~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~ ~~~~ edit.c:2197:11: warning: implicit declaration of function 'rscroll' is invalid in C99 [-Wimplicit-function-declaration] rscroll(); ^ edit.c:2212:11: warning: implicit declaration of function 'scroll' is invalid in C99 [-Wimplicit-function-declaration] scroll(); ^ 113 warnings generated. cc -O2 -march=i586 -I/usr/include -DVEDITOR -I/usr/include -c term.c term.c:50:16: warning: incompatible pointer types passing 'struct sgttyb *' to parameter of type 'struct sgttyb *' [-Wincompatible-pointer-types] if (gtty (1, &tty_state) < 0) ^~~~~~~~~~ /usr/include/sgtty.h:44:30: note: passing argument to parameter here int gtty(int, struct sgttyb *); ^ term.c:61:15: warning: incompatible pointer types passing 'struct sgttyb *' to parameter of type 'struct sgttyb *' [-Wincompatible-pointer-types] if (gtty(1, &tty_state) < 0) ^~~~~~~~~~ /usr/include/sgtty.h:44:30: note: passing argument to parameter here int gtty(int, struct sgttyb *); ^ term.c:66:38: error: invalid application of 'sizeof' to an incomplete type 'struct sgttyb' memcpy(&tty_new, &tty_state, sizeof(tty_new)); ^~~~~~~~~ term.c:38:8: note: forward declaration of 'struct sgttyb' struct sgttyb tty_state, tty_new; ^ term.c:76:10: error: incomplete definition of type 'struct sgttyb' tty_new.sg_flags |= RAW; ~~~~~~~^ term.c:38:8: note: forward declaration of 'struct sgttyb' struct sgttyb tty_state, tty_new; ^ term.c:76:23: error: use of undeclared identifier 'RAW' tty_new.sg_flags |= RAW; ^ term.c:81:10: error: incomplete definition of type 'struct sgttyb' tty_new.sg_flags &= ~(TANDEM | CBREAK | LCASE | ECHO | CRMOD); ~~~~~~~^ term.c:38:8: note: forward declaration of 'struct sgttyb' struct sgttyb tty_state, tty_new; ^ term.c:81:43: error: use of undeclared identifier 'LCASE' tty_new.sg_flags &= ~(TANDEM | CBREAK | LCASE | ECHO | CRMOD); ^ term.c:81:58: error: use of undeclared identifier 'CRMOD' tty_new.sg_flags &= ~(TANDEM | CBREAK | LCASE | ECHO | CRMOD); ^ term.c:84:11: warning: incompatible pointer types passing 'struct sgttyb *' to parameter of type 'struct sgttyb *' [-Wincompatible-pointer-types] stty(1, &tty_new); ^~~~~~~~ /usr/include/sgtty.h:45:30: note: passing argument to parameter here int stty(int, struct sgttyb *); ^ term.c:102:11: warning: incompatible pointer types passing 'struct sgttyb *' to parameter of type 'struct sgttyb *' [-Wincompatible-pointer-types] stty(1, &tty_state); ^~~~~~~~~~ /usr/include/sgtty.h:45:30: note: passing argument to parameter here int stty(int, struct sgttyb *); ^ term.c:107:11: warning: incompatible pointer types passing 'struct sgttyb *' to parameter of type 'struct sgttyb *' [-Wincompatible-pointer-types] stty(1, &tty_new); ^~~~~~~~ /usr/include/sgtty.h:45:30: note: passing argument to parameter here int stty(int, struct sgttyb *); ^ term.c:180:21: error: incomplete definition of type 'struct sgttyb' ospeed = tty_state.sg_ospeed; ~~~~~~~~~^ term.c:38:8: note: forward declaration of 'struct sgttyb' struct sgttyb tty_state, tty_new; ^ term.c:201:23: warning: incompatible pointer types passing 'void ()' to parameter of type 'int (*)(int)' [-Wincompatible-pointer-types] tputs(s, t_lines, outcf); ^~~~~ /usr/include/termcap.h:40:37: note: passing argument to parameter here int tputs(const char *, int, int (*)(int)); ^ term.c:209:17: warning: incompatible pointer types passing 'void ()' to parameter of type 'int (*)(int)' [-Wincompatible-pointer-types] tputs(s, 1, outcf); ^~~~~ /usr/include/termcap.h:40:37: note: passing argument to parameter here int tputs(const char *, int, int (*)(int)); ^ term.c:217:17: warning: incompatible pointer types passing 'void ()' to parameter of type 'int (*)(int)' [-Wincompatible-pointer-types] tputs(s, 1, outcf); ^~~~~ /usr/include/termcap.h:40:37: note: passing argument to parameter here int tputs(const char *, int, int (*)(int)); ^ term.c:225:17: warning: incompatible pointer types passing 'void ()' to parameter of type 'int (*)(int)' [-Wincompatible-pointer-types] tputs(s, 1, outcf); ^~~~~ /usr/include/termcap.h:40:37: note: passing argument to parameter here int tputs(const char *, int, int (*)(int)); ^ term.c:233:17: warning: incompatible pointer types passing 'void ()' to parameter of type 'int (*)(int)' [-Wincompatible-pointer-types] tputs(s, 1, outcf); ^~~~~ /usr/include/termcap.h:40:37: note: passing argument to parameter here int tputs(const char *, int, int (*)(int)); ^ term.c:263:42: warning: incompatible pointer types passing 'void ()' to parameter of type 'int (*)(int)' [-Wincompatible-pointer-types] tputs(tgoto(cm, destcol, destline), 0, ochar); ^~~~~ /usr/include/termcap.h:40:37: note: passing argument to parameter here int tputs(const char *, int, int (*)(int)); ^ term.c:38:15: error: tentative definition has type 'struct sgttyb' that is never completed struct sgttyb tty_state, tty_new; ^ term.c:38:8: note: forward declaration of 'struct sgttyb' struct sgttyb tty_state, tty_new; ^ term.c:38:26: error: tentative definition has type 'struct sgttyb' that is never completed struct sgttyb tty_state, tty_new; ^ term.c:38:8: note: forward declaration of 'struct sgttyb' struct sgttyb tty_state, tty_new; ^ 11 warnings and 9 errors generated. *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/editors/ve/work/ve-1.0 *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/editors/ve *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/editors/ve