content
stringlengths
23
1.05M
with Impact.d3.Containers; with Impact.d3.convex_Polyhedron; with Impact.d3.Collision.Detector.discrete; package Impact.d3.Collision.polyhedral_contact_Clipping -- -- Clips a face to the back of a plane -- is use Math; subtype btVertexArray is Containers.vector_3_Vector; procedure clipHullAgainstH...
-- Lua.Lib -- Supporting the Lua standard libraries -- Copyright (c) 2015, James Humphry - see LICENSE for terms package Lua.Libs is type Lua_Standard_Library is (Base_Lib, Package_Lib, Coroutine_Lib, String_Lib, ...
with System.Address_To_Constant_Access_Conversions; with System.Address_To_Named_Access_Conversions; with System.Storage_Elements; with System.Zero_Terminated_WStrings; with System.Debug; -- assertions with C.string; with C.winbase; with C.windef; with C.winerror; with C.winnt; package body System.Native_Environment_Va...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Integer_Text_IO; package body GNAT.IO is procedure Put (Item : Integer) is begin Ada.Integer_Text_IO.Put (Item); end Put; end GNAT.IO;
-- SPDX-FileCopyrightText: 2020-2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- procedure Program.Nodes.Identifiers.Set_Defining_Name (Self : not null Program.Elements.Identifiers.Identifier_Access; Value : Program.Elements.D...
----------------------------------------------------------------------- -- mail-headers-tests -- Tests for headers -- 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 excep...
-- ----------------------------------------------------------------- -- -- -- -- This is free software; you can redistribute it and/or -- -- modify it under the terms of the GNU General Public -- -- License as published by the ...
with Person2; use Person2; with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; procedure Test_Person2 is I_Am_Hugo : Person; begin Set_Name (I_Am_Hugo, To_Unbounded_String ("Hugo")); Set_Age (I_Am_Hugo, 19); if Is_Adult (I_Am_Hugo) then Put_Line ("He's adult"); ...
------------------------------------------------------------------------------ -- -- -- Ada binding for OpenGL/WebGL -- -- -- -- ...
with Ada.Numerics.Generic_Elementary_Functions; package body Shapes is package Math is new Ada.Numerics.Generic_Elementary_Functions (Float_T); function Distance (Vertex1 : Vertex_T; Vertex2 : Vertex_T) return Float_T is begin return Math.Sqrt ((Vertex1.X - Vertex2.X)**2 + (Vert...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd. -- -- SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from rp2040.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; -- Register block for busfabric control signal...
with Ada.Numerics.Discrete_Random; package body Random_57 is type M5 is mod 5; package Rand_5 is new Ada.Numerics.Discrete_Random(M5); Gen: Rand_5.Generator; function Random7 return Mod_7 is N: Natural; begin loop N := Integer(Rand_5.Random(Gen))* 5 + Integer(Rand_5.Random(G...
-- RUN: %llvmgcc -S %s -I%p/Support package body Unc_Constructor is procedure P (X : A) is begin if X = A0 then null; end if; end; end;
with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; with Menu; procedure Example is package SU renames Ada.Strings.Unbounded; M : Menu.T_Menu; begin M.Title := SU.To_Unbounded_String("Do you want to recurse?"); Menu.Add_Item(M, (Symbol => 'y', Name => SU.To_Unbounde...
package body Problem_6 is function Solution_1 return Int64 is Sum_Of_Squares : Int64 := 0; Sum : Int64 := 0; begin for I in 1 .. 100 loop Sum_Of_Squares := Sum_Of_Squares + Int64(I*I); Sum := Sum + Int64(I); end loop; return (Sum * Sum ) - Sum_Of...
----------------------------------------------------------------------- -- gen-model-stypes -- Simple data type definitions -- Copyright (C) 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 f...
-- Copyright 2015,2017 Steven Stewart-Gallus -- -- 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/LICENSE-2.0 -- -- Unless required by applicable law o...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Numerics, Ada.Text_IO, Chebyshev, Sb_Package; use Numerics, Ada.Text_IO, Chebyshev, Sb_Package; procedure Steel_Balls is use Int_IO, Real_IO, AD_Package, Integrator; ----------------------------------------------- Control : Control_Type := New_Control_Type; -- Initial Conditions ---- Guess, Var, S...
pragma License (Unrestricted); with Ada.Numerics.Generic_Complex_Elementary_Functions; with Ada.Numerics.Short_Complex_Types; package Ada.Numerics.Short_Complex_Elementary_Functions is new Generic_Complex_Elementary_Functions (Short_Complex_Types); pragma Pure (Ada.Numerics.Short_Complex_Elementary_Functions);
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.JSON.Streams; with League.JSON.Values; with League.String_Vectors; with League.Strings; with LSP.Generic_Optional; packa...
with Ada.Numerics; with Ada.Numerics.Long_Elementary_Functions; use Ada.Numerics.Long_Elementary_Functions; with Ada.Unchecked_Conversion; with Interfaces.C.Pointers; with System; with PortAudioAda; use PortAudioAda; with GA_Sine_Globals; use GA_Sine_Globals; package body GA_Sine_Callbacks is package Float_Ptr...
package conecta4 is Max_Columnas: constant integer:=9; Max_Filas: constant Integer:=6; type T_celda is (Rojo, Azul, Nada); subtype T_Ficha is T_celda range Rojo..Azul; subtype T_Fila is Integer range 1..Max_Filas; subtype T_Columna is Integer range 1..Max_Columnas; type T_Tablero is array (T_Fil...
with Ada.Real_Time; use Ada.Real_Time; with STM32GD.Board; with STM32GD.GPIO; with STM32GD.GPIO.Pin; with Peripherals; use Peripherals; procedure Main is package GPIO renames STM32GD.GPIO; package Board renames STM32GD.Board; package Text_IO renames Board.Text_IO; procedure Print_Registers is new Perip...
with Ada.Finalization; use Ada.Finalization; with Ada.Text_IO; use Ada.Text_IO; package body EU_Projects.Nodes.Partners is function Create (ID : Partner_Label; Name : String; Short_Name : String; Country : Country_Code; ...
-- Generated at 2015-08-01 13:43:50 +0000 by Natools.Static_Hash_Maps -- from src/natools-web-list_templates-maps.sx function Natools.Static_Maps.Web.List_Templates.T return Boolean; pragma Pure (Natools.Static_Maps.Web.List_Templates.T);
-- 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 STM32GD.RTC; package body STM32GD.Timeout is Microseconds_Timeout : Microseconds; Milliseconds_Timeout : Milliseconds; Seconds_Timeout : Seconds; procedure Set (T : Microseconds) is begin null; end Set; procedure Set (T : Milliseconds) is begin null; end Set; procedur...
With Ada.Text_IO; Use Ada.Text_IO; Procedure Fibonacci is numero: Integer; resultado: Integer; -- Leitura String function Get_String return String is Line : String (1 .. 1_000); Last : Natural; begin Get_Line (Line, Last); return Line (1 .. Last); end Get_String; -- Leitura Integer function Get_Integ...
-- see OpenUxAS\src\Communications\LmcpObjectNetworkClientBase.h with DOM.Core; with AVTAS.LMCP.Object; use AVTAS.LMCP.Object; with UxAS.Comms.Data.LMCP_Messages; use UxAS.Comms.Data.LMCP_Messages; with UxAS.Comms.LMCP_Object_Message_Sender_Pipes; use UxAS.Comms.LMCP_Object_Message_Sender_Pipes; wi...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with ada.unchecked_Deallocation; package body gel.Keyboard.local is package body Forge is function to_Keyboard (of_Name : in String) return Item is begin return Self : constant Item := (lace.Subject.local.Forge.to_Subject (of_Name) with no...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2013 Felix Krause <contact@flyx.org> -- -- 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/licen...
with Ada.Exceptions; package GDNative.Exceptions is procedure Put_Warning (Message : in Wide_String); procedure Put_Error (Occurrence : in Ada.Exceptions.Exception_Occurrence); end;
-- { dg-do run } procedure access_discr2 is type X (I : not null access Integer) is tagged null record; I : aliased Integer := 8; Y : X (I'Access); begin null; end access_discr2;
... exception when Foo_Error => if ... then -- Alas, cannot handle it here, raise; -- continue propagation of end if;
----------------------------------------------------------------------- -- awa-images-services -- Image service -- Copyright (C) 2012, 2013, 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 f...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016-2020, AdaCore -- -- -- -- ...
-- { dg-do compile } with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO; procedure Unc is type Arr is array (1..4) of integer; type Bytes is array (positive range <>) of Character; type Buffer (D : Boolean := False) is record case D is when False => Chars: Bytes (1..16); w...
----------------------------------------------------------------------- -- mat-readers -- Reader -- Copyright (C) 2014, 2015, 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 in c...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Discrete_Ranges; with Program.Elements.Expressions; with Program.Elements.Constraints; package Program.Elements.Discrete_Subtype_Indi...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, Universidad Politécnica de Madrid -- -- -- -- ...
with Ada.Containers.Generic_Sort; package body GNAT.Heap_Sort is procedure Sort (N : Natural; Xchg : Xchg_Procedure; Lt : Lt_Function) is procedure Do_Sort is new Ada.Containers.Generic_Sort (Natural, Lt.all, Xchg.all); begin Do_Sort (1, N); end Sort; end GNAT.Heap_Sort;
pragma Check_Policy (Trace => Ignore); with Ada; -- assertions with System.Debug; -- assertions with C.stdlib; with C.sys.mman; with C.unistd; package body System.System_Allocators is pragma Suppress (All_Checks); use type C.signed_int; -- implementation function Allocate ( Size : Storage_Elements....
with Simulation; with Ada.Text_IO; use Ada.Text_IO; with Units; use Units; package body ublox8.driver with SPARK_Mode => Off, Refined_State => (State => (null)) is cur_loc : GPS_Loacation_Type; -- L,L,A cur_msg : GPS_Message_Type; cur_fix : GPS_FIX_Type; cur_vel : Units.Linear_Velocity_Type := 0.0*Meter...
with Ada.Exceptions; with Ada.Unchecked_Deallocation; with System.Address_To_Named_Access_Conversions; with System.Shared_Locking; package body System.Finalization_Masters is pragma Suppress (All_Checks); use type Storage_Barriers.Flag; procedure Free is new Ada.Unchecked_Deallocation (FM_List, FM_List_Access...
-- { dg-do run } -- { dg-options "-gnato" } procedure Overflow_Sum3 is function Ident (I : Integer) return Integer is begin return I; end; X : Short_Short_Integer := Short_Short_Integer (Ident (127)); begin if X+1 <= 127 then raise Program_Error; end if; exception when Constraint_...
-- Generated by a script from an "avr tools device file" (atdf) package SAM.Clock_Generator.IDs is TRACE : constant Peripheral_Id := 47; AC : constant Peripheral_Id := 32; ADC0 : constant Peripheral_Id := 40; ADC1 : constant Peripheral_Id := ...
-- with Ada; use Ada; with Ada.Containers; package L_Strings with SPARK_Mode is Max : constant Integer := 255; type L_String is private; type Truncation is (Left, Right); function Hash (S : L_String) return Ada.Containers.Hash_Type with Global => null, Pre => True; function "=" (Left, Right...
with speech_tools_c.Binding, festival.Binding, Interfaces.C.Strings, speech_tools_c.Pointers, Swig.Pointers; with Ada.Text_IO; use Ada.Text_IO; procedure say_Hello is use Festival, Festival.Binding, speech_tools_c.Binding, speech_tools_c.Pointers, Interfaces, ...
with Interfaces; with Atomic.Unsigned; package Atomic.Unsigned_32 is new Atomic.Unsigned (Interfaces.Unsigned_32);
package impact.d3.Material -- -- Material class to be used by btMultimaterialTriangleMeshShape to store triangle properties. -- -- Has public members so that materials can change due to world events. -- is type Item is record m_friction, m_restitution : math.Real; end record; f...
-- 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 Surface.Window; package tracker.presentation is type instance is new Surface.Window.Instance with record Book_Completion : Collection; end record; overriding procedure Setup (self : in out instance); overriding procedure Update (self : in out instance ; dt : Float); type Element is (BG, S...
with Interfaces.C.Extensions; with Interfaces.C.Strings; with a_nodes_h; package lal_adapter_wrapper_h is function lal_adapter_wrapper (project_file_name : in Interfaces.C.Strings.chars_ptr; input_file_name : in Interfaces.C.Strings.chars_ptr; output_dir_name :...
with Test_Utils.Abstract_Decoder; with AUnit.Test_Suites; with AUnit.Test_Fixtures; private with AUnit.Test_Caller; package Testsuite.Decode is type Decoder_Kind is (Simple, Simple_In_Place, Stream); procedure Set_Decoder_Kind (K : Decoder_Kind); procedure Add_Tests (Suite : in out AUnit.Test_Suites.Test_...
with Ada.Text_IO; with Ada.Exceptions; with AdaBase; with Connect; with GNAT.Traceback.Symbolic; procedure Traits is package SYM renames GNAT.Traceback.Symbolic; package TIO renames Ada.Text_IO; package CON renames Connect; package EX renames Ada.Exceptions; -- Database_Driver renames specific drive...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2021 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 -- -- -- -- ...
--////////////////////////////////////////////////////////// -- 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 arising...
package body STM32.CORDIC.Polling is ------------------------------- -- Calculate_CORDIC_Function -- ------------------------------- procedure Calculate_CORDIC_Function (This : in out CORDIC_Coprocessor; Argument : UInt32_Array; Result : out UInt32_Array) is -- Test if dat...
----------------------------------------------------------------------- -- awa-users-beans -- ASF Beans for user module -- 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 us...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
with Piles; with Ada.Text_IO; use Ada.Text_IO; -- Montrer le risque d'autoriser l'affectation entre variables dont le type -- est une structure chaînée. procedure Illustrer_Affectation_Pile is package Pile is new Piles (Character); use Pile; procedure Afficher is new Pile.Afficher (Put); P1, P2 : ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
pragma License (Unrestricted); -- extended unit package System.Storage_Elements.Formatting is -- The formatting functions Image and Value for System.Address. pragma Pure; subtype Address_String is String (1 .. (Standard'Address_Size + 3) / 4); function Image (Value : Address) return Address_String; f...
------------------------------------------------------------------------------ -- AGAR GUI LIBRARY -- -- A G A R . W I D G E T -- -- B o d y -- -- ...
-- This file is generated by SWIG. Do *not* modify by hand. -- with Interfaces.C.Extensions; package LLVM_Target is -- LLVMOpaqueTargetData -- type LLVMOpaqueTargetData is new Interfaces.C.Extensions.opaque_structure_def; type LLVMOpaqueTargetData_array is array (Interfaces.C.size_t range <>)...
----------------------------------------------------------------------- -- util-encoders-aes -- AES encryption and decryption -- Copyright (C) 2017, 2019, 2020, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- yo...
with FLTK.Widgets; package FLTK.Menu_Items is type Menu_Item is new Wrapper with private; type Menu_Item_Reference (Data : not null access Menu_Item'Class) is limited null record with Implicit_Dereference => Data; package Forge is -- Usually you don't bother with this and ju...
package body System.Img_Bool is procedure Image_Boolean ( V : Boolean; S : in out String; P : out Natural) is begin if V then pragma Assert (S'Length >= 4); P := S'First + 3; S (S'First .. P) := "TRUE"; else pragma Assert (S'Length >= 5); ...
with Ada.Numerics.Float_Random; with Ada.Numerics.Discrete_Random; with Ada.Numerics.Generic_Elementary_Functions; with Ada.Containers.Vectors; with Ada.Containers.Synchronized_Queue_Interfaces; with Ada.Containers.Unbounded_Priority_Queues; use type Ada.Containers.Count_Type; with Ada.Text_IO; use Ada.Text_IO; w...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32F3x4.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.TSC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_MCV_Field is HAL.UInt3; subtype ...
package Console is type Color is (Black, Red, Green, Yellow, Blue, Magenta, Cyan, White); procedure Set_Foreground(Color_Value : in Color); procedure Set_Background(Color_Value : in Color); procedure Set_Bold; procedure Set_Italic; procedure Set_Underline; procedure Set_Blink; proce...
-- AOC 2020, Day 23 with Ada.Text_IO; use Ada.Text_IO; with Day; use Day; procedure main is cups : constant Cup_Array := (3,1,5,6,7,9,8,2,4); steps : constant Natural := 100; part1 : constant String := play(cups, steps); part2 : constant Long_Integer := play2(cups, 1000000, 10000000); begin put_line("Part 1:...
-- Ada_GUI version of Random_Int -- -- Copyright (C) 2021 by PragmAda Software Engineering -- -- Released under the terms of the 3-Clause BSD License. See https://opensource.org/licenses/BSD-3-Clause -- -- The main-program procedure with Ada.Numerics.Discrete_Random; with Random_Int.UI; procedure Random_Int.Program ...
-- Abstract : -- -- Output Ada source code to recreate Grammar. -- -- Copyright (C) 2018 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either versio...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Slim.Message_Visiters; package body Slim.Messages.grfs is List : constant Field_Description_Array := ((Uint_8_Field, 1)...
----------------------------------------------------------------------- -- awa-jobs-modules -- Job module -- Copyright (C) 2012, 2013, 2020, 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 f...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
with ANSI; package CLIC.TTY with Preelaborate is -- Color/Formatting related subprograms. These won't have any -- effect if a redirection of output is detected, or if global -- flag Simple_Logging.Is_TTY is false. -- Re-expose for clients package ANSI renames Standard.ANSI; function Is_TTY ret...
package body MatrixMult is task type MultiplyType is entry mult(A,B : Matrix; I,j : Integer); entry assign(P:out Integer); end MultiplyType; task body MultiplyType is sum: integer; row: integer; col: integer; arr1: array(1..10) of integer; arr2: array(1..10) of integer; begin accept mult(A,B : Ma...
with Renaming8_Pkg3; use Renaming8_Pkg3; package Renaming8_Pkg2 is type Arr is array (Positive range 1 .. Last_Index) of Boolean; type Rec is record E : Arr; end record; function F return Rec; end Renaming8_Pkg2;
package body Task_Scheduling is protected body Epoch is procedure Get_Start_Time(Start_Time : out Ada.Real_Time.Time) is begin if First then First := False; Start := Ada.Real_Time.Clock; end if; Start_Time := Start; en...
-- -- 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...
------------------------------------------------------------------------------ -- EMAIL: <darkestkhan@gmail.com> -- -- License: ISC License (see COPYING file) -- -- -- -- ...
with Ada.Text_IO; package body Tagged_Subprogram_Calls is package body Inner is procedure P(A : E) is begin null; end P; end Inner; procedure Test(Param : Inner.E) is type F is new Inner.E range Param .. Inner.C; O : F := B; Q : Inner.E := Inner.B...
----------------------------------------------------------------------- -- util-tests-server - A small non-compliant-inefficient HTTP server used for unit tests -- Copyright (C) 2012, 2013, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, V...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Lumen.Shader -- Helper routines to fetch shader source, load it, and compile -- -- Chip Richards, NiEstu, Phoenix AZ, Winter 2013 -- This code is covered by the ISC License: -- -- Copyright © 2010, NiEstu -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee ...
with STM32.EXTI; with Ada.Interrupts.Names; with System; package body VL53L1X_Demo.Hardware is procedure Initialize_I2C_GPIO (Port : in out STM32.I2C.I2C_Port) is Id : constant STM32.Device.I2C_Port_Id := STM32.Device.As_Port_Id (Port); use all type STM32.Device.I2C_Port_Id; -- S...
-- This spec has been automatically generated from STM32F46_79x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.QUADSPI is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_FTHRES_Field...
with Interfaces.C.Strings; with a_nodes_h; package tool_2_wrapper_h is function tool_2_wrapper (target_file_in : in Interfaces.C.Strings.chars_ptr; gnat_home : in Interfaces.C.Strings.chars_ptr; output_dir : in Interfaces.C.Strings.chars_ptr) return a_nodes_h.Nodes_Struct; pragma...
with Ada.Text_IO; with Ada.Strings.Unbounded; with Ada.Text_IO.Unbounded_IO; procedure Hello is use Ada.Text_IO; use Ada.Strings.Unbounded; use Ada.Text_IO.Unbounded_IO; Name : Unbounded_String; begin -- Using full package name because it would be ambigous with all the String packages Ada.Text_...
-- Abstract : -- -- Generic Emacs background process; packrat parse token stream, -- return parser actions. -- -- See gen_run_wisi_parse_packrat.ads for a standalone version. -- -- References : -- -- See gen_emacs_wisi_parse.ads -- -- Copyright (C) 2018 Free Software Foundation, Inc. -- -- This program is free ...
-- { dg-do compile } package body Noreturn2 is procedure Raise_Exception_No_Defer (Message : String); pragma No_Return (Raise_Exception_No_Defer); procedure Raise_From (X : Exception_Occurrence) is Occurrence_Message : constant String := Exception_Message (X); begin if Occurrence_Message = "$...
with Generic_Sensor; with Interfaces; use Interfaces; with Units; use Units; with Units.Vectors; use Units.Vectors; with Units.Navigation; use Units.Navigation; package IMU with SPARK_Mode, Abstract_State => State is -- this is how data from the IMU looks like type IMU_Data_Type is record Acc_X : Inte...