content stringlengths 23 1.05M |
|---|
with Menu,Alumnos,Clases;
procedure Lista_Alumnos is
Tercero_B : Clases.Clase;
Eleccion : Menu.Opcion;
Alu : Alumnos.Alumno;
Num : Clases.Num_Alumno;
begin
loop
Menu.Pide_Opcion (Eleccion);
case Eleccion is
when Menu.Insertar =>
if Clases.Llena(Tercero_B) then
Menu.... |
-- { dg-do compile }
procedure Class_Wide1 is
package P is
type T is tagged null record;
procedure P1 (x : T'Class);
procedure P2 (x : access T'Class);
end P;
package body P is
procedure P1 (x : T'Class) is
begin
null;
end;
procedure P2 (x : acc... |
with My_Package; use My_Package;
procedure Main is
Foo : My_Type; -- Foo is created and initialized to -12
begin
Some_Procedure(Foo); -- Foo is doubled
Foo := Set(2007); -- Foo.Variable is set to 2007
end Main;
|
with
physics.Joint.DoF6,
physics.Joint.cone_twist,
physics.Joint.slider,
physics.Joint.hinge,
physics.Joint.ball,
physics.Object,
bullet_C.Pointers,
lace.Any;
package bullet_Physics.Joint
--
-- Provides glue between a physics joint and a Bullet3D joint.
--
is
type Item is a... |
with Ada.Unchecked_Conversion;
package body Memory_Set is
------------
-- memset --
------------
function Memset (M : Address; C : int; Size : size_t) return Address is
subtype Mem_Array is char_array (size_t);
type Mem_Ptr is access Mem_Array;
function To_Memptr is
new Ada.Un... |
-- Copyright (c) 2021 Bartek thindil Jasicki <thindil@laeran.pl>
--
-- 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... |
with
openGL,
Physics,
float_Math.Geometry.D2,
float_Math.Geometry.D3,
float_Math.Algebra.linear.D2,
float_Math.Algebra.linear.D3;
package GEL
--
-- A game engine library.
--
is
pragma Pure;
Error : exception;
--------
--- Math
--
package Math renames floa... |
------------------------------------------------------------------------------
-- Ada Web Server --
-- --
-- Copyright (C) 2005-2018, 2020, AdaCore -... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Blade;
with C3GA_Utilities;
with GA_Maths;
with Multivector; use Multivector;
with Multivector_Type;
procedure Test_Mv is
no_bv : Multivector.Multivector := Get_Basis_Vector (Blade.no);
e1_bv : Multivector.Multivector := Get_Basis_Vector (Blade.e1);
e2_bv : Mul... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- ... |
package Memory.Transform.Shift is
type Shift_Type is new Transform_Type with private;
type Shift_Pointer is access all Shift_Type'Class;
function Create_Shift return Shift_Pointer;
function Random_Shift(next : access Memory_Type'Class;
generator : Distribution_Type;
... |
with agar.core.object;
with agar.core.slist;
with agar.core.threads;
with agar.core.types;
with agar.gui.colors;
with agar.gui.rect;
with agar.gui.surface;
with interfaces.c.strings;
package agar.gui.widget is
package cs renames interfaces.c.strings;
--
-- forward declarations
--
type widget_t;
type widg... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
private with Ada.Containers.Hashed_Maps;
package GNAT.Dynamic_HTables is
-- Simple_HTable
generic
type Header_Num is range <>;
type Element is private;
No_Element : Element;
type Key is private;
with function Hash (F : Key) return Header_Num;
... |
-- 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... |
package body FunctionX is
type Employee is
record
EmployeeNumber : Integer;
FirstName : String(1 .. 8);
LastName : String(1 .. 6);
HourlySalary : Float;
end record;
end FunctionX;
|
--
-- (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... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with GNAT.Sockets;
with Interfaces.C;
with Ada.Unchecked_Conversion;
package body LSP.Stdio_Streams is
package C renames Interfac... |
with Ada.Text_IO; use Ada.Text_IO;
package body Infrastructure is
protected body Steering is
entry SetNumber(CorrectNumber: in SteeringNumber)
when OwnNumber = -1 is
begin
OwnNumber := CorrectNumber;
end;
entry Incoming(CurrentTram: in TramNumber)
when not CurrentlyO... |
pragma License (Unrestricted);
-- extended unit
with Ada.IO_Exceptions;
with System.Storage_Elements;
private with Ada.Finalization;
private with System.Reference_Counting;
package Ada.Streams.Unbounded_Storage_IO is
-- Temporary stream on memory.
pragma Preelaborate;
type Buffer_Type is private;
proced... |
------------------------------------------------------------------------------
-- --
-- Standard Peripheral Library for STM32 Targets --
-- --
-- ... |
with MAT.Types;
with MAT.Expressions;
with Ada.Text_IO;
with MAT.Expressions.Lexer_dfa;
with MAT.Expressions.Parser_IO;
package body MAT.Expressions.Lexer is
use Ada.Text_IO;
use Ada;
use MAT.Expressions.Lexer_dfa;
use MAT.Expressions.Parser_IO;
Line_Number : Natural := 0;
pragma Style_Checks (Of... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ API types for skill types --
-- |___/_|\_\_|_|____| by: Timm Felden, Dennis Przytarski ... |
package body Numerics.Sparse_Matrices is
procedure Dense (Sp : in Sparse_Matrix;
A : out Real_Matrix) is
Offset_1 : constant Integer := A'First (1) - 1;
Offset_2 : constant Integer := A'First (2) - 1;
begin
for X of A loop X := 0.0; end loop;
for J in 1 .. N_Col (Sp) loop... |
--
-- Author: Brent Seidel
-- Version: V00.01
-- Date: 6-Apr-2016
--
-- This package defines a number of types for physical units. These are
-- generally based off of the Float type since in most cases, 6 digits is
-- pretty good for a physical measurement. If you need more precision, go
-- ahead and change it to wha... |
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with fann_c.Pointers;
with interfaces.c;
with interfaces.C;
package fann_c.user_function is
-- Item
--
type Item is access
procedure (arg_5_1 : in interfaces.c.unsigned;
arg_5_2 : in interfaces.c.unsigned;
arg_5_3 : in interfaces.... |
with Ada.Containers.Hashed_Maps,
Ada.Containers.Vectors,
Ada.Execution_Time,
Ada.Integer_Text_IO,
Ada.Real_Time,
Ada.Strings.Fixed,
Ada.Text_IO;
with Utils;
procedure Main is
use Ada.Execution_Time,
Ada.Real_Time,
Ada.Text_IO;
use Utils;
type Coordinate_2D is reco... |
-- { dg-do compile }
-- { dg-options "-gnat12 -gnatct" }
limited with Limited_With4;
package Limited_With4_Pkg is
type Object is tagged null record;
type Object_Ref is access all Object;
type Class_Ref is access all Object'Class;
function Func return Limited_With4.Class_Ref;
procedure Proc (Arg : Lim... |
package sync1 is
type Chopstick_Type is synchronized interface;
type Chopstick is synchronized new Chopstick_Type with private;
private
protected type Chopstick is new Chopstick_Type with
entry Pick_Up;
procedure Put_Down;
private
Busy : Boolean := False;
end Chopstick;
end sync1;
|
package GPR_Tools is
VERSION : constant String := "2.0.3";
end GPR_Tools;
|
package Uninit_Array is
function F2 return Integer;
end Uninit_Array;
|
with byte_package; use byte_package;
with raiden;
package file_crypter is
subtype key_s is raiden.key_s;
type mode is (encrypt, decrypt);
procedure init_key(key : raiden.key_s);
procedure file_crypt(in_file : byte_io.File_Type; out_file : out byte_io.File_Type; mode_crypt : mode);
end file_crypter;
|
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- Copyright (C) 2018 Componolit GmbH
-- Copyright (C) 2011, Adrian-Ken Rueegsegger
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-... |
with GESTE;
with GESTE.Sprite;
with GESTE.Tile_Bank;
with Ada.Text_IO;
with Console_Char_Screen;
with Ada.Exceptions;
procedure Layer_Priority is
use type GESTE.Pix_Point;
package Console_Screen is new Console_Char_Screen
(Width => 9,
Height => 9,
Buffer_Size => 256,
Init_Cha... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Strings.Fixed;
with TCG.Utils; use TCG.Utils;
with DOM.Core; use DOM.Core;
with DOM.Core.Elements; use DOM.Core.Elements;
with DOM.Core.Nodes; use DOM.Core.Nodes;
package body TCG.Collision_Objects is
type Polygon_Access is access all Polygon;
function To_Float (Str : String) return Floa... |
-----------------------------------------------------------------------
-- awa-wikis-writers-text -- Wiki HTML writer
-- Copyright (C) 2011, 2012, 2013, 2015 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may no... |
-- 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... |
package body Nilakantha is
procedure Iterate(Self : in out NilakanthaSeries) is
A : Long_Float;
S : Long_Float;
begin
A := Long_Float(Self.A);
S := Long_Float(Self.S);
Self.A := Self.A + 2;
Self.S := -Self.S;
Self.Pi := Self.Pi + S * (4.0 / (A * (A * (A + ... |
-- RUN: %llvmgcc -S %s
procedure Array_Range_Ref is
A : String (1 .. 3);
B : String := A (A'RANGE)(1 .. 3);
begin
null;
end;
|
with Card_Dir;
use Card_Dir;
with Coords;
use Coords;
with Ada.Numerics.Discrete_Random;
package body Aircraft is
procedure Ascend(A: in out Aircraft_Type) is
begin
A.Is_In_The_Air:=true;
end Ascend;
procedure Land(A: in out Aircraft_Type) is
begin
A.Is_In_The_Air:=false;
end Land;
function Get_Is_In... |
procedure Fakedsp.Data_Streams.Wave.Test is
Source : constant Wave_Source_Access := Open ("test_data/a.wav");
Dst : constant Wave_Destination_Access := Wave.Open (Filename => "test_data/rumenta/b.wav",
Sampling => Source.Sampling_Frequency,
... |
with System.Synchronous_Objects.Abortable;
with System.Tasks;
package body Ada.Synchronous_Barriers is
procedure Do_Wait (
Object : in out Synchronous_Barrier;
Notified : out Boolean;
Aborted : out Boolean);
procedure Do_Wait (
Object : in out Synchronous_Barrier;
Notified : out Boo... |
package Vect18 is
type Sarray is array (1 .. 4) of Long_Float;
for Sarray'Alignment use 16;
procedure Comp (X, Y : Sarray; R : in out Sarray);
end Vect18;
|
with External; use External;
package Receiver is
task type ReceiverTask(k: Natural) is
entry ReceiveMessage;
entry Ended;
end ReceiverTask;
type pReceiverTask is access ReceiverTask;
end Receiver;
|
package Matrix_Mult is
Size: Integer := 10;
type Mat is array(1..Size, 1..Size) of Integer;
procedure Mat_Mult(A: in Mat; B: in Mat; C: out Mat);
end Matrix_Mult;
|
with
ada.Streams.Stream_IO;
package openGL.Images
--
-- Provides ability to create and manipulate images.
--
is
function fetch_Image (Stream : in Ada.Streams.Stream_IO.Stream_Access;
try_TGA : in Boolean) return openGL.Image;
end openGL.Images;
|
package GESTE_Fonts.FreeMono6pt7b is
Font : constant Bitmap_Font_Ref;
private
FreeMono6pt7bBitmaps : aliased constant Font_Bitmap := (
16#00#, 16#00#, 16#00#, 16#81#, 16#02#, 16#04#, 16#00#, 16#00#, 16#20#,
16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#42#, 16#85#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#... |
-- Copyright 2016-2021 Bartek thindil Jasicki
--
-- This file is part of Steam Sky.
--
-- Steam Sky 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
-- (a... |
with Modem;
procedure Main is
begin
if Modem.Init then
Modem.Run;
else
Modem.Error;
end if;
end Main;
|
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
with Sf.System.Sleep; use Sf, Sf.System, Sf.System.Sleep;
with Sf.System.Time; use Sf.System.Time;
with Sf.Audio... |
--
-- Copyright (C) 2012 Reto Buerki
-- Copyright (C) 2012 Adrian-Ken Rueegsegger
-- Hochschule fuer Technik Rapperswil
--
-- 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... |
with Ada.Text_IO; use Ada.Text_IO;
procedure textcat is
Input : constant not null File_Access := Standard_Input;
Output : constant not null File_Access := Standard_Output;
begin
while not End_Of_File (Input.all) loop
declare
Item : Character;
End_Of_Line : Boolean;
begin
Look_Ahead (Input.all, Item, End... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Ada.Calendar;
package PortScan.Log is
package CAL renames Ada.Calendar;
overall_log : exception;
-- Open log, dump diagnostic data and stop timer.
function initialize_log
(log_handle : in... |
-----------------------------------------------------------------------
-- wiki-utils -- Wiki utility operations
-- 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 this ... |
-- ---------------------------------------------------------------- --
-- This file contains some improvements to the gl Ada binding --
-- in order to allow a better programming style. --
-- The prototypes below follow the Implementation advice from --
-- ARM Annex B (B.3). ... |
package body problem_20 is
function Solution_1 return Integer is
Num : array( Natural range 0 .. 50 ) of Natural := (
0 => 1, others => 0);
Sum : Integer := 0;
Carry : Integer := 1;
Temp : Integer;
begin
for I in 2 .. 100 loop
Carry := 0;
... |
with Interfaces;
package PyGamer.Audio is
type Data_Array is array (Natural range <>) of aliased Interfaces.Unsigned_16;
type Audio_Callback is access procedure (Left, Right : out Data_Array);
type Sample_Rate_Kind is (SR_11025, SR_22050, SR_44100, SR_96000);
procedure Set_Callback (Callback : Audio_... |
type My_Index is mod 2**8;
package My_Big_Numbers is new Big_Number (Index_type => My_Index, Nb_Item => 64);
function Int2Big is new My_Big_Numbers.Generic_Conversion.Int_Number2Big_Unsigned (Integer);
function Big_Get_Hamming is new Get_Hamming
(Int_Type => My_Big_Numbers.Big_Unsigned,
Zero ... |
with EU_Projects.Times.Time_Expressions.Solving;
private package EU_Projects.Projects.Housekeeping is
procedure Link_Milestone_To_Deliverable (Project : in out Project_Descriptor);
procedure Check_Node_Table (Project : in out Project_Descriptor);
function Collect_Equations (Project : Project_Descriptor)
... |
------------------------------------------------------------------------------
-- Copyright (c) 2014-2015, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
package body aIDE.Palette
is
procedure dummy is begin null; end dummy;
end aIDE.Palette;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- ... |
--
-- 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... |
-- { dg-do compile }
procedure Warn7 is
procedure Nested;
pragma No_Return (Nested);
procedure Nested is
begin
raise Constraint_Error;
exception
when Constraint_Error =>
raise;
end;
begin
Nested;
end;
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 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 --
-- --
-- ... |
-----------------------------------------------------------------------
-- gen-model-mappings -- Type mappings for Code Generator
-- 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 no... |
with Ada.Text_IO;
procedure Missing_Permutations is
subtype Permutation_Character is Character range 'A' .. 'D';
Character_Count : constant :=
1 + Permutation_Character'Pos (Permutation_Character'Last)
- Permutation_Character'Pos (Permutation_Character'First);
type Permutation_String is
ar... |
--------------------------------------------------------------------------------------------------------------------
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Definitions; use Definitions;
with Port_Specification;
private with HelperText;
private with Ada.Containers.Hashed_Maps;
package Specification_Parser is
package PSP renames Port_Specification;
-- P... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Element_Visitors;
with Program.Elements.Component_Definitions;
with Program.Elements.Defining_Identifiers;
with Program.E... |
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+si_units@heisenbug.eu)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by S... |
package body afrl.cmasi.abstractZone is
function getFullLmcpTypeName(this : AbstractZone'Class) return String is ("afrl.cmasi.abstractZone.AbstractZone");
function getLmcpTypeName(this : AbstractZone'Class) return String is ("AbstractZone");
function getLmcpType(this : AbstractZone'Class) return UInt32_t is... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Una_Tarea is
task type A_Type;
task type B_Type;
A : A_Type; -- podemos declarar objetos de las tareas
B : B_Type;
task body A_Type is
begin
loop
Put_Line("soy la tarea 1");
delay 3.0;
end loop;
end A_Type;
task body B... |
-- A85007D.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... |
-- This spec has been automatically generated from STM32L151.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.EXTI is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype IMR_MR_Field is HAL.U... |
--
-- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: Apache-2.0
--
with Ada.Unchecked_Conversion;
with Interfaces;
with Interfaces.C.Strings;
with Interfaces.C_Streams;
with Interfaces.C;
with Notcurses_Thin;
package Notcurses is
type Notcurses_Context is private;
type Notc... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
<AnimDB FragDef="Animations/Mannequin/ADB/PlayerFragmentIds.xml" TagDef="Animations/Mannequin/ADB/PlayerTags.xml">
<FragmentList>
<Idle>
<Fragment BlendOutDuration="0.2" Tags="Rotate">
<AnimLayer>
<Blend ExitTime="0" StartTime="0" Duration="0.2"/>
<Animation name="1DONE-BSpace_RotateRIFLE" flags="Lo... |
with System;
with Interfaces.C.Strings;
with SDL.Types; use SDL.Types;
with SDL.Video;
with SDL.Error;
package SDL_ttf is
package C renames Interfaces.C;
package CS renames Interfaces.C.Strings;
package V renames SDL.Video;
package Er renames SDL.Error;
-- Reference to an internal structure contai... |
package Md_Example4.Nested is
type T is new Md_Example4.T with record
Child_Attribute : Globals_Example1.Itype;
end record;
procedure Do_It (The_T : T);
end Md_Example4.Nested;
|
with Libadalang.Analysis;
with Libadalang.Common;
with Rejuvenation.Factory; use Rejuvenation.Factory;
package Generator is
package LAL renames Libadalang.Analysis;
package LALCO renames Libadalang.Common;
Filename_LAL_Ads : constant String :=
"C:\GNATPRO\22.1\include\libadalang\libadalang-analysis.ads"... |
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+owm@heisenbug.eu)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Ho... |
with Ada.Text_IO;
use Ada.Text_IO;
procedure main is
begin -- Bonjour
Put("Hello Master Falindir");
end main; |
with STM32GD.I2C;
with STM32_SVD; use STM32_SVD;
package body Drivers.Si7006 is
Measurement : STM32GD.I2C.I2C_Data (0 .. 2);
function Temperature_x100 return Temperature_Type is
begin
if I2C.Master_Transmit (16#40#, 16#E3#, True)
and then I2C.Master_Receive (16#40#, Measurement)
then retur... |
with Ada.UCD.East_Asian_Width;
package body Ada.Strings.East_Asian_Width is
use type UCD.UCS_4;
pragma Compile_Time_Error (
UCD.East_Asian_Width_Type'Pos (UCD.N) /=
Width_Kind'Pos (Neutral)
or else UCD.East_Asian_Width_Type'Pos (UCD.Na) /=
Width_Kind'Pos (Narrow)
or else UCD.E... |
pragma License (Unrestricted);
-- implementation unit specialized for Darwin
with C.sys.mount;
package System.Native_Directories.Volumes is
-- File system information.
pragma Preelaborate;
subtype File_Size is Ada.Streams.Stream_Element_Count;
type File_System is record
Statistics : aliased C.sys.... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
with Ada.Real_Time;
with ACO.CANopen;
private with ACO.Events;
private with ACO.Utils.Generic_Alarms;
private with ACO.Slave_Monitors;
package ACO.Protocols.Error_Control.Masters is
type Master
(Id : ACO.Messages.Node_Nr;
Handler : not null access ACO.CANopen.Handler;
Od : not null a... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
package body Integrate is
function Left_Rectangular (A, B : Scalar; N : Positive) return Scalar is
H : constant Scalar := (B - A) / Scalar (N);
Sum : Scalar := 0.0;
X : Scalar;
begin
for I in 0 .. N - 1 loop
X := A + Scalar (I) * H;
Sum := Sum + H * F (X);
end l... |
package Static_Initializer5_Pkg is
type Arr is array (Positive range <>) of Character;
type Buffer_Type (Length : Positive) is record
Content : Arr (1 .. Length);
end record;
type Buffer_Access is access Buffer_Type;
type Rec is tagged record
Buffer : Buffer_Access;
end record;
Nul... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions;
procedure main with SPARK_Mode is
Y, X, angle : Float;
dt : constant Float := 0.5;
begin
for kx in Integer range -10 .. 10 loop
X := Float(kx) * dt;
for ky in Integer range -10 .. 10... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
package asm_generic_posix_types_h is
-- SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
-- * This file is generally used by user-level software, so you need to
-- * be a little careful about n... |
with Ada.Unchecked_Deallocation;
with Ada.Containers.Vectors;
with Ada.Containers.Indefinite_Vectors;
with Protypo.Tokens;
private
package Protypo.Code_Trees is
use Ada.Strings.Unbounded;
package ID_Lists is
new Ada.Containers.Indefinite_Vectors (Index_Type => Positive,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.