content
stringlengths
23
1.05M
-- 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 Varsize3_Pkg2; with Varsize3_Pkg3; package Varsize3_Pkg1 is type Arr is array (Positive range 1 .. Varsize3_Pkg2.Last_Index) of Boolean; package My_G is new Varsize3_Pkg3 (Arr); type Object is new My_G.Object; end Varsize3_Pkg1;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- serialize-io-json-tests -- Unit tests for JSON parser -- Copyright (C) 2011, 2016, 2017, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
package agar.gui.point is type point_t is record x : c.int; y : c.int; end record; type point_access_t is access all point_t; pragma convention (c, point_t); pragma convention (c, point_access_t); end agar.gui.point;
-- { dg-do run } procedure Packed_Subtype is subtype Ubyte is Integer range 0 .. 255; type Packet (Id : Ubyte) is record A, B : Ubyte; end record; pragma Pack (Packet); subtype My_Packet is Packet (Id => 1); MP : My_Packet; begin MP.A := 1; MP.B := 2; if MP.A /= 1 or else MP.B /= 2...
-- convert UCD/UnicodeData.txt, UCD/CompositionExclusions.txt -- bin/ucd_normalization -r $UCD/UnicodeData.txt $UCD/CompositionExclusions.txt > ../source/strings/a-ucdnor.ads -- bin/ucd_normalization -u $UCD/UnicodeData.txt $UCD/CompositionExclusions.txt > ../source/strings/a-ucnoun.ads with Ada.Command_Line; use Ada.C...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
function Palindrome (Text : String) return Boolean is begin for Offset in 0..Text'Length / 2 - 1 loop if Text (Text'First + Offset) /= Text (Text'Last - Offset) then return False; end if; end loop; return True; end Palindrome;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; use Ada.Command_Line; with Ada.Environment_Variables; with Ada.Directories; with GNAT.OS_Lib; with GNAT.Directory_Operations; with GNAT.Regpat; with Ada; use Ada; procedure Startx is -- XTerminal is a terminal bast in Xorg -- meant to be us...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with impact.d2.orbs.Collision, impact.d2.Math; private with impact.d2.orbs.dynamic_Tree; package impact.d2.orbs.Broadphase -- -- The broad-phase is used for computing pairs and performing volume queries and ray casts. -- This broad-phase does not persist pairs. Instead, this reports potentially new pairs. --...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with Interfaces.C; with Interfaces.C.Strings; with osmesa_c.Pointers; with Swig; with Swig.Pointers; with Interfaces.C; package osmesa_c.Binding is function OSMesaCreateContext (format : in osmesa_c.GLenum; sharelist : in osmesa_c....
with Ada.Text_IO; use Ada.Text_IO; with Account.Default_Account; use Account.Default_Account; With Account.Vector; use Account.Vector; package body Cocount is procedure Main is DA: Account.Default_Account.Instance; AS: Account.Vector.Account_Stack; begin -- Set_Name(DA, "tom"); ...
with Ada.Assertions; use Ada.Assertions; with Device; use Device; package body Memory.RAM is function Create_RAM(latency : Time_Type := 1; burst : Time_Type := 0; word_size : Positive := 8; word_count : Natural := 65536) retu...
-- 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...
package P is type T is private; -- No components visible procedure F (X : in out T); -- The only visible operation N : constant T; -- A constant, which value is hidden private type T is record -- The implementation, visible to children only Component : Integer; end record; procedure V (X : in ou...
------------------------------------------------------------------------------ -- -- -- Copyright (c) 2014-2021 Vitalii Bondarenko <vibondare@gmail.com> -- -- -- ----...
----------------------------------------------------------------------- -- GtkAda - Ada95 binding for Gtk+/Gnome -- -- -- -- Copyright (C) 2011, AdaCore -- -- ...
-- { dg-do compile } -- { dg-options "-fdump-tree-optimized" } procedure Array24 (N : Natural) is S : String (1 .. N); pragma Volatile (S); begin S := (others => '0'); end; -- { dg-final { scan-tree-dump-not "builtin_unwind_resume" "optimized" } }
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
package body Compute is procedure Printf (String : in Interfaces.C.char_array); pragma Import (C, Printf, "printf"); procedure Compute is begin Printf ("beep "); end Compute; end Compute;
-- C35003A.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 AWS.Server; with Gprslaves.Nameserver.Server; with AWS.Config; procedure GPR_Tools.Gprslaves.Nameserver.Main is Web_Server : AWS.Server.HTTP; Config : AWS.Config.Object; begin AWS.Server.Start (Web_Server => Web_Server, Callback => Server.Request'Access, Confi...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Text_IO; with Ada.Command_Line; with Yaml.Source.Text_IO; with Yaml.Source.File; with Yaml.Dom.Loading; with Yaml.Dom.Node; pragma Unreferenced (Yaml.Dom.Node); procedure Yaml.To_Dom is ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt with AdaBase.Interfaces.Connection; with AdaBase.Bindings.PostgreSQL; with AdaBase.Results; with Ada.Containers.Ordered_Maps; with Ada.Containers.Vectors; with Ada.Unchecked_Deallocation; with Ada.Exceptions; p...
with avtas.lmcp.object; use avtas.lmcp.object; with avtas.lmcp.types; use avtas.lmcp.types; package afrl.cmasi is end afrl.cmasi;
with ada.Containers, ada.Streams; package lace.Text -- -- Models a string of text characters. -- is pragma Pure; type Item (Capacity : Natural) is private; function Image (Self : in Item) return String; Error : exception; -------------- -- Stock Items -- subtype Item_2 is Ite...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Henge is function Read return Integer is C : Character; begin Get(C); if C = 'h' then return 0; else for I in 1..4 loop Get(C); end loop; return Read + 12; end if; ...
pragma Warnings (Off); -- Internal GNAT unit, non-portable! -- But SocketCAN is only available on Linux anyways... with GNAT.Sockets.Thin; with GNAT.Sockets.Thin_Common; pragma Warnings (On); package body SocketCAN is use type C.int; package Socket_Defs is -- socket.h SOCK_RAW : constant := 3; ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016-2018, AdaCore -- -- -- -- ...
with ada.text_io; use ada.text_io; package intro is ------------------------------- -- Name: Jon Spohn -- David Rogina -- Game Intro Package Specification ------------------------------- --read in and display title page procedure title_page(file:in file_type); end intro;
-- 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...
pragma Ada_95; with System; package ada_main is pragma Warnings (Off); gnat_argc : Integer; gnat_argv : System.Address; gnat_envp : System.Address; pragma Import (C, gnat_argc); pragma Import (C, gnat_argv); pragma Import (C, gnat_envp); gnat_exit_status : Integer; pragma Import (C, gnat_e...
#/bin/sh # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # script to change the system id in an object file from PA-RISC 2.0 to 1.1 adb -w $1 << EOF ?m 0 -1 0 0x0?X ...
-- C48009D.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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma Style_Checks (Off); package Mat.Expressions.Parser_Goto is type Small_Integer is range -32_000 .. 32_000; type Goto_Entry is record Nonterm : Small_Integer; Newstate : Small_Integer; end record; --pragma suppress(index_check); subtype Row is Integer range -1 .. Integer'Last...
with Ada.Assertions; use Ada.Assertions; package body Memory.Arbiter is function Create_Arbiter(next : access Memory_Type'Class) return Arbiter_Pointer is result : constant Arbiter_Pointer := new Arbiter_Type; begin Set_Memory(result.all, next); return result; en...
package estado_casillero is type t_estado_casillero is (Limpio,Sucio); function random_estado return t_estado_casillero; procedure put_estado_casillero (c : in t_estado_casillero); end estado_casillero;
-- FILE: oedipus-elementary_functions.ads LICENSE: MIT © 2021 Mae Morella with Oedipus; use Oedipus; package Oedipus.Elementary_Functions is Div_By_Zero : exception; function "+" (C : in Complex) return Complex; -- PRECOND: none -- POSTCOND: positive C is returned function "-" (C : in Complex) return...
-- C48009B.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...
----------------------------------------------------------------------- -- Util.Beans.Objects.Discretes -- Unit tests for concurrency package -- Copyright (C) 2009, 2010, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License...
with Ada.Text_IO; use Ada.Text_IO; procedure AdaHelloWorld is begin Put_Line ("Hello World"); end AdaHelloWorld;
with Ada.Text_IO; use Ada.Text_IO; procedure Test is type R is record A, B: Character; end record; X: R; function F return R is begin return X; end; procedure Update(C: in out Character) is begin C := '0'; end; begin update(F.A); end Test;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
-- This spec has been automatically generated from STM32F105xx.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with System; package STM32.FLASH is pragma Preelaborate; --------------- -- Registers -- --------------- ------------------ -- ACR_Register -- ------------------ ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Streams.Naked_Stream_IO.Standard_Files; package body Ada.Streams.Stream_IO.Standard_Files is Standard_Input_Object : aliased File_Type; Standard_Output_Object : aliased File_Type; Standard_Error_Object : aliased File_Type; -- implementation function Standard_Input return not null access cons...
with ada.characters.latin_1; with logger; use logger; package body box_parts is function get_parts(box_info : box_info_t) return box_parts_t is lower_halfbox : halfbox_t; inner_halfbox : halfbox_t; upper_halfbox : halfbox_t; begin debug("Génération de la boîte"); -- Dem...
with Ada.Containers.Generic_Array_Access_Types; with Ada.Unchecked_Deallocation; procedure cntnr_array_sorting is type SA is access String; procedure Free is new Ada.Unchecked_Deallocation (String, SA); Data : SA := null; Comp_Count : Natural; Swap_Count : Natural; procedure Setup (Source : String) is begin Fr...
-- 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 ©2021,2022 Steve 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, merge, publish,...
-- Copyright (c) 2013, 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: -- -- * Redistributions of source code must retain the above copyright notice, this -- lis...
with STM32.RNG.Interrupts; use STM32.RNG.Interrupts; with STM32.Board; use STM32.Board; with HAL; use HAL; package body Utils is procedure Clear(Update : Boolean; Color : Bitmap_Color := BG) is begin Display.Hidden_Buffer(1).Set_Source(Color); Display.Hidden_Buffer(1).Fill; if Update then ...
----------------------------------------------------------------------- -- asf-locales -- Locale support -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2017, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
with Ada.Text_IO, Generic_Root; use Generic_Root; procedure Multiplicative_Root is procedure Compute is new Compute_Root("*"); -- "*" for multiplicative roots package TIO renames Ada.Text_IO; package NIO is new TIO.Integer_IO(Number); procedure Print_Numbers(Target_Root: Number; How_Many: Natural) is ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
-- { dg-do compile } -- { dg-options "-O2" } with Aggr10_Pkg; use Aggr10_Pkg; procedure Aggr10 is No_Name_Location : constant Name_Location := (Name => Name_Id'First, Location => Int'First, Source => Source_Id'First, ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Type_Definitions; package Program.Elements.Root_Types is pragma Pure (Program.Elements.Root_Types); type Root_Type is li...
with GDB_Remote.Agent; package GDB_Remote.Target is subtype Address is Unsigned_64; subtype Register is Unsigned_32; package Parent renames Agent; type Instance (Buffer_Size : Buffer_Lenght_Type := 256) is abstract limited new Parent.Instance with private; subtype Class is Instance'Class; t...
with AAA.Strings; package CLIC.User_Input is ------------------- -- Interactivity -- ------------------- Not_Interactive : aliased Boolean := False; -- When not Interactive, instead of asking the user something, use default. User_Interrupt : exception; -- Raised when the user hits Ctrl-D and ...
-- C32001D.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 System.Runtime_Context; package body System.Secondary_Stack is pragma Suppress (All_Checks); use type Storage_Elements.Storage_Offset; type Unsigned is mod 2 ** Integer'Size; function clz (X : Unsigned) return Unsigned with Import, Convention => Intrinsic, External_Name => "__builtin_clz"; ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- util-commands-consoles-text -- Text console interface -- Copyright (C) 2014, 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you m...
with Screen_Interface; use Screen_Interface; with Drawing; use Drawing; with Ada.Real_Time; use Ada.Real_Time; procedure Test is Period : constant Time_Span := Milliseconds (500); Next_Start : Time := Clock + Seconds (1); begin Screen_Interface.Initialize; Fill_Screen (Black); Circle (Center => (100, 10...
-- Copyright ©2022 Steve 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, merge, publish, dist...
with agar.core.types; package agar.gui.widget.progress_bar is use type c.unsigned; type type_t is (PROGRESS_BAR_HORIZ, PROGRESS_BAR_VERT); for type_t use (PROGRESS_BAR_HORIZ => 0, PROGRESS_BAR_VERT => 1); for type_t'size use c.unsigned'size; pragma convention (c, type_t); type flags_t is new c.unsigne...
----------------------------------------------------------------------- -- util-streams-raw -- Raw streams (OS specific) -- Copyright (C) 2011, 2016, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may...
-- Copyright © by Jeff Foley 2020-2022. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. -- SPDX-License-Identifier: Apache-2.0 local json = require("json") name = "Censys" type = "cert" function start() set_rate_limit(3) end function vertica...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Ada.Containers.Indefinite_Hashed_Maps; with Ada.Unchecked_Conversion; with GL.API; with GL.Enums.Getter; package body GL.Objects.Renderbuffers is function Hash (Key : Low_Level.Enums.Renderbuf...
-- Ascon.Load_Store -- Functions to load and store 64-bit words from Storage_Array in Big Endian -- format. Currently these are not optimised for the case where the machine -- itself is BE or has dedicated assembly instructions that can perform the -- conversion. Some compilers may have a peephole optimisation for the...
with ada.Strings.fixed; package body openGL.Program.lit.textured_skinned is overriding procedure define (Self : in out Item; use_vertex_Shader : in Shader.view; use_fragment_Shader : in Shader.view) is use ada.Strings, ada.Strings.fixed; ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Slim.Message_Visiters; package body Slim.Messages.STAT is List : constant Field_Description_Array := ((Uint_8_Field, 4),...
with Ada.Containers.Ordered_Maps; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO; procedure Associative_Array is -- Instantiate the generic package Ada.Containers.Ordered_Maps package Associative_Int is new Ada.Containers.Ordered_Maps(Unbounded_String, Integer); use Associative_Int;...
-- -- Copyright 2021 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause -- with HAL.UART; with RP.GPIO; with RP.UART; with ItsyBitsy; package body Transport.Serial is UART_TX : RP.GPIO.GPIO_Point renames ItsyBitsy.TX; UART_RX : RP.GPIO.GPIO_Point renames ItsyBitsy.RX; Port : RP.UART.UART_Po...
package Opt1 is type Dimention_Length is array (1 .. 16) of Natural; type Dimension_Indexes is array (Positive range <>) of Positive; function De_Linear_Index (Index : Natural; D : Natural; Ind_Lengths : Dimention_Length) return Dimension_Indexes; end Opt1;
with Ada.Containers.Indefinite_Vectors; package Nutrition is type Food is interface; procedure Eat (Object : in out Food) is abstract; end Nutrition; with Ada.Containers; with Nutrition; generic type New_Food is new Nutrition.Food; package Food_Boxes is package Food_Vectors is new Ada.Containers.I...
package Dse_Step is type Counter is record Value : Natural; Step : Natural; end record; pragma Suppress_Initialization (Counter); procedure Do_Step (This : in out Counter); pragma Inline (Do_Step); type My_Counter is new Counter; pragma Suppress_Initialization (My_Counter); proc...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
with Ada.Text_Io; use Ada.Text_Io; procedure Roots_Of_Function is package Real_Io is new Ada.Text_Io.Float_Io(Long_Float); use Real_Io; function F(X : Long_Float) return Long_Float is begin return (X**3 - 3.0*X*X + 2.0*X); end F; Step : constant Long_Float := 1.0E-6; Start : constant Long...
-- AoC 2020, Day 13 with Ada.Text_IO; with GNAT.String_Split; use GNAT; package body Day is package TIO renames Ada.Text_IO; function load_file(filename : in String) return Schedule is file : TIO.File_Type; earliest : Long_Long_Integer; departs : Depart_Vectors.Vector := Empty_Vector; offsets : De...
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later vers...
----------------------------------------------------------------------- -- util-processes-os -- System specific and low level operations -- Copyright (C) 2011, 2012, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Licens...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Streams; with Ada.Finalization; with Interfaces; with kv.avm.Actor_References; with kv.avm.Actor_References.Sets; with kv.avm.Registers; with kv.avm.Tuples; package kv.avm.Messages is use Interfaces; use kv.avm.Registers; use kv.avm.Tuples; type Message_Type is tagged private; procedure Ini...
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Streams; with Ada.Containers.Hashed_Maps; with Fuse.Main; with League.Stream_Element_Vectors; with League.Strings.Hash; pa...
with Ada.Integer_Text_IO; with Ada.Unchecked_Deallocation; procedure Euler14 is Max_Start: constant Positive := 999_999; subtype Start_Type is Positive range 1 .. Max_Start; type Memo is array (Start_Type) of Natural; type Memo_Ptr is access Memo; procedure Free is new Ada.Unchecked_Deallocation(Memo, M...
with Ada.Containers.Generic_Constrained_Array_Sort; package body Genetic is -- Determine the sum of each gene's fitness within the gene pool. function Total_Fitness (P : in Pool) return Float is -- We will add up each gene's individual fitness. Result : Float := 0.0; begin -- For each gene ...
-- -- CDDL HEADER START -- -- The contents of this file are subject to the terms of the -- Common Development and Distribution License (the "License"). -- You may not use this file except in compliance with the License. -- -- See LICENSE.txt included in this distribution for the specific -- language governing permissio...
--PRÁCTICA 3: CÉSAR BORAO MORATINOS (Maps_G_Array.adb) with Ada.Text_IO; with Ada.Strings.Unbounded; package body Maps_G is package ASU renames Ada.Strings.Unbounded; procedure Put (M: in out Map; Key: Key_Type; Value: Value_Type) is Position: Natural := 1; Found: Boolean; begin ...
with System.Long_Long_Integer_Types; with System.Unwind.Raising; pragma Warnings (Off, System.Unwind.Raising); -- break "pure" rule package body System.Exponentiations is pragma Suppress (All_Checks); use type Long_Long_Integer_Types.Long_Long_Unsigned; subtype Long_Long_Unsigned is Long_Long_Integer_Types.Lo...
with STM32_SVD; use STM32_SVD; generic Filename : String; package STM32GD.USART.Peripheral is pragma Preelaborate; procedure Transmit (Data : in Byte); end STM32GD.USART.Peripheral;
package Entry_Declaration is task type Task_With_Entry is entry First_Entry; end Task_With_Entry; end Entry_Declaration;