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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!85.12.16.70.MISMATCH!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.fr7!futter-mich.highwinds-media.com!news.highwinds-media.com!fx10.am4.POSTED!not-for-mail From: Felix Krause Newsgroups: comp.lang.ada Message-ID: <2018051218364783124-contact@flyx.org> References: <7bc351f9-3373-4d48-95c3-c081cb5506f3@googlegroups.com> <2018042711034634047-contact@flyx.org> <107d577c-e872-4259-84c4-e68a63ce6b0e@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: Ada aunit examples User-Agent: Unison/2.2 X-Complaints-To: abuse@eweka.nl NNTP-Posting-Date: Sat, 12 May 2018 16:36:47 UTC Organization: Eweka Internet Services Date: Sat, 12 May 2018 18:36:47 +0200 X-Received-Bytes: 1232 X-Received-Body-CRC: 4026208557 Xref: reader02.eternal-september.org comp.lang.ada:52320 Date: 2018-05-12T18:36:47+02:00 List-Id: On 2018-05-08 17:09:28 +0000, Michael Hardeman said: > > Hey Felix, I'm in the process of restructuring my project to add AUnit, > based on your example, and I'm confused by this line. > I in your code, what does this line do? > > https://github.com/yaml/AdaYaml/blob/develop/test/src/yaml-lexer-buffering_test.adb#L28 > Nothing to worry about. AdaYaml uses reference-counted strings which are allocated from a custom memory pool (which adds the reference count), and this line initialises that pool. -- Regards, Felix Krause