zzjson-devel Mailing List for zzjson, a lightweight JSON library
Brought to you by:
ivovp
You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Ivo <iv...@eu...> - 2009-08-07 21:57:27
|
Hi, On Wednesday 29 July 2009 11:19, Kjetil Oftedal wrote: > Comments in json-files are not supported by the official specification. > But a lot of parsers support them non the less. The attached patch allows > c-style comments to appear anywhere whitespace is allowed in the > json-file. Thanks for your contribution. I still haven't had the time to take a look at it and update the documentation, et cetera. It didn't help that sourceforge deleted wikispaces either. Anyway, hopefully I'll find some time later this weekend. Regards, --Ivo |
From: Kjetil O. <of...@gm...> - 2009-07-29 09:19:48
|
Comments in json-files are not supported by the official specification. But a lot of parsers support them non the less. The attached patch allows c-style comments to appear anywhere whitespace is allowed in the json-file. Note: c-style comments require a lookahead character. Pushing back two characters to the input is not supported on all systems. So the patch only pushes back one character when it encounters a rouge '/', this doesn't really mather as the transisition whitespace -> '/' is not allowed anyway, and will generate a sufficient error even if the character after '/' is missing |
From: Ivo <iv...@eu...> - 2008-08-07 19:52:19
|
Hi, On Thursday 07 August 2008 20:21, Cornelis Swanepoel wrote: > The current revision builds the shared and static libraries without > problem. Great! I'll schedule a 1.0.1 release for ehm... very soon. Thanks for helping out and testing my changes. --Ivo |
From: Cornelis S. <cr...@cy...> - 2008-08-07 18:21:15
|
hi there Ivo, The current revision builds the shared and static libraries without problem. Regards Cornelis |
From: Ivo <iv...@eu...> - 2008-08-07 16:54:54
|
Hi, On Thursday 07 August 2008 17:29, Cornelis Swanepoel wrote: > Sorry about my belated reply. > > Today when I went to SF to subscribe to this list it turned out that I > was already subscribed. > > I don't know why I hadn't been receiving any posts though as my > subscriber config showed Mail delivery as enabled and on digest mode. > There was an option set to not send messages which did not match any > of the topic filters which is now set to false. No problem. It seems SF is having some difficulties with moving stuff from server to server. The statistics for example are disabled/broken for months now. > Re OS X > The output of uname -s is > Darwin > > The changes I made are listed below (not including removing -a from cp > in install) > [snip] I have incorporated your changes. Current SVN trunk should build now on Mac OS X without any problems. svn co https://zzjson.svn.sourceforge.net/svnroot/zzjson/trunk zzjson Please let me know if something is not working. Thanks, --Ivo |
From: Cornelis S. <cr...@cy...> - 2008-08-07 15:29:51
|
hi there Ivo, Sorry about my belated reply. Today when I went to SF to subscribe to this list it turned out that I was already subscribed. I don't know why I hadn't been receiving any posts though as my subscriber config showed Mail delivery as enabled and on digest mode. There was an option set to not send messages which did not match any of the topic filters which is now set to false. Re OS X The output of uname -s is Darwin The changes I made are listed below (not including removing -a from cp in install) rools@roolsMBP:~/Workbench/zzjson-mac $svn diff config.sh Index: config.sh =================================================================== --- config.sh (revision 56) +++ config.sh (working copy) @@ -8,8 +8,8 @@ LIBSRC=`eval echo src/zzjson_{parse,print,query,create,free}.c` LIBBASE=libzzjson LIBSTATICSUF=.a -LIBSHAREDSUFV=$VERSION.so -LIBSHAREDSUF=.so +LIBSHAREDSUFV=$VERSION.dylib +LIBSHAREDSUF=.dylib EXESUF= OBJSUF=.o @@ -18,7 +18,7 @@ DEFINES="-D_ISOC99_SOURCE" AR=${AR:-ar} NOLINK="-c" -SHARED="-shared" +SHARED="-dynamiclib" STRIP="strip -s" INCLUDES="-Iinclude" OPTMIN="-O0" =================================================================== Hopefully I will now receive mesages posted to the list. Thanks again for the library. Kind regards Cornelis On 7 Aug 2008, at 10:56, Ivo wrote: > Hi, > > You recently sent an e-mail to the zzjson-devel mailinglist. I > wasn't aware > you weren't subscribed, so I replied on the list. As you didn't > reply, I > assume you have not read it, so I'm forwarding my reply to you > personally. > It would be nice if you could help out getting it to work correctly > on OS > X. In addition to the e-mail below, could you provide the output of > uname -s on OS X? > > Thanks, > --Ivo > > ---------- Forwarded Message ---------- > > Subject: Re: [Zzjson-devel] Build advice for Mac OS X > Date: Friday 01 August 2008 00:23 > From: Ivo <iv...@eu...> > To: zzj...@li... > > Hi, > > Thanks for your feedback! > > On Thursday 31 July 2008 12:13, Cornelis Swanepoel wrote: >> I am a recent convert from Linux to OS X and was initially unable to >> build a shared library of zzjson. >> After some digging I managed to find a solution and provide it here >> in >> case another user finds themselves in a similar position. >> >> I am on an Intel Mac with OS X 10.5.4 which has gcc 4.0.1 and when >> trying to build the shared library my output was: >> [snip] >> cc -shared -o lib/libzzjson.1.0.0.so src/zzjson_parse.o src/ >> zzjson_print.o src/zzjson_query.o src/zzjson_create.o src/ >> zzjson_free.o >> Undefined symbols: >> "_main", referenced from: >> start in crt1.10.5.o >> ld: symbol(s) not found >> collect2: ld returned 1 exit status >> >> The solution is to edit config.sh and change the SHARED variable to - >> dynamiclib instead of -shared. >> In addition the standard shared library extention on OS X is .dylib >> and not .so and chaning the LIBSHAREDSUFV and LIBSHAREDSUF variables >> will allow for conformity. > > Could you send a patch to the list of what you changed exactly? I > can figure > it out from what you wrote here, but it's probably best to see it > done. I > would prefer a patch against current SVN and created with 'svn diff' > from > the root of trunk, but any patch will do (i.e. zzjson-1.0.0- > yourversion > diffed against zzjson-1.0.0 with diff). > > After that, I'll find a clean way to incorporate the changes and > make it > build out-of-the-box on Intel/MacOS X. > >> Finally, the BSD cp command on OS X does not support the -a option >> which means you will need to alter install.sh. >> Just removing -a worked for me. > > I don't know what I was thinking when I added the -a option, as > there are no > subdirectories in include/ and lib/ and preserving the date is pretty > useless. Also, it preserves the owner which is not what you want. I > will > remove the -a option completely. > > Regards, > --Ivo > > ------------------------------------------------------- |
From: Ivo <iv...@eu...> - 2008-07-31 22:26:05
|
Hi, Thanks for your feedback! On Thursday 31 July 2008 12:13, Cornelis Swanepoel wrote: > I am a recent convert from Linux to OS X and was initially unable to > build a shared library of zzjson. > After some digging I managed to find a solution and provide it here in > case another user finds themselves in a similar position. > > I am on an Intel Mac with OS X 10.5.4 which has gcc 4.0.1 and when > trying to build the shared library my output was: >[snip] > cc -shared -o lib/libzzjson.1.0.0.so src/zzjson_parse.o src/ > zzjson_print.o src/zzjson_query.o src/zzjson_create.o src/zzjson_free.o > Undefined symbols: > "_main", referenced from: > start in crt1.10.5.o > ld: symbol(s) not found > collect2: ld returned 1 exit status > > The solution is to edit config.sh and change the SHARED variable to - > dynamiclib instead of -shared. > In addition the standard shared library extention on OS X is .dylib > and not .so and chaning the LIBSHAREDSUFV and LIBSHAREDSUF variables > will allow for conformity. Could you send a patch to the list of what you changed exactly? I can figure it out from what you wrote here, but it's probably best to see it done. I would prefer a patch against current SVN and created with 'svn diff' from the root of trunk, but any patch will do (i.e. zzjson-1.0.0-yourversion diffed against zzjson-1.0.0 with diff). After that, I'll find a clean way to incorporate the changes and make it build out-of-the-box on Intel/MacOS X. > Finally, the BSD cp command on OS X does not support the -a option > which means you will need to alter install.sh. > Just removing -a worked for me. I don't know what I was thinking when I added the -a option, as there are no subdirectories in include/ and lib/ and preserving the date is pretty useless. Also, it preserves the owner which is not what you want. I will remove the -a option completely. Regards, --Ivo |
From: Cornelis S. <cr...@cy...> - 2008-07-31 10:13:15
|
hi there, I am a recent convert from Linux to OS X and was initially unable to build a shared library of zzjson. After some digging I managed to find a solution and provide it here in case another user finds themselves in a similar position. I am on an Intel Mac with OS X 10.5.4 which has gcc 4.0.1 and when trying to build the shared library my output was: rools@roolsMBP:~/Software/zzjson-1.0.0 $./buildshared.sh zzjson, version 1.0.0 gnu compiler *** shared library, optimized rm -f libzzjson.so libzzjson.1.0.0.so cc -c -o src/zzjson_parse.o -Iinclude -O3 -W -Wall -D_ISOC99_SOURCE src/zzjson_parse.c cc -c -o src/zzjson_print.o -Iinclude -O3 -W -Wall -D_ISOC99_SOURCE src/zzjson_print.c cc -c -o src/zzjson_query.o -Iinclude -O3 -W -Wall -D_ISOC99_SOURCE src/zzjson_query.c cc -c -o src/zzjson_create.o -Iinclude -O3 -W -Wall -D_ISOC99_SOURCE src/zzjson_create.c cc -c -o src/zzjson_free.o -Iinclude -O3 -W -Wall -D_ISOC99_SOURCE src/ zzjson_free.c cc -shared -o lib/libzzjson.1.0.0.so src/zzjson_parse.o src/ zzjson_print.o src/zzjson_query.o src/zzjson_create.o src/zzjson_free.o Undefined symbols: "_main", referenced from: start in crt1.10.5.o ld: symbol(s) not found collect2: ld returned 1 exit status The solution is to edit config.sh and change the SHARED variable to - dynamiclib instead of -shared. In addition the standard shared library extention on OS X is .dylib and not .so and chaning the LIBSHAREDSUFV and LIBSHAREDSUF variables will allow for conformity. Finally, the BSD cp command on OS X does not support the -a option which means you will need to alter install.sh. Just removing -a worked for me. Thanks to ivovp and all for this very handy library. Rools |