to-miz / tm Goto Github PK
View Code? Open in Web Editor NEWSingle-file libraries for C/C++ in public domain
Single-file libraries for C/C++ in public domain
With JSON_READER_JSON5
(since that is supposed to enable both kinds of comments) the parser produces an error with /* */
and crashes with //
. I have attached a test case to demonstrate these behaviors.
Great project. There is still a warning if TM_JSON_IMPLEMENTATION
is defined (both GCC and Clang):
g++ -std=c++11 -Wall -Wpedantic -O2 -o tmj_example tmj_example.cpp
In file included from tmj_example.cpp:2:0:
tm_json.h:819:16: warning: ‘tm_bool stringEqualsIgnoreCaseNull(const char*, size_t, const char*)’ defined but not used [-Wunused-function]
static tm_bool stringEqualsIgnoreCaseNull(const char* a, size_t aSize, const char* b) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
I have attached the start of an example project. I did get things working before, but since the update my code stopped working, and absent documentation I don't feel like going all Indiana Jones on it in my present state. Many thanks for even small insight into how the library works.
EDIT: It was my code, not yours. The library still works the same way. Still, it would be nice to have some information about (for example) how to access a yet-unknown object as key/value pairs.
When compiling with gcc -Wall -Wpedantic in C++11 mode I get this warning. I would suggest a block comment instead.
tm_json.h:305:5: warning: multi-line comment [-Wcomment]
// "property": "this is a multiline \
^
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.