Comments (21)
I use the containers and qdatabase for some internal projects. works great ! Thanks for your efforts
from qlibc.
Hi. I'm using qLibc because of qhashtbl_t is been very useful for me.
However, I don't know why when I nest a qhashtbl_t in a qhashtbl_t, Valgrind complains that there're blocks that are definitely lost.
I think I can't free none qhashtbl_t until the program ends, because when I put a qhashtbl_t in another one, not all the qhashtbl_t child is copied to qhashtbl_t parent. It's ok?
Regards.
from qlibc.
Sorry, I'm little fuzzy on what you said.
So do you mean the case when you put hashtbl objects into a parent hash table like tbl->put(tbl, keyname, another_tbl); In that case, tbl->free() won't release another_tbl, in this case, you need to iterate on the tbl to release another_tbl and finally release tbl itself.
Let me know if I misunderstand what you meant.
PS: if this is more of question or bug report, could you please open a separate issue for better handling? Thanks
from qlibc.
Thank you for your quick reply! That is exactly what I'd asked.
I use (according to 2.1.0 version):
qhashtbl_t *tbl = qhashtbl(1000);
qhashtbl_t *tbl_tipo = qhashtbl(1000);
I fill "tbl_tipo" with some values and finally I put "tbl_tipo" in "tbl":
tbl->put(tbl, key_string, tbl_tipo, sizeof(qhashtbl_t));
I'm going to test your solution. In case of a problem I'll write a bug report.
Regards.
from qlibc.
Well. I suppose I don't have to pay attention to those errors, because I need the parent hash (and his content) during the all runtime and Valgrind complains about them when the program ends.
from qlibc.
I see. Yes tbl->free() will only free the pointer to tbl_tipo. In order to make the valgrind happy,
you'll need to free it in this way:
LOOP subtbl := tbl->next()
subtbl->free()
ENDLOOP
tbl->free()
from qlibc.
Hello, how can i send a POST using qhttp_client?
I tried qhttp_client->cmd, but it doesn't work with web services.
Thanks in advance for your help
Luis JImenez
from qlibc.
Please cut an issue ticket for any questions and bug reports.
from qlibc.
I'm not familiar with Licenses.
- Can I use your code in my programs?
- If yes, can I push your code to remote repos (github, sourceforge, googlecode)?
- What if I use parts of your code in my files?
- What if I make changes in your files (probably devastating)?
I've already started using qlibc. I've got qunit.h file, and I'm trying first assertions.
from qlibc.
@mwlodarski, you can do all of them and whatever you want.
from qlibc.
@wolkykim If I change your source code (not big changes, for example add assertion, change display, or even write comments), what would you suggest
- to rename the original file and to write in the header comment about original
- to save the original file name and to add comments about changes
from qlibc.
@mwlodarski Hi,
Personally, when I use 3rd party code like opensource codes in my project, I usually try not to modify the opensource code itself to make it easier to be synchronized with its mainline. I change 3rd party code only when I think my code is beneficial to their project in general and contribute that code by sending pull requests.
(not big changes, for example add assertion, change display, or even write comments)
I think those examples that you mention are beneficial to qLibc project, those work is not something related to a specific purpose but enhancing qLibc itself in general.
Whenever you find better way to improve any part of qLibc codes (that includs comments, code polishing/formatting, better variable names, ...), I highly recommend to work with main line and send pull requests. That's the way we can keep improving qLibc together and why I've published it to public domain.
Did I answer your questions?
from qlibc.
Not exactly.
I've been thinking about application-specific changes, not improving the general project.
Changed comments & display would rather be in my language (non-english).
from qlibc.
qLibc is aiming to serve general library areas. Just wondering what would be the application specific changes in what part in your case? Can you tell me that? I'm only asking this question to understand if there's any part of code I can improve in qLibc because as I mentioned, there should be no need to implement user land specific codes inside of qlibc and qlibc should be able to stand alone as an underlying library without any modifications.
from qlibc.
by the way, giving a star to this project helps! :)
from qlibc.
Don't know yet. Just started with a single file and got one idea.
I simply prefer asking before than after.
from qlibc.
Looks like qlibc is now a Buildroot package:
https://github.com/maximeh/buildroot/tree/master/package/qlibc
http://git.buildroot.net/buildroot/commit/?id=48d4c312ae3d1aee402d9ad67aaae93267c92336
from qlibc.
Ohu~ it's been very quiet for long years and just in a night~ Thank you @kirbyfan64
from qlibc.
I am using the qlibc code in a couple commercial projects. I needed .ini file parsing in C++ and qlibc made it easy. Thanks.
from qlibc.
@ tkelleher Thanks a lot for sharing your experience. I'll make sure the INI file parser to be kept well in good shape for ya.
from qlibc.
Thank you.
On Fri, Nov 13, 2015 at 3:43 AM, wolkykim [email protected] wrote:
@ tkelleher Thanks a lot for sharing your experience. I'll make sure the
INI file parser to be kept well in good shape for ya.—
Reply to this email directly or view it on GitHub
#4 (comment).
Terry Kelleher
Newforce Solutions
[email protected]
607-351-6456
from qlibc.
Related Issues (20)
- Memory allocation fail then return NULL? HOT 1
- Documentation on installing/setting up
- possible bug in qvector_resize HOT 11
- qconfig_parse_file() input crashes HOT 4
- A problem (?) in qtreetbl HOT 3
- [Question] Windows supported? It seems that CMake doesn't work HOT 6
- Say hello
- qhex_decode segfault HOT 1
- qurl_decode segfault HOT 3
- qtreetbl has right lean child. Is qtreetbl not a llrb? HOT 2
- qvector_t: calling addlast after calling clear causes double free and SIGABRT HOT 5
- Hashtable with non-string keys HOT 1
- Should qlibc support meson and ninja build? HOT 1
- hostname or destname HOT 1
- error: too many arguments to function 'mkdir' HOT 1
- This library is not portable! HOT 2
- qhashmd5_file() reads zero bytes when the entire file is requested
- test_qtreetbl.c will segfault with gcc >= 10 HOT 4
- Error while loading shared libraries: ../lib/libqlibc.so.2: cannot open shared object file: No such file or directory HOT 13
- A potential bug about lock HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qlibc.