content
stringlengths
23
1.05M
with Ada.Wide_Text_IO; use Ada.Wide_Text_IO; with Ada.Characters; with Ada.Characters.Handling; use Ada.Characters.Handling; with Ada.Exceptions; with Asis; with Asis.Implementation; with Asis.Exceptions; with Asis.Errors; with Asis.Iterator; with Asis.Expressions; with Asis.Declarations; with Asis.Text; with FP_Dete...
-- This spec has been automatically generated from STM32F103.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.SPI is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR1_CPHA_Field is STM32_SVD.Bit;...
with HW.GFX; with HW.GFX.GMA; with HW.GFX.GMA.Display_Probing; use HW.GFX; use HW.GFX.GMA; use HW.GFX.GMA.Display_Probing; with GMA.Mainboard; package body GMA is function fill_lb_framebuffer (framebuffer : in out lb_framebuffer) return Interfaces.C.int is use type Interfaces.C.int; begin ...
package body Conversion with SPARK_Mode is ------------------------- -- Equal_To_Conversion -- ------------------------- -- This lemma is proved with a manual induction. procedure Equal_To_Conversion (A, B : Integer_Curve25519; L : Product_Index_Type) is begin if L = 0 th...
---------------------------------------------------------- -- Copyright (c), The MIT License (MIT) -- Author: Lyaaaaaaaaaaaaaaa -- -- Revision History: -- 18/09/2019 Lyaaaaaaaaaaaaaaa -- - Added file header ---------------------------------------------------------- with Log_Filter_Handlers; procedure Log_Filter...
----------------------------------------------------------------------- -- awa-users-servlets -- OpenID verification servlet for user authentication -- Copyright (C) 2011 - 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Licen...
-- -- Jan & Uwe R. Zimmer, Australia, 2013 -- package body Swarm_Structures is -- protected body Vehicle_Comms is procedure Send (Message : Inter_Vehicle_Messages) is begin Put (Sent_Messages, Message); end Send; -- procedure Push_Message (Message : Inter_Vehicle_Mess...
with Interfaces; package kv.avm.References is pragma preelaborate; Invalid_Reference_Designator_Error : exception; -- This enumerates the four different types of register banks. -- Note that "Constant" can't be used because it is an Ada -- reserved word. Therefore "Fixed" is used instead. -- t...
package Stack with SPARK_Mode => On is procedure Push (V : Character) with Pre => not Full, Post => Size = Size'Old + 1; procedure Pop (V : out Character) with Pre => not Empty, Post => Size = Size'Old - 1; procedure Clear with Post => Size = 0; function Top return Character ...
-- { dg-do compile { target i?86-*-* x86_64-*-* } } -- { dg-options "-fdump-tree-optimized" } with Interfaces; with Unchecked_Conversion; with GNAT.SSE.Vector_Types; use GNAT.SSE.Vector_Types; procedure Vect14 is Msk1 : constant := 16#000FFAFFFFFFFB3F#; Msk2 : constant := 16#000FFDFFFC90FFFD#; type Unsigne...
with Generic_AVL_Tree; with Ada.Text_IO, Ada.Integer_Text_IO; use Ada.Text_IO, Ada.Integer_Text_IO; procedure Main is procedure Integer_Put( Item: Integer ) is begin Put( Item, 2 ); end Integer_Put; package Int_AVL_Tree is new Generic_AVL_Tree( Element_Type => Integer, ...
with Ada.Numerics.Generic_Complex_Types; with Dsp.Ring_Filters; -- -- This package provides several (OK, only filters so far...) DSP functions -- It needs to be instantiated with a floating point type and a corresponding -- complex type. -- generic type Scalar_Type is digits <>; with package Complex_Types is ...
----------------------------------------------------------------------- -- AWA tests - AWA Tests Framework -- Copyright (C) 2011, 2012, 2014, 2018 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 ...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; limited with bits_types_struct_statx_h; package bits_statx_generic_h is STATX_TYPE : constant := 16#0001#; -- /usr/include/bits/statx-generic.h:29 STATX_MODE : constant := 16#0002#; -- /usr/include/b...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.API; with GL.Enums.Getter; package body GL.Immediate is Error_Checking_Suspended : Boolean := False; overriding procedure Finalize (Token : in out Input_Token) is begin if not T...
-- -- Copyright (C) 2021 Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- package body Str is subtype Numbers is Character range '0' .. '9'; function Find (S : String; C : Character) return Natural is begin for I in S'Range loop if S (I) ...
with xcb; use xcb; with xcb_ewmh; use xcb_ewmh; with Compositor; with Render; package Events is type eventPtr is access all xcb_generic_event_t; procedure eventLoop (connection : access xcb_connection_t; rend : render.Renderer; mode : Compositor....
----------------------------------------------------------------------- -- util-http-clients-curl -- HTTP Clients with CURL -- Copyright (C) 2012, 2017, 2018, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ...
With Ada.Text_IO, Connection_Types, Connection_Combinations; procedure main is Result : Connection_Types.Partial_Board renames Connection_Combinations; begin Ada.Text_IO.Put_Line( Connection_Types.Image(Result) ); end;
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. package body GBA.Display is procedure Set_Display_Mode (Mode : Video_Mode; Forced_Blank : Boolean := False) is begin Display_Control := ( Display_Control with delta Mode => Mode , Forced_Blank => Forced_B...
package body Container is procedure Replace_All(The_Tree : in out Tree; New_Value : Element_Type) is begin The_Tree.Value := New_Value; If The_Tree.Left /= null then The_Tree.Left.all.Replace_All(New_Value); end if; if The_tree.Right /= null then The_Tree.Right.all.Replac...
------------------------------------------------------------------------------ -- Copyright (c) 2014-2019, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
package Memory.Flash is type Flash_Type is new Memory_Type with private; type Flash_Pointer is access all Flash_Type'Class; function Create_Flash(word_size : Positive := 8; block_size : Positive := 256; read_latency : Time_Type := 10; ...
with Ada.Text_IO; package body Irc.Message is function Parse_Line (Line : in SU.Unbounded_String) return Message is Msg : Message; Index : Natural := 2; Start, Finish : Natural := 0; Size : Natural := SU.Length (Line); procedure Read_Word; procedure Read_Word is ...
-- { dg-do compile } -- { dg-options "-O" } with Ada.Unchecked_Deallocation; with Opt46_Pkg; package body Opt46 is type Pattern is abstract tagged null record; type Pattern_Access is access Pattern'Class; procedure Free is new Ada.Unchecked_Deallocation (Pattern'Class, Pattern_Access); type Acti...
with Ada.Text_IO; with RCP.Control; package body RCP.User is task body User_T is use Ada.Text_IO, RCP.Control; -- all users will want the same type of item -- but in different quantities -- (note that the object components will take their default value -- unless overridden by the...
-- { dg-do compile } with System.Pool_Global; package Storage is x1: System.Pool_Global.Unbounded_No_Reclaim_Pool; type T1 is access integer; for T1'Storage_Pool use (x1); -- { dg-error "must be a variable" } type T2 is access Integer; for T2'Storage_Pool use x1; end Storage;
-- { dg-do run } with GNAT.Regpat; use GNAT.Regpat; procedure Quote is begin if Quote (".+") /= "\.\+" then raise Program_Error; end if; end Quote;
with Ada.Text_IO; use Ada.Text_IO; package body Tipos_Tarea is task body Tarea_Repetitiva is begin loop Put_Line("Id = " & IdTarea'Img); delay 1.0; end loop; end Tarea_Repetitiva; end Tipos_Tarea;
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. with Ada.Exceptions, Ada.Unchecked_Deallocation, Apsepp.Generic_Shared_Instance.Access_Setter, Apsepp.Test_Node_Class.Private_Test_Reporter; package body Apsepp.Test_Node_Class.Runner_Sequential.W_...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Float_Text_IO; with Units; use Units; procedure main with SPARK_Mode is a : Angle_Type; w : Angle_Type; w2 : Angle_Type; amin : constant Angle_Type := -1.3 * Radian; amax : constant Angle_Type := 1.3 * Radian; L : constant Angle_Type := 2.0 * (amax - a...
with physics.Space; package physics.Forge -- -- Provides constructors for physics classes. -- is type Real_view is access all math.Real; ---------- --- Space -- function new_Space (Kind : in space_Kind) return Space.view; end physics.Forge;
package body Generic_Ulam is subtype Index is Natural range 0 .. Size-1; subtype Number is Positive range 1 .. Size**2; function Cell(Row, Column: Index) return Number is -- outputs the number at the given position in the square -- taken from the Python solution X: Integer := Column - (Size...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Alea; -- Procédure qui illustre l'utilisation du paquetage Alea. procedure Exemple_Alea is package Mon_Alea is new Alea (5, 15); -- générateur de nombre dans l'intervalle [5, 15] use Mon_Alea; Nombre: Integer...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Integer_Text_IO, Ada.Containers.Doubly_Linked_Lists; use Ada.Integer_Text_IO, Ada.Containers; procedure Doubly_Linked_List is package DL_List_Pkg is new Doubly_Linked_Lists (Integer); use DL_List_Pkg; procedure Print_Node (Position : Cursor) is begin Put (Element (Position)); end P...
with Ada.Numerics.Big_Numbers.Big_Integers; use Ada.Numerics.Big_Numbers.Big_Integers; with Ada.Containers.Vectors; package Primes is function Is_Prime (N : Natural) return Boolean; function Is_Prime (N : Big_Natural) return Boolean; package Prime_Vectors is new Ada.Containers.Vectors (Index_Type => Natural...
package impact.d2.Contact.polygon -- -- -- is type b2PolygonContact is new b2Contact with null record; type View is access all b2PolygonContact'Class; overriding procedure Evaluate (Self : in out b2PolygonContact; manifold : access collision.b2Manifold; ...
PROCEDURE Inherited_Primitive_Operation IS PACKAGE Inner IS TYPE PARENT IS ARRAY (INTEGER RANGE <>) OF float; FUNCTION CREATE ( F, L : INTEGER; TYPETAG : PARENT -- TO RESOLVE OVERLOADING. ) RETURN PARENT; END Inner; TYPE T ...
------------------------------------------------------------------------------- -- Copyright (c) 2019, Daniel King -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions...
package body Tagged_Type_Pkg is function Pass_TT_Access (Obj : access TT'Class) return access TT'Class is begin if Obj = null then return null; else -- The implicit conversion in the assignment to the return object -- must fail if Obj's actual is not a librar...
-- { dg-do compile } -- { dg-options "-O2" } with Opt10_Pkg; use Opt10_Pkg; procedure Opt10 is procedure Compare_Rep_Data (MA, MB : Rep_Message) is begin if MA.Data /= MB.Data then raise Program_Error; end if; end; procedure Check_Rep_For (Bit : Boolean) is MA, MB : Rep_Messag...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- NORX_Load_Store -- A collection of functions to load and store words of different sizes from -- Storage_Array in Little Endian format. Currently these are not optimised -- for the case where the machine itself is LE or has dedicated assembly -- instructions that can perform the conversion. -- Copyright (c) 2016-201...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt -- To enable ncurses support, use sed to change Options_Dialog_Console => Options_Dialog with Ada.Characters.Latin_1; with Ada.Strings.Fixed; with Ada.Command_Line; with Ada.Directories; with Ada.Calendar; with A...
package Integer_Exponentiation is -- int^int procedure Exponentiate (Argument : in Integer; Exponent : in Natural; Result : out Integer); function "**" (Left : Integer; Right : Natural) return Integer; -- real^int pr...
package body Iterate_Subsets is function First return Subset is S: Subset; begin for I in S'Range loop S(I) := I; end loop; return S; end First; procedure Next(S: in out Subset) is I: Natural := S'Last; begin if S(I) < Index'Last then S(I) := S(I) +...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
pragma License (Unrestricted); with System.WCh_Con; with GNAT.Decode_String; package GNAT.Decode_UTF8_String is new GNAT.Decode_String (System.WCh_Con.WCEM_UTF8); pragma Pure (GNAT.Decode_UTF8_String);
-- C43004C.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.unchecked_Deallocation; package body lace.Subject_and_deferred_Observer is package body Forge is function to_Subject_and_Observer (Name : in String) return Item is begin return Self : Item do Self.Name := to_unbounded_String (Name); end retu...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Sequential_IO; with Ada.Directories; pragma Warnings (Off, "no entities of ""Ada.Text_IO"" are referenced"); pragma Warnings (Off, "use clause for package ""Text_IO"" has no effect"); with Ada.Text_IO; use Ada.Text_IO; package body Utilities is ----------- -- Slurp -- ----------- function Slur...
-- -- package Spherical_Harmonics -- -- Actually makes just the part that varies in Theta..leaves out -- the Exp(i*m*Phi) / Sqrt(2*Pi), which is all that's required to complete -- the spherical harmonic. Uses package Clenshaw to make the polynomials. -- -- The results may be thought of as normalized versions of Associ...
-- Copyright (c) 2020-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 vers...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Greet2 is begin loop Put_Line ("Please enter your name: "); declare Name : String := Get_Line; -- ^ Call to the Get_Line function begin exit when Name = ""; Put_line ("Hi " & Name & "!"); end; -- Name is undefined he...
----------------------------------------------------------------------- -- awa-counters-modules -- Module counters -- Copyright (C) 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...
with Ada.Calendar; with Fmt.Time_Argument; with Fmt.String_Argument; with Fmt.Integer_Argument; with Fmt.Duration_Argument; package Fmt.Stdtypes is -- integer support -- edit format (control_char=control_value;...) -- "w=" width -- "a=" align -- "f=" fillchar -- "b=" base (use lowercase extended di...
-- A pipeline version of the Sieve or Erastosthenes: we create a chain of tasks -- each of which holds several primes. The main program feeds successive integers -- into the pipe; each task tests the integer for divisibility by its own -- primes, and passes it along to the next task if not divisible. Each task has -- a...
package body Person2 is procedure Set_Name (A_Person : out Person; Name : in Unbounded_String) is begin A_Person.Name := Name; end Set_Name; procedure Set_Age (A_Person : out Person; Her_Age : in Age_Type) is begin A_Person.Age := Her_Age; end ...
with STM32GD.Clock; with STM32GD.Clock.Tree; generic Clock : STM32GD.Clock.Clock_Type; with package Clock_Tree is new STM32GD.Clock.Tree (<>); package STM32GD.RTC is subtype Year_Type is Natural range 2000 .. 2099; subtype Month_Type is Natural range 1 .. 12; subtype Day_Type i...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- -- 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...
----------------------------------------------------------------------- -- babel-strategies -- Strategies to backup files -- Copyright (C) 2014, 2015, 2016 Stephane.Carrez -- Written by Stephane.Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not ...
package body Ada.Environment_Variables is procedure Start (Object : out Iterator); procedure Start (Object : out Iterator) is begin Object.Block := System.Native_Environment_Variables.Get_Block; end Start; -- implementation procedure Iterate ( Process : not null access procedure (Name,...
separate(practica_3) --Esta es la funcion que suma los elementos de la columna de una matriz y los guarda en un vector function Suma_Filas(M:Matriz) return Vector is v:vector(M'range(2)); begin for i in M'Range(2) loop v(I):=m(1,i);--en el vector guardo el primer elemento de la columna la matriz for j in 2..M'last l...
-- -- Raytracer implementation in Ada -- by John Perry (github: johnperry-math) -- 2021 -- -- implementation for 3d Vectors, which describe positions, directions, etc. -- pragma Ada_2020; -- Ada packages with Ada.Numerics.Generic_Elementary_Functions; -- local packages with RayTracing_Constants; use RayTracing_Con...
with YAML.Vector; pragma Unreferenced (YAML.Vector); with YAML.Object; pragma Unreferenced (YAML.Object); procedure YAML.Demo is begin null; end YAML.Demo;
with Ada.Text_IO; use Ada.Text_IO; procedure Bonjour is begin -- Bonjour Put("Hello world!"); end Bonjour;
-- { dg-do run } -- { dg-options "-O3 -gnatn" } with Opt50_Pkg; use Opt50_Pkg; procedure Opt50 is B : Boolean; E : Enum; begin Get ("four", E, B); if B = True then raise Program_Error; end if; Get ("three", E, B); if B = False then raise Program_Error; end if; declare A : Enum_Boolean_Ar...
procedure Procedure_Renaming is procedure Do_It is begin null; end; procedure Do_That renames Do_It; begin Do_That; end Procedure_Renaming;
with STM32_SVD.GPIO; use STM32_SVD.GPIO; with STM32_SVD.SCB; use STM32_SVD.SCB; with STM32_SVD.RCC; use STM32_SVD.RCC; with STM32_SVD.EXTI; use STM32_SVD.EXTI; with STM32_SVD.NVIC; use STM32_SVD.NVIC; with STM32_SVD.SYSCFG; use STM32_SVD.SYSCFG; with STM32GD.GPIO.Port; package body STM32GD.GPIO.Pin is type Port_Pe...
-- Copyright 2015 Steven Stewart-Gallus -- -- 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 agr...
-- -- Copyright (C) 2016 secunet Security Networks AG -- -- 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 2 of the License, or -- (at your option) any later version. -- -- This ...
with Terminal_Interface.Curses; use Terminal_Interface.Curses; with Ada.Characters.Latin_1; use Ada.Characters.Latin_1; with GNAT.Regpat; use GNAT.Regpat; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO.Unbounded_IO; with Ada.Strings.Fixed; with Ada.Containers; use Ada.Containers; with Ada.C...
-- Ada regular expression library -- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net> -- Report bugs and issues on <https://github.com/skordal/ada-regex> with Regex.Syntax_Trees; with Regex.State_Machines; private with Ada.Finalization; package Regex.Regular_Expressions is -- Regex engine...
with Ada.Colors; with Ada.Numerics; procedure Color is use type Ada.Colors.RGB; P : constant := 16#0.0001#; -- 1/65536 begin -- distances in HSV pragma Assert ( abs ( Ada.Colors.HSV_Distance ( (Hue => 0.0, Saturation => 0.0, Value => 1.0), (Hue => Ada.Numerics.Pi / 2.0, Saturation => 0.0, Value => 1.0)...
-- The Cupcake GUI Toolkit -- (c) Kristian Klomsten Skordal 2012 <kristian.skordal@gmail.com> -- Report bugs and issues on <http://github.com/skordal/cupcake/issues> -- vim:ts=3:sw=3:et:si:sta package Cupcake.Primitives is -- Simple point type: type Point is record X, Y : Integer; end record; ...
-- Recurve - recover curves from a chart (in JPEG, PNG, or other image format) -- -- Currently supports only charts on a white background -- -- By David Malinge and Gautier de Montmollin -- -- Started 28-Jun-2016 with GID; with Ada.Calendar; with Ada.Characters.Handling; use Ada.Characters....
pragma License (Unrestricted); with System.Storage_Elements; with System.Storage_Pools.Standard_Pools; package GNAT.Debug_Pools is type Debug_Pool is new System.Storage_Pools.Standard_Pools.Standard_Pool with null record; subtype SSC is System.Storage_Elements.Storage_Count; Default_Max_Freed : consta...
with Ada.Numerics.Generic_Elementary_Functions; with Ada.Text_IO; procedure Closest is package Math is new Ada.Numerics.Generic_Elementary_Functions (Float); Dimension : constant := 2; type Vector is array (1 .. Dimension) of Float; type Matrix is array (Positive range <>) of Vector; -- calculate the ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package body Adda.Generator is use Successors; overriding procedure Initialize (Object : in out Decision_Diagram) is begin if Object.Data /= null then Object.Data.Reference_Counter.all := Object.Data.Reference_Counter.all + 1; end if; end Initialize; ...
package Rational is type Rat is private; function Create(num : in Long_Long_Integer; den : in Long_Long_Integer) return Rat; function Numerator(r : in Rat) return Long_Long_Integer; function Denomonator(r : in Rat) return Long_Long_Integer; function "+" (left, right: in Rat) return Rat; function "-"...
with HAL.Touch_Panel; use HAL.Touch_Panel; with HAL.Bitmap; use HAL.Bitmap; with STM32.Board; use STM32.Board; with AdaPhysics2DDemo; with STM32.User_Button; use STM32; with BMP_Fonts; with LCD_Std_Out; with Utils; package body MainMenu is procedure ShowMainMenu is StartMenu : Menu; begin Utils.Cle...
----------------------------------------------------------------------- -- mat-callbacks - Callbacks for Gtk -- 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 not use this file except in c...
package Vole_Goto is type Small_Integer is range -32_000 .. 32_000; type Goto_Entry is record Nonterm : Small_Integer; Newstate : Small_Integer; end record; --pragma suppress(index_check); subtype Row is Integer range -1 .. Integer'Last; type Goto_Parse_Table is array (Row ra...
with Protypo.Scanning; with Protypo.Code_Trees; with Protypo.Api.Interpreters; use Protypo.Api.Interpreters; procedure Protypo.Parsing.Test is S : constant Template_Type := Slurp ("test-data/parsing.txt"); Tk : Scanning.Token_List := Scanning.Tokenize (S, ""); Code : Code_Trees.Parsed_Code; -- p...
------------------------------------------------------------------------ -- Copyright (C) 2010-2020 by Heisenbug Ltd. (github@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 Hocev...
------------------------------------------------------------ -- -- GNAT RUN-TIME EXTENSIONS -- -- XADA . DISPATCHING . TIME-TRIGGERED SCHEDULING -- -- @file x-distts.ads / xada-dispatching-tts.ads -- -- @package XAda.Dispatching.TTS (SPEC) -- -- @author Jorge Real <jorge@disca.upv.es> -- @author Sergio Saez <ssae...
package body Planet is package body Origin_Define is function Build (name : String; colony: Integer; starship: Integer; station: Integer) return Object is planet: Object; add_error: exception; beg...
with Ada.IO_Exceptions; with Interfaces.C.Strings; with Interfaces.C; with System; package body OpenAL.Context is package C renames Interfaces.C; package C_Strings renames Interfaces.C.Strings; -- -- Close_Device -- procedure Close_Device (Device : in out Device_t) is Return_Code : constant B...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2018 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 openGL.Visual, ada.unchecked_Deallocation; with ada.Text_IO; use ada.Text_IO; package body gel.Camera is use linear_Algebra_3D; -------- -- Forge -- procedure define (Self : in out Item) is begin Self.view_Transform := Look_at (Eye => Self.Clipper.eye_Position, ...
with Ada.Exception_Identification.From_Here; with System.Zero_Terminated_Strings; with C.copyfile; with C.errno; with C.stdio; -- rename(2) package body System.Native_Directories.Copying is use Ada.Exception_Identification.From_Here; use type C.signed_int; use type C.size_t; use type C.unsigned_int; -- ...
-- Mojang API -- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -- -- OpenAPI spec version: 2020_06_05 -- -- -- NOTE: This package is auto generated by the swagger code generator 3.3.4. -- https://openapi-generator.tech -- Do not edit the class manuall...
-- RUN: %llvmgcc -S -g %s package Debug_Var_Size is subtype Length_Type is Positive range 1 .. 64; type T (Length : Length_Type := 1) is record Varying_Length : String (1 .. Length); Fixed_Length : Boolean; end record; end;
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Slim.Players; with League.Strings; package Slim.Menu_Commands.Play_Radio_Commands is type Play_Radio_Command (Player : ...