diff options
Diffstat (limited to 'translate/grt/grt-c.ads')
-rw-r--r-- | translate/grt/grt-c.ads | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/translate/grt/grt-c.ads b/translate/grt/grt-c.ads index 33fb36cef..6750e7d03 100644 --- a/translate/grt/grt-c.ads +++ b/translate/grt/grt-c.ads @@ -33,4 +33,15 @@ package Grt.C is -- Type int. It is an alias on Integer for simplicity. subtype int is Integer; + + -- Low level memory management. + procedure Free (Addr : System.Address); + function Malloc (Size : size_t) return System.Address; + function Realloc (Ptr : System.Address; Size : size_t) + return System.Address; + +private + pragma Import (C, Free); + pragma Import (C, Malloc); + pragma Import (C, Realloc); end Grt.C; |