content stringlengths 23 1.05M |
|---|
pragma License (Unrestricted);
generic
type Source (<>) is limited private;
type Target (<>) is limited private;
function Ada.Unchecked_Conversion (S : Source) return Target
with Import, Convention => Intrinsic;
pragma Pure (Ada.Unchecked_Conversion);
|
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Constraints;
with Program.Elements.Expressions;
with Program.Lexical_Elements;
package Program.Elements.Simple_Expression_Ranges is
... |
------------------------------------------------------------------------------
-- Copyright (c) 2011, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Unchecked_Deallocation;
package body Yaml.Transformator.Annotation.Concatenation is
procedure Put (Object : in out Instance; E : Event) is
begin
Object.State.all (Object, E);
... |
with OpenAL.Thin;
package body OpenAL.Error is
function Get_Error return Error_t is
begin
return Map_Constant_To_Error (Thin.Get_Error);
end Get_Error;
function Map_Constant_To_Error (Error : in Types.Enumeration_t) return Error_t is
Value : Error_t;
begin
case Error is
when Thin.AL_NO_ER... |
package Renaming6 is
I : Integer;
pragma Atomic (I);
function Get_I return Integer;
procedure Set_I (Val : Integer);
J : Integer renames I;
function Get_J return Integer;
procedure Set_J (Val : Integer);
end Renaming6;
|
with Ada.Strings.Fixed;
with AUnit.Test_Caller;
package body AUnit.Suite_Builders_Generic is
package Caller is new AUnit.Test_Caller (Fixture);
Package_Name : constant String := GNAT.Source_Info.Enclosing_Entity;
Separator : constant String := " : ";
--
-- The separator for suite and test names.
... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Indefinite_Ordered_Maps;
with Ada.Containers.Indefinite_Ordered_Sets;
procedure Words_Of_Equal_Characters is
package Set_Of_Words is new Ada.Containers.Indefinite_Ordered_Sets (String);
use Ada.Containers, Set_Of_Words;
package Anagrams is new Ada.Conta... |
-- The Cupcake GUI Toolkit
-- (c) Kristian Klomsten Skordal 2012 <kristian.skordal@gmail.com>
-- Report bugs and issues on <http://github.com/skordal/cupcake/issues>
-- vim:ts=3:sw=3:et:si:sta
with Cupcake.Colors;
with Cupcake.Primitives;
package Cupcake.Backends.Cairo is
-- Cairo backend type:
type Cairo... |
-----------------------------------------------------------------------
-- AWA.Wikis.Models -- AWA.Wikis.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-body.xhtml
-- Ada Generator: https://ada-gen.go... |
------------------------------------------------------------------------------
-- Copyright (c) 2016, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
--------------------------------------------------------------------------------------------------------------------
-- 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, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-----------------------------------------------------------------------
-- wget -- A simple wget command to fetch a page
-- Copyright (C) 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use thi... |
with DDS.Publisher;
with DDS.Subscriber;
package DDS.Request_Reply.Impl is
type Ref is limited new Request_Reply.Ref with private;
type Ref_Access is access all Ref'Class;
procedure Log_Exception (Log : Standard.String) is null;
function Create_Request_Topic_Name_From_Service_Name
(Self ... |
-----------------------------------------------------------------------
-- tar -- TAR file
-- Copyright (C) 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 file except in compliance with the... |
-- SPDX-FileCopyrightText: 2022 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Regions.Entities.Packages;
with Regions.Environments;
with Regions.Factories;
package Regions.Contexts.Environments.Factories is
pragma Preelaborat... |
-- 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 is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype EP0R_EA_Field is STM32_SVD.UInt4... |
with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure MagicPuzzle is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
goal : constant := 34;
width : constant := 4;
wm : constant := width - 1;
wp : constant := width + 1;
size : constant := width * width;
type Extended_Ch... |
-- This spec has been automatically generated from STM32F103.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.GPIO is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype Cnf_Mode is HAL.UInt4... |
package Stack is
procedure Push(Object:Integer);
function Pull return Integer;
end Stack;
|
-- przykłady: pakiet, select w zasdaniu, access do zadania jako parametr wywołania
with PMap;
with Ada.Text_Io;
use PMap,Ada.Text_Io;
procedure pmap_demo is
Arr1 : vector := (1,6,2,67,3);
Arr1_ptr : vector_ptr;
Arr2_ptr : vector_ptr;
begin
Arr1_ptr := new vector(Arr1'range);
Put_Line(Integer'Image(Arr1'Len... |
-----------------------------------------------------------------------
-- keystore-io-tests -- Tests for keystore IO
-- Copyright (C) 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file ex... |
-- Default is running in SPARK mode.
pragma SPARK_Mode (On);
-- Restricted run-time (safe tasking subset). This should cover most of the
-- required restrictions from ARM D.7 (tasking restrictions)
pragma Profile (Ravenscar);
-- SPARK also requires sequential elaboration, so that the elaboration is
-- guaranteed... |
private package GID.Decoding_JPG is
use JPEG_defs;
type JPEG_marker is
(
SOI , -- Start Of Image
--
SOF_0 , -- Start Of Frame - Baseline DCT
SOF_1 , -- Extended sequential DCT
SOF_2 , -- Progressive DCT
SOF_3 , -- Lossless (sequential)
SOF_5 , -- ... |
package body Math is
procedure Temp (x : Integer)
is
Square : constant Integer := x * x;
begin
pragma Unreferenced (Square);
end Temp;
end Math;
|
with System.Long_Long_Integer_Types;
with System.Unwind.Raising;
pragma Warnings (Off, System.Unwind.Raising); -- break "pure" rule
package body System.Arith_64 is
pragma Suppress (All_Checks);
use type Interfaces.Integer_64;
use type Interfaces.Unsigned_32;
use type Interfaces.Unsigned_64;
subtype Long... |
pragma License (Unrestricted);
with Ada.Text_IO;
package Ada.Long_Long_Integer_Text_IO is
new Text_IO.Integer_IO (Long_Long_Integer);
|
--
-- 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.Strings.Unbounded;
with Ada.Conta... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, AdaCore --
-- --
-- ... |
package body profile_warning_p is
procedure Proc is begin null; end Proc;
task type T is
end T;
task body T is
begin
null;
end;
type A_T is access T;
procedure Do_Stuff is
P : A_T;
begin
P := new T;
end Do_Stuff;
end;
|
-- part of FreeTypeAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with FT.Errors;
with FT.API;
package body FT is
use type Errors.Error_Code;
use type Library_Ptr;
procedure Init (Object : in out Library_Reference) is
begin
-- make sure a possib... |
package body gel.Conversions
is
use Math;
function to_GL (Self : in geometry_3d.bounding_Box) return openGL.Bounds
is
the_Bounds : opengl.Bounds := (Ball => <>,
Box => (Lower => to_GL (Self.Lower),
Upper => to_GL (Self.... |
pragma License (Unrestricted);
with Ada.Numerics.Long_Long_Complex_Types;
with Ada.Text_IO.Complex_IO;
package Ada.Long_Long_Complex_Text_IO is
new Text_IO.Complex_IO (Numerics.Long_Long_Complex_Types);
|
-- RUN: %llvmgcc -S -O2 -gnatn %s
package body Real_Cst is
Cst : constant Float := 0.0;
procedure Write (Stream : access Ada.Streams.Root_Stream_Type'Class) is
begin
Float'Write (Stream, Cst);
end;
end;
|
package body openGL.Culler
is
procedure Viewer_is (Self : in out Item'Class; Now : in Renderer.lean.view)
is
begin
Self.Viewer := Now.all'Access;
end Viewer_is;
function Viewer (Self : in Item'Class) return Renderer.lean.view
is
begin
return Self.Viewer;
end Viewer;
end openGL.... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 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... |
with
Interfaces.C,
System;
use type
Interfaces.C.int,
Interfaces.C.unsigned_long,
System.Address;
package body FLTK is
function fl_abi_check
(V : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_abi_check, "fl_abi_check");
pragma Inline (fl_a... |
with Gnome_Sort;
with Ada.Text_Io; use Ada.Text_Io;
procedure Gnome_Sort_Test is
type Index is range 0..9;
type Buf is array(Index) of Integer;
procedure Sort is new Gnome_Sort(Integer, Index, Buf);
A : Buf := (900, 700, 800, 600, 400, 500, 200, 100, 300, 0);
begin
for I in A'range loop
Put(Intege... |
-----------------------------------------------------------------------
-- util-streams-aes -- AES encoding and decoding streams
-- Copyright (C) 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use t... |
package Weak1 is
Myconst : constant Integer := 1234;
pragma Export (C, Myconst, "myconst");
pragma Weak_External (Myconst);
end Weak1;
|
with Ada.Real_Time;
with ACO.CANopen;
with ACO.OD;
private with Interfaces;
private with ACO.Log;
private with ACO.Utils.Generic_Alarms;
private with ACO.Events;
package ACO.Protocols.Synchronization is
SYNC_CAN_Id : constant ACO.Messages.Id_Type := 16#80#;
type SYNC
(Handler : not null access ACO.CANop... |
package body Example is
function Hello(i: in Integer) return Integer is
begin
return i+1;
end Hello;
end Example;
|
with Card_Dir;
use Card_Dir;
with Coords;
use Coords;
generic
type Id is (<>);
with function "<"(I,J: in Id) return Boolean is <>;
package Aircraft is
type Aircraft_Type (Temp:Id) is private;
function GetName (A: Aircraft_Type) return Id;
procedure Ascend(A: in out Aircraft_Type);
procedure Land(A: in out A... |
package Giza.Bitmap_Fonts.FreeSansBoldOblique12pt7b is
Font : constant Giza.Font.Ref_Const;
private
FreeSansBoldOblique12pt7bBitmaps : aliased constant Font_Bitmap := (
16#0C#, 16#3C#, 16#78#, 16#E1#, 16#C3#, 16#8F#, 16#1C#, 16#38#, 16#70#,
16#C1#, 16#83#, 16#00#, 16#1C#, 16#78#, 16#F0#, 16#71#, 16#FC#, 16#... |
package body agar.gui.widget.table is
use type c.int;
package cbinds is
function allocate_polled
(parent : widget_access_t;
flags : table_flags_t;
callback : agar.core.event.callback_t;
fmt : agar.core.types.void_ptr_t) return table_access_t;
pragma import (c, allocate... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Interfaces.C.Strings;
with Glfw.API;
package body Glfw.Errors is
Cur_Callback : Callback := null;
procedure Raw_Handler (Code : Kind;
Description : Interfaces.C.... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Utilities;
with Ada.Characters.Latin_1;
with Ada.Directories;
with Parameters;
with Unix;
package body Port_Specification.Transform is
package UTL renames Utilities;
package LAT renames Ada.Characters.... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with GNATtest_Generated;
package Tk.TtkWidget.Ttk_Widget_Options_Test_Data.Ttk_Widget_Options_Tests is
type Test_Ttk_Widget_Options is abstract new GNATte... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Characters.Latin_1;
with League.JSON.Arrays;
with League.JSON.Documents;
with League.JSON.Objects;
with League.JSON.Streams;... |
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with Ada.Containers.Generic_Array_Sort;
package body Regex.Utilities.Sorted_Sets is
function To_Set (Item : in Element_Type) return Sorte... |
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl>
--
-- 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 vers... |
--
-- 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... |
with TEXT_IO; use TEXT_IO;
procedure HW is
task HELLO;
task WORLD is
entry PRINT_NOW;
end WORLD;
-- --
-- End of type declairations. --
-- --
task body HELLO is
begin
PUT("Hello, ");
WORLD.PRINT_NOW;
end HELLO;
task body WORLD is
be... |
with ada.task_identification;
with ada.text_io; use ada.text_io;
package body test_image_p is
function to_type1 (arg1 : in Integer) return type1 is
begin
return (f2 => (others => Standard.False));
end to_type1;
task body task_t is
Name : String :=
ada.task_identification.ima... |
with Ada.Text_IO; use Ada.Text_IO;
with GESTE.Maths_Types; use GESTE.Maths_Types;
with GESTE.Maths; use GESTE.Maths;
procedure Maths_Test is
Sqrt_Values : array (Natural range <>) of Value :=
(0.0, 1.0, 1.00001, 2.0, 4.0, 25.0, 80.0, 81.0, 100.0);
Cos_Values : array (Natural range <>) of Valu... |
-----------------------------------------------------------------------
-- awa-users-beans -- ASF Beans for user module
-- Copyright (C) 2011, 2012, 2013, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- yo... |
package body Opt22_Pkg is
procedure Fail is
begin
raise Constraint_Error;
end;
procedure Put (S : String) is
begin
if S /= "the message" then
raise Program_Error;
end if;
end;
end Opt22_Pkg;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with System.Synchronous_Objects.Abortable;
with System.Tasks;
package body Ada.Synchronous_Task_Control is
-- implementation
procedure Set_True (S : in out Suspension_Object) is
begin
System.Synchronous_Objects.Set (S.Object);
end Set_True;
procedure Set_False (S : in out Suspension_Object) is
... |
-- 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... |
type Response is (Yes, No); -- Definition of an enumeration type with two values
for Response'Size use 1; -- Setting the size of Response to 1 bit, rather than the default single byte size
|
package body Bounded_Dynamic_Arrays is
-----------
-- Clear --
-----------
procedure Clear (This : out Sequence) is
begin
This.Current_Length := 0;
This.Content := (others => Default_Value);
end Clear;
-------------------
-- Null_Sequence --
-------------------
function Nul... |
with Ada.Finalization; use Ada.Finalization;
package controlled1 is
type Test is new Controlled with null record;
procedure Add_Test (T : access Test'Class);
type Test_Case1 is new Test with null record;
type Test_Suite is new Test with null record;
type Test_Case is new Test_Case1 with record
... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- 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... |
with Stack;
procedure Main is
N:integer:=5;
begin
Push(N);
...
N := Pull;
end Main;
|
with Ada.Numerics.Generic_Elementary_Functions;
with Ada.Text_IO;
with GL.Types;
with Orka.Transforms.Doubles.Matrices;
with Orka.Transforms.Doubles.Quaternions;
with Planets.Earth;
package body Atmosphere_Types.Objects is
use type GL.Types.Double;
Gravity_Earth : constant := 9.81;
-- TODO Gravity should... |
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure rot13 is
type stringptr is access all char_array;
procedure PChar(c : in Character) is
begin
Character'Write (Text_Streams... |
-----------------------------------------------------------------------
-- awa-commands-tests -- Test the AWA.Commands
-- Copyright (C) 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file e... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Definitions; use Definitions;
with Ada.Text_IO;
with Ada.Exceptions;
with Ada.Directories;
with File_Operations;
with INI_File_Manager;
with Parameters;
with Unix;
package body Options_Dialog is
package ... |
-- This spec has been automatically generated from STM32F0xx.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.GPIO is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- MODER array element
subtype MODE... |
function Gamma (X : Long_Float) return Long_Float is
A : constant array (0..29) of Long_Float :=
( 1.00000_00000_00000_00000,
0.57721_56649_01532_86061,
-0.65587_80715_20253_88108,
-0.04200_26350_34095_23553,
0.16653_86113_82291_48950,
-0.04219_77345_55544_33675... |
function Warnsdorff_Get_Tour(Start_X, Start_Y: Index; Scene: Tour := Empty)
return Tour is
Done: Boolean;
Visited: Tour; -- see comments from Get_Tour above
Move_Count: Natural := Count_Moves(Scene);
function Neighbors(X, Y: Index) return Natural is
Result: Natural := 0;
... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_interfaces_interfaces_enumtypes_h is
-- unsupported macro: GST_TYPE_COLOR_BALANCE_TYPE (gst_color_balance_type_get_type())
-- unsupported macro... |
--
-- 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;
package body Command_Li... |
--
-- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: Apache-2.0
--
package Notcurses.Channel is
type Color_Type is mod 2 ** 8;
type Alpha_Type is (Opaque, Blend, Transparent, High_Contrast)
with Size => 2;
type Palette_Index is mod 2 ** 8;
type Notcurses_Chan... |
with POSIX.Process_Identification,
POSIX.Unsafe_Process_Primitives;
procedure Forkbomb is
unused : POSIX.Process_Identification.Process_ID;
begin
unused := POSIX.Unsafe_Process_Primitives.Fork;
Forkbomb;
end Forkbomb;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-----------------------------------------------------------------------
-- api_server -- Example of REST API server
-- Copyright (C) 2016 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file exce... |
with Ada.Text_IO;
use Ada.Text_IO;
package body VisitFailurePackage is
procedure RaiseVisitFailure(msg: String) is
begin
put_line(msg);
raise VisitFailure;
end RaiseVisitFailure;
end VisitFailurePackage;
|
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure brainfuck_compiler is
type stringptr is access all char_array;
procedure PChar(c : in Character) is
begin
Character'Write ... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
package body System.Secondary_Stack is
use all type SS_Stack;
Sec_Stack : aliased SS_Stack
(SSE.Storage_Count (Default_Secondary_Stack_Size))
with Import, Address => Default_Sized_SS_Pool;
-- Import secondary stack f... |
with System;
with STM32.Device; use STM32.Device;
with STM32_SVD; use STM32_SVD;
with STM32_SVD.RNG; use STM32_SVD.RNG;
package STM32.RNG is
RNG : aliased RNG_Peripheral with Import, Volatile, Address => S_NS_Periph (RNG_Base);
procedure Enable_Rng;
function Random return UInt32;
end STM32.RNG;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2019, AdaCore --
-- --
-- ... |
package body agar.gui.widget.fixed_plotter is
package cbinds is
function curve
(plotter : plotter_access_t;
name : cs.chars_ptr;
r : agar.core.types.uint8_t;
g : agar.core.types.uint8_t;
b : agar.core.types.uint8_t;
limit : agar.core.types.uint32_t)... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package GESTE_Fonts.FreeSerifBoldItalic12pt7b is
Font : constant Bitmap_Font_Ref;
private
FreeSerifBoldItalic12pt7bBitmaps : aliased constant Font_Bitmap := (
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#... |
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Text_IO; use Ada.Text_IO;
procedure Match_Strings is
S1 : constant String := "abcd";
S2 : constant String := "abab";
S3 : constant String := "ab";
begin
if S1'Length >= S3'Length and then S1 (S1'First..S1'First + S3'Length - 1) = S3 then
... |
with Warn10_Pkg; use Warn10_Pkg;
package Warn10 is
type My_Driver is new Root with record
Extra : Natural;
end record;
procedure Do_Something(Driver : My_Driver);
end Warn10;
|
package body Commands is
procedure Install_Bot_Commands (Conn : in out Connection) is
begin
Irc.Commands.Install_Commands (Conn);
-- PRIVMSG commands
Conn.On_Privmsg ("$join ", Join_Channel'Access);
Conn.On_Privmsg ("$part ", Part_Channel'Access);
Conn.On_Privmsg ("$ping", ... |
package body Meassure_Acceleration is
procedure Retrieve_Acceleration (Acc_X, Acc_y : out Float) is
begin
--if Imu.Acc.Read.Available() not true then
-- raise Acc_Not_Available ;
--end if;
--Imu.acc.read(data);
X_Coordinate := 9.8;
Y_Coordinate := 0.0;
Acc_X := X_Coordi... |
with Simple_Logging;
with Interfaces.C_Streams; use Interfaces.C_Streams;
package body FSmaker.Commands.Init is
-------------
-- Execute --
-------------
overriding
procedure Execute (This : in out Instance;
Args : AAA.Strings.Vector)
is
function ftruncate (FS : i... |
package GESTE_Fonts.FreeMonoOblique6pt7b is
Font : constant Bitmap_Font_Ref;
private
FreeMonoOblique6pt7bBitmaps : aliased constant Font_Bitmap := (
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0C#, 16#08#, 16#08#, 16#08#,
16#00#, 16#00#, 16#10#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#36#,
16#24#, 16#24... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.