content stringlengths 23 1.05M |
|---|
-- { dg-do run }
-- { dg-options "-gnatws" }
procedure Alignment13 is
type Rec is record
I1 : aliased Short_Integer;
I2 : Integer;
end record;
for Rec use record
I1 at 0 range 0 .. 15;
end record;
R : Rec;
begin
if R.I2'Bit_Position /= 32 then
raise Program_Error;
end if;
end;
|
package GESTE_Fonts.FreeMonoOblique5pt7b is
Font : constant Bitmap_Font_Ref;
private
FreeMonoOblique5pt7bBitmaps : aliased constant Font_Bitmap := (
16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#04#, 16#08#, 16#10#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#02#, 16#8A#, 16#14#, 16#00#, 16#00#,
16#00#, 16#00... |
with Memory;
package Intcode.Op is
type Code is (
Add,
Mul,
Get,
Put,
Jnz,
Jz,
Lt,
Eq,
Mrb,
Halt
);
type Parameter_Mode is (Position, Immediate, Relative);
type Parameter_List is array (Positive range <>) of Parameter_Mode;
type Schema(Num_Pa... |
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, Luke A. Guest
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising f... |
with Ada.Text_IO,Ada.Numerics.Discrete_Random,Ada.Calendar;
use Ada.Text_IO;
procedure Market is
subtype Index is Positive range 1..10;
package randomPos is new Ada.Numerics.Discrete_Random(Index);
infected_count : Natural := 0;
type Position is record
x: Natural;
y: Natural;
end record;
... |
with System; use System;
with STM32.Device; use STM32.Device;
with STM32.GPIO; use STM32.GPIO;
with STM32.EXTI; use STM32.EXTI;
with STM32.Timers; use STM32.Timers;
with STM32.ADC; use STM32.ADC;
with Ada.Interrupts.Names; use Ada.Interrupts.Names;
with Ada.R... |
package Error_Handling is
procedure Make_Safe;
-- The inverter is forced into a safe state.
end Error_Handling;
|
with Ada.Text_IO;
use Ada.Text_IO;
procedure RADWIMPS is
package Rad_Package is
type Rad is tagged null record;
procedure se(Self: in Rad);
function t_hen(Self: in Rad) return Rad;
end Rad_Package;
package body Rad_Package is
procedure se(Self: in Rad) is
begin
put_li... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
procedure Call_Foo is
begin
Foo;
exception
when Foo_Error =>
... -- do something
when others =>
... -- this catches all other exceptions
end Call_Foo;
|
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
-- Afficher une valeur approchée de la racine carréé d'un nombre réel
procedure Racine_Carree_Rang is
A: Float; -- le nombre dont on veut calculer la racine carrée
Ran... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
with GBA.Memory;
use GBA.Memory;
with GBA.Numerics;
use GBA.Numerics;
with GBA.Display.Tiles;
use GBA.Display.Tiles;
with GBA.Display.Palettes;
use GBA.Display.Palettes;
package GBA.Display.Objects is
type OBJ_ID is range 0 .. 12... |
with
Interfaces.C,
System;
use type
System.Address,
Interfaces.C.unsigned;
package body FLTK.Widgets.Groups.Windows.Single.Menu is
procedure menu_window_set_draw_hook
(W, D : in System.Address);
pragma Import (C, menu_window_set_draw_hook, "menu_window_set_draw_hook");
pr... |
-- File: adaid-generate.adb
-- Description: UUID Generation
-- Author: Anthony Arnold
-- License: Simplified BSD License (see LICENSE)
with SHA.Process_Data; -- For From_Name
with Ada.Numerics.Discrete_Random; -- For RNG
with Ada.Streams.Stream_IO; -- For reading from /dev/random
use Ada.Streams.Stream_IO;
package b... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
-- 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... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with League.Regexps;
package body Markdown.Inline_Parsers.Autolinks is
function "+" (Text : Wide_Wide_String)
return League.Regexps.Regexp_Patt... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Maps; use Ada.Strings.Maps;
with Ada.Characters.Handling; use Ada.Characters.Handling;
procedure pangram is
function ispangram(txt: String) return Boolean is
(Is_Subset(To_Set(Span => ('a','z')), To_Set(To_Lower(txt))));
begin
put_line(Boolean'Image(ispan... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
--
-- Copyright (C) 2015-2016 secunet Security Networks AG
--
-- 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 2 of the License, or
-- (at your option) any later version.
--
-- ... |
with Ada.Text_IO;
package body Eval is
procedure Show (E : in Expr) is
begin
case E.Kind is
when Add =>
Ada.Text_IO.Put ("Add(");
when Sub =>
Ada.Text_IO.Put ("Sub(");
when Mul =>
Ada.Text_IO.Put ("Mul(");
when Div =>
Ada.T... |
--- { dg-do run }
with Atomic7_Pkg1; use Atomic7_Pkg1;
procedure Atomic7_2 is
begin
if I /= 1 then
raise Program_Error;
end if;
end;
|
------------------------------------------------------------------------
--
-- Copyright (c) 2018, Brendan T Malone All Rights Reserved.
--
-- 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 a... |
-- 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... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
generic
with procedure Work (Obj : Test_Node_Interfa'Class;
Outcome : out Test_Outcome;
Kind : Run_Kind);
procedure Apsepp.Test_Node_Class.Generic_... |
pragma License (Unrestricted);
-- implementation unit
package System.Long_Long_Float_Types is
pragma Pure;
procedure Divide (
Left, Right : Long_Long_Float;
Quotient, Remainder : out Long_Long_Float);
end System.Long_Long_Float_Types;
|
type Banana is new Food with null record;
overriding procedure Eat (Object : in out Banana) is null;
package Banana_Box is new Food_Boxes (Banana);
type Tomato is new Food with null record;
overriding procedure Eat (Object : in out Tomato) is null;
package Tomato_Box is new Food_Boxes (Tomato);
-- We have declared Ban... |
package body AFRL.CMASI.AutomationResponse.SPARK_Boundary with SPARK_Mode => Off is
--------------------
-- Get_WaypointEntity_Set --
--------------------
function Get_WaypointEntity_Set
(Response : AutomationResponse) return Int64_Set
is
L : constant Vect_MissionCommand_Acc_Acc := Response.... |
With
NSO.JSON,
Ada.Containers.Ordered_Maps,
Ada.Calendar,
Gnoga.Gui.Base,
Gnoga.Gui.Element.Form,
Gnoga.Gui.Element.Common;
Limited with
Report_Form;
Package NSO.Types.Report_Objects.Observation_Report with Elaborate_Body is
Package Instrument_Mode_Pkg is new Ada.Containers.Indefinite_Ordered_Maps(
"<" ... |
with Ada.Real_Time;
with ACO.Utils.Generic_Event;
with ACO.Messages;
with ACO.States;
with ACO.SDO_Sessions;
with ACO.OD_Types;
with ACO.Configuration;
package ACO.Events is
use ACO.Configuration;
type Handler_Event_Type is
(Tick,
Received_Message);
type Handler_Event_Data
(Event : Handler... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package body Mergesort is
-----------
-- Merge --
-----------
function Merge(Left, Right : Collection_Type) return Collection_Type is
Result : Collection_Type(Left'First..Right'Last);
Left_Index : Index_Type := Left'First;
Right_Index : Index_Type := Right'First;
Result_Index : Ind... |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with bits_struct_mutex_h;
with bits_thread_shared_types_h;
with bits_struct_rwlock_h;
package bits_pthreadtypes_h is
-- Declaration of common pthread types for all architectures.
-- Copyright (C) 2017-2021 Free Software Foundation... |
-- $Id: General.md,v 1.5 1994/06/13 09:41:43 grosch rel $
-- $Log: General.md,v $
-- Ich, Doktor Josef Grosch, Informatiker, Aug. 1994
-- General Subroutines: minimum, maximum, binary logarithm, and power of 2
package General is
type ForAlign is record char: Character; longreal: Long_Float; end record;
MaxAlig... |
with Get_Line;
with Solitaire_Operations.Text_Representation;
with Ada.Text_IO;
use Ada;
procedure Key_Decrypt is
Passphrase : constant String := Get_Line;
Crypto : constant String := Get_Line;
Deck : Solitaire_Operations.Deck_List;
Plain : String (Crypto'range);
begin -- Key_Decrypt
Solitaire_Ope... |
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, Luke A. Guest
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising f... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
package body GL.API.Mac_OS_X is
OpenGLFramework_Cached : CFBundleRef;
function OpenGLFramework return CFBundleRef is
use type System.Address;
begin
if OpenGLFramework_Cached = Syst... |
-----------------------------------------------------------------------
-- awa-mail-components-attachments -- Mail UI Attachments
-- 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 ... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
with RTCH.Colours; use RTCH.Colours;
package RTCH.Visuals.Canvases with
Preelaborate is
-- type Pixel_Array is array (Positive range <>, Positive range <>) of Colour;
type Canvas is array (Positive range <>, Positive range <>) of Colour;
type Canvas_Access is access all Canvas;
function Make_Canvas (Wi... |
package body agar.gui.text is
use type c.int;
package cbinds is
function render (text : cs.chars_ptr) return agar.gui.surface.surface_access_t;
pragma import (c, render, "agar_gui_text_render");
function render_ucs4 (text : access c.char32_t) return agar.gui.surface.surface_access_t;
pragma imp... |
-----------------------------------------------------------------------
-- Security-oauth-clients-tests - Unit tests for OAuth
-- 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 thi... |
package Emulator_8080 is
type Byte_Type is mod 256;
for Byte_Type'Size use 8;
type Byte_Array_Type is array(Natural range <>) of Byte_Type;
end Emulator_8080;
|
-----------------------------------------------------------------------
-- util-beans-objects-record_tests -- Unit tests for objects.records package
-- Copyright (C) 2011, 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Licens... |
--//////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com)
-- //
-- // This software is provided 'as-is', without any express or implied warranty.
-- // In no event will the authors be held liabl... |
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, Maxim Reznik
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistr... |
with Primes_IDL_File.PrimeNumberRequest_DataWriter;
with Primes_IDL_File.PrimeNumberReply_DataReader;
with DDS.Request_Reply.Typed_Requester_Generic;
package Primes.PrimeNumberRequester is new DDS.Request_Reply.Typed_Requester_Generic
(Request_DataWriters => Primes_IDL_File.PrimeNumberRequest_DataWriter,
Reply_Dat... |
------------------------------------------------------------------------------
-- Copyright (c) 2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with Logger;
with Units;
with Types; use Types;
with Bounded_Image; use Bounded_Image;
package body Profiler with SPARK_Mode is
procedure enableProfiling is
begin
G_state.isEnabled := True;
end enableProfiling;
procedure disableProfiling is
begin
G_state.isEnabled := False;
end disableP... |
with AUnit;
with AUnit.Simple_Test_Cases;
with kv.avm.Instructions;
with kv.avm.Registers;
with kv.avm.Processors;
with kv.avm.Instances;
with kv.avm.Actors;
with kv.avm.Messages;
with kv.avm.references; use kv.avm.references;
with kv.avm.Memories;
with kv.avm.Control;
package kv.avm.Test is
type Instruction_Test... |
with Ada.Strings.Fixed;
with Ada.Strings.Maps;
with Text_IO;
use Text_IO;
package body split_string is
function collect1
(fs : String;
from_word_number : Natural;
ws : String := command_white_space1) return String
is
begin
if from_word_number <= number_of_wo... |
with Sodium.Functions; use Sodium.Functions;
with Ada.Text_IO; use Ada.Text_IO;
procedure Demo_Ada
is
message : constant String := "From Russia with love.";
metadata : constant String := "22 chars";
begin
if not initialize_sodium_library then
Put_Line ("Initialization failed");
return;
e... |
-----------------------------------------------------------------------
-- hestia-display-main -- Main display view manager
-- Copyright (C) 2018 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... |
Pragma Ada_2012;
With
Ada.Unchecked_Conversion,
NSO.Types,
--NSO.Types.Report_Objects,
Gnoga.Server.Connection;
Package Body NSO.JSON.Gnoga_Object is
JS_Make_Path : Constant String :=
"let pathing = (str) => "&
" {return Array.from(str).reduceRight( (accumulator, current) =>"&
" {switc... |
with Ada.Text_IO; use Ada.Text_IO;
package body Benchmark_Runner is
procedure Register_Benchmark(runner : in out Runner_Type;
benchmark : in Benchmark_Pointer) is
begin
runner.benchmarks.Append(benchmark);
end Register_Benchmark;
procedure Run(runner : in out Run... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Greet_5a is
begin
for I in 1 .. 5 loop
Put_Line ("Hello, World!" & Integer'Image (I)); -- Procedure call
-- ^ Procedure parameter
end loop;
end Greet_5a; |
package collada.Library.geometries
--
-- Models a collada 'geometries' library, which is a collection of geometries.
--
is
------------
--- Vertices
--
type Vertices is
record
Id : Text;
Inputs : access library.Inputs;
end record;
--------------
--- Primiti... |
with
openGL.Tasks,
openGL.Errors,
GL.lean,
GL.Pointers,
ada.Characters.latin_1,
ada.Strings.unbounded,
ada.Text_IO,
ada.IO_Exceptions,
interfaces.C.Strings;
package body openGL.Shader
is
use GL.lean,
Interfaces;
-----------
-- Utility
--
function r... |
with Ada.Text_IO;
procedure Sudoku is
type sudoku_ar_t is array ( integer range 0..80 ) of integer range 0..9;
FINISH_EXCEPTION : exception;
procedure prettyprint(sudoku_ar: sudoku_ar_t);
function checkValidity( val : integer; x : integer; y : integer; sudoku_ar: in sudoku_ar_t) return Boolean;
proce... |
-----------------------------------------------------------------------
-- wiki-attributes -- Wiki document attributes
-- Copyright (C) 2015, 2016, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use... |
-----------------------------------------------------------------------
-- awa-mail -- Mail module
-- Copyright (C) 2011, 2017, 2018, 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 exc... |
-- Copyright 2015 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 or agr... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package Natools.Smaz_Original_Hash is
pragma Pure;
function Hash (S : String) return Natural;
end Natools.Smaz_Original_Hash;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Abstract :
--
-- See spec.
--
-- Copyright (C) 2002, 2003, 2008, 2009, 2012 - 2015, 2017 - 2020 Free Software Foundation, Inc.
--
-- This file is part of the WisiToken package.
--
-- The WisiToken package is free software; you can redistribute it
-- and/or modify it under the terms of the GNU General Public Li... |
-- CC3123A.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... |
package body File_IO with SPARK_Mode => Off is
use all type Ada.Text_IO.File_Type;
function Open_Status (File : File_Type) return Open_Result is
begin
if Is_Open (File.Value) then
return File_Open;
else
return File_Closed;
end if;
exception
when others =>
... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
package body AdaBase.Statement.Base.SQLite is
-------------------
-- log_problem --
-------------------
procedure log_problem
(statement : SQLite_statement;
category : Log_Category;
... |
with Asis.Elements;
with Asis.Statements;
package body Asis_Adapter.Element.Paths is
------------
-- EXPORTED:
------------
procedure Do_Pre_Child_Processing
(Element : in Asis.Element; State : in out Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : constant String... |
package types.c
with spark_mode => on
is
type t_retval is (SUCCESS, FAILURE) with size => 8;
for t_retval use (SUCCESS => 0, FAILURE => 1);
--
-- C string
--
type c_string is array (positive range <>) of aliased character;
for c_string'component_size use character'size;
-- C_string len... |
with Piles;
procedure Parenthesage is
-- L'indice dans la chaîne Meule de l'élément Aiguille.
-- Si l'Aiguille n'est pas dans la Meule, on retroune Meule'Last + 1.
Function Index (Meule : in String; Aiguille: Character) return Integer with
Post => Meule'First <= Index'Result and then Index'Result... |
generic
type Component is private;
package G_Tables is
type Table (<>) is limited private;
function Create (L : Natural) return Table;
private
type Table is array (Positive range <>) of Component;
end G_Tables;
|
------------------------------------------------------------------------------
-- --
-- tiled-code-gen --
-- --
-- ... |
--
-- This is free and unencumbered software released into the public domain.
--
-- Anyone is free to copy, modify, publish, use, compile, sell, or
-- distribute this software, either in source code form or as a compiled
-- binary, for any purpose, commercial or non-commercial, and by any
-- means.
--
-- In jurisdictio... |
-- AOC 2020, Day 5
with Ada.Containers.Vectors;
package Day is
type Row_Type is range 0..127;
type Seat_Type is range 0..7;
type Boarding_Pass is record
Row : Row_Type := 0;
Seat : Seat_Type := 0;
end record;
package Boarding_Pass_Vectors is new Ada.Containers.Vectors
(Index_Type => Natural,
... |
-- Generated from glu.h
-- Date: Wed Sep 22 12:47:09 1999
--
with Interfaces.C.Extensions;
with gl_h;
package glu_h is
-- $Id: glu_h.ads,v 1.1.1.1 2002/08/30 01:10:55 afvargas Exp $
--
-- Mesa 3-D graphics library
-- Version: 3.0
-- Copyright (C) 1995-1998 Brian Paul
--
-- This library i... |
with TTS_Example_A;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Real_Time;
with Ada.Text_IO; use Ada.Text_IO;
with System;
procedure Main_A
with Priority => System.Priority'First
is
begin
TTS_Example_A.Main;
delay until Ada.Real_Time.Time_Last;
exception
when E : others =>
Put_Line (Exceptio... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Command_Line; use Ada.Command_Line;
with GNAT.Command_Line; use GNAT.Command_Line;
with Ada.Environment_Variables;
with Ada.Directories; use Ada.Directories;
with GNAT.OS_Lib; ... |
with Employee_Data;
package Timecards is
type Hours_Worked_T is new Integer; -- better implementation
type Pay_T is new Integer; -- better implementation
type Timecard_T is limited private;
function Create
(Name : String;
Rate : Employee_Data.Hourly_Rate_T;
Hours : Hours_Work... |
with
AdaM.Factory,
AdaM.a_Package,
ada.Tags;
package body AdaM.a_Type
is
-- Forge
--
procedure destruct (Self : in out Item)
is
begin
raise Program_Error with "'adam.a_Type' subclasses must override the 'destruct' procedure";
end destruct;
-- Attributes
--
overr... |
-----------------------------------------------------------------------
-- babel-streams-cached -- Cached stream management
-- Copyright (C) 2014, 2015 Stephane.Carrez
-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use ... |
private with Ada.Finalization;
with Ada.Strings.Unbounded;
private with Interfaces;
private with Interfaces.C;
private with Interfaces.C.Strings;
private with Interfaces.C.Pointers;
private with System;
package YAML is
type UTF8_String is new String;
type Document_Type is tagged limited private;
-- Holde... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
type Scheduler is task interface;
procedure Plan (Manager : in out Scheduler; Activity : in out Job) is abstract;
|
package Centro_Mensajeria is
procedure Inicializar(Nombre: String; Localidad: String);
procedure Localizar_Envios_Cercanos(Geo: GeoLoc.Geo; LCer: Lista_Envios.Lista);
function Localidad() return String;
procedure Anadir_Envio(Env: Envios.Envio);
end Centro_Mensajeria; |
separate (Numerics.Sparse_Matrices)
function Direct_Sum (A, B : in Sparse_Matrix) return Sparse_Matrix is
C : Sparse_Matrix;
NRow : constant Pos := A.N_Row;
NP : constant Pos := A.P (A.N_Col + 1);
use Ada.Containers;
begin
pragma Assert (A.Format = CSC and B.Format = CSC);
C.Format := CSC;
C.... |
--
--
--
with Sessions;
with States;
with Configs;
package Debugs is
procedure JQ_Dump_Rules (Session : in Sessions.Session_Type;
Mode : in Integer);
procedure Put_States (Session : in Sessions.Session_Type;
Mode : in Integer);
procedure Put_State ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
pragma License (Unrestricted);
-- extended unit
with Ada.Strings.Functions.Maps;
package Ada.Strings.Unbounded_Strings.Functions.Maps is
new Generic_Maps (Strings.Functions.Maps);
pragma Preelaborate (Ada.Strings.Unbounded_Strings.Functions.Maps);
|
-- Description:
-- Main System File
-- the main loop (TM)
with Ada.Real_Time; use Ada.Real_Time;
with CPU;
with Units; use Units;
-- with Units.Navigation; use Units.Navigation;
with HIL;
with Interfaces; use Interfaces;
with MPU6000.Driver; use MPU6000.Driver;
with PX4IO.Driver;
with ublox8.Dr... |
package Opt22_Pkg is
procedure Fail;
procedure Put (S : String);
end Opt22_Pkg;
|
with STM32.Device;
package body Digital is
-------------------
-- Configure_Pin --
-------------------
procedure Configure_Pin(Pin : GPIO_Point; Mode : Digital_Mode) is
IO_Mode : STM32.GPIO.Pin_IO_Modes;
begin
case Mode is
when Input =>
IO_Mode := Mode_In;
... |
package body impact.d3.Material
is
function to_Material (friction,
restitution : math.Real) return Item
is
Self : Item;
begin
Self.m_friction := friction;
Self.m_restitution := restitution;
return Self;
end to_Material;
end impact.d3.Material;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
--
-- Copyright (C) 2019, AdaCore
--
-- 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 mu... |
-----------------------------------------------------------------------
-- babel-commands -- Commands for Babel
-- Copyright (C) 2011, 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file ex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.