On 3/23/19 6:37 AM, Jarno Mäkipää wrote: > Has beginnings of reading file, saving file, hjkl movement, insert, ex > (only w, wq, q!), search with /, some other normal mode actions (dd, w, b, > e), some utf8 support
Compile vi....toys/pending/vi.c: In function 'run_vi_cmd': toys/pending/vi.c:409:3: error: 'for' loop initial declarations are only allowed in C99 mode for(int i=0;i<7;i++) { ^ toys/pending/vi.c:409:3: note: use option -std=c99 or -std=gnu99 to compile your code toys/pending/vi.c: In function 'draw_page': toys/pending/vi.c:657:7: error: 'for' loop initial declarations are only allowed in C99 mode for(int p = 0; p < scr_buf->line->str_len;y++) { ^ toys/pending/vi.c: In function 'utf8_len': toys/pending/vi.c:854:3: error: 'for' loop initial declarations are only allowed in C99 mode for(int i = len-1;i>0;i--) { ^ lib/lib.c: In function 'parse_formats': lib/lib.c:1563:3: error: implicit declaration of function 'check_tm' [-Werror=implicit-function-declaration] check_tm(&tm); ^ lib/lib.c: At top level: lib/lib.c:1482:12: warning: 'parse_formats' defined but not used [-Wunused-function] static int parse_formats(char *str, time_t *t, int *nano) ^ cc1: some warnings being treated as errors make: *** [vi] Error 1 Rob _______________________________________________ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net