comp.lang.ada
 help / color / mirror / Atom feed
From: rogermc@iinet.net.au
Subject: Re: Interface To C Struct That Includes An Array
Date: Tue, 18 Sep 2018 14:28:50 -0700 (PDT)
Date: 2018-09-18T14:28:50-07:00	[thread overview]
Message-ID: <848ac367-14db-42e2-ad1a-913f90f541cc@googlegroups.com> (raw)
In-Reply-To: <03101a27-2c87-4f39-bfbd-21007345cee9@googlegroups.com>

On Wednesday, 19 September 2018 04:55:35 UTC+10, rakusu...@fastmail.jp  wrote:
> вторник, 18 сентября 2018 г., 14:54:37 UTC+3 пользователь rog...@iinet.net.au написал:
> > I agree but I don't know how to avoid it.
> > Would pragma Convention (C, API_String) be OK?
> > Also, I'm not sure that API_String is ever actually copied as all the interfacing is by pointers?
> As ARM12 says, a records always passed to a C functions by reference in all modes other than an “in”. So if it does not a desirable behaviour, there are no reasons for this pragma and “pragma Convention (C, API_String)” would be clear and enough.
> 
> Btw, it is not helpful for your problem, sorry. There are nothing suspicious for me neither in your code, nor the Assimp code: https://code.woboq.org/qt5/qt3d/src/3rdparty/assimp/code/MaterialSystem.cpp.html#aiGetMaterialString Looks like the \x0B\x00\x00\x00phoenix.pcx\x00 sequence is the filename actually stored in aiMaterial. So, as you decided before, it would be better to look for input data.

Thanks for your advice.
It definitely looks like my input data structure is incorrect so I'm working on fixing that up now.


      reply	other threads:[~2018-09-18 21:28 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-17 12:01 Interface To C Struct That Includes An Array rogermc
2018-09-17 12:11 ` rogermc
2018-09-17 15:25   ` Lucretia
2018-09-17 22:35     ` Roger
2018-09-18  0:45       ` Roger
2018-09-18  1:19         ` rogermc
2018-09-17 12:26 ` gautier_niouzes
2018-09-17 13:28   ` Roger
2018-09-17 13:55     ` gautier_niouzes
2018-09-17 14:03       ` Roger
2018-09-17 15:24 ` Lucretia
2018-09-17 23:06   ` Roger
2018-09-17 16:29 ` Jeffrey R. Carter
2018-09-17 22:57   ` Roger
2018-09-18  0:53   ` Roger
2018-09-18  4:18     ` Roger
2018-09-18  8:19 ` rakusu_klein
2018-09-18 11:54   ` rogermc
2018-09-18 12:21     ` Egil H H
2018-09-18 12:24       ` rogermc
2018-09-18 18:55     ` rakusu_klein
2018-09-18 21:28       ` rogermc [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox