From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, WEIRD_PORT autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Victor Porton Newsgroups: comp.lang.ada Subject: Re: Help me to find an error Date: Mon, 04 Aug 2014 00:36:24 +0300 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: AnnUDmZwVERVUXyHDyOl5A.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@aioe.org User-Agent: KNode/4.12.4 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:21427 Date: 2014-08-04T00:36:24+03:00 List-Id: Victor Porton wrote: > I am writing open source Ada2012 bindings for Raptor library (it is about > semantic Web). > > My AUnit test case shows that there is an error. > > The error is that the `Write(Str, Out_String);` > (src/test/iostreams_test.adb:32) operator does not appends data to > Out_String object. The bounded string inside Out_String object remains > empty and this leads to an error. > > My dispatching procedure Do_Write_Bytes (defined in src/rdf-raptor- > iostream.adb:414) is not called an I don't understand why. > > Note that in src/rdf-raptor-iostream.ad:345 I create an object holding a > raptor_iostream* C handler and pass the access to the object itself to the > C library as user_data parameter, in order to make dispatching calls > afterward. The callbacks I pass to the C raptor_new_iostream_from_handler > function are just wrappers which call my object (reconstructed from the > user_data parameter) dispatching methods. > > Please help to understand the reason of the error. This will help not only > to Raptor itself but also for my bigger project which I am going implement > in Ada, X-former: http://freesoft.portonvictor.org/namespaces.xml - so > your help would help to essentially advance free software. > > My source is located at > https://github.com/vporton/redland-bindings/tree/ada2012/ada > > Please ask me any questions. I have corrected the error myself (it was a bug in documentation of a C library). The error what not quite what I described above. -- Victor Porton - http://portonvictor.org