mbucc / chtmlescape Goto Github PK
View Code? Open in Web Editor NEWHTML escape the characters '<', '>', '&', and '"'
License: ISC License
HTML escape the characters '<', '>', '&', and '"'
License: ISC License
stephenmathieson at MBP in ~/repos/github.com/mbucc/chtmlescape on master
$ make test
(cd regress ; make)
gcc -Wall -I./deps/tap.c -o test test.c deps/tap.c/tap.c ../htmlescape.c
test.c:76:28: warning: incompatible pointer types passing 'char *' to parameter of type 'char **'; take the address with & [-Wincompatible-pointer-types]
lives_ok( { htmlescape(0, result); }, "passing null src string should work." );
^~~~~~
&
./deps/tap.c/tap.h:64:44: note: expanded from macro 'lives_ok'
#define lives_ok(...) dies_ok_common(0, __VA_ARGS__)
^
./deps/tap.c/tap.h:94:13: note: expanded from macro 'dies_ok_common'
code \
^
./../htmlescape.h:1:39: note: passing argument to parameter 'out' here
int htmlescape(const char *in, char **out);
^
test.c:76:28: warning: incompatible pointer types passing 'char *' to parameter of type 'char **'; take the address with & [-Wincompatible-pointer-types]
lives_ok( { htmlescape(0, result); }, "passing null src string should work." );
^~~~~~
&
./deps/tap.c/tap.h:64:44: note: expanded from macro 'lives_ok'
#define lives_ok(...) dies_ok_common(0, __VA_ARGS__)
^
./deps/tap.c/tap.h:104:14: note: expanded from macro 'dies_ok_common'
{code} \
^
./../htmlescape.h:1:39: note: passing argument to parameter 'out' here
int htmlescape(const char *in, char **out);
^
2 warnings generated.
./test
1..6
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7 - passing null src string should work.
ok 8 - passing null dst pointer should work.
ok 9 - both args null should work
# Looks like you planned 6 tests but ran 9.
make[1]: *** [all] Error 255
make: *** [test] Error 2
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.