content
stringlengths
23
1.05M
-- Auto_Counters_Suite.C_Resources_Tests -- Unit tests for Auto_Counters Unique_C_Resources and Smart_C_Resources -- packages -- Copyright (c) 2016, James Humphry - see LICENSE file for details with AUnit.Assertions; with Unique_C_Resources; with Smart_C_Resources; with Basic_Counters; package body Auto_Counters_Su...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Interfaces; use Interfaces; ... type Octet is new Interfaces.Unsigned_8; type Octet_String is array (Positive range <>) of Octet;
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- with Ada.Real_Time; use Ada.Real_Time; package Timing is function Timer return Time_Span; end Timing;
with Ada.Text_IO; with Ast_Printers; with Exprs; use Exprs; with Tokens; use Tokens; procedure Test_Ast with SPARK_Mode => Off is Test_Expr, U, N, G, F : Expr_Handle; begin Create_Num_Literal (123, N); Create_Unary (New_Token (T_MINUS, "-", 1), N, U); Create_Float_Literal (45.67, F); Create_Grouping (F,...
-- -- Copyright 2021 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause -- with Interfaces; with HAL; with Matrix_Area_Word; with Matrix_Area_Double_Word; package body Execute.Matrices is -------------------------------------------------------------------------- -- Conversion functions from C...
with Ada.Text_IO; package body Problem_04 is package IO renames Ada.Text_IO; procedure Solve is begin for Larger in reverse 100 .. 999 loop for Smaller in reverse 100 .. Larger loop declare word : constant String := Positive'Image(Larger * Smaller); lowe...
-- This spec has been automatically generated from STM32WL5x_CM4.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.Flash is pragma Preelaborate; --------------- -- Registers -- --------------- subtype ACR_LATENCY_Fiel...
-- BinToAsc.Base32 -- Binary data to ASCII codecs - Base64 codec as in RFC4648 -- Copyright (c) 2015, James Humphry - see LICENSE file for details with Ada.Characters.Handling; package body BinToAsc.Base32 is use Ada.Characters.Handling; function Make_Base32_Reverse_Alphabet return Reverse_Alphabet_Lookup is...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Element_Vectors; with Program.Lexical_Elements; with Program.Elements.Expressions; with Program.Elements.Array_Component_Associations; with Pro...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with bits_types_h; with bits_types_struct_timespec_h; package bits_struct_stat_h is -- unsupported macro: st_atime st_atim.tv_sec -- unsupported macro: st_mtime st_mtim.tv_sec -- unsupported macro: st_ctime st_ctim.tv_sec ...
package body impact.d3.collision.Detector.discrete is overriding procedure addContactPoint (Self : in out btStorageResult; normalOnBInWorld : in math.Vector_3; pointInWorld : in math.Vector_3; ...
with Ada.Text_Io; use Ada.Text_Io; with Ada.Integer_Text_Io; use Ada.Integer_Text_Io; procedure Loop_And_Half is I : Positive := 1; begin loop Put(Item => I, Width => 1); exit when I = 10; Put(", "); I := I + 1; end loop; New_Line; end Loop_And_Half;
with Control; with Ada.Real_Time;use Ada.Real_Time; package body Blinker is protected body Cmd_Type_Access is procedure Send( Cmd : Command_To_Type ) is --binary semaphore begin Command_Is_New := False; if Command_To.Cmd /= Cmd.Cmd then Command_To := Cmd; Comman...
with Units; use Units; with Units.Navigation; use Units.Navigation; package config is end config;
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with GBA.Memory; use GBA.Memory; with GBA.Display.Palettes; use GBA.Display.Palettes; package GBA.Display.Tiles is type Tile_Data_4 is array (1 .. 8, 1 .. 8) of Color_Index_16 with Pack, Size => 32 * 8; type Tile_Data_8 is arr...
--=========================================================================== -- -- This package is the implementation -- for the Tiny RP2040 board -- --=========================================================================== -- -- Copyright 2022 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Slim.Message_Visiters; package body Slim.Messages.BUTN is List : constant Field_Description_Array := ((Uint_32_Field, 1...
package PP_F_Exact is -- Various SPARK functions for use in SPARK assertions. -- These functions are then featured in VCs and PolyPaver will -- understand their meaning. For each of these functions, -- its semantics is the exact real interpretation of its name. -- -- The F in the package name stands ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Ada.Exceptions; use Ada.Exceptions; -- TODO clean with Ada.Text_Io; with Posix; with Posix.Io; package body Util is package ATIO renames Ada.Text_Io; package PIO renames Posix.Io; procedure Verbose_Print (Msg : String) is -- TODO rename Debug_Print? begin -- TODO define type for severity?...
package body OpenGL.Texture is -- -- Mappings between enumeration types and OpenGL constants. -- function Environment_Target_To_Constant (Target : in Environment_Target_t) return Thin.Enumeration_t is begin case Target is when Texture_Environment => return Thin.GL_TEXTURE_ENV; when Te...
-- { dg-do compile } procedure Atomic2 is type Big is array (1..4) of Integer; type Arr is array (1..10) of Big; pragma Atomic_Components (Arr); -- { dg-warning "cannot be guaranteed" } begin null; end;
private with Ada.Containers.Vectors, System.Address_To_Access_Conversions, Interfaces.C.Strings; package FLTK.Text_Buffers is type Text_Buffer is new Wrapper with private; type Text_Buffer_Reference (Data : access Text_Buffer'Class) is limited null record with Implicit_Dereference =>...
-- { dg-do compile } package body Varsize3_1 is end Varsize3_1;
with openGL.Errors, openGL.Tasks, ada.unchecked_Deallocation; package body openGL.Buffer is use type a_Name; --------------- -- Buffer Name -- function new_vbo_Name return a_Name is Name : aliased a_Name; begin Tasks.check; glGenBuffers (1, Name'unchecked_Acces...
----------------------------------------------------------------------- -- util-processes-os -- System specific and low level operations -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
-- BinToAsc_Suite.Base64_Tests -- Unit tests for BinToAsc -- Copyright (c) 2015, James Humphry - see LICENSE file for details with AUnit.Assertions; with System.Storage_Elements; with Ada.Assertions; package body BinToAsc_Suite.Base64_Tests is use AUnit.Assertions; use System.Storage_Elements; use RFC464...
with C3GA; with Points; package Geometric_Objects is function Set_Line (L1, L2 : C3GA.Normalized_Point) return C3GA.Line; end Geometric_Objects;
----------------------------------------------------------------------- -- objects.cache -- Object cache -- Copyright (C) 2009, 2010 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...
with STM32.Device; use STM32.Device; with STM32.Timers; use STM32.Timers; package body Inverter_ADC is function To_Voltage (Value : in UInt16) return Voltage with Inline; procedure Initialize_ADC_Timer; -- Initialize the timer to start ADCs convertions. -------------------- -- I...
-- -- Radoslaw Kowalski 221454 -- with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings; use Ada.Strings; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Ada.Calendar; with Rails; use Rails; package Trains is package Calendar renames Ada.Calendar; type Train (Route_Length: Integer) ...
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Incr.Lexers.Batch_Lexers is ------------------------- -- Get_Start_Condition -- ------------------------- ...
-- -- Copyright (C) 2021 Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- -- Adafruit 16x8 LED Matrix Driver Backpack - HT16K33 Breakout -- https://www.adafruit.com/product/1427 -- with HAL; use HAL; with HT16K33; package Seven is type Device is new HT16K33.Device with private; ...
pragma Style_Checks (Off); with CSS.Analysis.Parser.Lexer_dfa; use CSS.Analysis.Parser.Lexer_dfa; -- Warning: This file is automatically generated by AFLEX. -- It is useless to modify it. Change the ".Y" & ".L" files instead. with Text_IO; use Text_IO; package CSS.Analysis.Parser.Lexer_io is -- Warnin...
----------------------------------------------------------------------- -- net-headers -- Network headers -- Copyright (C) 2016 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 comp...
generic type I is interface; with procedure P (X : I) is abstract; package gen_interface_p is end;
-------------------------------------------------------------------------------------------------------------------- -- 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...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Real_Time; use Ada.Real_Time; procedure ExecutionTimes is package Duration_IO is new Ada.Text_IO.Fixed_IO(Duration); package Int_IO is new Ada.Text_IO.Integer_IO(Integer); function F(N : Integer) return Integer; function F(N : Integer) return Integer is ...
----------------------------------------------------------------------- -- wiki-filters-html -- Wiki HTML filters -- Copyright (C) 2015, 2016, 2020 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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- { dg-do run } with Init12; use Init12; with Text_IO; use Text_IO; with Dump; procedure S12 is A11 : Arr11 := My_A11; A22 : Arr22 := My_A22; A1 : Arr1; A2 : Arr2; C1 : Integer; C2 : Integer; C3 : Integer; begin Put ("A11 :"); Dump (A11'Address, Arr11'Max_Size_In_Storage_Elements); New_Line; ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Declarations; with Program.Elements.Defining_Identifiers; with Program.Lexical_Elements; with Program.Elements.Subtype_Indications; wi...
-- Mojang Authentication 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 th...
-- -- Check if an image is opaque (fully non-transparent). -- -- Small-size demo for the GID (Generic Image Decoder) package. -- For a larger example, look for to_bmp.adb . -- with GID; with Ada.Calendar; with Ada.Characters.Handling; use Ada.Characters.Handling; with Ada.Command_Line; ...
-- Copyright 2016-2019 NXP -- All rights reserved.SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from LPC55S6x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package NXP_SVD.FLASH_KEY_STORE is pragma Preel...
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Incr.Nodes.Joints; package body Incr.Nodes.Ultra_Roots is ----------- -- Arity -- ----------- overriding func...
--=========================================================================== -- -- This package is the implementation of the demo package showing examples -- for the SH1107 OLED controller -- --=========================================================================== -- -- Copyright 2022 (C) Holger Rodriguez -- -...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
-- { dg-do run } -- { dg-options "-O2" } procedure Opt4 is type Rec (D : Natural) is record S : String (1..D); end record; procedure Test (R : Rec) is begin if R.D /= 9 then raise Program_Error; end if; end; R : Rec(9); begin R := (9, "123456789"); Test (R); end;
package body power_station with SPARK_Mode is ------------------- -- Start_Reactor -- ------------------- procedure Start_Reactor is Pressure, Temperature : Integer; Pressure_Warning, Pressure_Danger : Boolean; Temperature_Warning, Temperature_Danger : Boolean; Shutdown : Boolean; ...
-- PACKAGE Factorial -- -- Natural logarithm of Factorial for arguments 0 and greater. -- -- Uses Stieltjes' Continued Fraction method arg > 32, and -- table for 0 <= arg <= 32. -- -- Meant to be good to (much much) better than 30 digits (if you -- can instantiate with a 30+ digit Real). That's why the -- order of th...
with Ada.Containers.Vectors; package AdaM.program_Unit is type Item is interface; -- View -- type View is access all Item'Class; -- Vector -- package Vectors is new ada.Containers.Vectors (Positive, View); subtype Vector is Vectors.Vector; private procedure dummy; end Ada...
package Primes with SPARK_Mode is function IsPrime (N : in Positive) return Boolean with SPARK_Mode, Pre => N >= 2, Post => (if IsPrime'Result then (for all I in 2 .. N - 1 => N rem I /= 0) else (for some I in 2 .. N - 1 => N rem I = 0)); end Pr...
with Ada.integer_text_IO; use Ada; procedure add_by_referance is procedure add(a, b: in Integer; c: out Integer) is begin c := a + b; end add; answer : Integer; begin add(3, 5, answer); integer_text_IO.put(answer); end add_by_referance;
-- { dg-do compile } with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Controller is type Iface is interface; type Thing is tagged record Name : Unbounded_String; end record; type Object is abstract new Thing and Iface with private; private type Object is abstract new Thing and Ifac...
package Discr36_Pkg is generic type T is private; function Func return T; end Discr36_Pkg;
package body Plugin.Base is procedure Say (Message : IRC.Message) is Arguments : Vector := Words (Message.Content); Answer : IRC.Message := Message; begin Answer.Channel := Arguments (2); Delete (Arguments, 1); Delete (Arguments, 1); Answer.Content := Unwords (Arguments); ...
-- ----------------------------------------------------------------------------- -- smk, the smart make (http://lionel.draghi.free.fr/smk/) -- © 2018, 2019 Lionel Draghi <lionel.draghi@free.fr> -- SPDX-License-Identifier: APSL-2.0 -- ----------------------------------------------------------------------------- -- Licen...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
with Ada.Strings.Bounded; package Encodings.Encoding_Lists is Encoding_Name_Length_Maximum: constant := 16; package Encoding_Name_Strings is new Ada.Strings.Bounded.Generic_Bounded_Length( Max => Encoding_Name_Length_Maximum ); end Encodings.Encoding_Lists;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Interfaces.COBOL; use Interfaces.COBOL; package body P_StructuralTypes is package T_Bit_IO is new Ada.Text_IO.Modular_IO(T_Bit); function O_plus (b1 : in T_B...
with Ada.Text_IO; procedure Digits_Squaring is function Is_89 (Number : in Positive) return Boolean is Squares : constant array (0 .. 9) of Natural := (0, 1, 4, 9, 16, 25, 36, 49, 64, 81); Sum : Natural := Number; Acc : Natural; begin loop Acc := Sum; Sum :...
-- FILE: oedipus-complex_text_io.ads LICENSE: MIT © 2021 Mae Morella with Oedipus, Ada.Text_IO; use Oedipus, Ada.Text_IO; package Oedipus.Complex_Text_IO is -- Overloads the Put function, for printing Complex numbers. Same argument -- scheme as Ada.Float_Text_IO. Default_Aft : Field := 1; Default_Exp : ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
package body GNAT.Strings is procedure Raw_Free is new Ada.Unchecked_Deallocation (String_List, String_List_Access); procedure Free (Arg : in out String_List_Access) is begin if Arg /= null then for I in Arg'Range loop Free (Arg (I)); end loop; Raw_Free (Arg...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package Encodings.Unicode is Code_Point_Last: constant Wide_Wide_Character := Wide_Wide_Character'Val(16#10FFFF#); end Encodings.Unicode;
-- C37008A.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 2017-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 = "WhoisXMLAPI" type = "api" function start() setratelimit(2) end function check() local c local cfg = datasrc_confi...
with Ada.Iterator_Interfaces; with Ada.Containers.Indefinite_Ordered_Maps; with Ada.Containers.Vectors; with Ada.Finalization; use Ada; with EU_Projects.Nodes.Partners; with EU_Projects.Nodes.Timed_Nodes.Milestones; with EU_Projects.Nodes.Timed_Nodes.Deliverables; with EU_Projects.Nodes.Action_Nodes.WPs; with EU_Proj...
package Derived_Record is type Tagged_Record is tagged record Component_1 : Integer; end record; type Derived_Record is new Tagged_Record with record Component_2 : Integer; end record; end Derived_Record;
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org) -- This software is provided 'as-is', without any express or implied warranty. -- In no event will the authors be held liable for any damages arisin...
--with Text_io; use Text_io; package body Sorted_Array is Empty_Slot : constant Item := Item'Last; -- make type Item bigger if possible than data *set*. -- eg Item = Parent_Random_Int; or Random_Int'Base. -- would prefer Empty_Slot is out of range of actual data. -- not necessary tho. type Ta...
with Ada.Integer_Text_IO; with Ada.Text_IO; with PrimeInstances; package body Problem_27 is package IO renames Ada.Text_IO; package I_IO renames Ada.Integer_Text_IO; procedure Solve is subtype Parameter is Integer range -999 .. 999; subtype Output is Integer range -(Parameter'Last**2) .. Parameter'...
-- 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 Bases.Cargo.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.Bases.Cargo.Test_Data .Test wit...
with Command_Line; use Command_Line; with SPARK.Text_IO; use SPARK.Text_IO; with Error_Reporter; with Scanners; with Tokens; procedure Lox with SPARK_Mode is procedure Run (Source : String) with Pre => Source'First >= 1 and then Source'Last < Integer'Last; procedure Run_File (Path : String); procedure Run...
with Lib_Pack; with Ada.Text_IO; use Ada.Text_IO; procedure Main is begin Put_Line ("=== Main start ==="); Lib_Pack.Test; Put_Line ("=== Main end ==="); end Main;
package body collada.Library.animations is ----------- --- Utility -- function "+" (From : in ada.Strings.unbounded.unbounded_String) return String renames ada.Strings.unbounded.to_String; ------------- --- Animation -- function Source_of (Self : in Animation; ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package Opt29 is type Word is mod 2**16; type PID is record W1, W2: Word; end record; type Root1 is tagged record Id: PID; end record; type Root1_Ptr is access all Root1'Class; type Root2 is tagged null record; type Root2_Ptr is access all Root2'class; type Derived2 is new Root2 with reco...
-- #include "impact.d3.collision.polyhedral_contact_Clipping.h" -- #include "BulletCollision/CollisionShapes/impact.d3.convex_Polyhedron.h" -- -- #include <float.h> //for FLT_MAX with Impact.d3.Vector; with Impact.d3.Transform; package body Impact.d3.Collision.polyhedral_contact_Clipping -- -- Separating ax...
with Ada.Containers.Functional_Vectors; with TLSF.Block.Types; use TLSF.Block.Types; with TLSF.Config; use TLSF.Config; package TLSF.Block.Proof with SPARK_Mode, Ghost is pragma Unevaluated_Use_Of_Old (Allow); package Formal_Model with SPARK_Mode, Ghost is use Ada.Containers; subtype Positive_...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with TEXT_IO; with INFLECTIONS_PACKAGE; use INFLECTIONS_PACKAGE; with DICTIONARY_PACKAGE; use DICTIONARY_PACKAGE; package ADDONS_PACKAGE is use TEXT_IO; subtype FIX_TYPE is STEM_TYPE; NULL_FIX_TYPE : constant FIX_TYPE := NULL_STEM_TYPE; MAX_FIX_SIZE : constant := MAX_STEM_SIZE; subtype TARGET_POF...
-- 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 Hash; with Box; with Box7; with Box8; with Core1; with Core3; with Onetimeauth; with Onetimeauth2; with Onetimeauth7; with Scalarmult; with Scalarmult2; with Scalarmult5; with Scalarmult6; with Secretbox; with Secretbox2; with Secretbox3; with Secretbox7; with Secretbox8; with Secretbox9; with Sign; with Stream; w...
with adam.a_Package, gtk.Widget; private with aIDE.Editor.of_context, gtk.Text_View, gtk.Alignment, gtk.gEntry, gtk.Label, gtk.Box; with Gtk.Scrolled_Window; with Gtk.Notebook; with Gtk.Table; package aIDE.Editor.of_package is type Item is new Editor.item with private; ...
with Ada.Characters.Handling; use Ada.Characters; package body Solitaire_Operations.Text_Representation is ------------------------------------------------------------------------ function Card (Name : Short_Card) return Card_Value is -- -- Returns the card for the given 2-character name. -- Uppe...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. generic type Integer_Type is range <>; package Apsepp.Generic_Prot_Integer is -- Evaluate the pre-conditions in this package. pragma Assertion_Policy (Pre => Check); type O_P_I_Type is private ...
-- AoC 2020, Day 24 with Ada.Text_IO; with Ada.Containers.Hashed_Sets; use Ada.Containers; package body Day is package TIO renames Ada.Text_IO; type Hex is record x, y, z : Integer; end record; function hex_hash(h : in Hex) return Hash_Type is v : constant Long_Integer := Long_Integer((h.x * 103) + (...
with Ada.Text_IO; with Assemble_Functions; with Ada.Directories; with GNAT.Command_Line; with Ada.Strings.Bounded; use GNAT.Command_Line; use Ada.Text_IO; --main function controls reading and writing --assemble package handles each line procedure Compiler is package SB is new Ada.Strings.Bounded.Generic_Bounded_Leng...
separate (openGL) function Profile return profile_Kind is begin return Desk; end Profile;
with Ada.Containers.Indefinite_Vectors, Ada.Text_IO; procedure Lalefile is package Word_Vec is new Ada.Containers.Indefinite_Vectors (Index_Type => Positive, Element_Type => String); use type Word_Vec.Vector, Ada.Containers.Count_Type; type Words_Type is array (Character) of Word_Vec.Vector; ...
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2012, Stefan Berghofer -- Copyright (C) 2012, secunet Security Networks AG -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or withou...