File: animals_interfaces.ads

package info (click to toggle)
gprbuild 2014dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 9,564 kB
  • ctags: 195
  • sloc: ada: 110,384; xml: 3,632; sh: 2,810; makefile: 363; ansic: 204; cpp: 89; fortran: 62; asm: 27
file content (10 lines) | stat: -rw-r--r-- 423 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
with Interfaces.C.Strings; use Interfaces.C.Strings;
package Animals_Interfaces is
   type Carnivore is limited interface;
   function Number_Of_Teeth (X : Carnivore) return Natural is abstract;
   pragma Convention (CPP, Number_Of_Teeth); --  Required by AI-430

   type Domestic is limited interface;
   procedure Set_Owner (X : in out Domestic; Name : Chars_Ptr) is abstract;
   pragma Convention (CPP, Set_Owner);
end;