content
stringlengths
23
1.05M
with openGL.Visual, openGL.Palette, openGL.Font, openGL.Model.Text.lit_colored, openGL.Demo; procedure launch_render_Text -- -- Render updated text. -- is use openGL, openGL.Palette, openGL.Math, openGL.linear_Algebra_3d; the_font_Id : constant openGL.Font.font_Id ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Main 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; Annee : Integer; begin Get(Ann...
with Test_Solution; use Test_Solution; with Ada.Containers.Vectors; package Problem_7 is type Int64 is range -2**63 .. 2**63 - 1; package P is new Ada.Containers.Vectors(Index_Type => Natural, Element_Type => Int64); function Solution_1( Num : Integer ) return Int64; procedure Test_Solution_1; ...
-- PACKAGE Crout_LU -- -- LU decomposition and linear equation solving, with partial pivoting, -- for square, real valued matrices. -- -- A square (N X N) matrix with elements of generic type Real -- is input as "A" and returned in LU form, along with an array -- containing information on the permutation of the rows o...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd. -- -- SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from rp2040.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package RP_SVD.PSM is pragma Preelaborate; ...
-- C95066A.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...
package openGL.surface_Profile.privvy is function to_GLX (Self : in Item'Class) return glx.FBConfig; end openGL.surface_Profile.privvy;
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017-2018, AdaCore and other contributors -- -- -- -- ...
-- -- Copyright (C) 2021 Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- with HAL.I2C; use HAL.I2C; with HAL; use HAL; package HT16K33 is type Device (Port : not null Any_I2C_Port; Address : I2C_Address) is tagged limited record -- byte 0 is the address c...
with Ada.Text_Io, Datos; with Crear_Lista_Vacia, Esc, Insertar_al_Final; use Datos; use Ada.Text_Io; procedure Prueba_Insertar_al_Final is Lis : Lista; -- variable del programa principal procedure Pedir_Return is begin Put_Line("pulsa return para continuar "); Skip_Line; end Pedir_Retur...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2020, Luke A. Guest -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising f...
package Motor is pragma Elaborate_Body; subtype Percentage is Integer range 0 .. 100; type Travel_Directions is (Forward, Backward, Neither); type Travel_Vector is record Power : Percentage; Direction : Travel_Directions; Emergency_Braking : Boolean := False; end...
with Ada.Text_IO; use Ada.Text_IO; package body Lib_A is ------------------- -- Print_Content -- ------------------- procedure Print_Content is File : File_Type; begin Open (File, In_File, Lib_A.Resources.Resource_Path & "/text_file.txt"); while not End_Of_File (File) loop ...
private package Spawn_Manager.Server is function Spawn (Request : Spawn_Request) return Spawn_Response; end Spawn_Manager.Server;
package body Libtcod.Color is use Interfaces.C; --------------------- -- make_RGB_color -- --------------------- function make_RGB_color(r, g, b : RGB_Component) return RGB_Color is begin return result : RGB_Color := RGB_Color(color_h.TCOD_color_RGB(unsigned_char(r), unsigned_char(g), ...
------------------------------------------------------------------------------ -- Copyright (c) 2013-2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- 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 Tk.Button.Button_Options_Test_Data.Button_Options_Tests is type Test_Button_Options is new GNATtest_Generated.GNATtest_St...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- Abstract : -- -- Ada implementation of wisi parser actions. -- -- References -- -- [1] wisi-parse-common.el - defines common stuff. -- -- [2] wisi.texi - defines parse action functions. -- -- [3] wisi-process-parse.el - defines elisp/process API -- -- Copyright (C) 2017 - 2020 Free Software Foundation, Inc. -...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Fixed; use Ada.Strings.Fixed; procedure Test_Slices is Str : constant String := "abcdefgh"; N : constant := 2; M : constant := 3; begin Put_Line (Str (Str'First + N - 1..Str'First + N + M - 2)); Put_Line (Str (Str'First + N - 1..Str'Last)); ...
----------------------------------------------------------------------- -- servlet-server -- Servlet Server -- Copyright (C) 2009, 2010, 2011, 2015, 2016, 2018, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
----------------------------------------------------------------------- -- babel-strategies -- Strategies to backup files -- 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 fil...
with Ada.Exception_Identification.From_Here; with System.Address_To_Named_Access_Conversions; with System.Standard_Allocators; with System.Storage_Elements; with System.Zero_Terminated_WStrings; with C.string; with C.winerror; package body System.Native_Directories.Volumes is use Ada.Exception_Identification.From_He...
package body HIL.SPI is procedure configure is null; procedure select_Chip (Device : Device_ID_Type) is null; procedure deselect_Chip (Device : Device_ID_Type) is null; -- with Global => (Input => (Deselect)); procedure write (Device : Device_ID_Type; Data : Data_Type) is null; -- send byte array...
with String_Utils; use String_Utils; with UxAS.Comms.Transport.ZeroMQ_Fabric; use UxAS.Comms.Transport; package body UxAS.Comms.Transport.ZeroMQ_Sender is ---------------- -- Initialize -- ---------------- procedure Initialize (This : in out ZeroMq_Sender_Base; Source_Group : String;...
with OpenAL.Context.Error; with OpenAL.Context; with OpenAL.Extension.EFX; with Test; procedure efx_001 is package ALC renames OpenAL.Context; package ALC_Error renames OpenAL.Context.Error; package AL_EFX renames OpenAL.Extension.EFX; Device : ALC.Device_t; Context : ALC.Context_t; OK : Bo...
with Ada.Containers.Ordered_Maps; use Ada.Containers; generic type Key_Type is (<>); package Histograms is type Histogram_Type is tagged private; procedure Reset(hist : in out Histogram_Type); procedure Increment(hist : in out Histogram_Type; key : in Key_Type); procedur...
with Ada.Streams; generic type Element_Type is private; package remote_type is pragma Remote_Types; type List is private; procedure Append (Container : in out List; New_Item : in Element_Type); private use Ada.Streams; type List_Record is record A : Boolean; end record; typ...
-- { dg-do compile } -- { dg-options "-gnatws" } procedure aggr4 is type Byte is range 0 .. 2**8 - 1; for Byte'Size use 8; type Time is array (1 .. 3) of Byte; type UTC_Time is record Values : Time; end record; type Local_Time is record Values : Time; end record;...
with Ada.Characters.Conversions; package body GNAT.Decode_String is procedure Decode_Wide_Character ( Input : String; Ptr : in out Natural; Result : out Wide_Character) is Item : Wide_Wide_Character; begin Decode_Wide_Wide_Character (Input, Ptr, Item); Result := Ada.Charact...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- AWA.Storages.Models -- AWA.Storages.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-spec.xhtml -- Ada Generator: https://ada-...
with Ada.Text_IO; use Ada.Text_IO; with GNAT.OS_Lib; use GNAT.OS_Lib; procedure AdaLang is Result : Boolean; Arguments : Argument_List := ( 1=> new String'("erl"), 2=> new String'("-noshell"), 3=> new String'("-run"), 4=> new String'("erlanglang"), ...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with WebIDL.Arguments; with WebIDL.Interface_Members; package WebIDL.Constructors is pragma Preelaborate; type Constructor is limited interface ...
----------------------------------------------------------------------- -- util-texts-builders -- Text builder -- Copyright (C) 2013, 2016, 2017 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 fi...
-- This package implements several base commands that are useful to -- almost all IRC bots, such as PING, outputting lines from the -- server, etc. with Irc.Bot; with Irc.Message; private with Ada.Strings.Unbounded; private with GNAT.Regpat; package Irc.Commands is subtype Connection is Irc.Bot.Connection; ...
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...
with Ada.Characters.Handling; use Ada.Characters.Handling; with Glib.Object; use Glib.Object; package body Gate3_Glib is ------------ -- To_Ada -- ------------ function To_Ada (S : String; Separator : Character := '_') return String is First : constant Positive := S'First; K ...
package body Benchmark.Matrix is procedure Set_Argument(benchmark : in out Matrix_Type; arg : in String) is value : constant String := Extract_Argument(arg); begin if Check_Argument(arg, "size") then benchmark.size := Positive'Value(value); elsif Check_...
pragma License (Unrestricted); -- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux) with Ada.Interrupts; package System.Native_Interrupts.Vector is subtype Parameterless_Handler is Ada.Interrupts.Parameterless_Handler; function Current_Handler (Interrupt : Interrupt_Id) return Paramet...
--- util-pipes.adb.orig 2021-09-04 15:38:31 UTC +++ util-pipes.adb @@ -132,16 +132,8 @@ package body Util.Pipes is -- <stdio.h>, the ISO C standard requires that they also be available -- as real functions. Hence we may import them directly. - pragma Linker_Options ("util-nl.o"); - - functio...
-- { dg-do compile } with Deques; procedure Show_Deques_Priority is use Deques; PD : aliased P_Deque := Create; begin PD.Pop; end Show_Deques_Priority;
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Wide_Wide_Text_IO; with Program.Element_Iterators; with Program.Element_Visitors; with Program.Elements.Pragmas; with Program.Elements.Defining_I...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- The Village of Vampire by YT, このソースコードはNYSLです with Crypto.MD5; package body Tabula.Users is pragma Compile_Time_Error ( Password_Digest'Length /= Crypto.MD5.Fingerprint'Length, "length of MD5 /= 16"); pragma Compile_Time_Error ( Password_Digest_Image'Length /= Crypto.MD5.Message_Digest'Length, "image l...
-- MIT License -- -- Copyright (c) 2020 Max Reznik -- -- 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, mo...
------------------------------------------------------------------------------ -- Copyright (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with Ada.Text_IO; use Ada.Text_IO; with Libadalang.Analysis; use Libadalang.Analysis; with Libadalang.Common; use Libadalang.Common; with Rejuvenation; use Rejuvenation; with Rejuvenation.Finder; use Rejuvenation.Finder; with Rejuvenation.Patterns; use Reju...
with System.Address_To_Named_Access_Conversions; with System.Growth; with System.Zero_Terminated_WStrings; with C.basetsd; with C.winbase; with C.windef; with C.winnt; package body System.Program is use type C.basetsd.SSIZE_T; package LPWSTR_Conv is new Address_To_Named_Access_Conversions (C.winnt.WCHAR, C...
with perception_data_h; use perception_data_h; with localization_data_h; use localization_data_h; with speed_data_h; use speed_data_h; with gpsModule; with types; use types; with Interfaces.C; use Interfaces.C; with Interfaces.C.Extensions; with Interface_utils; use Interface_utils; with converters; use converters; pa...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Ada.Text_IO; with GL.Attributes; with GL.Buffers; with GL.Files; with GL.Objects.Buffers; with GL.Objects.Shaders; with GL.Objects.Programs; with GL.Objects.Vertex_Arrays; with GL.Types.Colors; w...
package body collada.Library is function find_in (Self : Inputs; the_Semantic : in library.Semantic) return Input_t is begin for i in Self'Range loop if Self (i).Semantic = the_Semantic then return Self (i); end if; end loop; return null_Input;...
procedure Flood_Fill ( Picture : in out Image; From : Point; Fill : Pixel; Replace : Pixel; Distance : Luminance := 20 ) is function Diff (A, B : Luminance) return Luminance is pragma Inline (Diff); begin if A > B then...
package Parent.Child is type Domain_Member is private; function create return Domain_Member; private type Domain_Member is new Integer; end Parent.Child;
with GL; package Render.Shaders is ShaderException : Exception; --------------------------------------------------------------------------- -- Shader Variables. Consider moving these into their own record types --------------------------------------------------------------------------- -- Text s...
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
with Interfaces.C.Strings; with Ada.Text_IO; use Ada.Text_IO; with Ada.Characters.Handling; with Ada.Command_Line; with GNAT.OS_Lib; with SDL.Video; with SDL.Events; with SDL.Error; with SDL.Joystick; with SDL.Types; use SDL.Types; with SDL.Keysym; procedure TestJoystick is package C renames Interfaces.C; use ...
------------------------------------------------------------------------------ -- Copyright (C) 2017-2020 by Heisenbug Ltd. (gh+saatana@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...
-- { dg-do compile } -- { dg-options "-O3" } -- { dg-options "-O3 -msse2" { target i?86-*-* x86_64-*-* } } package body Loop_Optimization10 is function F (Low, High : in Array_Real_Type) return Array_Limit_Type is Result : Array_Limit_Type; begin for I in Result'Range loop Result (I) ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2019 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 Ada.Containers.Vectors, Ada.Exceptions, Ada.Integer_Text_IO, Ada.Text_IO; with Utils; procedure Main is use Ada.Containers, Ada.Text_IO; use Utils; type Binary_Rate is record Zero : Natural; One : Natural; end record; type Binary is mod 2; package Binary_R...
------------------------------------------------------------------------------- -- 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...
with LV_Conf; use LV_Conf; with Lv; use Lv; with Lv.Area; with Lv.Objx; use Lv.Objx; with Lv.Objx.Cont; with Lv.Objx.Tabview; with Lv.Objx.Page; with Lv.Objx.Btn; with Lv.Objx.Btnm; with Lv.Objx.Label; with Lv.Objx.Switch; with Lv.Objx.Bar; with Lv.Objx.Slider; with Lv.Objx.Line; with Lv.Objx.Textarea; with Lv.Objx.Ch...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- The package Ada.Strings.Unbounded contains the definition of the Unbounded_String type and all its methods Src : Unbounded_String := To_Unbounded_String("Hello"); Dest : Unbounded_String := Src;
-- This spec has been automatically generated from STM32L151.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.RI is pragma Preelaborate; --------------- -- Registers -- --------------- subtype ICR_IC1IOS_Field is HAL...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
package Discr9 is type IArr is Array (Natural range <>) of Integer; type CArr is Array (Natural range <>) of Character; type Var_R (D1 : Boolean; D2 : Boolean) is record case D1 is when True => L : IArr (1..4); M1, M2 : CArr (1..16); when False => null; end case; end record;...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
with Giza.Context; with Giza.Events; use Giza.Events; with Giza.Widget.Text; with Giza.Widget.Button; use Giza.Widget; with Screen_Interface; use Screen_Interface; with Test_Main_Window; package Timer_Callback is Main_W : aliased Test_Main_Window.Main_Window; My_Str : access String := new String'("Gte...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. with Ada.Characters.Handling; use Ada.Characters.Handling; with Ada.Tags; use Ada.Tags; with Ada.Calendar; use Ada.Calendar; with Ada.Exceptions; ...
-- C48006B.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...
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Streams; with League.JSON.Objects; with League.String_Vectors; with League.Strings; with League.Stream_Element_Vectors; pac...
with Ada.Finalization; with Protypo.Api.Engine_Values.Handlers; with Protypo.Api.Engine_Values.Engine_Value_Vectors; -- -- ## What is this? -- -- This is a wrapper that includes in itself a vector of `Engine_Value`. -- It allows to access the internal vector via the `Vector` function -- that returns a reference. -- -- ...
pragma Priority_Specific_Dispatching(FIFO_Within_Priorities, 2, 30); --high priority tasks pragma Priority_Specific_Dispatching(Round_Robin_Within_Priorities, 1, 1); --low priority tasks with Ada.Text_IO; use Ada.Text_IO; with Ada.Real_Time; use Ada.Real_Time; procedure mixedscheduling is package Dura...
with GL.Types; with Orka.Behaviors; with Integrators.RK4; package Atmosphere_Types is type No_Behavior is new Orka.Behaviors.Behavior with record Position : Orka.Behaviors.Vector4 := Orka.Behaviors.Null_Behavior.Position; end record; overriding function Position (Object : No_Behavior) return Orka...
pragma License (Unrestricted); -- implementation unit required by compiler package System.Fat_LLF is pragma Pure; package Attr_Long_Long_Float is -- required for Long_Long_Float'Adjacent by compiler (s-fatgen.ads) function Adjacent (X, Towards : Long_Long_Float) return Long_Long_Float wit...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Expressions; with Program.Elements.Operator_Symbols; with Program.Elements.Infix_Operators; with Program.Element_Visitors; package Pr...
-- { dg-do compile } procedure in_mod_conv is package Test is type T is new Natural range 1..6; subtype T_SubType is T range 3..5; type A1 is array (T range <>) of boolean; type A2 is new A1 (T_SubType); PRAGMA pack (A2); type New_A2 is new A2; end Test; package body Test is ...
------------------------------------------------------------------------------- -- Copyright (c) 2020 Daniel King -- -- 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...
with STM32_SVD.GPIO; use STM32_SVD.GPIO; with STM32_SVD.AFIO; use STM32_SVD.AFIO; with STM32_SVD.RCC; use STM32_SVD.RCC; with STM32GD.GPIO.Port; package body STM32GD.GPIO.Pin is type Port_Periph_Access is access all GPIO_Peripheral; function Index return Natural is begin return GPIO_Pin'Pos (Pin); end Index; ...
with Ada.Text_Io; use Ada.Text_Io; with vectores; use vectores; with eliminar_tercer_elemento_ordenada, escribir_vector; procedure prueba_eliminar_tercer_elemento_ordenada is -- este programa hace llamadas al subprograma eliminar_tercer_elemento -- para comprobar si su funcionamiento es correcto Lista1: Vector_...
package Opt18_Pkg is pragma Pure; type Limit_Type is record Low : Float; High : Float; end record; function First_Order_Trig return Float; type Trig_Pair_Type is record Sin : Float; Cos : Float; end record; function Atan2 (Trig : in Trig_Pair_Type) return Float; ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- 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...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Meta.Classes is ---------------- -- Add_Parent -- ---------------- not overriding procedure Add_Parent (Self : in out Class;...
package Oalign2 is Klunk2 : Integer := 12; for Klunk2'Alignment use Standard'Maximum_Alignment; end;
-- { dg-do compile } -- { dg-options "-g" } with Debug2_Pkg; use Debug2_Pkg; package body Debug2 is procedure Proc is function F return String_List_Ptr is begin return new String_List'(Singleton); end; A : String_List_Ptr := F; begin null; end; ...
-- -- Copyright (C) 2021 Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- package body Graphics is type Buffer_Index is mod 2; Buffers : array (Buffer_Index) of aliased Picosystem.Screen.Scanline; Swap : Buffer_Index := Buffer_Index'First; procedure Initialize...
-- AOC 2020, Day X with Ada.Containers.Vectors; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Day is -- type Orbit_Checksum is new Natural; -- function load_orbits(filename : in String) return Orbit_List.Vector; -- function orbit_count_checksum(ol : in Orbit_List.Vector) return Orbit_Checksum;...
-- C39006F1.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...
type Link is limited record Next : not null access Link := Link'Unchecked_Access; Prev : not null access Link := Link'Unchecked_Access; Data : Integer; end record;
with Interfaces.C, System; use type System.Address; package body FLTK.Devices.Surfaces.Copy is function new_fl_copy_surface (W, H : in Interfaces.C.int) return System.Address; pragma Import (C, new_fl_copy_surface, "new_fl_copy_surface"); pragma Inline (new_fl_copy_su...
with Memory.Split; use Memory.Split; with Memory.Container; use Memory.Container; with Util; use Util; separate (Parser) procedure Parse_Split(parser : in out Parser_Type; result : out Memory_Pointer) is split : Split_Pointer := Create_Split; mem : Memory_Point...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- 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,...
-- This file provides the API for the random number generator on the STM32F4 -- (ARM Cortex M4F) microcontrollers from ST Microelectronics. -- -- See the child packages for routines to initialze the generator and acquire -- numbers, using either polling or interrupts. package STM32.RNG is procedure Enable_RNG;...