content stringlengths 23 1.05M |
|---|
pragma License (Unrestricted);
-- extended unit
with Ada.Strings.Generic_Unbounded.Generic_Functions;
with Ada.Strings.Wide_Wide_Functions;
package Ada.Strings.Unbounded_Wide_Wide_Strings.Functions is
new Generic_Functions (Wide_Wide_Functions);
pragma Preelaborate (Ada.Strings.Unbounded_Wide_Wide_Strings.Functions... |
with Ada.Finalization;
with Ada.Streams;
with League.String_Vectors;
with League.Strings;
with PB_Support.Boolean_Vectors;
with PB_Support.IEEE_Float_64_Vectors;
with PB_Support.Integer_32_Vectors;
with PB_Support.Integer_64_Vectors;
with PB_Support.Stream_Element_Vector_Vectors;
with PB_Support.Universal_String_Vector... |
-- Copyright (c) 2014 onox <denkpadje@gmail.com>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND T... |
generic
type T is private;
procedure Cserel (A, B: in out T);
|
with Ada.Text_IO, Ada.Containers.Ordered_Sets;
procedure Set_Demo is
package CS is new Ada.Containers.Ordered_Sets(Character); use CS;
package IO renames Ada.Text_IO;
-- helper functions for string to something conversion, and vice versa
function To_Set(S: String) return Set is
Result: S... |
with GLOBE_3D.Math;
pragma Elaborate_All (GLOBE_3D.Math);
with Ada.Numerics.Float_Random; use Ada.Numerics.Float_Random;
package body GLOBE_3D.Stars_sky is
Star_Colours : array (1 .. No_of_Stars) of GL.RGB_Color;
Star_Positions : array (1 .. No_of_Stars) of Point_3D; -- normalized position on... |
-------------------------------------------------------------------------------
-- Copyright 2021, The Septum Developers (see AUTHORS file)
-- 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
... |
-- 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 Ada.Text_IO;
with Interfaces.C.Strings;
package body Cupcake.Backends.Cairo is
-- Procedure settings the curren... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
with Interfaces;
use Interfaces;
with Ada.Unchecked_Conversion;
package body GBA.Input is
function Cast is new Ada.Unchecked_Conversion(Key_Flags, Key_Set);
function Cast is new Ada.Unchecked_Conversion(Key_Set, Key_Flags);
funct... |
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.PCC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype PCC_MR_DSIZE_Field is HAL.UInt2;
s... |
with Ada.Text_IO;
with Progress_Indicators.Bars;
with Progress_Indicators.Spinners;
procedure Test is
use Progress_Indicators.Spinners;
use Progress_Indicators.Bars;
S : Spinner := Make;
Bar_Widths : constant array (Natural range <>) of Natural := (100, 50, 10, 5, 0);
begin
for Width of Bar_Widt... |
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with Interfaces.C;
with clib.lconv;
with Interfaces.C.Pointers;
with Interfaces.C.Strings;
with System;
package clib.Binding is
function setlocale
(a_a_category : in Interfaces.C.int;
a_a_locale : in Interfaces.C.Strings.chars_ptr)
... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
with RASCAL.Utility; use RASCAL.Utility;
with RASCAL.Heap; use RASCAL.Heap;
package AcronymList is
------------------------------------------------------------------------
-- | Generic ADT for one-way linked lists
-- | Author: Michael B. Feldman, The George Washington University
-- | Last Mo... |
package EU_Projects.Nodes.Risks is
type Risk_Descriptor is new Nodes.Node_Type with private;
type Risk_Access is access Risk_Descriptor;
type Risk_Label is new Dotted_Identifier;
type Risk_Index is new Nodes.Node_Index;
type Risk_Severity is (Very_Small, Small, Medium, Large, Very_Large);
type Risk... |
with AWS.Response;
with AWS.Services.Page_Server;
with AWS.Services.Directory;
with AWS.Server;
with AWS.Status;
package Server is
function Callback (Request : AWS.Status.Data) return AWS.Response.Data;
procedure Start_Server;
private
end Server; |
-- 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.Bind.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Tk.Bind.Test_Data
.Test with
nul... |
with Ada.Text_IO, Ada.Characters.Latin_1, VisitableIntrospectorPackage, VisitablePackage;
use Ada.Text_IO, Ada.Characters.Latin_1, VisitableIntrospectorPackage, VisitablePackage;
package body EnvironmentPackage is
--private
procedure makeEnvironment(env: in out Environment; len: Integer ; intro: IntrospectorPtr) i... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with AUnit.Assertions; use AUnit.Assertions;
package body Missing.AUnit.Assertions is
procedure Generic_Assert
(Actual, Expected : Element_T; Message : String;
Source : String := GNAT.Source_Info.File;
Line : Natural := GNAT.Source_Info.Line)
is
begin
Assert
... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with League.Strings;
with Markdown.Blocks;
limited with Markdown.Visitors;
package Markdown.Lists is
type List is new Markdown.Blocks.Container_Blo... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Euler10 Is
function Sum_Prime_Under(N: Integer) return Long_Long_Integer is
Is_Prime : array (2 .. N - 1) of Boolean := (others => True);
Sum : Long_Long_Integer := 0;
begin
for I in Is_Prime'Range loop
if Is_Prime(I) then
Sum :=... |
with Ada.Text_IO;
with Ada.Characters.Handling;
with Simple_Logging;
with CLIC.TTY;
package body CLIC.User_Input is
package TIO renames Ada.Text_IO;
package Char renames Ada.Characters.Handling;
User_Input_Error : exception;
Answer_Char : constant array (Answer_Kind) of Character :=
(Yes => 'Y... |
-- { dg-do compile }
-- { dg-options "-O -gnatn -Winline" }
with Inline2_Pkg; use Inline2_Pkg;
procedure Inline2 is
F : Float := Invalid_Real;
begin
if Valid_Real (F) then
F := F + 1.0;
end if;
end;
|
with Ada.Text_IO;
use Ada;
procedure point_test is
type Point is record
x, y, z : float;
end record;
location : Point;
begin
location := (x=>1.0, y=>1.0, z=>0.0);
end point_test;
|
PROCEDURE Tax IS
SUBTYPE NonNegFloat IS Float RANGE 0.0 .. Float'Last;
Tot_Tax : NonNegFloat;
Taxable_Income : Float;
BEGIN
Float (Tot_Tax) := Taxable_Income;
END TAX;
|
with Terminal_Interface.Curses; use Terminal_Interface.Curses;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
With Ada.Text_IO.Unbounded_IO; use Ada.Text_IO.Unbounded_IO;
with Ada.Text_IO;
with Ada.Directories;
use Ada.Text_IO;
use Ada.Directories;
with Ada.Calendar; use Ada.Calendar;
with Ada.Calen... |
-- { dg-do compile }
-- { dg-options "-g" }
with Taft_Type2_Pkg; use Taft_Type2_Pkg;
package body Taft_Type2 is
procedure Proc is
A : T;
function F return T is
My_T : T;
begin
My_T := Open;
return My_T;
end;
begin
A := F;
end;
end Taft_Type2;
|
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.Strings;
package Incr.Lexers.Batch_Lexers is
-- @summary
-- Batch Lexer
--
-- @description
-- Thi... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
private
with Ada.Finalization;
package AdaBase.Statement is
pragma Pure;
type Base_Pure is abstract tagged private;
private
package FIN renames Ada.Finalization;
type Base_Pure is abstract new F... |
package Constrained_Array_Definition is
type Array_Type_1 is array (Natural range 1..10) of Integer;
type Array_Type_2 is array (1..10) of Integer;
end Constrained_Array_Definition;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- Copyright 2017-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.IO_Exceptions;
with System.Address_To_Access_Conversions;
with C.libxml.tree;
with C.libxml.xmlIO;
package body XML.Streams is
use type C.libxml.tree.xmlOutputBufferPtr;
use type C.libxml.xmlreader.xmlTextReaderPtr;
use type C.libxml.xmlwriter.xmlTextWriterPtr;
procedure memcpy (dst, src : System.Address... |
pragma License (Unrestricted);
-- Ada 2005
with Ada.Iterator_Interfaces;
private with Ada.Containers.Copy_On_Write;
private with Ada.Containers.Naked_Doubly_Linked_Lists;
private with Ada.Finalization;
private with Ada.Streams;
generic
type Element_Type (<>) is private;
with function "=" (Left, Right : Element_T... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
Pragma Ada_2012;
Pragma Wide_Character_Encoding( UTF8 );
with
Risi_Script.Types.Patterns,
Risi_Script.Types.Identifier,
Risi_Script.Types.Identifier.Scope,
Risi_Script.Types.Implementation,
Risi_Script.Interfaces;
Package Risi_Script.Interpreter is
Use Risi_Script.Interfaces;
Type Virtual_Machine is tagged --... |
-- -----------------------------------------------------------------------------
-- smk, the smart make (http://lionel.draghi.free.fr/smk/)
-- © 2018, 2019 Lionel Draghi <lionel.draghi@free.fr>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- Licen... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- PR middle-end/36554
-- Origin: Laurent Guerby <laurent@guerby.net>
-- { dg-do compile }
-- { dg-options "-O2" }
package body Boolean_Expr1 is
function Long_Float_Is_Valid (X : in Long_Float) return Boolean is
Is_Nan : constant Boolean := X /= X;
Is_P_Inf : constant Boolean := X > Long_Float'Last;
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Big_Integers; use Big_Integers;
with Conversion; use Conversion;
with Types; use Types;
package Multiply_Proof with
SPARK_Mode,
Ghost
is
pragma Annotate (GNATprove, Terminating, Multiply_Proof);
-------------------------------
-- Partial_Product functions --
-----------------------------... |
with Ada.Text_IO;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package body Bag is
package TIO renames Ada.Text_IO;
function "<" (Left, Right : Bag_Combo) return Boolean is
begin
return Left.Color < Right.Color;
end "<";
function test_data return... |
package body Epoch_Support is
Init_Time : constant Time := Clock + Milliseconds (1000);
-----------
-- Epoch --
-----------
function Epoch return Time is (Init_Time);
end Epoch_Support;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, AdaCore --
-- --
-- ... |
-----------------------------------------------------------------------
-- css-commands-analyze -- List command for CSS tools
-- Copyright (C) 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not us... |
package body util is
function toHexString(r : in Unsigned_32) return HexString32 is
ret : HexString32 := "0xDEADBEEF";
begin
ret(1) := '0';
ret(2) := 'x';
ret(3) := hexdigits(HexDigitRange(Shift_Right((r and 16#F000_0000#), 28)));
ret(4) := hexdigits(HexDigitRange(Shift_R... |
with Ada.Assertions; use Ada.Assertions;
...
Assert (A = 42, "Oops!");
|
package UxAS.Comms.Transport.Network_Name is
ZmqExternalLmcpTcpNetwork : constant String := "zmqExternalLmcpTcpNetwork";
ZmqLmcpNetwork : constant String := "zmqLmcpNetwork";
ZmqStringNetwork : constant String := "zmqStringNetwork";
end UxAS.Comms.Transport.Network_Name;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- optional/overridable runtime unit
package System.Unwind.Backtrace is
-- This package will be linked when "__gl_exception_tracebacks" is used.
pragma Preelaborate;
-- filled by gnatbind (init.c)
Exception_Tracebacks : Integer := 0 -- -Ea or -Es
with Export,
... |
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Ada.Characters.Latin_1;
with Ada.Strings.Unbounded;
with Trendy_Test.Assertions.Integer_Assertions;
package body SP.Strings.Tests is
package ASU renames Ada.Strings.Unbounded;
use Trendy_Test.Assertions;
use Trendy_Test.Assertions.Integer_Assertions;
function "+" (S : String) return ASU.Unbound... |
with Ada.Text_IO;
package package_renaming_declaration is
package IO renames Ada.Text_IO;
end package_renaming_declaration;
|
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with System;
package bits_sched_h is
SCHED_OTHER : constant := 0; -- /usr/include/bits/sched.h:28
SCHED_FIFO : constant := 1; -- /usr/include/bits/sched.h:29
SCHED_RR : constant := 2; -- /usr/include/bits/sched.h:30
S... |
Package body Dbase.Login is
CIB : Direct_Cursor;
function If_Exists (Usrnme : Unbounded_String) return Boolean is
Stmt : Prepared_Statement;
SQLstatement : Unbounded_String;
begin
SQLstatement := "SELECT * FROM users WHERE username = '"& Usrnme & "'";
Add (Standard_Window,
... |
--
-- 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 Ada.Text_IO; use Ada.Text_IO;
procedure Test is
procedure t is begin new_line; end;
type T is record A: Integer; end record;
begin New_Line; end;
|
-- CD1009Z.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... |
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is C... |
-- 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
lace.Event,
lace.Response,
lace.Observer;
private
with
ada.Containers.indefinite_hashed_Maps,
ada.Strings.Hash;
generic
type T is abstract tagged limited private;
package lace.make_Observer
--
-- Makes a user class T into an event Observer.
--
is
pragma remote_Types;
type Ite... |
with AdaM.Assist.Query.find_All.Metrics;
with Ada.Wide_Text_IO;
with Ada.Characters.Handling;
with Ada.Exceptions;
with Asis.Exceptions;
with Asis.Errors;
with Asis.Implementation,
asis.Elements;
separate (AdaM.Assist.Query.find_All.Actuals_for_traversing)
procedure Post_Op
(Element : Asis.Element;
... |
with System.Address_Image; -- debug
pragma Warnings (Off);
with System.Finalization_Masters;
pragma Warnings (On);
with C.sys.mman;
separate (GC.Pools)
package body Finalization is
use type System.Finalization_Masters.Finalize_Address_Ptr; -- debug
use type System.Storage_Elements.Integer_Address;
use type C.signed_... |
-----------------------------------------------------------------------
-- components-ajax-factory -- Factory for AJAX Components
-- Copyright (C) 2011 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use ... |
------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
with Screen_Interface; use Screen_Interface;
with Trains;
package Tracks_Display is
type Track_Points is array (Positive range <>) of Point;
type Track_T;
type Track_Access is access all Track_T;
type Switch_States is (S1, S2);
type Switch is array (Switch_States) of Track_Access;
type Entry_Sign_... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Courbes.Visiteurs; use Courbes.Visiteurs;
package body Courbes.Singletons is
function Ctor_Singleton (P : Point2D) return Singleton is
begin
return (Debut => P, Fin => P);
end;
-- X pas utilisé
overriding function Obtenir_Point(Self : Singleton; X : Coordonnee_Normalisee) return Point... |
-- C43107A.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... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
package ascan_dfa is
aflex_debug : boolean := false;
yytext_ptr : integer; -- points to start of yytext in buffer
-- yy_ch_buf has to be 2 characters longer than YY_BUF_SIZE because we need
-- to put in 2 end-of-buffer characters (this is explained where it is
-- done) at the end of yy_ch_buf
YY_READ_BUF_SIZE : consta... |
with System; use System;
with Interfaces.C; use Interfaces.C;
package Memory_Set is
pragma Preelaborate;
function Memset (M : Address; C : int; Size : size_t) return Address;
pragma Export (C, Memset, "memset");
-- This function stores C converted to a Character in each of the elements
-- of the arra... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
package Size_Clause1 is
-- The record inherits the alignment of Integer, which is 4, so
-- the real size is 64 instead of 40. That's OK, as long as the
-- size of a component of type R1 in a packed record is 40.
type R1 is record
I : Integer;
B : Boole... |
-- This spec has been automatically generated from STM32WL5x_CM0P.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.ADC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- ADC_ISR_AWD array
... |
package body Main_Loop is
procedure Main_Loop_f (This : in out MOS_T; Instruction : in Fun_Array) is
-- Frequency is expressed in MHz
-- 1 MHz = 10**(-6) seconds = 1 microsecond = 1000 nanoseconds
-- 3 MHz = 3*10**(-6) seconds = 0.333333.. microseconds = 333 nanosceonds
Next_Release : Ada.Real_Time.Tim... |
-- Copyright 2016 Steven Stewart-Gallus
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agr... |
-- { dg-do compile }
-- { dg-options "-O -fdump-tree-esra" }
with Opt34_Pkg; use Opt34_Pkg;
procedure Opt34 is
function Local_Fun (Arg : T_Private) return T_Private is
Result : T_Private;
begin
case Get_Integer (Arg) is
when 1 =>
Result := Get_Private (100);
when 2 =>... |
-- 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.TopLevel.Toplevel_Create_Options_Test_Data
.Toplevel_Create_Options_Tests
is
type Test_Toplevel_Create_Options is ne... |
------------------------------------------------------------------------------
-- Copyright (c) 2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-- This spec has been automatically generated from STM32F7x9.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.LTDC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype SSCR_VSH_Field is HAL... |
with Ada.Text_IO, Ada.Directories, Ada.Containers.Indefinite_Vectors;
procedure Directory_List is
use Ada.Directories, Ada.Text_IO;
Search: Search_Type; Found: Directory_Entry_Type;
package SV is new Ada.Containers.Indefinite_Vectors(Natural, String);
Result: SV.Vector;
package Sorting is new SV.Generi... |
with AdaBase;
with Connect;
with Ada.Text_IO;
with AdaBase.Logger.Facility;
procedure Fruit3 is
package CON renames Connect;
package TIO renames Ada.Text_IO;
package ALF renames AdaBase.Logger.Facility;
numrows : AdaBase.Affected_Rows;
log : constant String := "/tmp/fruit3.test.log";
cmd : constan... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2021 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... |
-----------------------------------------------------------------------
-- Util.Beans.Objects.Records -- Generic Typed Data Representation
-- Copyright (C) 2011, 2016 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- y... |
with Ada.Text_IO;
procedure Hello is
package IO renames Ada.Text_IO;
begin
IO.Put_Line("Hello, world!");
end Hello;
|
with Ada.Text_Io;
package body Slots is
procedure Xaa is
begin
Ada.Text_Io.Put_Line("Xaa() called");
end;
procedure Xab is
begin
Ada.Text_Io.Put_Line("Xab() called");
end;
procedure Xac is
begin
Ada.Text_Io.Put_Line("Xac() called");
end;
procedure S1a ... |
package body System.Shared_Locking is
pragma Suppress (All_Checks);
procedure Enter is
begin
Enter_Hook.all;
end Enter;
procedure Leave is
begin
Leave_Hook.all;
end Leave;
end System.Shared_Locking;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure TestCSV is
csv: CSV_File;
begin
Open(csv, "FL_insurance_sample.csv", has_header => true);
Close(csv);
end TestCSV;
|
with Ada.Unchecked_Deallocation;
package body Fifo is
----------
-- Push --
----------
procedure Push (List : in out Fifo_Type; Item : in Element_Type) is
Temp : Fifo_Ptr := new Fifo_Element'(Item, null);
begin
if List.Tail = null then
List.Tail := Temp;
end if;
if Lis... |
-- With in my Text io package for put/get
With Text_IO; Use Text_IO;
-- With in Random float package for my random number generator
With Ada.Numerics.Float_Random; Use Ada.Numerics.Float_Random;
-- With in Unbounded strings for my string monipulation
With Ada.Strings.Unbounded; Use Ada.Strings.Unbounded;
-- Begining... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Lto18_Pkg; use Lto18_Pkg;
package Lto18 is
procedure Proc (Driver : Rec);
end Lto18;
|
-- 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... |
-- Copyright 2017-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... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.