CombinedText
stringlengths
4
3.42M
pragma License (Unrestricted); -- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux) package System.Synchronous_Objects.Abortable is pragma Preelaborate; -- queue procedure Take ( Object : in out Queue; Item : out Queue_Node_Access; Params : Address; Filter : Queu...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- ============================================================================= -- This package herachy is an exact 1:1 mapping to the gstreamer header-files -- It's generated with the -fdump-ada-spec flag to gcc and patched in -- Two phases. -- Phase 1: Automatic bulk change using scripts. -- Phase 2: Manual c...
with Gtk.Main; with Glib; with Gtk.Window; use Gtk.Window; with Gtk.Enums; use Gtk.Enums; with Ada.Text_IO; use Ada.Text_IO; procedure Max_Size is Win : Gtk_Window; Win_W, Win_H : Glib.Gint; package Int_Io is new Integer_IO (Glib.Gint); Hid : Gtk.Main.Quit_Handler_Id; begin Gtk.Main.Init; ...
with FIFO; with Ada.Text_Io; use Ada.Text_Io; procedure Queue_Test is package Int_FIFO is new FIFO (Integer); use Int_FIFO; Queue : FIFO_Type; Value : Integer; begin Push (Queue, 1); Push (Queue, 2); Push (Queue, 3); Pop (Queue, Value); Pop (Queue, Value); Push (Queue, 4); Pop (Queue, ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with AUnit; with AUnit.Simple_Test_Cases; package kv.avm.Comm_Tests is type Comm_Test_Case is abstract new AUnit.Simple_Test_Cases.Test_Case with record null; end record; procedure Set_Up (T : in out Comm_Test_Case); procedure Tear_Down (T : in out Comm_Test_Case); type Test_01 is ne...
with Ada.Text_IO; use Ada.Text_IO; procedure Test_Ackermann is function Ackermann (M, N : Natural) return Natural is begin if M = 0 then return N + 1; elsif N = 0 then return Ackermann (M - 1, 1); else return Ackermann (M - 1, Ackermann (M, N - 1)); end if; ...
-- Abstract : -- -- A generic sorted doubly linked list with definite elements. -- -- 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 Fou...
with Interfaces.C.Strings, System; use type Interfaces.C.int, Interfaces.C.Strings.chars_ptr, System.Address; package body FLTK.Event is procedure fl_event_add_handler (F : in System.Address); pragma Import (C, fl_event_add_handler, "fl_event_add_handler"); pragma Inl...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package LR is end LR;
package body annee is function Est_Bissextile (Annee : Integer) return Boolean is begin return (Annee Mod 4 = 0 And Annee Mod 100 /= 0) Or Annee Mod 400 = 0; end Est_Bissextile; end annee;
----------------------------------------------------------------------- -- awa-users-filters -- Specific filters for authentication and key verification -- Copyright (C) 2011, 2012, 2015, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2010, Alexander Senier -- Copyright (C) 2010, secunet Security Networks AG -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or withou...
with Ada.Unchecked_Deallocation; with BDD.Asserts; use BDD.Asserts; package body RTCH.Visuals.Canvases.Steps is procedure Given_Canvas_C (Width, Height : Positive) is procedure Free is new Ada.Unchecked_Deallocation (Object => Canvas, Name => Canvas_Access); begin if C /= null then Free (C)...
-- -- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr> -- - Ryad Benadjila -- - Arnauld Michelizza -- - Mathieu Renard -- - Philippe Thierry -- - Philippe Trebuchet -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the...
with OpenGL.Thin; with OpenGL.Types; package OpenGL.Buffer is type Buffer_Mask_t is new Thin.Bitfield_t; Color_Buffer : constant Buffer_Mask_t := Thin.GL_COLOR_BUFFER_BIT; Depth_Buffer : constant Buffer_Mask_t := Thin.GL_DEPTH_BUFFER_BIT; Accumulation_Buffer : constant Buffer_Mask_t := Thin.GL_...
with impact.d3.Vector; package body impact.d3.graham_scan_2d_convex_Hull is function to_GrahamVector2 (org : in math.Vector_3; orgIndex : in Integer) return GrahamVector2 is Self : GrahamVector2; begin Self.Vector := org; Self.m_orgIndex := orgIndex...
-- Copyright 2014-2020 Free Software Foundation, Inc. -- -- 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. -- -- ...
-- Image_Random_Test: Test of Image_Random -- Copyright (C) 2020 by Pragmada Software Engineering -- Released under the terms of the BSD 3-Clause license; see https://opensource.org/licenses -- -- 2020-09-01 Initial version -- with Ada.Streams; with Ada.Text_IO; with Image_Random; procedure Image_Random_Test is Ran...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
----------------------------------------------------------------------- -- awa-sysadmin -- -- Copyright (C) 2019 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 except in compliance with th...
-- A PNG stream is made of several "chunks" (see type PNG_Chunk_tag). -- The image itself is contained in the IDAT chunk(s). -- -- Steps for decoding an image (step numbers are from the ISO standard): -- -- 10: Inflate deflated data; at each output buffer (slide), -- process with step 9. -- 9: Read filter...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="11"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" vers...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2019-2020, AdaCore -- -- -- -- ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt with CommonText; with AdaBase.Interfaces.Connection; package AdaBase.Connection.Base is package CT renames CommonText; package AIC renames AdaBase.Interfaces.Connection; type Base_Connection is abst...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with osmesa_c.Pointers; with Interfaces.C; package osmesa_c.pointer_Pointers is -- GLenum_Pointer_Pointer -- type GLenum_Pointer_Pointer is access all osmesa_c.Pointers.GLenum_Pointer; -- GLint_Pointer_Pointer -- type GLint_Point...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Vect2_Pkg; package Vect2 is -- Unconstrained array types are vectorizable, possibly with special -- help for the programmer type Varray is array (Positive range <>) of Long_Float; for Varray'Alignment use 16; function "+" (X, Y : Varray) return Varray; procedure Add (X, Y : Varray; R : out Var...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GESTE -- -- -- -- ...
package body avtas.lmcp.object is procedure XML_Output (this : Object'Class; S : access Ada.Streams.Root_Stream_Type'Class; Level : Natural := 0) is begin String'Write (S, LeftPad ("<" & this.getLmcpTypeName & " Series=""" & this.getSeriesName & """>" ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Common; use Common; package Int64_Parsing with SPARK_Mode is procedure Parse_Int64 (S : String; V : out Int64; Error : out Boolean) with Pre => S'Last < Integer'Last; function Print_Int64 (V : Int64) return String; end Int64_Parsing;
with Ada.Text_IO; procedure Best_Shuffle is function Best_Shuffle(S: String) return String is T: String(S'Range) := S; Tmp: Character; begin for I in S'Range loop for J in S'Range loop if I /= J and S(I) /= T(J) and S(J) /= T(I) then Tmp := T(I); ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- awa-commands-setup -- Setup command to start and configure the application -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
<?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" version="...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright 2018-2021 Free Software Foundation, Inc. -- -- 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. -- -- ...
package impact.d3.contact_solver_Info -- -- -- is --- btSolverMode -- SOLVER_RANDMIZE_ORDER : constant Flags; SOLVER_FRICTION_SEPARATE : constant Flags; SOLVER_USE_WARMSTARTING : constant Flags; SOLVER_USE_FRICTION_WARMSTARTING : constant Flags; SOLVER_USE_2_FRICTION_...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with swig; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_get_image_reply_t is -- Item -- type Item is record response_type : aliased Interfaces.Unsigned_8; depth : aliased Interfaces.Uns...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
with openGL.Glyph.Container, freetype.Face, freetype.charMap, Freetype_C, interfaces.C.Pointers; limited with openGL.Font; private with freetype.face_Size; package openGL.FontImpl -- -- Implements an openGL font. -- is type Item is tagged limited private; type View is access...
-- -- Copyright (c) 2008 Tero Koskinen <tero.koskinen@iki.fi> -- -- Permission to use, copy, modify, and distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "AS IS" ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017-2018, AdaCore -- -- -- -- ...
package body inline_scope_p is procedure Assert (Expr : Boolean; Str : String) is begin if Expr then null; end if; end Assert; end;
with STM32GD.GPIO; with STM32GD.GPIO.Pin; with STM32GD.USART; with STM32GD.USART.Peripheral; with STM32GD.SPI; with STM32GD.SPI.Peripheral; with STM32GD.I2C; with STM32GD.I2C.Peripheral; with STM32GD.RTC; with STM32GD.Clock; with STM32GD.Clock.Tree; with Drivers.Text_IO; package STM32GD.Board is package CLOCKS ...
-- MIT License -- Copyright (c) 2021 Stephen Merrony -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify,...
with Ada.Text_IO; procedure Positives is begin for Value in Positive'Range loop Ada.Text_IO.Put_Line (Positive'Image (Value)); end loop; end Positives;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- G N A T C O L L -- -- -- -- Copyright (C) 2009-2019, AdaCore -- -- ...
-- Copyright 2019 Patrick Kelly (entomy) -- -- 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 applicable law or agre...
with lace.Environ.OS_Commands, lace.Text.utility, posix.file_Status, posix.Calendar, shell.Directory_Iteration, lace.Text.all_Tokens, ada.Strings.fixed, ada.Characters.handling, ada.Directories, ada.Direct_IO, ada.Tags, ada.Text_IO, ada.IO_Exceptions; ...
pragma License (Unrestricted); -- implementation unit required by compiler package System.Val_Int is pragma Pure; -- required for Integer'Value by compiler (s-valint.ads) function Value_Integer (Str : String) return Integer; end System.Val_Int;
-------------------------------------------------------------------------------- -- Copyright (c) 2012, Felix Krause <contact@flyx.org> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this pe...
-- -- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr> -- - Ryad Benadjila -- - Arnauld Michelizza -- - Mathieu Renard -- - Philippe Thierry -- - Philippe Trebuchet -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
package LR.Synchro.Equitable is function Nom_Strategie return String; procedure Demander_Lecture; procedure Demander_Ecriture; procedure Terminer_Lecture; procedure Terminer_Ecriture; end LR.Synchro.Equitable;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017-2018, Fabien Chouteau -- -- -- -- ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2020 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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Copyright 2015-2021 Free Software Foundation, Inc. -- -- 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 openGL.Camera, openGL.Impostor.simple, openGL.Impostor.terrain, ada.Containers.generic_Array_sort, ada.unchecked_Deallocation; package body openGL.Impostorer is --------- --- Forge -- procedure define (Self : in out Item) is begin Self.impostor_size_Min.Value_is ...
-- C85006F.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 openGL.Errors, openGL.Buffer, openGL.Tasks, GL.Binding, ada.unchecked_Deallocation; package body openGL.Primitive.short_indexed is --------- --- Forge -- procedure define (Self : in out Item; Kind : in facet_Kind; Indices : in ...
-- -- Copyright (c) 2015, John Leimon <jleimon@gmail.com> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above copyright -- notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "AS ...
with Units; use Units; --with Altunits; use Altunits; with Ada.Text_IO; use Ada.Text_IO; procedure main is a : Length_Type := 5.0; b : Time_Type := 2.0; v : Linear_Velocity_Type := 3.0; --v : Linear_Velocity_Type := 3.0; function calc_my_velocity( l : Length_Type; t : Time_Type ) return Linear_Velocit...
<?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" version="...
package body kv.avm.Methods is ---------------------------------------------------------------------------- function New_Method(Name : String; Code : kv.avm.Instructions.Code_Access) return Method_Access is Method : Method_Access; begin Method := new Method_Type; Method.Initialize(Name, Code...
with Ada.Unchecked_Deallocation, Interfaces.C.Strings, System; use type Interfaces.C.int, System.Address; package body FLTK.Widgets.Valuators.Value_Inputs is procedure value_input_set_draw_hook (W, D : in System.Address); pragma Import (C, value_input_set_draw_hook, "valu...
-- CB4001A.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...
----------------------------------------------------------------------- -- ado-queries -- Database Queries -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2017, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
No-one has translated the mdcliapi2 example into Ada yet. Be the first to create mdcliapi2 in Ada and get one free Internet! If you're the author of the Ada binding, this is a great way to get people to use 0MQ in Ada. To submit a new translation email it to zeromq-dev@lists.zeromq.org. Please: * Stick to identica...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Nodes.Generic_Vectors; with Program.Elements.Identifiers; package Program.Nodes.Identifier_Vectors is new Program.Node...
pragma Ada_2012; with Ada.Unchecked_Deallocation; package body Dsp.Ring_Filters is procedure Free is new Ada.Unchecked_Deallocation (Object => Sample_Array, Name => Sample_Array_Access); procedure Free is new Ada.Unchecked_Deallocation (Object => Coefficient_Arr...
private with Ada.Finalization; package MPFR.Root_FR is pragma Preelaborate; type MP_Float (Precision : MPFR.Precision) is private; function To_MP_Float ( X : Long_Long_Float; Precision : MPFR.Precision; Rounding : MPFR.Rounding) return MP_Float; function To_Long_Long_Float (X : MP_Float; Rounding : MP...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- The Village of Vampire by YT, このソースコードはNYSLです with Ada.Numerics.Distributions; package body Vampire.Villages.Teaming is use type Casts.Person_Sex; function Possibilities ( People_Count : Ada.Containers.Count_Type; Male_And_Female : Boolean; Execution : Execution_Mode; Formation : Formation_Mode; Unfort...
-- C41320A.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 Common_Formal_Containers; use Common_Formal_Containers; package afrl.impact.ImpactAutomationRequest.SPARK_Boundary with SPARK_Mode is pragma Annotate (GNATprove, Terminating, SPARK_Boundary); function Get_EntityList_From_TrialRequest (Request : ImpactAutomationRequest) return Int64_Vect with Glob...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Subtype_Indications; with Program.Elements.Object_Access_Types; with Program.Element_Visitors; package...
<?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" version="...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- security-auth-oauth-googleplus -- Google+ OAuth based authentication -- Copyright (C) 2013, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...