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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d71460587da14d5b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-08-11 17:00:28 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed.stueberl.de!newspeer1-gui.server.ntli.net!ntli.net!newsfep4-glfd.server.ntli.net.POSTED!53ab2750!not-for-mail From: chris User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5a) Gecko/20030718 X-Accept-Language: en, en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Importing C structs? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 12 Aug 2003 01:02:40 +0100 NNTP-Posting-Host: 81.98.236.164 X-Complaints-To: abuse@ntlworld.com X-Trace: newsfep4-glfd.server.ntli.net 1060646427 81.98.236.164 (Tue, 12 Aug 2003 01:00:27 BST) NNTP-Posting-Date: Tue, 12 Aug 2003 01:00:27 BST Organization: ntl Cablemodem News Service Xref: archiver1.google.com comp.lang.ada:41329 Date: 2003-08-12T01:02:40+01:00 List-Id: > WRT to C structures and portability, what you may find > is that all your effort will be trashed on another > platform where they have defined some members slightly > differently (different sizes, pad members, different > alignment rules and filling/packing, different order > etc.) So, if this is a concern, a wrapper is much > safer in the portability sense. Thanks for the advice. It is in my case. Some things can be different sizes and have different forms depending on the environment and how you compile it. A wrapper looks like the best option. Chris