content stringlengths 23 1.05M |
|---|
with Ada.Text_IO; use Ada.Text_IO;
with Libadalang.Analysis; use Libadalang.Analysis;
with Libadalang.Common; use Libadalang.Common;
with Rejuvenation; use Rejuvenation;
with Rejuvenation.Factory; use Rejuvenation.Factory;
with Rejuvenation.Finder; use Rejuvenat... |
with hetro_stack;
with Ada.Text_IO; use Ada.Text_IO;
package hetro_stack_elems is
type CarString is new String(1..5); -- Holds Car Type.
type PlaneString is new String(1..8); -- Holds Plane Type.
type Vehicles is (Car, Plane);
package VehiclesIO is new Ada.Text_IO.Enumeration_IO(Vehicles);
... |
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@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 Hoc... |
package body Pascal is
function First_Row(Max_Length: Positive) return Row is
R: Row(0 .. Max_Length) := (0 | 1 => 1, others => 0);
begin
return R;
end First_Row;
function Next_Row(R: Row) return Row is
S: Row(R'Range);
begin
S(0) := Length(R)+1;
S(Length(S)) := 1;
f... |
-------------------------------------------------------------------------------
-- --
-- Coffee Clock --
-- --
... |
with Basic_Test_Window; use Basic_Test_Window;
with Giza.Widget.Button;
use Giza.Widget;
package Test_Button_Window is
type Button_Window is new Test_Window with private;
type Button_Window_Ref is access all Button_Window;
overriding
procedure On_Init (This : in out Button_Window);
overriding
proced... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
package body Derived_Type3_Pkg is
type Parent is tagged null record;
type Child is new Parent with
record
Image : Ada.Strings.Unbounded.Unbounded_String;
end record;
function Set_Image return Chil... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 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 AWS.Resources.Streams.Pipes is
------------
-- Append --
------------
procedure Append
(Resource : in out Stream_Type;
Buffer : Stream_Element_Array;
Trim : Boolean := False)
is
Lock : Lock_Type (Resource.Guard'Access) with Warnings => Off;
begin
if Re... |
with Ada.Text_IO.Text_Streams;
with DOM.Core.Documents;
with DOM.Core.Nodes;
procedure Serialization is
My_Implementation : DOM.Core.DOM_Implementation;
My_Document : DOM.Core.Document;
My_Root_Node : DOM.Core.Element;
My_Element_Node : DOM.Core.Element;
My_Text_Node : DOM.Core.Text;
b... |
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
with Ada.Text_IO;
with Ada.Command_Line;
... |
generic
Size: Integer;
package Knights_Tour is
subtype Index is Integer range 1 .. Size;
type Tour is array (Index, Index) of Natural;
Empty: Tour := (others => (others => 0));
function Get_Tour(Start_X, Start_Y: Index; Scene: Tour := Empty) return Tour;
-- finds tour via backtracking
-- either ... |
package body afrl.impact.ImpactPointSearchTask.SPARK_Boundary with SPARK_Mode => Off is
function Get_SearchLocationID (X : ImpactPointSearchTask) return Int64 renames
getSearchLocationID;
end afrl.impact.ImpactPointSearchTask.SPARK_Boundary;
|
package body System.Assertions is
procedure Ewok_Debug_Alert (S : String)
with
Convention => Ada,
Import => True,
External_name => "ewok_debug_alert";
procedure Ewok_Debug_Newline
with
Convention => Ada,
Import => True,
External_name => "ewok_d... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Incr.Lexers.Batch_Lexers.Generic_Lexers;
with Matreshka.Internals.Unicode;
package Ada_LSP.Ada_Lexers is
subtype Token is In... |
with Libadalang.Analysis; use Libadalang.Analysis;
with Rejuvenation.Match_Patterns; use Rejuvenation.Match_Patterns;
package Placeholder_Relations is
function Get_Expression_Type
(Match : Match_Pattern; Expression : String) return Base_Type_Decl with
Pre => Match.Has_Single (Expression);
... |
with
openGL.Tasks,
GL.Binding,
ada.unchecked_Deallocation;
package body openGL.Primitive
is
---------
-- Forge
--
procedure define (Self : in out Item; Kind : in facet_Kind)
is
begin
Self.facet_Kind := Kind;
end define;
procedure free (Self : in out View)
is
... |
with Ada.Text_IO;
with PrimeInstances;
package body Problem_53 is
package IO renames Ada.Text_IO;
package Positive_Primes renames PrimeInstances.Positive_Primes;
procedure Solve is
sieve : constant Positive_Primes.Sieve := Positive_Primes.Generate_Sieve(100);
type Prime_Count is Array (sieve'Range)... |
-- part of ParserTools, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
package body Lexer.Source.Text_IO is
procedure Read_Data (S : in out Instance; Buffer : out String;
Length : out Natural) is
begin
for I in Buffer'Range loop
... |
with
openGL.Display,
openGL.surface_Profile,
openGL.Surface,
OSMesa_C;
-- Glx.GLXContext;
package openGL.Context
--
-- Models an openGL (GLX) context.
--
is
type Item is tagged private;
type View is access all Item'Class;
procedure define (Self : in out Item; the_Displa... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Streams;
package LSP.Stdio_Streams is
type Stdio_Stream is new Ada.Streams.Root_Stream_Type with null record;
proced... |
-----------------------------------------------------------------------
-- css-core-tests -- Unit tests for CSS core package
-- 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 ... |
-- 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.OSTIMER is
pragma Preelaborate;... |
-- Contributed by ITEC - NXP Semiconductors
-- June 2008
--
-- The Zip_Streams package defines an abstract stream
-- type, Root_Zipstream_Type, with name, time and an index for random access.
-- In addition, this package provides two ready - to - use derivations:
--
-- - Memory_Zipstream, for using in - memory... |
-----------------------------------------------------------------------
-- swagger-server-applications -- REST application
-- Copyright (C) 2017, 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 t... |
with Ada.Containers.Generic_Array_Sort,
Ada.Containers.Generic_Constrained_Array_Sort,
Ada.Containers.Indefinite_Hashed_Maps,
Ada.Integer_Text_IO,
Ada.Strings.Bounded,
Ada.Strings.Bounded.Hash,
Ada.Text_IO;
with Utils;
procedure Main is
use Ada.Text_IO;
use Utils;
package Digit... |
with Ada.Text_IO; use Ada.Text_IO;
separate (Separated)
procedure Watch_Me is
begin
Put_Line ("Better keep me separated");
end Watch_Me;
|
package Aggr9_Pkg is
type Byte is range 0 .. 255;
type R1 is
record
A,B : Byte;
end record;
type R2 is
record
F : R1;
end record;
procedure Send (M : R2);
end Aggr9_Pkg;
|
-----------------------------------------------------------------------
-- openapi -- Support library for swagger code generator
-- Copyright (C) 2017, 2022 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not... |
with Libadalang.Analysis; use Libadalang.Analysis;
with Rejuvenation.Finder; use Rejuvenation.Finder;
with Rejuvenation.Patterns; use Rejuvenation.Patterns;
package Finder is
function Find (Node : Ada_Node'Class;
P : Pattern)
return Match_Pattern_List.Ve... |
with STRINGS_PACKAGE; use STRINGS_PACKAGE;
with LATIN_FILE_NAMES; use LATIN_FILE_NAMES;
with CONFIG; use CONFIG;
with PREFACE;
pragma Elaborate(PREFACE);
package body WORD_PARAMETERS is
use TEXT_IO;
type HELP_TYPE is array (NATURAL range <>) of STRING(1..70);
BLANK_HELP_LINE : constant STRING(1..70) := ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- C85004B.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... |
--------------------------------------------------------------------------------
-- 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... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package SDL_scancode_h is
-- Simple DirectMedia Layer
-- Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the autho... |
-- Package body Computus_meeus
--
----------------------------------------------------------------------------
-- Copyright Miletus 2016
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation files (the
-- "Software"), to deal in the Software wit... |
with Ada.Text_IO;
with Ada.Numerics.Discrete_Random;
procedure Circle is
-- extreme coordinate values are -15:0, 15:0, 0:-15, 0:15
subtype Coordinate is Integer range -15 .. 15;
type Point is record
X, Y : Coordinate;
end record;
type Point_List is array (Positive range <>) of Point;
function A... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
procedure Pack2 is
type Bits_T is record
B0, B1, B2: Boolean;
end record;
type State_T is record
Valid : Boolean;
Value : Bits_T;
end record;
pragma Pack (State_T);
procedure Process (Bits : Bits_T) is begin null; end;
... |
with Ada.Text_IO;
package body Stopwatch is
-----------
-- Reset --
-----------
procedure Reset (This : in out Instance) is
begin
This := (others => <>);
end Reset;
-------------
-- Elapsed --
-------------
function Elapsed (This : Instance) return Duration is
begin
ret... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
package body Spatial_Data.Well_Known_Binary is
-------------------
-- produce_WKT --
-------------------
function produce_WKT (WKBinary : CT.Text) return String
is
shape : Geometry := Tra... |
pragma License (Restricted);
--
-- Copyright (C) 2020 Jesper Quorning All Rights Reserved.
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you... |
with TTC;
with Ada.Calendar; use Ada.Calendar;
with GNAT.Calendar.Time_IO; use GNAT.Calendar.Time_IO;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.IO_Exceptions;
with HK_Data; use HK_Data;
with TTC_Data; use TTC_Data;
with Ada.Real_Time; use ... |
pragma License (Unrestricted);
with Ada.Calendar;
with Ada.Hierarchical_File_Names;
with Ada.IO_Exceptions;
with Ada.Iterator_Interfaces;
with Ada.Streams;
private with Ada.Finalization;
private with System.Native_Directories.Searching;
package Ada.Directories is
-- Directory and file operations:
function Curr... |
with Limited_With2_Pkg1;
package Limited_With2 is
type Rec1 is record
F : Limited_With2_Pkg1.Rec2;
end record;
function Func (Val : Rec1) return Limited_With2_Pkg1.Rec2;
end Limited_With2;
|
-----------------------------------------------------------------------------
-- GNAT COMPILER COMPONENTS --
-- --
-- G N A T . R E W R I T E _ D A T A --
-- ... |
-- AOC 2020, Day 11
with Ada.Containers.Ordered_Maps;
package Day is
type Seat is (floor, occ, unocc);
type Location is record
x : Integer := 0;
y : Integer := 0;
end record;
function "<"(Left, Right : in Location) return Boolean;
package Seat_Map is new Ada.Containers.Ordered_Maps
(Key_Type... |
--------------------------------------------------------------------------------------------------------------------
-- 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... |
-- Copyright (c) 2015-2019 Marcel Schneider
-- for details see License.txt
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package Position is
type Object is record
Text : Unbounded_String;
StartLine : Natural;
EndLine : Natural;
StartColumn : Natural;
EndColumn : Natural;
... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 - 2019 Joakim Strandberg <joakim@mequinox.se>
--
-- 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.ap... |
with Common_Formal_Containers; use Common_Formal_Containers;
package afrl.impact.ImpactAutomationRequest.SPARK_Boundary with SPARK_Mode is
pragma Annotate (GNATprove, Terminating, SPARK_Boundary);
function Get_EntityList_From_TrialRequest
(Request : ImpactAutomationRequest) return Int64_Vect
with Glob... |
with Giza.Windows;
with Giza.Widgets.Tabs; use Giza.Widgets.Tabs;
with Giza.Widgets.Composite; use Giza.Widgets.Composite;
with RPM_Widget; use RPM_Widget;
with Power_Phase_Widget; use Power_Phase_Widget;
with Giza.Widgets.Number_Selection; use Giza.Widgets.Number_Selection;
with Giza.Widgets.Background; use Giza.Widg... |
<AnimDB FragDef="Animations/Mannequin/ADB/PandaFragmentIds.xml" TagDef="Animations/Mannequin/ADB/PandaTags.xml">
<FragmentList>
<Walk>
<Fragment BlendOutDuration="0.2" Tags="">
<AnimLayer>
<Blend ExitTime="0" StartTime="0" Duration="0.2"/>
<Animation name="1DONE-BSpace_forward" flags="Loop+ForceSkel... |
with avtas.lmcp.factory; use avtas.lmcp.factory;
with Ada.Characters.Latin_1;
package body -<full_series_name_dots>-.-<datatype_name>- is
-<get_and_set_methods_body>-
-<calculate_packed_size_body>-
-<pack_body>-
-<unpack_body>-
-<xml_write_body>-
function -<datatype_name>-_Descendants return Str... |
with Numerics, Ada.Text_IO;
use Numerics, Ada.Text_IO;
package Molecular_Dynamics is
use Real_Functions, Real_IO, Int_IO;
type BC_Vectype is array (Nat range <>) of Boolean;
function Verlet (R : in Pos2D_Vector;
R_New : in Pos2D_Vector;
Is_BC : in BC_Vectype;
Dt : in Real) retur... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Ada.Text_IO;
with JohnnyText;
with Definitions; use Definitions;
private with Ada.Characters.Latin_1;
private with Ada.Directories;
private with Parameters;
private with Unix;
package Replicant is
pack... |
package Ethiopian is
function Multiply(Left, Right : Integer) return Integer;
end Ethiopian;
|
with ada.text_io;
use ada.text_io;
procedure euler3 is
num : long_long_integer := 600851475143;
p : long_long_integer := 2;
begin
loop
while num mod p = 0 loop
num := num / p;
end loop;
if num <= 1 then
put_line(long_long_integer'image(p));
exit;
end if;
p := p + 1;
end loop;
en... |
-- This file provides the API for the random number generator on the STM32F4
-- (ARM Cortex M4F) microcontrollers from ST Microelectronics.
--
-- Random numbers are acquired by responding to interrupts from the on-board
-- generator.
package STM32.RNG.Interrupts is
procedure Initialize_RNG with
Post => RN... |
package AVTAS.LMCP.object.SPARK_Boundary with SPARK_Mode is
pragma Annotate (GNATprove, Terminating, SPARK_Boundary);
type My_Object_Any is private;
function Deref (X : My_Object_Any) return Object'Class with
Global => null,
Inline;
function Wrap (X : Object_Any) return My_Object_Any with
Gl... |
-- BinToAsc_Suite.Base16_Tests
-- Unit test utilities for BinToAsc
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
with AUnit; use AUnit;
with AUnit.Test_Cases; use AUnit.Test_Cases;
with BinToAsc;
with RFC4648;
package BinToAsc_Suite.Utils is
generic
with package BToA is new BinToAsc(... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Ada.Strings.Hash;
with Ada.Calendar.Formatting;
with GNAT.Regpat;
with GNAT.String_Split;
with Signals;
with Unix;
package body PortScan is
package ACF renames Ada.Calendar.Formatting;
package RGX rena... |
with
ada.Characters.latin_1;
package body any_Math.any_Algebra.any_linear
is
-----------
--- Vectors
--
function Norm_squared (Self : in Vector) return Real
is
Norm_2 : Real := 0.0;
begin
for Each in Self'Range
loop
Norm_2 := Norm_2 + Self (Each) * Self (Each);
... |
with External; use External;
with Node; use Node;
with Logger; use Logger;
package Receiver is
end Receiver;
|
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Debug_Trace,
Apsepp.Debug_Trace_Class.Output.Create,
Apsepp.Output,
Apsepp.Output_Class.Standard,
Apsepp.Generic_Shared_Instance.Creator;
with Apsepp_Demo_DT_Instance_Client; use A... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with Ada.Streams;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Wide_Wide_Text_IO; use Ada.Wide_Wide_Text_IO;
with DOM.Core.Documents; use DOM.Core.Documents;
with DOM.Core; use DOM.Core;
with DOM.Core.Elements; use DOM.Core.Elements;
with DOM.Core.Nodes; use DOM.Core.Node... |
-- AOC 2020, Day 5
with Ada.Text_IO; use Ada.Text_IO;
with Day; use Day;
procedure main is
use Boarding_Pass_Vectors;
batch : constant Vector := load_batch("input.txt");
highest : constant Natural := highest_id(batch);
missing : constant Natural := missing_id(batch);
begin
put_line("Part 1: " & Natural'Image... |
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Val_Enum is
pragma Pure;
-- required for Enum'Value by compiler (s-valenu.ads)
function Value_Enumeration_8 (
Names : String;
Indexes : Address;
Num : Natural;
Str : String)
return Natural... |
with Anagram.Grammars;
with Program.Parsers.Nodes;
private procedure Program.Parsers.On_Reduce_501
(Self : access Parse_Context;
Prod : Anagram.Grammars.Production_Index;
Nodes : in out Program.Parsers.Nodes.Node_Array);
pragma Preelaborate (Program.Parsers.On_Reduce_501);
|
package GESTE_Fonts.FreeMono8pt7b is
Font : constant Bitmap_Font_Ref;
private
FreeMono8pt7bBitmaps : aliased constant Font_Bitmap := (
16#00#, 16#00#, 16#00#, 16#00#, 16#20#, 16#08#, 16#02#, 16#00#, 16#80#,
16#20#, 16#08#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#... |
with Ada.Unchecked_Deallocation;
with PB_Support.IO;
with PB_Support.Internal;
package body Conformance.Conformance is
package Jspb_Encoding_Config_IO is
new PB_Support.IO.Message_IO
(Conformance.Jspb_Encoding_Config,
Conformance.Jspb_Encoding_Config_Vector, Conformance.Append);
type Intege... |
package body Collisions is
function Collide(A, B : not null EntityClassAcc; Col : out Collision) return Boolean
is
begin
Col.A := A; Col.B := B;
return Dispatcher(A.all.EntityType, B.all.EntityType).all(Col);
end Collide;
function CircleOnCircle(Col : in out Collision) return Boolean
i... |
with Ada.Exception_Identification.From_Here;
with Ada.Unchecked_Conversion;
with System.C_Encoding;
pragma Warnings (Off, System.C_Encoding); -- break "pure" rule
with C;
pragma Warnings (Off, C); -- break "pure" rule
package body Interfaces.C is
use Ada.Exception_Identification.From_Here;
generic
type Ele... |
package body Q_Csv is
--==================================================================
function F_Line (V_Line : String;
V_Separator : Character := ';') return T_Row is
(V_Length => V_Line'Length,
R_Str => V_Line,
R_First => V_Line'First,
R_Last => V_Line'Last... |
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- CD3015G.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... |
-- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x_mod2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_SVD.GPIO is
pragma Preelaborat... |
with Interfaces; use Interfaces;
with STM32_SVD; use STM32_SVD;
with STM32GD.Board; use STM32GD.Board;
with STM32GD.Power;
with Drivers.Si7060;
with CBOR_Codec;
with Utils;
procedure Main is
Sensor_Reading_Tag : constant Natural := 6;
Voltage_Tag : constant Natural := 7;
Temperature_Tag : constant ... |
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.DWT is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype DWT_CTRL_POSTPRESET_Field is HAL.UInt... |
package body My_Pack is
Internal_Value : Integer;
Count : Integer := 0;
function Get return Integer is (Internal_Value);
function Get_Count return Integer is (Count);
procedure Set (V : in Integer) is
begin
Internal_Value := V;
end Set;
begin
Internal_Value := 25;
C... |
with Ada.Text_IO, Ada.Strings.Unbounded;
procedure Print_Zeck is
function Zeck_Increment(Z: String) return String is
begin
if Z="" then
return "1";
elsif Z(Z'Last) = '1' then
return Zeck_Increment(Z(Z'First .. Z'Last-1)) & '0';
elsif Z(Z'Last-1) = '0' then
return Z(Z'First .. Z'Last-1) &... |
-- C45265A.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... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- =============================================================================
-- Package body AVR.TIMERS
-- =============================================================================
package body AVR.TIMERS is
function Get_Current_Value
(Timer : TIMERS.Timer_Type)
return Unsigned_16_Array_Byte
i... |
package body signal is
protected body Handler is
entry Wait when Call_Count > 0 is
begin
Call_Count := Call_Count - 1;
end Wait;
procedure Handle is
begin
Call_Count := Call_Count + 1;
end Handle;
end Handler;
end signal; |
-- Task 2 of RTPL WS17/18
-- Team members: Hannes B. and Gabriel Z.
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Characters.Handling; -- For detecting ENTER key
-- User defined packages
with counting; use counting;
with convert; use convert;
with calculate; use calculate;
with myTasks; use myTasks;
with dice; use ... |
package body ADMBase is
-- overloaded operators for MetricPointArray
function "-" (Right : MetricPointArray) return MetricPointArray
is
tmp : MetricPointArray := Right;
begin
for i in Right'range(1) loop
tmp (i) := - Right (i);
end loop;
return tmp;
end "-";
functio... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Steps for decoding a JPEG image
--
-- 1. Huffman decompression
-- 2. Inverse quantization
-- 3. Inverse cosine transform
-- 4. Upsampling
-- 5. Color transformation
-- 6. Image reconstruction
--
-- The JPEG decoder is largely inspired
-- by the NanoJPEG code by Martin J. Fiedler.
-- With the aut... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
-- C74203A.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... |
-----------------------------------------------------------------------
-- components-holders -- Value holder interfaces
-- Copyright (C) 2009, 2010, 2011, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may... |
pragma License (Unrestricted);
-- runtime unit
with System.Runtime_Context;
with System.Unwind.Representation;
package System.Unwind.Occurrences is
pragma Preelaborate;
-- (s-stalib.ads)
Local_Partition_ID : Natural := 0;
-- implementation for catching object (a-except-2005.adb)
procedure Save_Occur... |
------------------------------------------------------------------------------
-- Copyright (c) 2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.