content stringlengths 23 1.05M |
|---|
-- Copyright (c) 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 version.
... |
-- Object-oriented generalized stack. This illustrates the use of a
-- controlled type, which is one that has construction and destructions.
-- It also shows how to create two related types in the same package so
-- that they can share private declarations. This sort of thing is
-- accomplished in Java or C++ using n... |
-- This spec has been automatically generated from out.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- TLV Calibration Data
package MSP430_SVD.TLV_CALIBRATION_DATA is
pragma Preelaborate;
---------------
-- Registers --
---------------
---... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
with GNAT.Exception_Traces;
with GNAT.Traceback.Symbolic;
with Ada.Text_IO; use Ada.Text_IO;
with Spawn_Manager.Client; use Spawn_Manager.Client;
with GNAT.Source_Info;
procedure Spawn_Manager.Tests.Main is
Args : GNAT.OS_Lib.Argument_List (1 .. 1);
Args2 : GNAT.OS_Lib.Argument_List (1 .. 1);
Ls... |
------------------------------------------------------------------------------
-- Copyright (c) 2016, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
package body GDB_Remote.Agent is
subtype Dispatch is Class;
--------------
-- Received --
--------------
function Received (This : in out Instance; C : Character) return Event is
begin
case This.State is
when Waiting_For_Ack =>
case C is
when '+' =>
... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with Ada.Assertions; use Ada.Assertions;
package body Memory.Flash is
function Create_Flash(word_size : Positive := 8;
block_size : Positive := 256;
read_latency : Time_Type := 10;
write_latency : Time_Type := 1000)
... |
with Unchecked_Deallocation;
package body Lists is
procedure Free is
new Unchecked_Deallocation (Element_Type, Element_Pointer);
--------------------------------------------------------------------------
procedure Attach (List1 : in out List;
List2 : in List) is
... |
with interfaces.C;
with Glib;
package GStreamer.Rtsp is
type GstRTSPResult is new interfaces.C.Int;
OK : constant GstRTSPResult := 0;
ERROR : constant GstRTSPResult := -1;
EINVAL : constant GstRTSPResult := -2;
EINTR : constant GstRTSPResult := -3;
ENOMEM : constant GstR... |
-- { dg-do compile }
package static_initializer is
type Vector is array (1 .. 3) of Float;
type Arr is array (Integer range 1 .. 3) of Vector;
Pos : constant Arr := ((0.0, 1.0, 2.0),
(0.5, 1.5, 2.5),
(1.0, 2.0, 4.0));
end;
-- { dg-final { scan-assembler-not "... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
-- Objectif : Comprendre le comportement de Get et Skip_Line.
-- Saisir une longueur (valeur et unité) et l'afficher.
procedure Comprendre_Get_Skip_Line is
Valeur: Integer; -- la valeur du longeur
Unite: Character; -- l'... |
with HAL; use HAL;
with HAL.Block_Drivers; use HAL.Block_Drivers;
package Dummy_Block_Driver is
type Dummy_BD is new Block_Driver with record
Should_Fail : Boolean;
end record;
overriding
function Read
(This : in out Dummy_BD;
Block_Number : UInt64;
Data ... |
-- Time-stamp: <22 oct 2012 09:38 queinnec@enseeiht.fr>
with Ada.Text_IO; use Ada.Text_IO;
with LR.Synchro;
with LR.Simu;
with LR.Affic;
with Ada.Numerics.Discrete_Random;
with Ada.Exceptions;
package body LR.Tasks is
package Rand_Int is new Ada.Numerics.Discrete_Random(Positive);
Generator : Rand_Int.Gener... |
-----------------------------------------------------------------------
-- hestia-scheduler -- Hestia Scheduler
-- Copyright (C) 2016, 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 this f... |
-- { dg-do compile }
package Aggr2 is
type Buffer is array (Positive range <>) of Boolean;
for Buffer'Alignment use 4;
type Buffer_Ptr is access Buffer;
subtype My_Buffer is Buffer (1 .. 2);
P : Buffer_Ptr := new My_Buffer'(Others => False);
end Aggr2;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2018, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Definitions; use Definitions;
with Ada.Calendar;
with Ada.Text_IO;
package Port_Specification.Web is
package TIO renames Ada.Text_IO;
package CAL renames Ada.Calendar;
-- Convert specification to ... |
package body Thiele is
use type Real_Array;
function "/" (Left, Right : Real_Array) return Real_Array is
Result : Real_Array (Left'Range);
begin
if Left'Length /= Right'Length then
raise Constraint_Error with "arrays not same size";
end if;
for I in Result'Range loop
... |
---------------------------------------------------------------------------
-- FILE : network-addresses-test.adb
-- SUBJECT : Body of a package that supports testing network addresses.
-- AUTHOR : (C) Copyright 2015 by Peter Chapin
--
-- Please send comments or bug reports to
--
-- Peter Chapin <PChapin@vtc.vs... |
package wrap is
with Ada.Containers.Formal_Doubly_Linked_Lists;
package My_Lists is new Ada.Containers.Formal_Doubly_Linked_Lists (Element_Type, My_Eq);
end wrap;
|
--
-- Copyright (C) 2006-2013, AdaCore
--
-- This package provides a general block copy mechanisms analogous to that
-- provided by the C routine memcpy allowing for copies without overlap.
with System; use System;
with Interfaces.C; use Interfaces.C;
package Memory_Copy is
pragma Preelaborate;
procedure memc... |
with Ada.Command_Line;
with Ada.Text_IO.Terminal;
procedure tty_info is
use Ada.Text_IO;
use Ada.Text_IO.Terminal;
package Count_IO is new Integer_IO (Count);
use Count_IO;
Try_Resize, Try_Move, Try_Col, Try_Save : Boolean := False;
State : Terminal.Output_State;
begin
Count_IO.Default_Width := 0;
for I in 1 ..... |
with Ada.Text_IO;
with PrimeUtilities;
package body Problem_70 is
package IO renames Ada.Text_IO;
subtype Ten_Million is Integer range 1 .. 9_999_999;
package Ten_Million_Primes is new PrimeUtilities(Ten_Million);
type Digit_Count is Array(Character range '0' .. '9') of Natural;
procedure Solve is
... |
-- C48009G.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... |
with text_io; use text_io;
with ascan_dfa; use ascan_dfa;
with ascan_io; use ascan_io;
with misc_defs, misc, sym, parse_tokens, int_io;
with tstring, ascan_dfa, ascan_io, external_file_manager;
use misc_defs, parse_tokens, tstring;
use ascan_dfa, ascan_io, external_file_manager;
package scanner is
call_yylex : b... |
-- part of ParserTools, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Strings_Edit.UTF8;
package Text.Builder.Unicode is
procedure Append (Object : in out Reference;
Value : Strings_Edit.UTF8.Code_Point);
end Text.Builder.Unicode;
|
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
--
-- Some of these definitions originate from the Matresha Project
-- http://forge.ada-ru.org/matreshka
-- Used with permission from Vadim Godunko <vgodunko@gmail.com>
with System;
with Interfaces.C.Strings;... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with League.Strings;
package Writers is
pragma Preelaborate;
type Writer is tagged private;
function Text
(Self : Writer) return League.St... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- Reference Implementation --
-- ... |
with Ada.Sequential_IO;
with Ada.Text_IO; use Ada.Text_IO;
with Sorted_List; use Sorted_List;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Lab6 is
type Array_Type is
Array(1..10) of Integer;
type Person_Type is
record
S_Name : String(1..20);
F_Name : String(... |
procedure Circle
( Picture : in out Image;
Center : Point;
Radius : Natural;
Color : Pixel
) is
F : Integer := 1 - Radius;
ddF_X : Integer := 0;
ddF_Y : Integer := -2 * Radius;
X : Integer := 0;
Y : Integer := Radius;
begin
P... |
-- C35102A.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 --
-- --
-- ... |
with Ada.Containers.Ordered_Maps;
with Ada.Strings.Unbounded;
package body LZW is
package UStrings renames Ada.Strings.Unbounded;
use type UStrings.Unbounded_String;
--------------
-- Compress --
--------------
function Compress (Cleartext : in String) return Compressed_Data is
-- translate S... |
-- Copyright 2018-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 Ada.Numerics.Discrete_Random;
with Ada.Numerics.Float_Random;
with Ada.Text_IO;
with Ada.Unchecked_Conversion;
with GNAT.Formatted_String;
with GNAT.Task_Lock;
use type GNAT.Formatted_String.Formatted_String;
package body ZHelper is
function Rand_Of (First : Integer; Last : Integer) return Integer is
s... |
-- Copyright 2019 Simon Symeonidis (psyomn)
--
-- 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 la... |
with Lv.Style;
package Lv.Objx.Switch is
subtype Instance is Obj_T;
type Style_T is (Style_Bg,
Style_Indic,
Style_Knob_Off,
Style_Knob_On);
-- Create a switch objects
-- @param par pointer to an object, it will be the parent of the new switch... |
-----------------------------------------------------------------------
-- demos -- Utility package for the demos
-- Copyright (C) 2016, 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 file ... |
-----------------------------------------------------------------------
-- css-reports -- CSS Reports
-- 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 file except in complian... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with File_Operations;
with PortScan.Log;
with Parameters;
with Unix;
with Ada.Characters.Latin_1;
with Ada.Directories;
with Ada.Text_IO;
package body PortScan.Packager is
package FOP renames File_Operations;
... |
-----------------------------------------------------------------------
-- ADO Sequences -- Database sequence generator
-- Copyright (C) 2009, 2010, 2011, 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may ... |
with
gel_demo_Server;
procedure launch_Server
--
-- Launches the remote server.
--
is
begin
gel_demo_Server.item.start;
end launch_Server;
|
with Shapes.Circles; use Shapes.Circles;
use Shapes;
procedure Shapes_Main is
P : Point;
C : Circle;
begin
P.Print;
C.Print;
end Shapes_Main;
|
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Command_Line; use Ada.Command_Line;
with Fakedsp.Card;
with Fakedsp.Data_Streams.Files;
with Notch_Example.Filters;
procedure Notch_Example.Main is
--
-- This example processes the input using a notch filter that remove
-- a specified frequency F0 pla... |
-----------------------------------------------------------------------
-- akt-commands-drivers -- Ada Keystore command driver
-- 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 thi... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Rendezvous is
Out_Of_Ink : exception;
type Printer;
type Printer_Ptr is access all Printer;
task type Printer (ID : Natural; Backup : Printer_Ptr) is
entry Print (Line : String);
end Printer;
task body Printer is
Ink : Natural := 5;
begin... |
with Ada.Assertions; use Ada.Assertions;
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Text_IO; use Ada.Text_IO;
with Interfaces; use Interfaces;
procedure Day03Part1 is
Input_Len: Natural := 0;
Binary_Number: Unsigned_64 := 0;
Mask: Unsigned_64 := 0;
Gamma: Uns... |
with Yaml.Dom.Node;
package body Yaml.Dom.Mapping_Data is
function Hash (Object : Node_Pointer) return Ada.Containers.Hash_Type is
(Node.Hash (Object.all));
function Length (Object : Instance) return Count_Type is
(Object.Data.Length);
function Is_Empty (Container : Instance) return Boolean is
... |
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Aux_Dec is
pragma Pure;
-- required for T'Type_Class attribute by compiler (s-auxdec.ads)
type Type_Class is (
Type_Class_Enumeration,
Type_Class_Integer,
Type_Class_Fixed_Point,
Type_Class_Floa... |
--------------------------------------------------------------------------------------------------------------------
-- 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) 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 must retain the above copyright notice, t... |
-- This spec has been automatically generated from STM32F072x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.CRC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype IDR_IDR_Field is STM32_SVD.Byte... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Ver_Tipo_Vector is
type T_Vector is array (Positive range <>) of Integer;
Vector: T_Vector (1..10);
Vector2: T_Vector(1..100);
function Suma_Componentes(Vector: T_Vector) return Integer is
begin
if Vector'L... |
package AOC is
package Day is
type Day is abstract tagged limited null record;
type Access_Day is access Day'Class;
procedure Init (D : in out Day; Root : String) is abstract;
function Part_1 (D : Day) return String is abstract;
function Part_2 (D : Day) return String is abstract;
e... |
with Ada.Numerics.Generic_Elementary_Functions;
procedure main with SPARK_Mode is
-- user-defined float type
type Meters is new Float range 0.0 .. 1_000_000.0;
-- instantiate generic package for my type
package Meter_Functions is new Ada.Numerics.Generic_Elementary_Functions (Meters);
use Meter_Func... |
pragma License (Unrestricted);
-- extended unit
with Ada.Strings.Generic_Bounded.Generic_Functions;
with Ada.Strings.Wide_Functions;
package Ada.Strings.Bounded_Wide_Strings.Functions is
new Generic_Functions (Wide_Functions);
pragma Preelaborate (Ada.Strings.Bounded_Wide_Strings.Functions);
|
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
package body AdaBase.Connection.Base is
------------------
-- autoCommit --
------------------
overriding
function autoCommit (conn : Base_Connection) return Boolean is
begin
return co... |
with Protypo.Api.Engine_Values.Engine_Value_Vectors;
with Ada.Containers.Indefinite_Doubly_Linked_Lists;
with Ada.Containers.Indefinite_Holders;
package Protypo.Api.Engine_Values.Parameter_Lists is
use type Ada.Containers.Count_Type;
type Parameter_Spec is private;
No_Spec : constant Parameter_Spec;
M... |
Pragma Ada_2012;
Pragma Wide_Character_Encoding( UTF8 );
With
Ada.Strings.UTF_Encoding.Wide_Wide_Strings,
Ada.Strings.UTF_Encoding.Wide_Strings,
Ada.Strings.UTF_Encoding.Strings,
Ada.IO_Exceptions;
with Ada.Strings.UTF_Encoding;
-- Edward Parse Library.
--
-- ©2015 E. Fish; All Rights Reserved.
Package EPL with Pure ... |
with Protypo.Api.Engine_Values.Handlers;
--
-- A "Symbol Table Reference" is a descendant of Reference_Interface
-- that allows reading/writing a value from/to the symbol table
--
package Protypo.Code_Trees.Interpreter.Symbol_Table_References is
use Protypo.Api;
type Symbol_Reference is
new Engine_Values.Ha... |
with Memory.Option; use Memory.Option;
with Util; use Util;
separate (Parser)
procedure Parse_Option(parser : in out Parser_Type;
result : out Memory_Pointer) is
mem : Option_Pointer := Create_Option;
begin
while Get_Type(parser) = Open loop
declare
other : Memory_Pointe... |
-- This spec has been automatically generated from STM32F303xE.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.COMP is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype COMP1_CSR_COMP1EN_Field is ST... |
package Rejuvenation.Indentation is
No_Indentation : constant Integer := -1;
function Indentation_Of_Node (Node : Ada_Node'Class) return Integer;
-- Note: No_Indentation signals that another non-white-space element
-- is earlier on the same line
function Node_On_Separate_Lines (Node : Ada_Node'Class... |
with
ada.Text_IO,
float_Math.Geometry.d3.Modeller.Forge;
procedure launch_modeller_Test
is
use ada.Text_IO,
float_Math.Geometry.d3.Modeller.Forge;
the_Modeller : polar_Model := polar_Model_from ("gaspra.tab");
begin
put_Line ("Done.");
end launch_modeller_Test;
|
-------------------------------------------------------------------------------
-- LSE -- L-System Editor
-- Author: Heziode
--
-- License:
-- MIT License
--
-- Copyright (c) 2018 Quentin Dauprat (Heziode) <Heziode@protonmail.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- c... |
-- Generated at 2014-06-02 19:12:04 +0000 by Natools.Static_Hash_Maps
-- from ../src/natools-s_expressions-printers-pretty-config-commands.sx
with Natools.S_Expressions.Printers.Pretty.Config.Main_Cmd;
with Natools.S_Expressions.Printers.Pretty.Config.Newline_Cmd;
with Natools.S_Expressions.Printers.Pretty.Config.Qu... |
with Ada.Exception_Identification.From_Here;
with Ada.Strings.UTF_Encoding.Conversions;
with System.UTF_Conversions;
package body Ada.Strings.UTF_Encoding.Generic_Strings is
use Exception_Identification.From_Here;
generic
type UTF_Character_Type is (<>);
type UTF_String_Type is array (Positive range ... |
with agar.core.event;
package agar.gui.widget.checkbox is
use type c.unsigned;
type flags_t is new c.unsigned;
CHECKBOX_HFILL : constant flags_t := 16#01#;
CHECKBOX_VFILL : constant flags_t := 16#02#;
CHECKBOX_EXPAND : constant flags_t := CHECKBOX_HFILL or CHECKBOX_VFILL;
CHECKBOX_SET : constant fla... |
-- This spec has been automatically generated from STM32L0x1.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.DBGMCU is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- MCU Device ID Code Register
ty... |
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
with Ada.Strings.Unbounded;
use Ada.Strings.Unbounded;
procedure Accom is
type AccomVariant is (ACCKIND_FLAT, ACCKIND_HOUSE);
type Accommodation(accom_variant : AccomVariant) is
record
street : Unbounded_String;... |
-- -----------------------------------------------------------------------------
-- Copyright (C) 2003-2019 Stichting Mapcode Foundation (http://www.mapcode.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... |
-- This spec has been automatically generated from STM32WB55x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.SAI is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype ACR1_MODE_Field is HA... |
with Ada.Text_IO; use Ada.Text_IO;
with GNAT.Traceback; use GNAT.Traceback;
with GNAT.Traceback.Symbolic; use GNAT.Traceback.Symbolic;
procedure Test_Stack_Trace is
procedure Call_Stack is
Trace : Tracebacks_Array (1..1_000);
Length : Natural;
begin
Call_Chain (Trace, L... |
type Box; -- tell Ada a box exists (undefined yet)
type accBox is access Box; -- define a pointer to a box
type Box is record -- later define what a box is
next : accBox; -- including that a box holds access to other boxes
end record;
|
-----------------------------------------------------------------------
-- echo_server -- A simple UDP echo 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 excep... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Slim.Fonts;
with Slim.Menu_Models;
limited with Slim.Players.Displays;
package Slim.Menu_Views is
type Menu_View is tagged p... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package Server is
pragma Remote_Call_Interface;
procedure Foo;
function Bar return Natural;
end Server;
|
with Ada.Unchecked_Deallocation;
with SDA_Exceptions; use SDA_Exceptions;
package body LCA is
procedure Free is
new Ada.Unchecked_Deallocation (Object => T_Cellule, Name => T_LCA);
procedure Initialiser(Sda: out T_LCA) is
begin
Sda := null;
end Initialiser;
function Est_Vide (Sda : T_LCA) return Boolean i... |
Pragma Ada_2012;
Pragma Assertion_Policy( Check );
With
Unchecked_Conversion,
Ada.Text_IO;
Procedure Test_Roman_Numerals is
-- We create an enumeration of valid characters, note that they are
-- character-literals, this is so that we can use literal-strings,
-- and that their size is that of Integer.
... |
package openGL.Geometry.colored
--
-- Supports per-vertex site and color.
--
is
type Item is new Geometry.item with private;
type View is access Item'Class;
function new_Geometry return Geometry.colored.view;
------------
-- Vertices
--
type Vertex is
record
Site : Vector_3;... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Indefinite_Ordered_Maps;
procedure Test_Iteration is
package String_Maps is
new Ada.Containers.Indefinite_Ordered_Maps (String, Integer);
use String_Maps;
A : Map;
Index : Cursor;
begin
A.Insert ("hello", 1);
A.Insert ("world", 2);
... |
-- *** this line is for test ***
with Ada.Calendar;
with Ada.Credentials;
with Ada.Directories.Information;
with Ada.Directories.Temporary;
with Ada.Directories.Volumes;
with Ada.Text_IO;
procedure directories is
use type Ada.Calendar.Time;
use type Ada.Directories.File_Kind;
use type Ada.Directories.File_Size;
use... |
with Memory.Cache;
with Util; use Util;
separate (Parser)
procedure Parse_Cache(parser : in out Parser_Type;
result : out Memory_Pointer) is
type Policy_Map_Type is record
name : Unbounded_String;
policy : Cache.Policy_Type;
end record;
type Policy_Map_Array is arr... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with Ada.Text_Io; use Ada.Text_Io;
procedure Tasking_99_Bottles is
subtype Num_Bottles is Natural range 1..99;
task Print is
entry Set (Num_Bottles);
end Print;
task body Print is
Num : Natural;
begin
for I in reverse Num_Bottles'range loop
select
accept
S... |
pragma License (Unrestricted);
-- extended unit
with Ada.Containers.Access_Holders;
generic
type Base (<>) is abstract tagged limited private;
type Base_Name is access all Base'Class;
with package Base_Holders is
new Access_Holders (Base_Name, Free => <>);
type Derived (<>) is abstract limited new Ba... |
-----------------------------------------------------------------------
-- servlet-requests -- Servlet Requests
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2017, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License... |
------------------------------------------------------------------------------
-- --
-- Generic HEX String Handling Package --
-- --
-- -... |
--
-- 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... |
package Sizetype3 is
type Values_Array is array (Positive range <>) of Integer;
type Values_Array_Access is access all Values_Array;
procedure Simplify_Type_Of;
end Sizetype3;
|
with System.Storage_Elements; use System.Storage_Elements;
package Controlled7 is
procedure Proc (Offset : Storage_Offset);
end Controlled7;
|
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Lace.Generic_Engines is
------------------
-- Get_Property --
------------------
function Get_Property
(Self : access Eng... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.