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,463c5796782db6d8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-10 07:09:15 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: mheaney@on2.com (Matthew Heaney) Newsgroups: comp.lang.ada Subject: Re: [Spark] Arrays of Strings Date: 10 Apr 2003 07:09:14 -0700 Organization: http://groups.google.com/ Message-ID: <1ec946d1.0304100609.52b0fac0@posting.google.com> References: <1ec946d1.0304090942.3106b4e4@posting.google.com> NNTP-Posting-Host: 66.162.65.162 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1049983754 10002 127.0.0.1 (10 Apr 2003 14:09:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 10 Apr 2003 14:09:14 GMT Xref: archiver1.google.com comp.lang.ada:36050 Date: 2003-04-10T14:09:14+00:00 List-Id: Lutz Donnerhacke wrote in message news:... > * Matthew Heaney wrote: > > > If you want to use the char* type in Interfaces.C.Strings, then your > > problem reduces to: > > > > type chars_ptr_access is access constant C.Strings.chars_ptr; > > for chars_ptr_access'Storage_Size use 0; > > pragma Convention (C, chars_ptr_access); > > Ack. And Spark does not allow access types. So my question is still open. Doesn't Spark have a #hide clause, to turn off Spark checking? After all, you're calling a C library function, so what difference does Spark make? You could simply pass type System.Address. execv(filename, argv_array (argv_array'First)'Address); Or you could use an access parameter: execv(filename, argv_array (argv_array'First)'Access);