brentr / viless Goto Github PK
View Code? Open in Web Editor NEWTiny vi text editor clone with enough features to be truly useful
License: GNU General Public License v2.0
Tiny vi text editor clone with enough features to be truly useful
License: GNU General Public License v2.0
cc -DSTANDALONE -Wall -Os -s vi.c -o vi
vi.c:1432:48: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
sscanf(strchr(argp + i, '='), "tabstop=%d" + 7, &ch);
~~~~~~~~~~~~~^~~
vi.c:1432:48: note: use array indexing to silence this warning
sscanf(strchr(argp + i, '='), "tabstop=%d" + 7, &ch);
^
& [ ]
1 warning generated.
ld: warning: -s is obsolete
$ make
cc -DSTANDALONE -Wall -Os -s vi.c -o vi
vi.c:1029:7: error: call to undeclared function 'strchrnul'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
q = strchrnul(++p, '/');
^
vi.c:1029:7: note: did you mean 'strchr'?
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:76:7: note: 'strchr' declared here
char *strchr(const char *__s, int __c);
^
vi.c:1029:5: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
q = strchrnul(++p, '/');
^ ~~~~~~~~~~~~~~~~~~~
vi.c:1409:48: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
sscanf(strchr(argp + i, '='), "tabstop=%d" + 7, &ch);
~~~~~~~~~~~~~^~~
vi.c:1409:48: note: use array indexing to silence this warning
sscanf(strchr(argp + i, '='), "tabstop=%d" + 7, &ch);
^
& [ ]
vi.c:1687:7: error: call to undeclared function 'memrchr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
p = memrchr(text, '\n', p - text);
^
vi.c:1687:7: note: did you mean 'memchr'?
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:70:7: note: 'memchr' declared here
void *memchr(const void *__s, int __c, size_t __n);
^
vi.c:1687:5: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
p = memrchr(text, '\n', p - text);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings and 2 errors generated.
make: *** [vi] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.