content
stringlengths
23
1.05M
package Discr37 is subtype Index is Integer range 0 .. 100; type Root; type Frame_Ptr is access all Root'Class; type Arr is array (Index range <>) of Frame_Ptr; type Root (Level : Index) is tagged record S : Arr (0 .. Level); end record; type Derived (Level : Index) is new Root (Level) with null ...
-- AoC 2020, Day 4 with Ada.Text_IO; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Ada.Characters.Handling; use Ada.Characters.Handling; package body Day is package TIO renames Ada.Text_IO; type Key_Array is array(1..7) of String(1..3); required_keys : constant Key_Array := Key_Array'("byr", "iyr", "eyr",...
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package JWS.RS256 is -- With this package to enable RS256 support function Public_JWK (Raw_Key : Ada.Streams.Stream_Element...
with Ada.Text_IO; use Ada; procedure hello is begin Text_IO.Put_Line("hello world"); end hello;
with Ada.Text_Io; use Ada.Text_Io; with datos; use datos; with eliminar_repetidos, escribir_lista; procedure prueba_eliminar_repetidos is V1, V2: Lista_Enteros; begin put_line("Primera prueba: eliminar_repetidos(1,2,3,4,5,6,7,8,9,10)"); V1.Numeros := (1,2,3,4,5,6,7,8,9,10, OTHERS => 0); V1.Cont := 10; ...
----------------------------------------------------------------------- -- servlet-sessions -- Servlet Sessions -- Copyright (C) 2010, 2011, 2018, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use ...
----------------------------------------------------------------------- -- awa-modules-reader -- Read module configuration files -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not...
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C; use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C; procedure aaa_read1 is type stringptr is access all char_array; procedure PChar(c : in Character) is begin Character'Write (Text_Str...
with Ada.Text_IO; use Ada.Text_IO; with Strings_Edit; use Strings_Edit; with Strings_Edit.Floats; use Strings_Edit.Floats; with Strings_Edit.Integers; use Strings_Edit.Integers; procedure Data_Munging is Syntax_Error : exception; type Gap_Data is record Count : Natural := 0; ...
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired) -- -- Copyright William A. Whitaker (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is C...
with Ada.Unchecked_Conversion; with Ada.Streams; use Ada.Streams; use type Ada.Streams.Stream_Element_Offset; package body Encodings.Utility is --generic -- type Element_Type is private; -- type Index_Type is (<>); -- type Array_Type is array(Index_Type range <>) of Element_Type; procedure Read_Array( Stream:...
package body Angle is function Find_Angle (X_Coordinate, Y_Coordinate : Float) return Float is begin if Y_Coordinate = 0.0 then return Arctan(X_Coordinate/0.0000001); -- Might use exception instead later end if; return Arctan(X_Coordinate/Y_Coordinate); end Find_Ang...
with TLSF.Block.Types; with TLSF.Context; with TLSF.Proof.Model.Block; package TLSF.Proof.Model.Context with SPARK_Mode, Ghost, Abstract_State => (State) is package BT renames TLSF.Block.Types; package TC renames TLSF.Context; package MB renames TLSF.Proof.Model.Block; use type BT.Address; use typ...
----------------------------------------------------------------------- -- babel-strategies-workers -- Tasks that perform strategy work -- Copyright (C) 2014 Stephane.Carrez -- Written by Stephane.Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may no...
package body System.Storage_Pools.Unbounded is overriding procedure Initialize (Object : in out Unbounded_Pool) is begin Unbounded_Allocators.Initialize (Object.Allocator); end Initialize; overriding procedure Finalize (Object : in out Unbounded_Pool) is begin Unbounded_Allocators.Finalize ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt package Port_Specification.Buildsheet is -- This generates the port buildsheet from the specification based on given parameters -- The output_file must be blank (stdout) or a file to (over)write a file wit...
-- C32001A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
with Ada.Containers.Ordered_Sets; with Ada.Containers.Vectors; with Ada.Text_IO; use Ada.Containers; use Ada.Text_IO; procedure Day01 is package Integer_Sets is new Ordered_Sets (Element_Type => Integer); package Integer_Vectors is new Vectors (Index_Type => Natural, ...
with Ada.Unchecked_Deallocation; with GL.Types; with Orka.Transforms.Doubles.Quaternions; with Orka.Transforms.Doubles.Vectors; package Integrators is pragma Preelaborate; package Quaternions renames Orka.Transforms.Doubles.Quaternions; package Vectors renames Orka.Transforms.Doubles.Vectors; type ...
declare Data : Storage_Array (1..20); -- Data created begin Data := (others => 0); -- Assign all zeros if Data = (1..10 => 0) then -- Compare with 10 zeros declare Copy : Storage_Array := Data; -- Copy Data begin if Data'Length = 0 then -- If empty ... end if;...
generic type Element_Type is private; type Array_Type is array (Positive range <>) of Element_Type; procedure Generic_Shuffle (List : in out Array_Type);
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is function F return integer is begin return 0; end G; begin Put('a'); end;
private with Ada.Containers.Indefinite_Ordered_Maps; private with Ada.Containers.Indefinite_Vectors; private with Ada.Finalization; private with Ada.Strings.Unbounded; private with Ada.Numerics.Big_Numbers.Big_Integers; private with Ada.Numerics.Big_Numbers.Big_Reals; package Yeison_Classwide with Preelaborate is ...
with Ada.Text_IO; use Ada.Text_IO; procedure Crossroad is -- Colors type colors is (red, redyellow, green, yellow); -- Lamp protected Lamp is procedure Switch; function Color return colors; private currentColor : colors := red; end Lamp; protected body Lamp is procedu...
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- with Ada.Text_IO; with Ada.Directories; wi...
-- Abstract : -- -- Add sorted behavior to parent. -- -- Copyright (C) 2018, 2019 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either versi...
-- C45344A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" package body Yaml.Events.Queue is procedure Adjust (Object : in out Reference) is begin Increase_Refcount (Object.Data); end Adjust; procedure Finalize (Object : in out Reference) i...
with ada.text_io; with ada.containers.vectors; package getter is ERROR_NO_GETTERS : exception; subtype pos_count is ada.text_io.positive_count; -- type record_getter_type; -- type getter_type is access function return character; -- type record_getter_type is record -- ptr : getter_type; -- end record...
-- { dg-do run } -- { dg-options "-O2" } with System.Address_To_Access_Conversions; procedure address_conversion is type Integer_type1 is new Integer; type Integer_type2 is new Integer; package AA is new System.Address_To_Access_Conversions (Integer_type1); K1 : Integer_type1; K2 : Integer_type2; b...
package Loop_Optimization21 is type Item is new Float; type Item_Vector is array (Positive range <>) of Item; function Min (X : Item_Vector) return Item; end Loop_Optimization21;
with System.BB.Threads; package System.TTS_Support is pragma Preelaborate (TTS_Support); procedure Hold (T : System.BB.Threads.Thread_Id; Check_Protected_Action : Boolean := False); procedure Continue (T : System.BB.Threads.Thread_Id); function Is_Held (T : System.BB.Threads.Thread_Id)...
package body Basic_Subprogram_Calls.Child is function Child_F1 return Integer is begin return 42; end Child_F1; procedure Child_P1 is begin null; end Child_P1; end Basic_Subprogram_Calls.Child;
----------------------------------------------------------------------- -- mat-events-probes -- Event probes -- Copyright (C) 2014, 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file excep...
------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@heisenbug.eu) -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Hoc...
-- { dg-do compile } package body Discr28 is procedure Dummy (E : Rec) is begin null; end; function F return Rec is begin return Default_Rec; end; procedure Proc1 is begin Dummy (F); end; procedure Proc2 is begin Dummy (F); end; end Discr28;
package Logic is type Ternary is (True, Unknown, False); -- logic functions function "and"(Left, Right: Ternary) return Ternary; function "or"(Left, Right: Ternary) return Ternary; function "not"(T: Ternary) return Ternary; function Equivalent(Left, Right: Ternary) return Ternary; function Implies...
-- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Module: Helper -- -- Authors: Emanuel Regnath (emanuel.regnath@tum.de) -- -- Description: Helper functions -- -- ToDo: -- [ ] Implementation package Helper with SPARK_Mode is generic type Nu...
----------------------------------------------------------------------- -- are-installer-concat -- Concatenate based distribution artifact -- Copyright (C) 2012, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- y...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Numerics; use Ada.Numerics; with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions; with Helper; use Helper; package body STL is procedure Creation( Segments : in out Liste_Points.Liste ; Facettes : out Liste_Facettes.Liste; ...
procedure factorial is i, x: Integer; y: Integer; begin put("Ingrese un numero "); get(x); y := 1; i := 1; while i <= x loop y := y * i; i := i + 1; end loop; put("\nEl resultado es "); put(y); end factorial;
with Sodium.Functions; use Sodium.Functions; with Ada.Text_IO; use Ada.Text_IO; procedure Demo_Ada is message_1 : constant String := "Arbitrary data to hash"; message_2 : constant String := "is longer than expected"; key : constant String := "123456789 123456789 123456789 12"; state : Hash_State...
with controlled1; use controlled1; package controlled2 is procedure Test_Suite; end controlled2;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Text_IO; use Ada.Text_IO; procedure Roman_2_Decimal is Input_Length : Natural := 100; Input_String : String (1 .. Input_Length); begin Get_Line (Input_String, Input_Length); if Input_Length > 0 then Put (Input_Length, Width => 1); ...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" private with Ada.Containers.Hashed_Maps; package Yaml.Events.Store is type Instance is limited new Refcount_Base with private; type Instance_Access is access all Instance; type Reference is ...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with ada_parse, ada_lex.io, ada_lex, text_io; use ada_parse, text_io; procedure parse is in_file_name: string(1..80); last : natural; begin text_io.put("Enter input file: "); text_io.get_line(in_file_name, last); ada_lex.io.open_input(in_file_name(1..last)); ada_lex.io.create_output; p...
----------------------------------------------------------------------- -- util-serialize-contexts -- Contexts for serialization framework -- Copyright (C) 2010, 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- y...
pragma Ada_95; pragma Source_File_Name (ada_modulemain, Spec_File_Name => "b__ada_module.ads"); pragma Source_File_Name (ada_modulemain, Body_File_Name => "b__ada_module.adb"); pragma Suppress (Overflow_Check); with Ada.Exceptions; package body ada_modulemain is pragma Warnings (Off); E73 : Short_Integer; pragm...
WITH Ada.Text_IO; USE Ada.Text_IO; WITH Salas, Cine; USE Salas; PROCEDURE Probar_Cines IS S1, S2, S3, S4, S5 : Salas.Sala; BEGIN S1 := Crear_Sala(" Ava ", 12,18); Modificar_Pelicula(S1, "FormaDAgua"); S2 := Crear_Sala("Marilyn", 12,18); Modificar_Pelicula(S2,"BlackPanth");...
package body TREE_STATIC_Def is procedure check (i : int; v : integer) is begin if i.value /= v then raise program_error; end if; end; end;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; -- with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Finalization; use Ada.Finalization; package body Obj is Master_Serial : Integer := 1; function New_Obj( I : in Integer ) return Obj_T is Obj : Obj_T; begin Obj.X := I; return...
with Ada.Text_IO; Use Ada.Text_IO; with Ada.Integer_Text_IO; Use Ada.Integer_Text_IO; with Ada.Float_Text_IO; Use Ada.Float_Text_IO; with inventory_list; Use inventory_list; Procedure inventory_test is backpack : List_Type; usedItem : inventoryItem; response : Integer := -1; itemID : Integer; begin lo...
with aIDE.Palette.of_exceptions_subpackages; -- AdaM.Declaration.of_exception; with Ada.Text_IO; use Ada.Text_IO; with Glib; use Glib; with Glib.Error; use Glib.Error; with Glib.Object; use Glib.Object; with Gtk.Builder; use Gtk.Builder; with Gtk.Button...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- $Id: DynArray.md,v 1.2 1993/08/18 15:06:51 grosch rel $ -- $Log: DynArray.md,v $ -- Ich, Doktor Josef Grosch, Informatiker, Aug. 1994 generic type ElmtType is private; package DynArray is type tArray is array (Integer range <>) of ElmtType; type FlexArray is access tArray; procedure MakeArray (ArrayP...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" package Yaml.Events is -- parent of several event-holding collection types -- raised when trying to manipulate an event holder object while a -- Stream_Instance based on that object exist...
------------------------------------------------------------------------------ -- -- -- Generic HEX String Handling Package -- -- -- -- -...
private with Logging; package Output_Backend is task Output is entry Ready_Wait; entry Enter (Text : Wide_Wide_String; Continues_Word : Boolean); entry Erase (Amount : Positive); entry Shut_Down; end Output; private use Logging; end Output_Backend;
pragma License (Unrestricted); -- extended unit private with Ada.Command_Line.Argument_Parsing; private with Ada.Finalization; private with Ada.Streams; generic type Input_Cursor is private; with function Has_Element (Position : Input_Cursor) return Boolean is <>; with package Input_Iterator_Interfaces is ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- Copyright (c) 2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. ...
with GNATCOLL.Projects; use GNATCOLL.Projects; with GNATCOLL.VFS; use GNATCOLL.VFS; with Libadalang.Project_Provider; use Libadalang.Project_Provider; package body Rejuvenation.Factory is -- Project methods -------- function Create_Context return Project_Context is (Context => Cre...
with Ada.Exceptions.Finally; with Ada.Text_IO.Formatting; with System.Runtime_Context; package body Ada.Text_IO.Enumeration_IO is procedure Put_To_Field ( To : out String; Last : out Natural; Item : Enum; Set : Type_Set); procedure Put_To_Field ( To : out String; Last : out Na...
package impact.d2.orbs.Joint.weld -- -- -- is -- #ifndef B2_WELD_JOINT_H -- #define B2_WELD_JOINT_H -- -- #include <Box2D/Dynamics/Joints/b2Joint.h> -- -- /// Weld joint definition. You need to specify local anchor points -- /// where they are attached and the relative body angle. The position -- /// of the anch...
with Ada.Text_IO; use Ada.Text_IO; with DOM; use DOM; with Events; procedure Convert (Input : DOM.Core.Node_List; Output : File_Type) is begin Events.Read (Input); Events.Write (Output); end Convert;
task body Some_Task is begin loop select -- Some alternatives ... or accept Stop do -- Some cleanup while holding the caller is here end Stop; -- A cleanup asynchronous to the caller is here exit; -- We are through end select end loop; ...
pragma License (Unrestricted); -- extended unit with Ada.IO_Exceptions; with Ada.Iterator_Interfaces; private with Ada.Finalization; private with Ada.Streams; generic type Input_Cursor is private; with function Has_Element (Position : Input_Cursor) return Boolean is <>; with package Input_Iterator_Interfaces ...
with GMP; with MPFR; private with C.mpc; package MPC is pragma Preelaborate; pragma Linker_Options ("-lmpc"); function Version return String; subtype Number_Base is GMP.Number_Base; type Rounding is private; function Compose ( Real_Rounding : MPFR.Rounding; Imaginary_Rounding : MPFR.Rounding) return...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" ver...
-- C48009E.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimi...
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired) -- -- Copyright William A. Whitaker (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is C...
-- File: adaid.adb -- Description: A UUID type for Ada -- Author: Anthony Arnold -- License: Simplified BSD License (see LICENSE) package body AdaID is -- Default "Constructor" for NIL UUID overriding procedure Initialize (This : in out UUID) is begin for i in ByteArray'Range loop This.data (i)...
-- Copyright 2017-2019 Simon Symeonidis (psyomn) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicab...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
-- TITLE command line interface -- AUTHOR: John Self (UCI) -- DESCRIPTION command line interface body for use with the VERDIX VADS system. -- NOTES this file is system dependent -- $Header: /co/ua/self/arcadia/aflex/ada/src/RCS/command_lineB.a,v 1.3 90/01/12 15:19:44 self Exp Locker: self $ --************************...
With Ada.Text_IO; Use Ada.Text_IO; Package body RandFloat is package IntIO is new Ada.Text_IO.Integer_IO(Integer); use IntIO; --x: integer;--:= 737; -- seed function next_float(x: in out integer) return float is n: integer; begin --put("Seed the rand gen"); --new_line; x := x*29+37; n :=...
with Readable_Sequences.Generic_Sequences; with Protypo.Tokens; with Protypo.Api.Interpreters; private package Protypo.Scanning is type Token_Array is array (Positive range<>) of Tokens.Token; package Token_Sequences is new Readable_Sequences.Generic_Sequences (Element_Type => Tokens.Token, ...
procedure diviporrestas(dividendo: in Integer; divisor: in Integer; resultado, resto: out Integer) is begin Resto:=Dividendo; resultado:=0; loop exit when divisor > resto; resto:=resto-divisor; resultado:=resultado+1; end loop; end diviporrestas;
with Ada.Text_IO; use Ada.Text_IO; procedure Test_Interval_Addition is -- Definitions from above procedure Put (I : Interval) is begin Put (Long_Float'Image (Long_Float (I.Lower)) & "," & Long_Float'Image (Long_Float (I.Upper))); end Put; begin Put (1.14 + 2000.0); end Test_Interval_Addition;
M:cert S:G$__attest$0$0({383}DA383d,SC:U),D,0,0 S:G$__attest_size$0$0({2}SI:U),D,0,0 S:G$WMASK$0$0({37}DA37d,SC:U),D,0,0 S:G$RMASK$0$0({33}DA33d,SC:U),D,0,0 S:Fcert$__str_0$0$0({383}DA383d,SC:S),Z,0,0 S:Fcert$__str_1$0$0({37}DA37d,SC:S),Z,0,0 S:Fcert$__str_2$0$0({33}DA33d,SC:S),Z,0,0
-- ----------------------------------------------------------------------------- -- smk, the smart make (http://lionel.draghi.free.fr/smk/) -- © 2018, 2019 Lionel Draghi <lionel.draghi@free.fr> -- SPDX-License-Identifier: APSL-2.0 -- ----------------------------------------------------------------------------- -- Licen...
--- kernel/src/gtkada-search_entry.adb.orig 2021-06-18 05:08:58 UTC +++ kernel/src/gtkada-search_entry.adb @@ -21,13 +21,13 @@ with Gtk.Style_Context; use Gtk.Style_C with Gtk.Widget; use Gtk.Widget; with Gtkada.Handlers; use Gtkada.Handlers; with GPS.Intl; use GPS.Intl; +with Gtk.Main; pack...
------------------------------------------------------------------------------ -- AGAR CORE LIBRARY -- -- A G A R . C O R E . I N I T -- -- B o d y -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- -- Provides Kafka functionality to create partition lists for a kafka consumer -- to subscribe to -- package Kafka.Topic.Partition is -- -- Creates a new list/vector Topic+Partition container. -- -- librdkafka equivalent: rd_kafka_topic_partition_list_new -- -- @param Size Initial allocated...
----------------------------------------------------------------------- -- util-listeners-tests -- Unit tests for listeners -- Copyright (C) 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use ...
with System.Address_To_Named_Access_Conversions; with System.Formatting.Address; package body Ada.Task_Identification is package Task_Id_Conv is new System.Address_To_Named_Access_Conversions ( System.Tasks.Task_Record, Task_Id); -- implementation function Image (T : Task_Id) return...
with ada.Characters.Handling, utils, ada.Text_IO, ada.Integer_Text_IO, Ada.Calendar, botIO, montecarlo; use ada.Characters.Handling, utils, ada.Text_IO, ada.Integer_Text_IO, Ada.Calendar, botIO, montecarlo; package body utils is procedure addToSet(card : in T_card ; set : in out T_set) is begin set.set(set...
------------------------------------------------------------------------------ -- -- -- Copyright (c) 2014-2017 Vitalij Bondarenko <vibondare@gmail.com> -- -- -- ----...
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h; with glib; with glib.Values; with System; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_riff_riff_ids_h is -- unsupported macro: GST_RIFF_RIFF_WAV...
with Ada.Text_IO; use Ada.Text_IO; procedure Infinities is type Real is digits 5 range -10.0..10.0; function Sup return Real is Result : Real := Real'Last; begin return Real'Succ (Result); exception when Constraint_Error => return Result; end Sup; function Inf return Real...
------------------------------------------------------------------------------- -- Fichier : arbre_genealogique.ads -- Auteur : MOUDDENE Hamza & CAZES Noa -- Objectif : Spécification du module Arbre_Genealogique -- Crée : Dimanche Nov 10 2019 ------------------------------------------------------------------...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
with Giza.Widget.Scrolling; use Giza.Widget; with Basic_Test_Window; use Basic_Test_Window; package Test_Scroll_Window is type Scroll_Window is new Test_Window with private; type Scroll_Window_Ref is access all Scroll_Window; overriding procedure On_Init (This : in out Scroll_Window); overriding pro...
------------------------------------------------------------------------------ -- Copyright (c) 2015-2019, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...