content
stringlengths
23
1.05M
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
pragma License (Unrestricted); -- extended unit package Ada.Fixed is -- Ada.Decimal-like utilities for ordinary fixed types. pragma Pure; generic type Dividend_Type is delta <>; type Divisor_Type is delta <>; type Quotient_Type is delta <>; type Remainder_Type is delta <>; procedu...
-------------------------------------------------------------------------------- -- Copyright (c) 2013, Felix Krause <contact@flyx.org> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this pe...
limited with Limited_With2_Pkg2; package Limited_With2_Pkg1 is type Rec2 is record F : access Limited_With2_Pkg2.Rec3; end record; end Limited_With2_Pkg1;
with Ada.Text_IO; use Ada.Text_IO; -- afficher la classe à laquelle appartient un caractère lu au clavier procedure Classer_Caractere is -- Constantes pour définir la classe des caractères -- Remarque : Dans la suite du cours nous verrons une meilleure -- façon de faire que de définir ces constantes. ...
package Based_Numbers is TWO_HUNDRED_FIFTY_FIVE_0 : constant := 255; TWO_HUNDRED_FIFTY_FIVE_1 : constant := 2#1111_1111#; TWO_HUNDRED_FIFTY_FIVE_2 : constant := 16#FF#; TWO_HUNDRED_FIFTY_FIVE_3 : constant := 016#0FF#; TWO_HUNDRED_TWENTY_FOUR_0 : constant := 224; TWO_HUNDRED_TWENTY_FOUR_1 : constant := 16...
with Ada.Directories.Temporary; with Ada.Streams.Stream_IO; procedure filelock is use Ada.Streams.Stream_IO; Name : String := Ada.Directories.Temporary.Create_Temporary_File; begin Ada.Debug.Put (Name); -- raising declare Step : Integer := 0; File_1, File_2 : File_Type; begin Step := 1; Open (File_1, In_F...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Calendar; with Ada.Containers.Vectors; with GNAT.Sockets; with League.Stream_Element_Vectors; with League.Strings; with Sl...
--------------------------------------------------------------- -- Author: Matthew Bennett -- Class: CSC410 Burgess -- Date: 09-21-04 Modified: 9-21-04 -- Desc: Assignment 3: PETERSON'S ALGORITHM -- a simple implementation of -- PETERSON's algorithm which describes -- mutual exclusion, fairness, and deadlo...
pragma License (Unrestricted); with Ada.Finalization; with System.Storage_Elements; package System.Storage_Pools is pragma Preelaborate; type Root_Storage_Pool is abstract limited new Ada.Finalization.Limited_Controlled with private; pragma Preelaborable_Initialization (Root_Storage_Pool); procedure...
----------------------------------------------------------------------- -- hestia-time -- Date and time information -- Copyright (C) 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 file exce...
with System; package ACO.Configuration is -- Defines static parameters for the CANopen stack pragma Pure; Max_Nof_Heartbeat_Slaves : constant := 8; Max_Nof_Handler_Event_Subscribers : constant := 16; Max_Nof_Node_Event_Subscribers : constant := 16; Max_Nof_Event_Queue_Data_Items : constant :=...
package body COBS is ------------------------- -- Max_Encoding_Length -- ------------------------- function Max_Encoding_Length (Data_Len : Storage_Count) return Storage_Count is begin return Data_Len + (Data_Len / 254) + (if (Data_Len mod 254) > 0 ...
with Ada.Text_IO; with Ada.Integer_Text_IO; package body Problem_34 is package IO renames Ada.Text_IO; package I_IO renames Ada.Integer_Text_IO; function Factorial(n: Integer) return Integer is product : Integer := 1; begin for i in 2 .. n loop product := product * i; end loop; ...
with TEXT_IO; with INFLECTIONS_PACKAGE; use INFLECTIONS_PACKAGE; with DICTIONARY_PACKAGE; use DICTIONARY_PACKAGE; with ADDONS_PACKAGE; use ADDONS_PACKAGE; with UNIQUES_PACKAGE; use UNIQUES_PACKAGE; package LINE_STUFF is use TEXT_IO; type DICTIONARY_ITEM; type DICTIONARY_LIST is access DICTIONARY_ITE...
with Ada.Environment_Variables; use Ada.Environment_Variables; with Ada.Text_Io; use Ada.Text_Io; procedure Env_Vars is procedure Print_Vars(Name, Value : in String) is begin Put_Line(Name & " : " & Value); end Print_Vars; begin Iterate(Print_Vars'access); end Env_Vars;
package body Loop_Optimization1_Pkg is type Unconstrained_Array_Type is array (Index_Type range <>) of Element_Type; procedure Local (UA : in out Unconstrained_Array_Type) is begin null; end; procedure Proc (CA : in out Constrained_Array_Type) is begin Local (Unconstrained_Array_Type (CA)); ...
pragma License (Unrestricted); -- implementation unit required by compiler with Ada.Finalization; with System.Storage_Elements; with System.Storage_Pools; private with System.Storage_Barriers; package System.Finalization_Masters is pragma Preelaborate; type Finalize_Address_Ptr is access procedure (Obj : Addres...
with Vect3_Pkg; package Vect3 is -- Unconstrained array types are vectorizable, possibly with special -- help for the programmer type Varray is array (Vect3_Pkg.Index_Type range <>) of Long_Float; for Varray'Alignment use 16; function "+" (X, Y : Varray) return Varray; procedure Add (X, Y : Varray;...
-- SPDX-License-Identifier: MIT -- -- Copyright (c) 2007 - 2018 Gautier de Montmollin (Maintainer of the Ada version) -- SWITZERLAND -- -- 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 Softwar...
with Ada.Exceptions; use Ada.Exceptions; package Noreturn2 is procedure Raise_From (X : Exception_Occurrence); pragma No_Return (Raise_From); end Noreturn2;
with GNAT.OS_Lib; with Simple_Logging; with CLIC.Config.Info; with CLIC.Config.Edit; with CLIC.Config.Load; package body CLIC_Ex.Commands.Config is package Trace renames Simple_Logging; ------------- -- Execute -- ------------- overriding procedure Execute (Cmd : in out Instance; ...
with DDS.Request_Reply.Replier.Typed_Replier_Generic; with Dds.Builtin_Octets_DataReader; with Dds.Builtin_Octets_DataWriter; package DDS.Request_Reply.Tests.Simple.Octets_Replier is new DDS.Request_Reply.Replier.Typed_Replier_Generic (Reply_DataWriter => Dds.Builtin_Octets_DataWriter, Request_DataReader...
-- Project: StratoX -- System: Stratosphere Balloon Flight Controller -- Author: Martin Becker (becker@rcs.ei.tum.de) -- @summary tools for SD Logging package SDLog.Tools with SPARK_Mode => Off is procedure Perf_Test (FS : in FAT_Filesystem.FAT_Filesystem_Access; megabytes : Interface...
with avtas.lmcp.types; use avtas.lmcp.types; with afrl.cmasi.object; use afrl.cmasi.object; with afrl.cmasi.enumerations; use afrl.cmasi.enumerations; with Ada.Containers.Vectors; package afrl.cmasi.operatingRegion is type OperatingRegion is new afrl.cmasi.object.Object with private; type OperatingRegion_Acc is...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" private with GL.Low_Level; package GL.Enums.Textures is pragma Preelaborate; -- Texture_Kind is declared in GL.Low_Level.Enums to be accessible for -- OpenCLAda type Parameter is (Border_...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. generic Fallback_Instance : Instance_Type_Access; package Apsepp.Generic_Shared_Instance.Fallback_Switch is function Instance_FS return Instance_Type_Access is (if Instantiated then Instanc...
-- C45231A.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...
------------------------------------------------------------------------------- -- LSE -- L-System Editor -- Author: Heziode -- -- License: -- MIT License -- -- Copyright (c) 2018 Quentin Dauprat (Heziode) <Heziode@protonmail.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a -- c...
with Ada.Characters.Handling; with Ada.Text_IO; use Ada.Text_IO; with GNATCOLL.Opt_Parse; with GNATCOLL.Strings; with GNATCOLL.VFS; with Langkit_Support.Text; with Libadalang.Analysis; with Libadalang.Common; with Libadalang.Helpers; with Libadalang.Iterators; with Put_Title; procedure Navigate is package LAL r...
-- wsdl2aws SOAP Generator v2.4.0 -- -- AWS 3.3.0w - SOAP 1.5.0 -- This file was generated on Friday 15 May 2015 at 14:44:08 -- -- $ wsdl2aws gprslaves-nameserver.ads.wsdl -f -main gprslaves-server -- -timeouts 1 -cb -spec gprslaves.nameserver with AWS.Config.Set; pragma Elaborate_All (AWS.Config.Set); with AWS.S...
pragma License (Unrestricted); private with Ada.Finalization; private with System.Storage_Barriers; private with System.Synchronous_Objects; package Ada.Synchronous_Task_Control is pragma Preelaborate; type Suspension_Object is limited private; procedure Set_True (S : in out Suspension_Object); procedure ...
-- 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 VisitablePackage, EnvironmentPackage, VisitFailurePackage; use VisitablePackage, EnvironmentPackage, VisitFailurePackage; package body NoStrategy is ---------------------------------------------------------------------------- -- Object implementation -----------------------------------------------------------...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- ...
----------------------------------------------------------------------- -- awa-storages-tests -- Unit tests for storages module -- Copyright (C) 2018, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ma...
with Ada.Text_IO; use Ada.Text_IO; package Utils is subtype Long_Long_Natural is Long_Long_Integer range 0 .. Long_Long_Integer'Last; -- The parameter "wcem=8" indicates that we want to open a file in -- UTF-8 format (which can therefore contain accents) DEFAULT_FILE_FORM_VALUE : constant String := "...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
Pragma Ada_2012; Pragma Wide_Character_Encoding( UTF8 ); with Risi_Script.Types.Identifier.Scope_Package; Package Risi_Script.Types.Identifier.Scope is use Risi_Script.Types.Identifier.Scope_Package; Type Scope is new Vector with null record; Function "+"( Right : Scope ) Return Vector; Function "+"( Ri...
---------------------------------------------------------------------------- -- Symbolic Expressions (symexpr) -- -- Copyright (C) 2012, Riccardo Bernardini -- -- This file is part of symexpr. -- -- symexpr is free software: you can redistribute it and/or modify -- it under the t...
-- { dg-excess-errors "no code generated" } generic type Id_T is private; type Data_T is private; package Varsize_Return_Pkg2 is type T is private; function Get (X : T) return Data_T; private type T is null record; end Varsize_Return_Pkg2;
with Ada.Containers.Ordered_Maps; with EU_Projects.Nodes; package EU_Projects.Node_Tables is type Node_Table is tagged private with Constant_Indexing => Element; type Table_Ref (D : access Node_Table) is tagged limited null record with Implicit_Dereference => D; function Contains (T : Node_Tabl...
--- tools/configure/configure-tests-postgresql.adb.orig 2011-12-27 08:20:56 UTC +++ tools/configure/configure-tests-postgresql.adb @@ -187,7 +187,7 @@ package body Configure.Tests.PostgreSQL (PostgreSQL_Library_Options, +"""-L" & Self.Switches.Libdir - & ""...
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired) -- -- Copyright William A. Whitaker (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is C...
-- Abstract: -- -- Root package for Stephe's Ada Library packages. -- -- See sal.html for more information. -- -- See http://stephe-leake.org/ada/sal.html for the -- latest version. -- -- Contact Stephe at stephen_leake@stephe-leake.org. -- -- Copyright (C) 1997 - 2004, 2008, 2009, 2015, 2017, 2018 Free Software...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with openGL.Palette, openGL.Light; package openGL.Program.lit -- -- Models an openGL program which uses lighting. -- is type Item is new openGL.Program.item with private; type View is access all Item'Class; ------------ -- Uniforms -- overriding procedure camera_Site_is (Self : in...
----------------------------------------------------------------------- -- widgets-factory -- Factory for widget Components -- 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 ...
----------------------------------------------------------------------- -- css-comments -- CSS comments recording -- Copyright (C) 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 file except...
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. ...
-------------------------------------------------------- -- E n c o d i n g s -- -- -- -- Tools for convertion strings between Unicode and -- -- national/vendor character sets. -- -- - - - - - - - - -...
with Trendy_Test.Assertions; package body Trendy_Terminal.Lines.Tests is use Trendy_Test.Assertions; procedure Test_Make (Op : in out Trendy_Test.Operation'Class) is begin Op.Register; declare L : Line; begin L := Make("a simple line"); Assert...
----------------------------------------------------------------------- -- mat-targets-probes - Definition and Analysis of process start events -- Copyright (C) 2014, 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
with Ada.Unchecked_Conversion; with Interfaces.C; with System; package body OpenAL.Load is package C renames Interfaces.C; function Load_Subprogram (Name : in String) return Subprogram_Access_Type is pragma Assert (Subprogram_Access_Type'Size = System.Address'Size); function Get_Proc_Address (Name ...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
package C_Words is type Comparable is limited interface; type Word (<>) is tagged private; function New_Word (Str : String) return Word; type C_Word (<>) is new Word and Comparable with private; function New_Word (Str : String) return C_Word; private type Word (Length : Natural) is tagged rec...
-- Test handling for Random and Basic_Rand. Rewritten to pass gnatprove. generic No_Of_Seeds : Positive; type Parent_Random_Int is mod <>; package Text_Utilities with Spark_Mode => On is pragma Pure; --No_Of_Seeds : constant Positive := 3; --type Parent_Random_Int is mod 2**64; pragma Assert...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------- -- 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...
----------------------------------------------------------------------- -- asf-components-base -- Component tree -- Copyright (C) 2009 - 2021 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 ...
with Ada.Text_IO; use Ada.Text_IO; with Extract_List_Files; use Extract_List_Files; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Parser_Xml; use Parser_Xml; procedure Main is Return_From_Call_String : Unbounded_String; Return_From_Call_Vector : Parser_Xml.String_Vector.Vector; begin -- Print th...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package arm_linux_gnueabihf_asm_posix_types_h is -- * arch/arm/include/asm/posix_types.h -- * -- * Copyright (C) 1996-1998 Russell King. -- * -- * This program is free software; you can redistribute it and/or modify -- * i...
----------------------------------------------------------------------- -- log.tests -- Unit tests for loggers -- Copyright (C) 2009, 2010, 2011, 2013, 2015, 2018, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
with freetype_C.Binding, freetype_C.FT_Vector, freetype_C.FT_Bitmap, freetype_C.FT_Size_Metrics, freetype_C.FT_BBox, freetype_C.FT_CharMapRec, interfaces.C.Strings; procedure launch_freetype_linkage_Test -- -- Tests linkage to Freetype functions. -- Is not meant to be run. -- is ...
with ada.Strings.Hash; package body lace.Event is function Hash (the_Kind : in Kind) return ada.Containers.Hash_type is begin return ada.Strings.Hash (String (the_Kind)); end Hash; end lace.Event;
with Clases; package Menu is type Opcion is (Insertar,Mirar,Salir); procedure Pide_Opcion (La_Opcion : out Opcion); procedure Lee_Num_Alumno (Num : out Clases.Num_Alumno); procedure Mensaje_Error (Mensaje : in String); end Menu;
----------------------------------------------------------------------- -- ADO Databases -- Database Objects -- Copyright (C) 2009, 2010, 2011, 2012, 2015, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- y...
----------------------------------------------------------------------- -- helios-schemas -- Helios schemas -- Copyright (C) 2017, 2019 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...
-- { dg-do assemble } package body Array20 is type Arr is array (Positive range <>) of Integer; type P_Arr is access Arr; N : constant P_Arr := null; Table : P_Arr := N; end Array20;
-- 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; -- QSPI flash execute-in-place block package R...
package GESTE_Fonts.FreeMonoOblique12pt7b is Font : constant Bitmap_Font_Ref; private FreeMonoOblique12pt7bBitmaps : aliased constant Font_Bitmap := ( 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#01#, 16#80#, 16#00#, 16#C0#, 16#00#, 16#40#, 16#...
----------------------------------------------------------------------- -- AUnit utils - Helper for writing unit tests -- Copyright (C) 2009, 2010, 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
----------------------------------------------------------------------- -- search-positions -- Token positions -- Copyright (C) 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 file except in...
-- -- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr> -- - Ryad Benadjila -- - Arnauld Michelizza -- - Mathieu Renard -- - Philippe Thierry -- - Philippe Trebuchet -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the...
-- ----------------------------------------------------------------- -- -- -- -- This is free software; you can redistribute it and/or -- -- modify it under the terms of the GNU General Public -- -- License as published by...
-- 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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Command Line Interface Toolkit -- -- -- -- -...
----------------------------------------------------------------------- -- keystore-io-headers -- Keystore file header operations -- Copyright (C) 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO, Ada.Numerics.Generic_Elementary_Functions; procedure Trabb_Pardo_Knuth is type Real is digits 6 range -400.0 .. 400.0; package TIO renames Ada.Text_IO; package FIO is new TIO.Float_IO(Real); package Math is new Ada.Numerics.Generic_Elementary_Functions(Real); function F(X: Real) re...
-- -- (c) Copyright 1993,1994,1995,1996 Silicon Graphics, Inc. -- ALL RIGHTS RESERVED -- Permission to use, copy, modify, and distribute this software for -- any purpose and without fee is hereby granted, provided that the above -- copyright notice appear in all copies and that both the copyright notice -- and th...
with Ada.Text_Io, Ada.Integer_Text_Io; use Ada.Text_Io, Ada.Integer_Text_Io; with datos; use datos; procedure escribir_lista (L : in Lista_Enteros ) is --Pre: --Post: se han escrito en pantalla los valores de L -- desde 1 hasta L.Cont begin for pos in 1 .. L.Cont loop Put(L.Numeros(pos...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Giza.Widget; use Giza; with Giza.Colors; use Giza.Colors; with bmp_test_indexed_8bits; with bmp_test_indexed_8bits_dma2d; package body Test_Button_Window is ------------- -- On_Init -- ------------- overriding procedure On_Init (This : in out Button_Window) is begin On_Init (Test_Wi...
pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.AES is pragma Preelaborate; --------------- -- Registers -- --------------- -- AES Modes of operation type CTRLA_AESM...
-- 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.USB is pragma Preelaborate; -...
-- { dg-do compile } procedure access_discr is type One; type Iface is limited interface; type Base is tagged limited null record; type Two_Alone (Parent : access One) is limited null record; type Two_Iface (Parent : access One) is limited new Iface with null record; type Two_Base (Paren...
-- -- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: Apache-2.0 -- with Ada.Exceptions; with Ada.Text_IO; with Tests; use Tests; with Notcurses.Context; with Notcurses; procedure Notcurses_Test is begin begin Notcurses.Context.Initialize; Test_Version; Test_...
package Matrix_Ops is type Matrix is array (Natural range <>, Natural range <>) of Float; function "*" (Left, Right : Matrix) return Matrix; end Matrix_Ops; package body Matrix_Ops is --------- -- "*" -- --------- function "*" (Left, Right : Matrix) return Matrix is Temp : Matrix(Left'Range(1),...
pragma License (Unrestricted); with Ada.Streams.Naked_Stream_IO; with Interfaces.C_Streams; package System.File_Control_Block is pragma Preelaborate; type AFCB_Ptr is tagged private; -- Ada.Streams.Stream_IO.File_Type function Stream (File : AFCB_Ptr) return Interfaces.C_Streams.FILEs; private type AFCB...
-- C45672A.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 Freetype; package Render.Fonts is FONT_SIZE : constant := 14; -- We reuse this object to store the current character glyph face : Freetype.FT_Face; emojiFace : Freetype.FT_Face; --glyph : Freetype.FT_GlyphSlot; function loadGlyph (c : Character; fontFace : Freetype.FT_Fac...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016-2017, AdaCore -- -- -- -- ...
with Ada.Containers.Indefinite_Ordered_Maps; with Protypo.Api.Engine_Values.Engine_Value_Holders; with Protypo.Api.Engine_Values.Engine_Value_Vectors; with Protypo.Api.Engine_Values.Handlers; with Protypo.Api.Engine_Values.Constant_Wrappers; -- -- This package provides resources to define a record-like variable -- whe...
-- C48008A.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...