content stringlengths 23 1.05M |
|---|
generic
type Number is private;
Zero : Number;
One : Number;
Two : Number;
with function Image (X : Number) return String is <>;
with function "+" (X, Y : Number) return Number is <>;
with function "/" (X, Y : Number) return Number is <>;
with function "mod" (X, Y : Number) return Number i... |
with STM32GD.Board;
procedure Main is
I : Integer with volatile;
begin
STM32GD.Board.Init;
STM32GD.Board.LED.Set;
loop
I := 100000;
while I > 0 loop
I := I - 1;
end loop;
STM32GD.Board.LED.Toggle;
end loop;
end Main;
|
------------------------------------------------------------------------------
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
--
-- Copyright (C) 2016, AdaCore
--
-- This spec has been automatically generated from STM32F429x.svd
pragma Ada_2012;
with Interfaces.Bit_Types;
with System;
package Interfaces.STM32.SYSCFG is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Registers --
---------------
... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package avx512dqintrin_h is
-- Copyright (C) 2014-2017 Free Software Foundation, Inc.
-- This file is part of GCC.
-- GCC is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Pub... |
with Ada.Numerics.Real_Arrays;
with Ada.Text_IO;
with Decomposition;
procedure Decompose_Example is
package Real_Decomposition is new Decomposition
(Matrix => Ada.Numerics.Real_Arrays);
package Real_IO is new Ada.Text_IO.Float_IO (Float);
procedure Print (M : Ada.Numerics.Real_Arrays.Real_Matrix) is
... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with Interfaces.C.Strings;
with System;
procedure Load_Library
(Name : League.Strings.Universal_String;
Error : out League.Strings.Universal_Strin... |
with System.Storage_Elements; use System.Storage_Elements;
with AUnit.Assertions; use AUnit.Assertions;
with HAL; use HAL;
with USB.Utils; use USB.Utils;
package body Tests.Utils is
---------------------
-- Basic_Mem_Alloc --
---------------------
procedure Basic_Mem_Alloc (Unused : in out Null_F... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Adventofcode.Day_18.Main is
begin
Put_Line ("Day-18");
end Adventofcode.Day_18.Main;
|
-- 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... |
-- -----------------------------------------------------------------------------
-- smk, the smart make
-- © 2018 Lionel Draghi <lionel.draghi@free.fr>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- Licensed under the Apache License, Version 2.0 ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure tp1 is
-- conversion en majuscule
function Maju (c : Character) return Character is
begin
if c in 'a'..'z' then -- si minuscule
return Character'Val(Character'Pos(c) - 32); -- on décale de 32
else
return c; -- on change ri... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, AdaCore --
-- --
-- ... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
with GBA.BIOS.Raw.Arm;
with GBA.BIOS.Extended_Interface;
package GBA.BIOS.Arm is
new GBA.BIOS.Extended_Interface (GBA.BIOS.Raw.Arm.Generic_Interface);
|
-- This spec has been automatically generated from STM32F427x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
with System;
with HAL;
package STM32_SVD.FSMC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-------------------
-- BCR1_Register --
---------... |
with Ada.Text_IO;
with Ada.Command_Line;
procedure SyntaxError is
package IO renames Ada.Text_IO;
begin
IO.Put_Line("Hello, world!")
end SyntaxErro;
|
with
FLTK.Devices.Graphics;
package FLTK.Devices.Surfaces is
type Surface_Device is new Device with private;
type Surface_Device_Reference (Data : not null access Surface_Device'Class) is
limited null record with Implicit_Dereference => Data;
package Forge is
function Create... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Exceptions;
with GNAT.Sockets;
with Interfaces.C;
with Network.Streams;
with Network.Managers.TCP_V4_Out;
package body Network.Managers.TCP_V4 ... |
------------------------------------------------------------------------------
-- --
-- Giza --
-- --
-- ... |
-- Institution: Technische Universitaet Muenchen
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: Emanuel Regnath (emanuel.regnath@tum.de)
-- Martin Becker (becker@rcs.ei.tum.de)
with Units; use Units;
with Units.Operations; use Units.Operations;
with MS561... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- MIT License
--
-- Copyright (c) 2021 Glen Cornell <glen.m.cornell@gmail.com>
--
-- 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 without restriction, including without limitation the rig... |
with Ada.Text_IO; use Ada.Text_IO;
with GL.Types;
-- with Utilities;
with C3GA;
with GA_Draw;
with GA_Maths;
-- with GA_Utilities;
with Plane;
package body C3GA_Draw is
use GA_Draw;
procedure Draw_C3GA (Render_Program : GL.Objects.Programs.Program;
Analyzed_MV : Multivector_Ana... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
--
-- simple XML Parser using glib & utilities
--
-----------------------------------------------------------------------
with Glib.Xml_Int; use Glib.Xml_Int;
pragma Elaborate_All (Glib.Xml_Int);
package Gate3_Glib is
-- utility functions
... |
with Ada.Containers.Vectors;
with GNATCOLL.Projects;
package Rejuvenation.Factory is
-- This Factory is for backwards compatibility / advanced usage only
-- Please use Rejuvenation.Simple_Factory
-- Methods to create AST instances from fragments of Ada source code.
--
-- The return type of these m... |
-- Institution: Technische Universitaet Muenchen
-- Department: Real-Time Computer Systems (RCS)
-- Project: StratoX
-- Authors: Martin Becker (becker@rcs.ei.tum.de)
with Interfaces; use Interfaces;
with HIL.NVRAM; use HIL.NVRAM;
with HIL; use HIL;
with Buildinfo; use Buildinfo;
with Ada.Unchecked... |
with Ada.Integer_Text_IO;
-- Copyright 2021 Melwyn Francis Carlo
procedure A009 is
use Ada.Integer_Text_IO;
B : Float;
A, C, Product : Integer;
begin
A := 1;
loop
B := (5.0E+5 - (1.0E+3 * Float (A))) / (1.0E+3 - Float (A));
if (B - Float (Integer (B))) = 0.0 and B > Float ... |
-----------------------------------------------------------------------
-- hestia-display-scheduler -- Display scheduler
-- 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 file... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
package snd4ada_hpp is
procedure termSnds; -- snd4ada.hpp:5
pragma Import (CPP, termSnds, "_Z8termSndsv");
function initLoop (pc : Interfaces.C.Strings.chars_ptr; vol : int) return int; -- snd4ada.... |
pragma Ada_2012;
with Protypo.Code_Trees.Interpreter;
with Protypo.Scanning;
with Protypo.Parsing;
with Ada.Directories;
pragma Warnings (Off, "no entities of ""Ada.Text_IO"" are referenced");
with Ada.Text_IO; use Ada.Text_IO;
with Protypo.Api.Consumers.File_Writer;
package body Protypo.API.Interpreters is
proc... |
-----------------------------------------------------------------------
-- util-encodes-tests - Test for encoding
-- Copyright (C) 2009, 2010, 2011, 2012, 2016, 2017, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Licen... |
with GL;
with GLOBE_3D.Math;
package body Actors is
use GLOBE_3D, GLOBE_3D.Math, GLOBE_3D.REF, Game_Control, GL;
procedure Limited_Translation (actor : in out GLOBE_3D.Camera;
gc : Game_Control.Command_set;
... |
package body Spawn_Manager is
---------------------
-- Is_Exit_Message --
---------------------
function Is_Exit_Message (Request : Spawn_Request) return Boolean is
begin
return Request.Spawn_Type = Terminate_Server;
end Is_Exit_Message;
function WIFEXITED (Stat_Val : Status_Kind) return ... |
-- ////////////////////////////////////////////////////////////
-- //
-- // 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 li... |
package body agar.gui.draw is
package cbinds is
procedure box_rounded
(widget : agar.gui.widget.widget_access_t;
rect : agar.gui.rect.rect_t;
z : c.int;
radius : c.int;
color : agar.core.types.uint32_t);
pragma import (c, box_rounded, "agar_draw_box_rounded");
p... |
with Ada.Containers; use Ada.Containers;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Text_IO; use Ada.Text_IO;
with Langkit_Support.Text; use Langkit_Support.Text;
with Libadalang.Common; use Libadalang.Common;
with Rejuvenation; use Rejuve... |
package Bitmap_Store is
type Luminance is mod 2**8;
type Pixel is record
R, G, B : Luminance;
end record;
Black : constant Pixel := (others => 0);
White : constant Pixel := (others => 255);
type Image is array (Positive range <>, Positive range <>) of Pixel;
procedure Fill (Picture : in out ... |
package Aliasing3_Pkg is
type Arr is array (1..3) of Integer;
procedure Test (A : Arr);
pragma Inline (Test);
type My_Arr is new Arr;
type Rec is record
A : My_Arr;
end record;
type Ptr is access all Rec;
Block : aliased Rec;
Pointer : Ptr := Block'Access;
end Aliasing3_Pkg;
|
pragma License (Unrestricted);
with System.WCh_Con;
with GNAT.Encode_String;
package GNAT.Encode_UTF8_String is
new GNAT.Encode_String (System.WCh_Con.WCEM_UTF8);
pragma Pure (GNAT.Encode_UTF8_String);
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with LATIN_FILE_NAMES; use LATIN_FILE_NAMES;
with PREFACE;
package body INFLECTIONS_PACKAGE is
use TEXT_IO;
function "<" (LEFT, RIGHT : DECN_RECORD) return BOOLEAN is
begin
if LEFT.WHICH < RIGHT.WHICH or else
(LEFT.WHICH = RIGHT.WHICH and then
LEFT.VAR < RIGHT.VAR) then
retu... |
-- CC1227A.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 I_Am_Ada is
procedure Ada_Procedure;
pragma Export (C, Ada_Procedure, "ada_procedure");
end I_Am_Ada;
|
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2020 Zane Myers
--
-- 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 witho... |
package body Runtime is
procedure OS_Exit
(Status : Integer)
is
pragma Unreferenced (Status);
begin
null;
end OS_Exit;
procedure HardFault_Handler is
begin
loop
null;
end loop;
end HardFault_Handler;
end Runtime;
|
with Ada.Text_IO, Ada.Numerics.Float_Random;
procedure One_Of_N is
Num_Of_Lines: constant Positive := 10;
package Rnd renames Ada.Numerics.Float_Random;
Gen: Rnd.Generator; -- used globally
function Choose_One_Of_N(Last_Line_Number: Positive) return Natural is
Current_Choice: Natural := 0;
begi... |
-- reference:
-- http://www.mudpedia.org/mediawiki/index.php/Xterm_256_colors
with System.Address_To_Named_Access_Conversions;
with System.Formatting;
with System.Long_Long_Integer_Types;
with System.Once;
with C.stdlib;
package body System.Native_Text_IO.Terminal_Colors is
use type C.char_array;
use type C.cha... |
-- This spec has been automatically generated from STM32F103.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.AFIO is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype EVCR_PIN_Field is STM32_SVD.UIn... |
-- { dg-do run }
-- { dg-options "-gnatp" }
-- This test requires architecture- and OS-specific support code for unwinding
-- through signal frames (typically located in *-unwind.h) to pass. Feel free
-- to disable it if this code hasn't been implemented yet.
procedure Null_Pointer_Deref2 is
task T;
task bod... |
with Ada.Text_IO; use Ada.Text_IO;
package body HTTP.Request is
package body Parse is
procedure Debug (Ctx : in Context; Str : in String) is
function Slice (Idx: in HTTP.Indexes; Str : in String) return String
is (Str (Idx.First .. Idx.Last));
begin
Put_Line ("KIND: " & Slice (Ctx.Split.Line.K... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with fann_c.fann_callback_type;
with fann_c.fann_layer;
with fann_c.fann_neuron;
with interfaces.c;
with interfaces.c.strings;
with swig;
with interfaces.C;
package fann_c.fann is
-- Item
--
type Item is
record
errno_f : a... |
with Varsize3_Pkg1; use Varsize3_Pkg1;
package Varsize3_1 is
pragma Elaborate_Body;
Filter : constant Object := True;
end Varsize3_1;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- { dg-do compile }
package Pack33 is
Bits : constant := 33;
type Bits_33 is mod 2 ** Bits;
for Bits_33'Size use Bits;
type Cluster is record
E0, E1, E2, E3, E4, E5, E6, E7 : Bits_33;
end record;
for Cluster use record
E0 at 0 range 0 * Bits .. 0 * Bits + Bits - 1;
E1 at 0 rang... |
------------------------------------------------------------------------------
-- Copyright (c) 2013-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
--
-- 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... |
with Ada.Containers.Ordered_Sets;
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
procedure Solution is
use Ada.Containers;
package Line_Vectors is new Ada.Containers.Vectors
(Index_Type => Natural,
... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.API.Singles;
with GL.API.Ints;
with GL.API.UInts;
with GL.Low_Level;
package body GL.Uniforms is
procedure Set_Single (Location : Uniform; Value : Single) is
begin
API.Singles.Unif... |
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Incr.Nodes.Joints;
package body Tests.Parser_Data is
-------------
-- Actions --
-------------
overriding fun... |
-----------------------------------------------------------------------
-- mat-events-targets - Events received and collected from a target
-- 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")... |
generic
type Element_Type is private;
Zero : Element_Type;
One : Element_Type;
with function "+" (Left, Right : Element_Type) return Element_Type is <>;
with function "-" (Left, Right : Element_Type) return Element_Type is <>;
with function "*" (Left, Right : Element_Type) return Element_Type is <>;
... |
pragma Ada_2012;
with Ada.Unchecked_Deallocation;
with Ada.Numerics.Elementary_Functions;
package body DSP.Generic_Functions is
use type Complex_Types.Complex;
procedure Free is
new Ada.Unchecked_Deallocation (Object => Scalar_Array,
Name => Scalar_Array_Access);
p... |
package body Mod_Inv is
procedure X_GCD(A, B: in Natural; D, X, Y: out Integer) is
-- the Extended Euclidean Algorithm
-- finds (D, X, Y) with D = GCD(A, B) = A*X + B*Y
R: Natural := A mod B;
begin
if R=0 then
D := B;
X := 0;
Y := 1;
else
X_GCD(B,... |
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- The primary authors of ayacc were David Taback and Deepak Tolani.
-- Enhancements were made by Ronald J. Schmalz.
--
-- Send requests for ayacc information to ayacc-info@ics.uci.edu
-- Send bug reports for ayacc to ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Simple password generator
-- Luke A. Guest
-- 23/01/10
with Ada.Command_Line;
with Ada.Text_IO;
with Ada.Numerics.Discrete_Random;
with Ada.Characters.Latin_1;
procedure Password is
package L1 renames Ada.Characters.Latin_1;
package Random_Char is new Ada.Numerics.Discrete_Random (Character);
Gen : Rand... |
with Ada.Real_Time;
with Ada.Text_IO; use Ada.Text_IO;
with mylog; use mylog;
with LogQueue;
procedure main with SPARK_Mode is
m : mylog.logmsg;
now : Ada.Real_Time.Time;
buffer : mylog.msgarray (1 .. 10);
begin
LogQueue.myqueue.Put (m);
buffer (1) := m;
now := Ada.Real_Time.Clock;
m := (t => n... |
-- This spec has been automatically generated from STM32F103.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.USB_OTG_FS is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype FS_DCFG_DSPD_Field is STM... |
-- $Id: Position.mi,v 1.4 1994/08/15 22:13:23 grosch rel $
-- $Log: Position.mi,v $
-- Ich, Doktor Josef Grosch, Informatiker, Aug. 1994
with Text_Io; use Text_Io;
package body Position is
package Int_Io is new Integer_IO (Integer); use Int_Io;
function Compare (Position1, Position2: tPosition) return Integer is
... |
-----------------------------------------------------------------------
-- helios-reports-remote -- Send reports to a remote server using REST API
-- Copyright (C) 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
-- Standard Ada library specification
-- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Interfaces.C;
private package Glfw.Enums is
type Window_Info is
(Focused, Iconified, Resizable, Visible, Decorated, Auto_Iconify, Floating,
Maximized, Center_Cursor, Transparent_Fra... |
-------------------------------------------------------------------------------
-- File: adaid-generate.ads
-- Description: UUID Generation
-- Author: Anthony Arnold
-- License: Simplified BSD License (see LICENSE)
-------------------------------------------------------------------------------
-- AdaID.Generate define... |
with Unicode_Strings; use Unicode_Strings;
with Ada.Task_Termination;
with Ada.Task_Identification;
with Ada.Exceptions;
package Logging is
type Verbosity_Level is (Log_Error, Log_Warning, Log_Info, Log_Chatty);
task Log is
entry Set_Verbosity
(User_Verbosity : Verbosity_Level);
entry Cha... |
--
-- Copyright (C) 2017, AdaCore
--
-- This spec has been automatically generated from M2Sxxx.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package Interfaces.SF2.MMUART is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Registers --
---------------
-- ... |
with Ada.Text_IO, Ada.Containers.Indefinite_Vectors, Ada.Strings.Fixed, Ada.Strings.Maps;
use Ada.Text_IO, Ada.Containers, Ada.Strings, Ada.Strings.Fixed, Ada.Strings.Maps;
procedure Tokenize is
package String_Vectors is new Indefinite_Vectors (Positive, String);
use String_Vectors;
Input : String := "Hell... |
with Ada.Text_Io, copia_examenes;
with escribir_sospechosos,rellenar_aula_1,escribir_aula_act;
use copia_examenes;
use Ada.Text_Io;
procedure prueba_escribir_sospechosos is
aula1: T_aula;
procedure Pedir_Return is
begin
Put_Line("pulsa return para continuar ");
Skip_Line;
New_Line(4);
... |
Pragma Ada_2012;
With
Gnoga.Types,
Ada.Strings.Fixed,
Ada.Strings.Equal_Case_Insensitive,
Ada.Containers.Indefinite_Multiway_Trees;
Function NSO.JSON.Parameters_to_JSON( Input : in out Gnoga.Types.Data_Map_Type )
return NSO.JSON.Instance'Class is
-- PT is a package for the construction of a textual-tree from... |
-----------------------------------------------------------------------
-- components-utils-scrollers -- Data scrollers
-- Copyright (C) 2013, 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 this... |
with Ada.Finalization;
...
type Node is abstract new Ada.Finalization.Limited_Controlled and Queue with record
Previous : not null access Node'Class := Node'Unchecked_Access;
Next : not null access Node'Class := Node'Unchecked_Access;
end record;
overriding procedure Finalize (X : in out Node); -- Removes the... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
package body Dse_Step is
procedure Do_Step (This : in out Counter) is
begin
This.Value := This.Value + This.Step;
end;
procedure Step_From (Start : in My_Counter) is
Lc : My_Counter := Start;
begin
while Nsteps > 0 loop
Do_Step (Lc);
Nsteps := Nsteps - 1;
end l... |
with System;
with Lv.Style;
with Lv.Objx.Textarea;
package Lv.Objx.Keyboard is
subtype Instance is Obj_T;
type Mode_T is (Mode_Text, Mode_Num);
type Style_T is
(Style_Bg,
Style_Btn_Rel,
Style_Btn_Pr,
Style_Btn_Tgl_Rel,
Style_Btn_Tgl_Pr,
Style_Btn_Ina);
-- Create a k... |
with Ada.Assertions; use Ada.Assertions;
with Libadalang.Common; use Libadalang.Common;
package body Rewriters_Context_Utils is
function Combine_Contexts (C1, C2 : Ada_Node) return Ada_Node
is
begin
if Is_Reflexive_Ancestor (C1, C2)
then
return C1;
else
Assert (Check =>... |
package body Benchmark.QSort is
function Create_QSort return Benchmark_Pointer is
begin
return new QSort_Type;
end Create_QSort;
procedure Set_Argument(benchmark : in out QSort_Type;
arg : in String) is
value : constant String := Extract_Argument(arg);
begin... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with Ada.Text_Io; use Ada.Text_Io;
procedure Cocktail_Sort_Test is
procedure Cocktail_Sort (Item : in out String) is
procedure Swap(Left, Right : in out Character) is
Temp : Character := Left;
begin
Left := Right;
Right := Temp;
end Swap;
Swapped : Boolean := False... |
-- Shoot'n'loot
-- Copyright (c) 2020 Fabien Chouteau
with HAL; use HAL;
with GESTE;
with GESTE.Tile_Bank;
with GESTE.Grid;
with GESTE.Sprite;
with GESTE_Config; use GESTE_Config;
with Render;
with Game;
with Sound;
with PyGamer.Time;
with PyGamer.Controls;
use PyGamer;
with Game_Assets.title_screen;
with Game_... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Arduino_Nano_33_Ble_Sense.IOs;
with HCSR04;
procedure Main is
Testing_Sensor_Echo : constant Arduino_Nano_33_Ble_Sense.IOs.Pin_Id := 44;
Testing_Sensor_Trig : constant Arduino_Nano_33_Ble_Sense.IOs.Pin_Id := 43;
Distance_Value : Float;
begin
loop
Distance_Value := HCSR04.Distance(Testing_Sensor_... |
-- Copyright 2020-2021 Free Software Foundation, Inc.
--
-- 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 3 of the License, or
-- (at your option) any later version.
--
-- ... |
with System.Address_To_Named_Access_Conversions;
with System.Growth;
with System.Debug; -- assertions
with C.basetsd;
with C.winbase;
with C.windef;
package body System.Unbounded_Allocators is
use type Storage_Elements.Storage_Offset;
use type C.size_t;
use type C.basetsd.SSIZE_T;
use type C.windef.WORD;
... |
-----------------------------------------------------------------------
-- Sessions Tests - Unit tests for Servlet.Sessions
-- Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016, 2018, 2019, 2020, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, V... |
--
-- Copyright 2021 (C) Holger Rodriguez
--
-- SPDX-License-Identifier: BSD-3-Clause
--
-- private with Edc_Client.Alpha.Common;
private with Edc_Client.Alpha.Common;
package body Edc_Client.Alpha.Block1 is
Block : constant Character := '1';
----------------------------------------------------------------... |
with Lto9_Pkg2;
package Lto9_Pkg1 is
subtype Lengths is Natural range 0 .. 50;
type Subscriber (NLen, ALen: Lengths := 50) is record
Name : String(1 .. NLen);
Address : String(1 .. ALen);
end record;
type Subscriber_Ptr is access all Subscriber;
package District_Subscription_Lists is ... |
-- part of FreeTypeAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with FT.Faces;
package FT.Utilities is
procedure Print_Bitmap_Metadata (Bitmap : FT.Bitmap_Record);
procedure Print_Character_Metadata (aFace : FT.Faces.Face_Reference;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.