Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #165 #243

Merged
merged 3 commits into from Aug 9, 2016
Merged

Fix #165 #243

merged 3 commits into from Aug 9, 2016

Conversation

jobol
Copy link
Contributor

@jobol jobol commented Jul 27, 2016

No description provided.

The function fstat isn't declared without this include
on debian strect/sid and Fedora-23

Change-Id: I660a32ff173dcba04674aed51ed855b4fa55ac67
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
This new method allows to also
get the length of the generated string.

Fix json-c#165

Change-Id: Iea91404027f143ca3d29a4c58d7c07ae53556110
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
@hawicz
Copy link
Member

hawicz commented Jul 30, 2016

I'm not particularly thrilled about the name, but I can't think of a better one, so ok I'll merge this.

However, do you have any tests for this? Adding a new feature without anything in the tests that actually checks that it works isn't so great.

@jobol
Copy link
Contributor Author

jobol commented Aug 1, 2016

Maybe you prefer 'json_object_to_json_string_len' ?
I can switch.
However about test I'll do it quickly.

The test is implied in test1.

The idea is to check that the returned lengths and strings
are identical to what is expected to return the already
tested function 'json_object_to_json_string_ext'.

Signed-off-by: José Bollo <jose.bollo@iot.bzh>
@jobol
Copy link
Contributor Author

jobol commented Aug 1, 2016

done in a way that may hurt but ...

@hawicz hawicz merged commit 1fceb22 into json-c:master Aug 9, 2016
@jobol jobol deleted the issue-165 branch August 10, 2016 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants