Skip Menu |

This queue is for tickets about the JSON-DWIW CPAN distribution.

Report information
The Basics
Id: 32092
Status: open
Priority: 0/
Queue: JSON-DWIW

People
Owner: dowens [...] cpan.org
Requestors: taro-nishino [...] sam.hi-ho.ne.jp
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.21
Fixed in: (no value)



Subject: a functionlike macro which has an ellipsis as only formal parameter
Dear Don, As of 0.20, this distribution contains evt.c. evt.c uses a functionlike macro which has an ellipsis as only formal parameter. Thus, a compiler which supports C99 can compile it. Unfortunately, my compiler, MSVC7.0(Microsoft(R) 32-bit C/C++ Standard Compiler Version 13.00.9466 for 80x86), doesn't support C99. Best regards, Taro Nishino
From: dowens [...] cpan.org
Hi Taro, I've built a new version, available at http://perl.regexguy.com/dist/JSON-DWIW-0.22.tar.gz Can you please try that version and let me know if it works? Thanks! Don On Fri Jan 04 23:40:43 2008, taro-nishino@sam.hi-ho.ne.jp wrote: Show quoted text
> Dear Don, > > As of 0.20, this distribution contains evt.c. > evt.c uses a functionlike macro which has an ellipsis as only formal > parameter. > Thus, a compiler which supports C99 can compile it. > Unfortunately, my compiler, MSVC7.0(Microsoft(R) 32-bit C/C++ Standard > Compiler Version 13.00.9466 for 80x86), doesn't support C99. > > Best regards, > Taro Nishino
From: taro-nishino [...] sam.hi-ho.ne.jp
Hi Don, I tried to compile your new version 0.22. Unfortunately the compilation failed, and the error message was as follows: jsonevt.c libjsonevt\jsonevt.c(311) : warning C4013: function 'vsnprintf' not defined -------------------------------------------------------------------- I replaced vsnprintf with _vsnprintf, and recompiled it. The compilation itself was done well. However, the test failed. the result was as follows: C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "- e" "test_harness(0, 'bl ib\lib', 'blib\arch')" t/*.t t/00use....................ok t/01encode.................ok t/02decode.................ok t/03parse_constants........ok t/04extras.................ok t/05exceptions.............ok t/06big_numbers............ok t/07magic..................ok t/08pvxv...................ok t/09bool...................ok t/10unicode................ok t/11parse_file.............1/24 Argument "0e+" isn't numeric in subroutine entry at C:\temp\JSON-DWIW-0.22\blib\lib/JSON/DWIW.pm line 532. t/11parse_file.............ok t/12error.................. Dubious, test returned 5 (wstat 1280, 0x500) Failed 26/26 subtests t/13stats..................ok t/14nonoo..................ok t/15bom....................ok t/deser01..................ok t/deser02_constants........ok t/deser03_extras........... Dubious, test returned 5 (wstat 1280, 0x500) Failed 2/17 subtests t/deser04_exceptions....... Dubious, test returned 5 (wstat 1280, 0x500) Failed 1/1 subtests t/deser05_big_numbers......ok t/deser06_bool.............ok t/deser07_error............ Dubious, test returned 5 (wstat 1280, 0x500) Failed 19/19 subtests t/deser08_stats............ok t/deser09_edge............. Dubious, test returned 5 (wstat 1280, 0x500) Failed 10/10 subtests t/deser10_bom.............. Dubious, test returned 5 (wstat 1280, 0x500) Failed 4/5 subtests t/deser11_file.............ok t/deser12_unicode.......... Dubious, test returned 5 (wstat 1280, 0x500) Failed 1/2 subtests Test Summary Report ------------------- t/12error.t (Wstat: 1280 Tests: 0 Failed: 0) Non-zero exit status: 5 Parse errors: Bad plan. You planned 26 tests but ran 0. t/deser03_extras.t (Wstat: 1280 Tests: 15 Failed: 0) Non-zero exit status: 5 Parse errors: Bad plan. You planned 17 tests but ran 15. t/deser04_exceptions.t (Wstat: 1280 Tests: 0 Failed: 0) Non-zero exit status: 5 Parse errors: Bad plan. You planned 1 tests but ran 0. t/deser07_error.t (Wstat: 1280 Tests: 0 Failed: 0) Non-zero exit status: 5 Parse errors: Bad plan. You planned 19 tests but ran 0. t/deser09_edge.t (Wstat: 1280 Tests: 0 Failed: 0) Non-zero exit status: 5 Parse errors: Bad plan. You planned 10 tests but ran 0. t/deser10_bom.t (Wstat: 1280 Tests: 1 Failed: 0) Non-zero exit status: 5 Parse errors: Bad plan. You planned 5 tests but ran 1. t/deser12_unicode.t (Wstat: 1280 Tests: 1 Failed: 0) Non-zero exit status: 5 Parse errors: Bad plan. You planned 2 tests but ran 1. Files=28, Tests=211, 27 wallclock secs ( 0.22 usr + 0.09 sys = 0.31 CPU) Result: FAIL Failed 7/28 test programs. 0/211 subtests failed. NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0x5' Stop. --------------------------------------------------------------------- Incidentally, I saw not a few of the segment fault dialogs. Thanks, Taro Nishino