content
stringlengths
23
1.05M
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2012 Felix Krause <contact@flyx.org> -- -- 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/licen...
package body Bounded_Stack with SPARK_Mode is procedure Push (S : in out Stack; E : Element_Type) is begin S.Content (S.Top + 1) := E; S.Top := S.Top + 1; end Push; procedure Pop (S : in out Stack; E : out Element_Type) is begin E := S.Content (S.Top); S.Top := S.Top - 1; end...
pragma License (Unrestricted); -- implementation unit required by compiler with System.Storage_Elements; package System.Boolean_Array_Operations is pragma Pure; -- required for "not" unpacked boolean array by compiler (s-boarop.ads) procedure Vector_Not ( R, X : Address; Length : Storage_Element...
----------------------------------------------------------------------- -- locales.tests -- Unit tests for locales -- Copyright (C) 2009, 2010, 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use thi...
pragma Warnings (Off); with SDL; with SDL.RWops; with SDL.Types; with SDL.Mutex; with SDL.Video; with SDL.Active; with SDL.Keysym; with SDL.Keyboard; with SDL.Mouse; with SDL.Joystick; with SDL.Events; with SDL.Error; with SDL.Byteorder; with SDL.Byteorder.Extra; with SDL.Audio; with SDL.Audio.Extra; with SDL.Quit; wi...
-- { dg-do compile } package Unchecked_Union2 is type Small_Int is range 0 .. 2**19 - 1; type R1 (B : Boolean := True) is record case B is when True => Data1 : Small_Int; when False => Data2 : Small_Int; end case; end record; for R1 use record Data1 at 0 range 0 .. 1...
----------------------------------------------------------------------- -- Logs -- Utility Log Package -- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010, 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- y...
-- { dg-do compile } -- { dg-options "-O -fdump-tree-optimized" } procedure Loop_Optimization20 is type Array_T is array (Positive range <>) of Integer; type Obj_T (Length : Natural) is record Elements : Array_T (1 .. Length); end record; type T is access Obj_T; function Is_Null (S1 : Obj_T) r...
-- This package has been generated automatically by GNATtest. -- You are allowed to add your code to the bodies of test routines. -- Such changes will be kept during further regeneration of this file. -- All code placed outside of test routine bodies will be lost. The -- code intended to set up and tear down the t...
with Ada.Text_Io; use Ada.Text_Io; with Ada.Integer_Text_Io; use Ada.Integer_Text_Io; with Ada.Io_Exceptions; with Ada.Text_Io.Bounded_Io; with Arbre_Genealogique; use Arbre_Genealogique; with Date; use Date; procedure Main is -- On utilise des chaines de taille variable package Ada_Stri...
WITH GMP, GMP.Integers, Ada.Text_IO, GMP.Integers.Aliased_Internal_Value, Interfaces.C; USE GMP, Gmp.Integers, Ada.Text_IO, Interfaces.C; PROCEDURE Main IS FUNCTION "+" (U : Unbounded_Integer) RETURN Mpz_T IS (Aliased_Internal_Value (U)); FUNCTION "+" (S : String) RETURN Unbounded_Integer IS (To_Unbounded_Intege...
with System; use System; private with STM32_SVD.DFSDM; package STM32.DFSDM is type DFSDM_Block is limited private; type DFSDM_Channel is (Channel_0, Channel_1, Channel_2, Channel_3, Channel_4,...
-- Copyright 2019 Michael Casadevall <michael@casadevall.pro> -- -- 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, cop...
----------------------------------------------------------------------- -- Action_Bean - Simple bean with methods that can be called from EL -- Copyright (C) 2010, 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
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 test_instant is type stringptr is access all char_array; procedure PInt(i : in Integer) is begin String'Write (Text_Stream...
-- 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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with Ada.Streams; with Ada.Exceptions; with League.Stream_Element_Vectors; with League.Text_Codecs; with Spawn.Environments; with Spawn.Processes.Monit...
-- Philip Bjorge -- Simple barrier using protected types that -- waits on a certain number of entrants package body Barrier is protected body Barrier_Type is entry Here when not leave is begin count := count + 1; if count < wait_for then requeue Wait; else c...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package ft2build is --*************************************************************************** -- * -- * ft2build.h -- * -- * FreeType 2 build and setup macros. -- * -- * Copyright (C) 1996-2020 by -- * David Turner...
-- see OpenUxAS\src\Communications\ZeroMqAddressedAttributedMessageSender.h with ZMQ.Sockets; with UxAS.Comms.Data.Addressed.Attributed; use UxAS.Comms.Data.Addressed.Attributed; package UxAS.Comms.Transport.ZeroMQ_Sender.Addr_Attr_Msg_Senders is type ZeroMq_Addressed_Attributed_Message_Sender (Kind : ZMQ.Socket...
with DecaDriver; package Configurations is procedure Get_Switches_Configuration (Config : out DecaDriver.Core.Configuration_Type); end Configurations;
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Definitions; use Definitions; with Ada.Text_IO; package Port_Specification.Json is package TIO renames Ada.Text_IO; -- Describes the port using standard parameters formatted in JSON -- Used for R...
pragma License (Unrestricted); -- implementation unit required by compiler with Ada.Streams; package System.Shared_Storage is -- no-operation procedure Nop (Key : String) is null; function Nop (Key : String) return access Ada.Streams.Root_Stream_Type'Class is (null); type Lock_Handler is access pr...
--=========================================================================== -- -- This package is the implementation of the SH1107 package -- --=========================================================================== -- -- Copyright 2022 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause -- with ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Containers.Vectors; procedure Test_Ada2022 is package Integer_Vectors is new Ada.Containers.Vectors (Index_Type => Natural, Element_Type => Integer); use Integer_Vectors; procedure Increment_All (V : in out Vector) is begin ...
pragma Check_Policy (Validate => Disable); -- with Ada.Strings.Naked_Maps.Debug; with Ada.UCD.Simple_Case_Mapping; with System.Once; with System.Reference_Counting; package body Ada.Strings.Naked_Maps.Case_Mapping is use type UCD.Difference_Base; use type UCD.UCS_4; procedure Decode ( Mapping : in out ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright 2017 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. local json = require("json") name = "VirusTotal" type = "api" function start() setratelimit(15) end function vertical(ctx, domain) local c local cfg = data...
-- { dg-do compile } with Array25_Pkg; procedure Array25 is package My_Pkg is new Array25_Pkg (0, 0); begin null; end;
with AUnit.Test_Suites; use AUnit.Test_Suites; package AOC_Test_Suite is function Suite return Access_Test_Suite; end AOC_Test_Suite;
------------------------------------------------------------------------------ -- -- -- Hardware Abstraction Layer for STM32 Targets -- -- -- -- ...
----------------------------------------------------------------------- -- awa-events-queues -- AWA Event Queues -- Copyright (C) 2012 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 ...
with Types; use Types; with Curve25519_Add; use Curve25519_Add; with Curve25519_Mult; use Curve25519_Mult; with Curve25519_Other_Mult; use Curve25519_Other_Mult; with Ada.Text_IO; use Ada.Text_IO; procedure Test_Functions is begin -- Testing Add pragma Assert (Add ((0, 0, 0, 0, 0, 0, 0, 0, 0...
package Vect4_Pkg is function K return Integer; function N return Integer; end Vect4_Pkg;
-- with Interfaces.C.Strings; with Amp.Mono; with Amp.Stereo; package body Amp is function Descriptor (Index : C.unsigned_long) return access constant LADSPA.Descriptors is begin case Index is when 0 => return Amp.Mono.Mono_Descriptor.Data'Access; when 1 => retur...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with League.String_Vectors; package body Markdown.Common_Patterns is Link_Destination : constant Wide_Wide_String := "\<([^\<\>\\]|\\.)*\>"; Lin...
-- 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...
-- Copyright (c) 1990 Regents of the University of California. -- All rights reserved. -- -- This software was developed by John Self of the Arcadia project -- at the University of California, Irvine. -- -- Redistribution and use in source and binary forms are permitted -- provided that the above copyright notice and t...
pragma Style_Checks (Off); with Lv.Style; with System; with Lv.Objx.Label; with Lv.Objx.Page; with Lv.Objx.Btn; package Lv.Objx.List is subtype Instance is Obj_T; type Style_T is (Style_Bg, Style_Scrl, Style_Sb, Style_Btn_Rel, St...
pragma License (Unrestricted); -- extended unit pragma Style_Checks (Off, Standard.Ascii); -- package ASCII is "ASCII" in standard, but "Ascii" in GNAT style... package Ada.Characters.ASCII is -- Alternative version of Standard.ASCII. pragma Pure; NUL : Character renames Standard.ASCII.NUL; end Ada....
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Ada_Pretty.Clauses is -------------- -- Document -- -------------- overriding function Document (Self ...
limited with Actors, Engines; package Components.AIs is type AI is abstract tagged null record; procedure update(self : in out AI; owner : in out Actors.Actor; engine : in out Engines.Engine) is abstract; type Player_AI is new AI with private; overriding procedure update(self : in out...
-- { dg-do compile } with System; package body Bit_Packed_Array5 is function Inv (Word : Word_Type) return Word_Type is W : Word_Type := Word; pragma Volatile (W); A_W : constant System.Address := W'Address; V : Short_Bit_Array_Type; for V'Address use A_W; pragma Volatile (V)...
type Float_Luminance is new Float; type Float_Pixel is record R, G, B : Float_Luminance := 0.0; end record; function "*" (Left : Float_Pixel; Right : Float_Luminance) return Float_Pixel is pragma Inline ("*"); begin return (Left.R * Right, Left.G * Right, Left.B * Right); end "*"; function "+" (Left, Right ...
package body Memory.Prefetch is function Create_Prefetch(mem : access Memory_Type'Class; stride : Address_Type := 1) return Prefetch_Pointer is result : constant Prefetch_Pointer := new Prefetch_Type; begin result.stride := strid...
-- Lumen.Binary.IO -- Read and write streams of binary data from external -- files. -- -- Chip Richards, NiEstu, Phoenix AZ, Summer 2010 -- This code is covered by the ISC License: -- -- Copyright © 2010, NiEstu -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpo...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Sax.Readers; with Input_Sources.Strings; with Unicode.CES.Utf8; with My_Reader; procedure Extract_Students is Sample_String : String := "<Students>" & "<Student Name=""April"" Gender=""F"" DateOfBirth=""1989-01-02"" />" & "<Student Name=""Bob"" Gender=""M"" DateOfBirth=""1990-03-04"" />" & "<Student N...
----------------------------------------------------------------------- -- ado-sessions-factory -- Session Factory -- Copyright (C) 2009, 2010, 2011, 2012, 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- y...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" package body Yaml.Dom.Node_Memory is procedure Visit (Object : in out Instance; Value : not null access Node.Instance; Previously_Visited : out Boolean) is ...
package TREE_STATIC_Def is type Int is record Value : Integer; end record; procedure check (I : Int; v : integer); One : constant Int := (Value => 1); end;
with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Characters.Conversions; use Ada.Characters.Conversions; with Langkit_Support.Text; package body Offmt_Lib.Rewrite is pragma Style_Checks ("M120"); function U2WW (U : Unbounded_String) return Wide_Wide_String i...
-- -- Copyright (C) 2017, AdaCore -- -- This spec has been automatically generated from M2Sxxx.svd -- This is a version for the Microcontroller Subsystem (MSS) -- - Hard 166 MHz 32-Bit ARM Cortex-M3 Processor (r2p1) -- Embedded Trace Macrocell (ETM) -- Memory Protection Unit (MPU) -- JTAG Debug (4 wi...
-- { dg-do run } procedure Pack4 is type Time_T is record Hour : Integer; end record; type Date_And_Time_T is record Date : Integer; Time : Time_T; end record; pragma Pack(Date_And_Time_T); procedure Assign_Hour_Of (T : out Time_T) is begin T.Hour := 44; end;...
-- -- Copyright (C) 2017 Nico Huber <nico.h@gmx.de> -- -- 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 pr...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Hide.Value; procedure Hide.Encode_Generic is use all type Posix.C_String; Source_File : constant String := Posix.Get_Line; Offset : constant Natural := Value (Posix.Get_Line); Text : constant String := Posix.Get_Line; Output_File : constant String := Posix.Get_Line; begin Encode ((+...
with Tkmrpc.Types; package Tkmrpc.Contexts.nc is type nc_State_Type is (clean, -- No nonce present. invalid, -- Error state. created -- Nonce available. ); function Get_State (Id : Types.nc_id_type) return nc_State_Type with Pre => Is_Valid (...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
package Default_Value is function My_Function (X : Integer; Y : Integer := 2) return Integer; private function My_Function (X : Integer; Y : Integer := 2) return Integer is (X + Y); end Default_Value;
-------------------------------------------------------------------------------- -- Copyright (C) 2020 by Heisenbug Ltd. (gh+owm@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 Ho...
-- NORX_Load_Store -- A collection of functions to load and store words of different sizes from -- Storage_Array in Little Endian format. This version assumes that the machine -- is Little Endian and does unchecked conversions to convert the types. -- Copyright (c) 2016, James Humphry - see LICENSE file for details -...
with Ada.Containers.Generic_Array_Sort; with Ada.Containers.Hashed_Maps; with Ada.Containers.Vectors; with Ada.Strings.Unbounded.Hash; with Ada.Unchecked_Deallocation; with TOML.Generic_Dump; with TOML.Generic_Parse; package body TOML is use Ada.Strings.Unbounded; procedure Dump_To_String is new TOML.Generic_...
with bullet_c.Binding, bullet_c.Pointers, bullet_physics.Shape, c_math_c.Conversion, c_math_c.Vector_3, c_math_c.Matrix_3x3, c_math_c.Matrix_4x4, float_Math.Algebra.linear.D3, Swig, interfaces.C, ada.unchecked_Deallocation, ada.Unchecked_Conversion, ...
-- Copyright 2021 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. local json = require("json") name = "Robtex" type = "api" function start() setratelimit(1) end function vertical(ctx, domain) local cfg = datasrc_config() ...
------------------------------------------------------------------------ -- 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...
with Liste_Generique; package Vecteurs is type Vecteur is array(Positive range<>) of Float; subtype Point2D is Vecteur(1..2); subtype Point3D is Vecteur(1..3); package Liste_Points is new Liste_Generique(Point2D); type Facette is record P1, P2, P3 : Point3D; end record; package L...
----------------------------------------------------------------------- -- awa-images-tests -- Unit tests for images module -- Copyright (C) 2018, 2019, 2020, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ...
------------------------------------------------------------------------------ -- -- -- Ada binding for OpenGL/WebGL -- -- -- -- ...
with Ada.Text_Io; use Ada.Text_Io; procedure Mutual_Recursion is function M(N : Integer) return Integer; function F(N : Integer) return Integer is begin if N = 0 then return 1; else return N - M(F(N - 1)); end if; end F; function M(N : Integer) return Integer is beg...
-- 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,...
pragma SPARK_Mode; with Types; use Types; with Interfaces; use Interfaces; -- @summary -- Interface to Arduino Wire library -- -- @description -- Provides an interface to the Arudino Wire library. This is used for -- I2C busses. -- package Wire is -- Return result of a transmission -- @value Success succe...
with Ada.Real_Time; use Ada.Real_Time; package System_Function_Package is function System_A(X : Integer) return Integer; function System_B(Y : Integer) return Integer; function System_C(X, Y : Integer) return Integer; end System_Function_Package ;
With Ada.Containers.Indefinite_Holders, Ada.IO_Exceptions, Ada.Strings.Fixed; Package Body INI is use type Ada.Containers.Count_Type; Package String_Holder is new Ada.Containers.Indefinite_Holders( String ); Function "=" (Left, Right : String) return Boolean renames Ada.Strings.Equal_Case_Insensiti...
with Ada.Real_Time; with Keyboard; with Levels; with Player; with Render; with GESTE; with GESTE.Maths_Types; use GESTE.Maths_Types; with GESTE.Text; package body Game is package RT renames Ada.Real_Time; use type RT.Time; use type RT.Time_Span; Period : constant RT.Time_Span := RT.Seconds (1) / 60; ...
-- MIT License -- -- Copyright (c) 2021 Glen Cornell <glen.m.cornell@gmail.com> -- -- 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 rig...
private with Libadalang.Analysis; with A_Nodes; with Dot; private with Lal_Adapter.Node; -- with Lal_Adapter.Unit; package Lal_Adapter.Context is type Class is tagged limited private; procedure Process (This : in out Class; Input_File_Name : in String; Project_File_Name :...
-- SPDX-FileCopyrightText: 2019-2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Unit_Naming; private with Ada.Strings.Wide_Wide_Maps; package Program.GNAT_Unit_Naming is pragma Preelaborate; type GNAT_Unit_Nam...
Name: declare -- a local declaration block has an optional name A : constant Integer := 42; -- Create a constant X : String := "Hello"; -- Create and initialize a local variable Y : Integer; -- Create an uninitialized variable Z : Integer renames Y: -- Rename Y (creates a view) function F (X...
-- -- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- with Ada.Text_IO; use Ada.Text_IO; package body App is use GNAT.Sockets; use Ada.Streams; function To_String (SEA : Stream_Element_Array) return String is Offset : Stream_Element_O...
with ada.Strings.unbounded; package XML.Reader is use ada.Strings.unbounded; type Parser is private; function Create_Parser return Parser; type Start_Element_Handler is access procedure (Name : in unbounded_String; Atts : in XML.Attributes_...
-- C72002A.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 Interfaces.C; use Interfaces.C; with SDL_SDL_h; use SDL_SDL_h; with SDL_SDL_video_h; use SDL_SDL_video_h; package body SDL_Display is Display : access SDL_Surface; Screen_Offset : GESTE.Pix_Point := (0, 0); XS, XE, YS, YE : Natural := 0; X, Y : Natural := 0; ---------------- -- Init...
with Ada.Unchecked_Deallocation; package body kv.avm.Messages is type Message_Data_Type is record Source_Actor : kv.avm.Actor_References.Actor_Reference_Type; Reply_To : kv.avm.Actor_References.Actor_Reference_Type; Destination_Actor : kv.avm.Actor_References.Actor_Re...
with Pck; use Pck; procedure Foo is Some_Local_Variable : Integer := 1; External_Identical_Two : Integer := 74; begin My_Global_Variable := Some_Local_Variable + 1; -- START Proc (External_Identical_Two); end Foo;
package Card_Dir is type Cardinal_Direction is (N, NE, E, SE, S, SW, W, NW); --enumerator for cardinal directions end Card_Dir;
with Ada.Text_IO; with kv.avm.vole_tree; use kv.avm.vole_tree; with kv.avm.Tree_Visitors; use kv.avm.Tree_Visitors; package kv.avm.Tree_Rewrite is type Rewriter_Class is limited new Visitor_Class with record Temp : Natural := 0; Block : Natural := 0; end record; procedure Init ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- -- Copyright (C) 2017 Nico Huber <nico.h@gmx.de> -- -- 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 pr...
procedure numtriangular (n1: in Integer; resultado: out Integer) is indice:integer:=0; begin resultado:=0; indice:=n1; while indice/=0 loop resultado:=resultado+indice; indice:=indice-1; end loop; end numtriangular;
with Screen_Interface; use Screen_Interface; package Fonts is type BMP_Font is (Font8x8, Font12x12, Font16x24); procedure Draw_Char (X, Y : Integer; Char : Character; Font : BMP_Font; FG, BG : Color); procedure Draw_Char (X, Y : Integer; Char : Character; F...
-- This package has been generated automatically by GNATtest. -- Do not edit any part of it, see GNATtest documentation for more details. -- begin read only with GNATtest_Generated; package Crew.Member_Data_Test_Data.Member_Data_Tests is type Test_Member_Data is new GNATtest_Generated.GNATtest_Standard.Crew ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with System.Storage_Pools.Subpools; private with Program.Compilation_Units; private with Program.Element_Factories; private with Prog...
with SAX.Readers; with DOM.Readers; with Input_Sources.Strings; with Unicode.CES.Utf8; with Dom.Core.Elements; with DOM.Core.Nodes; with Ada.Strings.Maps; with Ada.Strings.Fixed; package body XML_Utilities is procedure Remove_White_Space (Doc : Dom.Core.Node) is use Dom.Core; use Dom.Core.Nodes; ...
----------------------------------------------------------------------- -- security-openid-servlets - Servlets for OpenID 2.0 Authentication -- Copyright (C) 2010, 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Li...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with GBA.Memory; use GBA.Memory; with GBA.Memory.IO_Registers; package GBA.DMA is type Dest_Address_Adjustment is ( Increment , Decrement , Fixed , Increment_And_Reset ); for Dest_Address_Adjustment use ( In...
with Ada.Streams.Stream_IO; with League.Text_Codecs; with League.Stream_Element_Vectors; with XML.SAX.Pretty_Writers; with XML.SAX.String_Output_Destinations; with Incr.Debug; package body Ada_LSP.Documents.Debug is ---------- -- Dump -- ---------- procedure Dump (Self : Document; Name : St...