text stringlengths 0 234 |
|---|
"-library-version " & |
"-compiler-version " & |
"h ? -help") is -- Accepts '-a', '-ad', or '-b argument' |
when ASCII.NUL => exit; |
when 'h' | '?' => |
Help; |
return; |
when '-' => |
if Full_Switch = "-binding-version" then |
Put_Line (ZMQ.Image (ZMQ.Binding_Version)); |
elsif Full_Switch = "-library-version" then |
Put_Line (ZMQ.Image (ZMQ.Library_Version)); |
elsif Full_Switch = "-compiler-version" then |
Put_Line (Standard'Compiler_Version); |
elsif Full_Switch = "-ada-library-version" then |
Put_Line ($version); |
elsif Full_Switch = "-help" then |
Help; |
return; |
end if; |
when others => |
raise Program_Error; -- cannot occur! |
end case; |
end loop; |
loop |
declare |
S : constant String := Get_Argument (Do_Expansion => True); |
begin |
exit when S'Length = 0; |
Put_Line ("Got " & S); |
Function Definition: function uuid_is_null |
Function Body: (arg1 : access unsigned_char) return int; -- uuid.h:84:5 |
pragma Import (C, uuid_is_null, "uuid_is_null"); |
function uuid_parse |
(arg1 : access Character; |
arg2 : access unsigned_char) return int; -- uuid.h:87:5 |
pragma Import (C, uuid_parse, "uuid_parse"); |
procedure uuid_unparse |
(arg1 : access unsigned_char; |
arg2 : access Character); -- uuid.h:90:6 |
pragma Import (C, uuid_unparse, "uuid_unparse"); |
procedure uuid_unparse_lower |
(arg1 : access unsigned_char; |
arg2 : access Character); -- uuid.h:91:6 |
pragma Import (C, uuid_unparse_lower, "uuid_unparse_lower"); |
procedure uuid_unparse_upper |
(arg1 : access unsigned_char; |
arg2 : access Character); -- uuid.h:92:6 |
pragma Import (C, uuid_unparse_upper, "uuid_unparse_upper"); |
function uuid_time |
(arg1 : access unsigned_char; |
arg2 : access bits_time_h.timeval) return time_h.time_t; -- uuid.h:95 |
pragma Import (C, uuid_time, "uuid_time"); |
function uuid_type |
(arg1 : access unsigned_char) return int; -- uuid.h:96:5 |
pragma Import (C, uuid_type, "uuid_type"); |
function uuid_variant |
(arg1 : access unsigned_char) return int; -- uuid.h:97:5 |
pragma Import (C, uuid_variant, "uuid_variant"); |
end uuid_uuid_h; |
----------------------------------------------------- |
procedure Clear (this : in out UUID) is |
begin |
uuid_uuid_h.uuid_clear(this.data(this.data'First)'Unrestricted_Access); |
end Clear; |
function "<" (l, r : UUID) return Boolean is |
begin |
return uuid_uuid_h.uuid_compare (l.data (l.data'first)'Unrestricted_Access, |
r.data (r.data'first)'Unrestricted_Access) < 0; |
end "<"; |
function ">" (l, r : UUID) return Boolean is |
begin |
return uuid_uuid_h.uuid_compare (l.data (l.data'first)'Unrestricted_Access, |
r.data(r.data'first)'Unrestricted_Access) > 0; |
end ">"; |
function "=" (l, r : UUID) return Boolean is |
begin |
return uuid_uuid_h.uuid_compare (l.data (l.data'first)'Unrestricted_Access, |
r.data (r.data'first)'Unrestricted_Access) = 0; |
end "="; |
function Generate return UUID is |
begin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.