File: lwobjects.adb

package info (click to toggle)
libgtkada2 2.8.1-6lenny3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 13,496 kB
  • ctags: 3,886
  • sloc: ada: 103,189; ansic: 45,411; perl: 5,500; sh: 2,812; makefile: 1,169; xml: 19
file content (29 lines) | stat: -rw-r--r-- 804 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

package body Lwobjects is

   function Lw_Is_Lwobject (File : String) return Boolean
   is
      function Internal (File : String) return Integer;
      pragma Import (C, Internal, "lw_is_lwobject");
   begin
      return Boolean'Val (Internal (File & ASCII.Nul));
   end Lw_Is_Lwobject;

   function Lw_Object_Read (File : String) return Lwobject
   is
      function Internal (File : String) return Lwobject;
      pragma Import (C, Internal, "lw_object_read");
   begin
      return Internal (File & ASCII.Nul);
   end Lw_Object_Read;

   procedure Lw_Object_Free (Object : in out Lwobject)
   is
      procedure Internal (Object : Lwobject);
      pragma Import (C, Internal, "lw_object_free");
   begin
      Internal (Object);
      Object := Null_Lwobject;
   end Lw_Object_Free;

end Lwobjects;