content
stringlengths
23
1.05M
with Ada.Text_IO; use Ada.Text_IO; procedure Test_Range_Expansion is type Sequence is array (Positive range <>) of Integer; function Expand (Text : String) return Sequence is To : Integer := Text'First; Count : Natural := 0; Low : Integer; function Get return Integer is From ...
package Compiler.Parser is use Node_List; function Parse(AST_In: List) return List; private end Compiler.Parser;
with Ada.Naked_Text_IO; package body Ada.Text_IO.Terminal is use type IO_Modes.File_Mode; use type IO_Modes.File_External; -- implementation function Is_Terminal ( File : File_Type) return Boolean is pragma Check (Dynamic_Predicate, Check => Is_Open (File) or else raise Stat...
pragma License (Unrestricted); -- AARM A.16(124.b/2), specialized for Windows private with C.windef; package Ada.Directories.Information is -- System-specific directory information. -- Version for the Microsoft(R) Windows(R) operating system. function Creation_Time (Name : String) return Calendar.Time; ...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- 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...
with Entities; use Entities; with Vectors2D; use Vectors2D; with Ada.Containers.Doubly_Linked_Lists; with Links; use Links; with Collisions; use Collisions; package Worlds is package EntsList is new Ada.Containers.Doubly_Linked_Lists(EntityClassAcc); type EntsListAcc is access EntsList.List; package LinksLi...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Containers; with Text.Builder; with Yaml.Tags; package body Yaml.Parser is use type Lexer.Token_Kind; use type Text.Reference; function New_Parser return Reference is Ptr : c...
-- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, -- are permitted provided that the following conditions are met: -- -- 1. Redistributions of source code must retain the above copyright notice, t...
generic type Element_Type is private; with function ">" ( Left, Right: Element_Type ) return Boolean; Min_Element : in Element_Type; package Binary_Heap is type Priority_Queue( Max_Size: Positive ) is limited private; procedure Delete_Min ( X: out Ele...
-- -- -- with Types; package body Action_Algorithms is function Compute_Action (Session : Session_Type; Action : Action_Record) return Integer is use Actions; use type Types.Symbol_Index; State_Num : constant Integer := Integer (Actio...
-- Práctica 4: César Borao Moratinos (Hash_Maps_G_Chaining, Test Program) with Ada.Text_IO; With Ada.Strings.Unbounded; with Ada.Numerics.Discrete_Random; with Hash_Maps_G; procedure Hash_Maps_Test is package ASU renames Ada.Strings.Unbounded; package ATIO renames Ada.Text_IO; HASH_SIZ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Ada.Unchecked_Conversion; with System.Address_To_Access_Conversions; with GL; with Glfw.API; with Glfw.Enums; with Glfw.Windows.Context; package body Glfw.Windows is package Conv is new System...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Ada.Unchecked_Deallocation; package body GL.Objects is procedure Initialize_Id (Object : in out GL_Object) is New_Id : UInt; begin -- may raise exception; therefore we call it b...
-- Task 2 of RTPL WS17/18 -- Team members: Hannes B. and Gabriel Z. package convert with SPARK_Mode is -- Procedure for option 2 procedure opt2; -- Procedure for option 3 procedure opt3; private -- Float values for user input F1 : Float := 1.0; F2 : Float := 2.0; -- Convert Celsius t...
package body data_storage is overriding function Get_Data (ND : Naive_Data) return Integer is begin return ND.data; end; overriding procedure Set_Data (ND : in out Naive_Data; data : Integer) is begin ND.data := data; end; overriding function Do_Complex_Calcul...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- -*- Mode: Ada -*- -- Filename : maths.ads -- Description : Sample shared library using an Ada and a C function as an example. -- Author : Luke A. Guest -- Created On : Sun Oct 27 17:50:33 2013 package Maths is function Add (A, B : in Integer) return Intege...
with Basic_Test_Window; use Basic_Test_Window; with Giza.Context; use Giza.Context; with Giza.Events; use Giza.Events; with Giza.Widget.Button; use Giza.Widget; package Test_Graphic_Bounds is type Graphic_Bounds_Window is new Test_Window with private; type Graphic_Boounds_Window_Ref is access all Graphic_Bounds...
procedure Nullptr is type PInt is access Integer; procedure SetZero(pi : PInt) is begin if pi = null then return; end if; pi.all := 0; end SetZero; x : PInt := null; begin x := new Integer'(1); SetZero(x); end Nullptr;
------------------------------------- -- Course Work -- Ada -- Ann Pidchasiuk, IV-71 ------------------------------------- with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Calendar; use Ada.Calendar; with ada.float_text_io; use ada.float_text_io; procedure Main is N:...
-- Derived from ga_ref_impl Multivector.java with Ada.Exceptions; use Ada.Exceptions; with Ada.Text_IO; use Ada.Text_IO; with Maths; -- with GA_Utilities; with SVD; package body Multivectors is type Basis_Blade_Array is array (integer range <>) of Blade.Basis_Blade; epsilon : constant Floa...
-- { dg-do run } with Aggr14_Pkg; use Aggr14_Pkg; procedure Aggr14 is begin Proc; end;
-- Swaggy Jenkins -- Jenkins API clients generated from Swagger / Open API specification -- ------------ EDIT NOTE ------------ -- This file was generated with openapi-generator. You can modify it to implement -- the server. After you modify this file, you should add the following line -- to the .openapi-genera...
----------------------------------------------------------------------- -- gen-artifacts-docs-googlecode -- Artifact for Googlecode documentation format -- Copyright (C) 2015, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Li...
-- Julian.Ada_conversion, a sub-package of Julian. -- This package focuses on conversion between the Julian time -- i.e. duration and time expressed in fractional Julian days, -- and Ada.Calendar duration and time data. -- These routines are only usefull for implementations -- where conversions to and from the Ada time...
-- part of OpenGLAda, (c) 2018 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.API; package body GL.Enums.Getter is use Types; function Get_Max (Getter_Param : Parameter) return Types.Int is Max : aliased Int; begin API.Get_Integer (Getter_Param, Max...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Vectors2D; use Vectors2D; with Materials; use Materials; with Interfaces; use Interfaces; package Entities is -- Lists all the entity types type EntityTypes is (EntCircle, EntRectangle); -- Required for layering subtype Byte is Unsigned_8; -- Abstract superclass of all entities -- Lists the m...
-- -- The following uses 32+ decimal digit rational polynomial -- approximations of the log_gamma function on [1,3], derived -- from John Maddock's extended precision -- (Boost Library) gamma function, so let's use the Boost License. -- Many thanks are due to John Maddock. -------------------------------------...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. with Apsepp.Output; package body Apsepp.Debug_Trace_Class.Output is ---------------------------------------------------------------------------- overriding procedure Trace (Obj : in out Debug_T...
pragma License (Unrestricted); -- implementation unit specialized for Darwin with C; function System.Environment_Block return C.char_ptr_ptr; pragma Preelaborate (System.Environment_Block); pragma Inline (System.Environment_Block);
-- AOC, Day 4 with Ada.Text_IO; use Ada.Text_IO; with Password; procedure main is first : constant Natural := 134564; last : constant Natural := 585159; begin put_line("Part 1: " & Positive'Image(Password.part1_count(first, last))); put_line("Part 2: " & Positive'Image(Password.part2_count(first, last))); ...
package Hailstones is type Integer_Sequence is array(Positive range <>) of Integer; function Create_Sequence (N : Positive) return Integer_Sequence; end Hailstones;
package Operation is type NaturalDouble is range -1 .. +(2 ** 63 - 1); type OperationMethod is access function(Left: NaturalDouble; Right: NaturalDouble) return NaturalDouble; function Add (Left: NaturalDouble; Right: NaturalDouble) return Natural...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- awa-tags-components -- Tags component -- Copyright (C) 2013 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 Ada.Numerics.Discrete_Random; with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Upg2 is function Generate return Integer is subtype Nums is Integer range 0..99; package RN is new Ada.Numerics.Discrete_Random(Nums); Gen : RN.Generator; ...
with Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Text_IO; procedure Fich_1 is package ASU renames Ada.Strings.Unbounded; Fich : Ada.Text_IO.File_Type; S : ASU.Unbounded_String; T : ASU.Unbounded_String; begin -- Abre fichero prueba.tmp Open(Fich, Ada.Text_IO.Out_File, "prueba.tmp"); S := ASU.T...
with Lumen.Window; with Lumen.Events; with Lumen.Events.Animate; with GL; with GLU; procedure OpenGL is The_Window : Lumen.Window.Handle; Program_Exit : Exception; -- simply exit this program procedure Quit_Handler (Event : in Lumen.Events.Event_Data) is begin raise Program_Exit; end; --...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
------------------------------------------------------------------------------ -- Copyright (c) 2015, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
package Discr36 is type R (D : Boolean := True) is record case D is when True => I : Integer; when False => null; end case; end record; function N return Natural; end Discr36;
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- package body Symbols is -- package He...
--***************************************************************************** --* --* PROJECT: BINGADA --* --* FILE: q_sound.adb --* --* AUTHOR: Manuel <mgrojo at github> --* --***************************************************************************** -- External sound library...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, Universidad Politécnica de Madrid -- -- -- -- ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Ada.Unchecked_Deallocation; with FT.Glyphs; with GL.Attributes; with GL.Buffers; with GL.Objects.Framebuffers; with GL.Objects.Shaders; with GL.Objects.Textures.Targets; with GL.Pixels; with GL.Win...
pragma License (Unrestricted); -- with Ada.Strings.Unbounded; with Ada.Strings.Unbounded_Strings; with Ada.Text_IO.Generic_Unbounded_IO; package Ada.Text_IO.Unbounded_IO is new Generic_Unbounded_IO ( Strings.Unbounded_Strings, Put => Put, Put_Line => Put_Line, Get_Line => Get_Line);
-- A74205E.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...
just a line context-2 context-1 line with match - abc context+1 context+2 bloop groop line matching 'abc' again derm germ blah 1 2 3
-- C45431A.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...
-- Functions_Example -- A example of using the Ada 2012 interface to Lua for functions / closures etc -- Copyright (c) 2015, James Humphry - see LICENSE for terms with Ada.IO_Exceptions; with Ada.Text_IO; use Ada.Text_IO; with Ada.Long_Float_Text_IO; use Ada.Long_Float_Text_IO; with Ada.Characters.Latin_1; with Lua;...
----------------------------------------------------------------------- -- mat-expressions -- Expressions for event and memory slot selection -- Copyright (C) 2014, 2015, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License...
package Dynamic_Elab_Pkg is type R is record Code : Integer; Val : Boolean; end record; function Get_R return R; end Dynamic_Elab_Pkg;
----------------------------------------------------------------------- -- asf-events -- ASF Events -- Copyright (C) 2010, 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 in comp...
private with AdaM.Subprogram, AdaM.a_Package, AdaM.Environment; package aIDE is procedure start; procedure stop; private -- the_Environ : AdaM.Environment.item; all_Apps : AdaM.Subprogram.vector; the_selected_App : AdaM.Subprogram.view; procedure build_Project; ...
package Iban_Code is function Is_Legal(Iban : String) return Boolean; end Iban_Code;
with AVTAS.LMCP.ByteBuffers; use AVTAS.LMCP.ByteBuffers; package -<full_series_name_dots>-.Factory is HEADER_SIZE : constant := 8; CHECKSUM_SIZE : constant := 4; SERIESNAME_SIZE : constant := 8; LMCP_CONTROL_STR : constant := 16#4c4d4350#; function packMessage(rootObject : in avtas.lmcp.obje...
----------------------------------------------------------------------- -- ASF tests - ASF Tests Framework -- Copyright (C) 2011, 2012, 2013 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 e...
with Gtk.Main; package body GA_Sine_Package is function Delete_Event (Widget : access Gtk_Widget_Record'Class; Event : Gdk_Event) return Boolean is pragma Unreferenced (Event); pragma Unreferenced (Widget); begin -- If you return False in the "delete_event" signal handler,...
------------------------------------------------------------------------------- -- Copyright 2021, The Septum Developers (see AUTHORS file) -- 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 ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- 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...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
----------------------------------------------------------------------- -- util-processes-tools -- System specific and low level operations -- Copyright (C) 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ma...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
--****p* Fakedsp/Fakedsp.card -- DESCRIPTION -- This package provides the interface to a "virtual DSP card" with an ADC -- and a DAC. The virtual ADC reads sample at a specified sampling frequency -- and at the same instants the virtual DAC updates its output. -- The user needs to register a "virtual interrupt ha...
package body constants with SPARK_Mode is type Buffer_Wrap_Idx is mod BUFLEN; head : Arr_T (0 .. 3); -- THIS must come before procedure, otherwise checks fail procedure readFromDev (data : out UBX_Data) is data_rx : Arr_T (0 .. BUFLEN - 1):= (others => 0); msg_start_idx : Buffer_Wrap_Idx; be...
-- PR middle-end/36575 -- reporter: Laurent Guerby <laurent@guerby.net> -- { dg-do run } procedure Conv_Decimal is type Unsigned_Over_8 is mod 2**8+2; type Signed_Over_8 is range -200 .. 200; procedure Assert(Truth: Boolean) is begin if not Truth then raise Program_Error; end if; end; type...
with Greeter; use Greeter; with Ada.Text_IO; use Ada.Text_IO; procedure Hello is package Int_IO is new Ada.Text_IO.Integer_IO (Integer); X : Integer := 2; procedure Do_It with Global => (Input => X); procedure Do_It is begin if X > 20 then Greeter.Greet ("Hello"); end ...
-- { dg-do compile } -- { dg-options "-gnatd.h" } with Concat1_Pkg; use Concat1_Pkg; package Concat1 is C : constant Natural := Id_For ("_" & Image_Of); end Concat1;
------------------------------------------------------------------------------ -- Copyright (c) 2015-2019, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
pragma License (Unrestricted); -- extended unit generic type Index_Type is range <>; type Element_Type is private; type Array_Type is array (Index_Type range <>) of Element_Type; type Array_Access is access Array_Type; with procedure Free (X : in out Array_Access) is <>; package Ada.Containers.Generic_A...
with System.Value_Errors; package body System.Val_Enum is function Value_Enumeration_8 ( Names : String; Indexes : Address; Num : Natural; Str : String) return Natural is First : Positive; Last : Natural; begin Trim (Str, First, Last); if First <= Last the...
with any_Math; package short_Math is new any_Math (Real_t => short_Float); pragma Pure (short_Math);
package pointer_protected_p is type T; type Ptr is access protected procedure (Data : T); type T is record Data : Ptr; end record; end pointer_protected_p;
-- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ field handling in skill -- -- |___/_|\_\_|_|____| by: Timm Felden ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2020 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
with Ada.Containers.Hashed_Maps, Ada.Execution_Time, Ada.Long_Long_Integer_Text_IO, Ada.Real_Time, Ada.Strings.Fixed, Ada.Strings.Hash, Ada.Strings.Unbounded, Ada.Text_IO; with Utils; procedure Main is use Ada.Execution_Time, Ada.Real_Time, Ada.Strings.Unbounded, ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
with ada.strings.unbounded; use ada.strings.unbounded; package commandline_args is -- Exception indiquant l'absence d'un argument requis argument_missing : exception; -- lit les arguments de la ligne de commande -- exceptions: argument_missing en l'absence -- d'un argument obligatoire...
with Ada.Command_Line; with Ada.Text_IO; function Example return Integer is function Square(num : Integer) return Integer is begin return num**2; end Square; function ReadCmdArgumentOrDefault(default: Integer) return Integer is begin if Ada.Command_Line.Argument_Count > 0 then ...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
-- DEMONSTRATION PROGRAM: -- Features: -- Recursive functions, separate compilation units, -- dynamic exception handling. with TEXT_IO; package SHORT_IO is new TEXT_IO.INTEGER_IO(integer); with TEXT_IO; use TEXT_IO; with SHORT_IO; use SHORT_IO; procedure factr is subtype short_int is integer range 0..99...
-- -*- Mode: Ada -*- -- Filename : ether-forms.ads -- Description : Abstraction around the form data returned from the SCGI client (HTTP server). -- Author : Luke A. Guest -- Created On : Tue May 1 13:10:29 2012 with GNAT.Sockets; with Unicode.CES; package Eth...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2020 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
with Ada.Finalization; package SoE is -- process Odd will be activated as part of the elaboration -- of the enclosing package ----------------------------------- task Odd is -- we want the user to set the limit of the search range entry Set_Limit (User_Limit : Positive); end Od...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- FILE: oedipus-elementary_functions.adb LICENSE: MIT © 2021 Mae Morella with Oedipus; use Oedipus; package body Oedipus.Elementary_Functions is function "+" (C1, C2 : in Complex) return Complex is Sum : Complex := Create_Complex (Get_Real (C1) + Get_Real (C2), Get_Imaginary (C...
---------------------------------------------------- -- agar_ada_core_demo.adb: Agar Ada bindings demo -- ---------------------------------------------------- with Agar; with Agar.Init; with Agar.Error; with Agar.Object; use Agar.Object; with Agar.Event; with Agar.DSO; with Agar.Types; use Agar.Types; with Ada.Text_IO;...
pragma License (Unrestricted); with System; package GNAT.Debug_Utilities is pragma Pure; function Value (S : String) return System.Address; end GNAT.Debug_Utilities;
-- { dg-do compile } package aggr1 is type Buffer_Array is array (1 .. 2 ** 23) of Integer; type Message is record Data : Buffer_Array := (others => 0); end record; end;
package body Tkmrpc.Contexts.ae is pragma Warnings (Off, "* already use-visible through previous use type clause"); use type Types.ae_id_type; use type Types.iag_id_type; use type Types.dhag_id_type; use type Types.ca_id_type; use type Types.lc_id_type; use type Types.ri_id_type; use type ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2019, Fabien Chouteau -- -- -- -- ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2020 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
package body Discr42_Pkg is function F (Pos : in out Natural) return Rec is begin Pos := Pos + 1; if Pos > 1 then return (D => True, N => Pos * 2); else return (D => False); end if; end; end Discr42_Pkg;
-- -- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- package body CRC is procedure Update (Data : Word) is Bits : constant Positive := Word'Size; MSB : constant Word := 2 ** (Bits - 1); begin Sum := Sum xor Data; for I in 1 ....
package Nodes is -- Type Node definition type Node is tagged private; type Node_Ptr is access Node; private -- Type node data-structre type Node is tagged record end record; end Nodes;