Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,8 +0,0 @@
|
|||
with Interfaces.C; use Interfaces.C;
|
||||
with Interfaces.C.Strings; use Interfaces.C.Strings;
|
||||
|
||||
package Exported is
|
||||
function Query (Data : chars_ptr; Size : access size_t)
|
||||
return int;
|
||||
pragma Export (C, Query, "Query");
|
||||
end Exported;
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
package body Exported is
|
||||
function Query (Data : chars_ptr; Size : access size_t)
|
||||
return int is
|
||||
Result : char_array := "Here am I";
|
||||
begin
|
||||
if Size.all < Result'Length then
|
||||
return 0;
|
||||
else
|
||||
Update (Data, 0, Result);
|
||||
Size.all := Result'Length;
|
||||
return 1;
|
||||
end if;
|
||||
end Query;
|
||||
end Exported;
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
gcc -c main.c
|
||||
gnatmake -c exported.adb
|
||||
gnatbind -n exported.ali
|
||||
gnatlink exported.ali main.o -o main
|
||||
Loading…
Add table
Add a link
Reference in a new issue