content
stringlengths
23
1.05M
-- -- 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. -- package Macros is procedure Append (Na...
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with Ada.Characters.Wide_Wide_Latin_1; with Ada.Containers.Doubly_Linked_Lists; with Ada.Containers.Hashed_Maps; with Ada.Wide_Wide_Text_IO; with GNAT.SH...
with Ada.Streams; use Ada.Streams; package body Zip.Headers is ----------------------------------------------------------- -- Byte array < - > various integers, with Intel endianess -- ----------------------------------------------------------- -- Get numbers with correct trucmuche endian, to ensur...
-- -- -- package Copyright (c) Dmitry A. Kazakov -- -- Generic_Unbounded_Array Luebeck -- -- Interface Spring, 2002 -- -- ...
package ADMBase.Initial is procedure create_data; procedure create_grid; end ADMBase.Initial;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright 2016-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...
generic type Elem is private; package Vermek is type Verem is limited private; Üres_A_Verem: exception; procedure Push( V: in out Verem; E: in Elem ); procedure Pop( V: in out Verem; E: out Elem ); -- kiválthat Üres_A_Verem kivételt function Top( V: Ver...
-- //////////////////////////////////////////////////////////// -- // -- // 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...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
-- 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...
----------------------------------------------------------------------- -- atlas-reviews-beans -- Beans for module reviews -- Copyright (C) 2014 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 fi...
package Math is function Square (x : Integer) return Integer; function Exponent (base, power : Integer) return Integer; type Matrix_Type is array (Positive range <>, Positive range <>) of Integer; function Square (m : Matrix_Type) return Matrix_Type; end Math;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org) -- 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...
pragma Ada_2012; with Ada.Strings.Maps.Constants; use Ada.Strings.Maps.Constants; with Ada.Characters.Latin_9; use Ada.Characters.Latin_9; with Ada.Text_Io; use Ada.Text_Io; with Ada.Strings.Fixed; with Ada.Characters.Handling; with Ada.Containers.Indefinite_Ordered_Sets; with Readable...
with Ada.Text_IO; with Futures; package body App is procedure Show_Search (Self : in out Object; Target : String ) is function Callable_String return String is begin -- delay 10.0; -- for triggering timeout... return Self.Searcher.Search(Target); end...
with Generic_Ulam, Ada.Text_IO, Prime_Numbers; procedure Ulam is package P is new Prime_Numbers(Natural, 0, 1, 2); function Vis(N: Natural) return String is (if P.Is_Prime(N) then " <>" else " "); function Num(N: Natural) return String is (if P.Is_Prime(N) then (if N < 10 then " " elsif N <...
with Interfaces; use Interfaces; package body Natools.S_Expressions.Printers.Pretty.Config.Quoted_Cmd is P : constant array (0 .. 2) of Natural := (1, 4, 10); T1 : constant array (0 .. 2) of Unsigned_8 := (11, 3, 3); T2 : constant array (0 .. 2) of Unsigned_8 := (14, 19, 16); G : constan...
with Ada.Text_Io; use Ada.Text_Io; with vectores; use vectores; with esta_en_vector; procedure prueba_esta_en_vector is -- este programa hace llamadas a la funcion esta_en_vector y es util -- para comprobar si su funcionamiento es correcto procedure escribir_booleano(valor: in Boolean) is begin if(v...
----------------------------------------------------------------------- -- Util.Serialize.Mappers.Record_Mapper -- Mapper for record types -- Copyright (C) 2010, 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- y...
with Ada.Containers.Indefinite_Doubly_Linked_Lists; with Ada.Text_IO; procedure Multisplit is package String_Lists is new Ada.Containers.Indefinite_Doubly_Linked_Lists (Element_Type => String); use type String_Lists.Cursor; function Split (Source : String; Separators : String_Lists.List) ...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Interfaces.C; with System; package Yaml.Destination.C_String is type Instance is new Destination.Instance with private; function As_Destination (Raw : System.Address; ...
with Ada.Text_IO; procedure Hello_World is use Ada.Text_IO; begin Put_line ("Hello, World!"); end Hello_World;
with openGL.Geometry, openGL.Texture; package openGL.Model.hexagon_Column.lit_colored_faceted -- -- Models a lit, colored and textured column with 6 faceted shaft sides. -- is type Item is new Model.hexagon_Column.Item with private; type View is access all Item'Class; --------- --- Faces -...
----------------------------------------------------------------------- -- wi2wic-rest -- REST entry points -- 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 except in co...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package Program.Elements.Paths is pragma Pure (Program.Elements.Paths); type Path is limited interface and Program.Elements.El...
package body OpenGL.Buffer is procedure Clear (Mask : in Buffer_Mask_t) is begin Thin.Clear (Thin.Bitfield_t (Mask)); end Clear; procedure Clear_Color (Red : in OpenGL.Types.Clamped_Float_t; Green : in OpenGL.Types.Clamped_Float_t; Blue : in OpenGL.Types.Clamped_Float_t; Alpha : in O...
with impact.d3.Object, impact.d3.Manifold, impact.d3.Joint, impact.d3.contact_solver_Info, impact.d3.Dispatcher; package impact.d3.constraint_Solver -- -- impact.d3.constraint_Solver provides solver interface. -- is type Item is abstract tagged private; type View is access all Item'Class;...
with Ada.Exceptions; use Ada.Exceptions; package Noreturn1 is procedure Error (E : in Exception_Occurrence); pragma No_Return (Error); end Noreturn1;
package Discr42_Pkg is type Rec (D : Boolean := False) is record case D is when True => N : Natural; when False => null; end case; end record; function F (Pos : in out Natural) return Rec; end Discr42_Pkg;
pragma Ada_2020; with Ada.Streams; use Ada.Streams; with AUnit.Assertions; use AUnit.Assertions; with AUnit.Test_Caller; with Base64.URLSafe; use Base64.URLSafe; package body Test_URLSafe is package Caller is new AUnit.Test_Caller (Test); Test_Suite : aliased AUnit.Test_Suites.Test_Suite; Big_Raw : const...
with Last_Chance_Handler; pragma Unreferenced (Last_Chance_Handler); with Ada.Synchronous_Task_Control; use Ada.Synchronous_Task_Control; with STM32GD.Board; use STM32GD.Board; with STM32GD.GPIO; use STM32GD.GPIO; with STM32GD.GPIO.Pin; with STM32GD.EXTI; with STM32_SVD.RCC; with Button_Irq; procedure Main is be...
-- Shoot'n'loot -- Copyright (c) 2020 Fabien Chouteau with HAL; use HAL; with GESTE_Config; use GESTE_Config; with GESTE.Sprite; with GESTE.Tile_Bank; with Game_Assets.Tileset; with Game_Assets.Tileset_Collisions; with Game_Assets.Misc_Objects; use Game_Assets; package body Score_Display is Tile_Bank : aliase...
----------------------------------------------------------------------- -- applications.messages-factory -- Application Message Factory -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
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 euler19 is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Streams.S...
pragma Ada_2012; package body AdaCar is --------- -- "*" -- --------- function "*" (A : Unidades_AI; Distancia : Unidades_Distancia) return Unidades_Distancia is Valor_Distancia: Unidades_Distancia; begin Valor_Distancia:= Unidades_Distancia(A)*Distancia; return Valor_Di...
with SOCI; with SOCI.PostgreSQL; with Ada.Text_IO; with Ada.Calendar; with Ada.Exceptions; with Ada.Numerics.Discrete_Random; with Ada.Command_Line; procedure PostgreSQL_Test is procedure Test_1 (Connection_String : in String) is begin Ada.Text_IO.Put_Line ("testing basic constructor function"...
package body Math_2D.Trigonometry is function To_Radians (Degrees : in Degrees_t) return Radians_t is begin return Radians_t (Degrees * (Ada.Numerics.Pi / 180.0)); end To_Radians; function To_Degrees (Radians : in Radians_t) return Degrees_t is begin return Degrees_t (Radians * (180.0 / Ada.Numerics...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- This spec has been automatically generated from STM32L151.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.OPAMP is pragma Preelaborate; --------------- -- Registers -- --------------- -- CSR_ANAWSEL array typ...
package Namet is Hash_Num : constant Integer := 2**12; subtype Hash_Index_Type is Integer range 0 .. Hash_Num - 1; Name_Buffer : String (1 .. 16*1024); Name_Len : Natural; end Namet;
with Date_Package; use Date_Package; with Ada.Text_IO; use Ada.Text_IO; procedure Lab4 is type Dates is array (1..10) of Date_Type; procedure Sort(Arrayen_Med_Talen: in out Dates) is procedure Swap(Tal_1,Tal_2: in out Date_Type) is Tal_B : Date_Type; -- Temporary buffer begin Tal_B := Tal_1; ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Compilation_Units; with Program.Compilation_Unit_Vectors; limited with Program.Library_Unit_Declarations; package Program.Library_Items is ...
package body AOC.AOC_2019.Day05 is use Intcode; function Run_Diagnostics (D : Day_05; Input : Element) return Element is Instance : Instances.Instance := D.Compiler.Instantiate; begin Instance.Inputs.Append (Input); Instance.Run; return Instance.Outputs.Last_Element; end Run_Diag...
package body openGL.Model.box is -------------- --- Attributes -- function vertex_Sites (Self : in Item'Class) return Sites is left_Offset : constant Real := -0.5; right_Offset : constant Real := 0.5; lower_Offset : constant Real := -0.5; upper_Offset : constant Real := 0.5; ...
with Globals_Example1; package Md_Example7 is type T is tagged record Attribute : Globals_Example1.Itype; end record; type T2 is new T with record Child_Attribute : Globals_Example1.Itype; end record; type T3 is new T2 with null record; end Md_Example7;
with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; with Ada.Assertions; with GNAT.Exception_Actions; procedure Fuzzme is Length : Integer := 3; Input : String (1 .. Length); Fd : File_Type; Filename : aliased String := Ada.Command_Line.Argument(1); procedure FuzzTest (Input : String) is Zero : Int...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Streams; package Slim.Players.Displays is type Display (Size : Ada.Streams.Stream_Element_Offset) is private; proced...
package AUnit.Assertions.Generic_Helpers is procedure Assert_Error (Message : String; Source : String := GNAT.Source_Info.File; Line : Natural := GNAT.Source_Info.Line); generic type Object_Type is private; procedure Assert_Private (Actual : Object_Type; Expect...
------------------------------------------------------------------------------ -- -- -- WAVEFILES -- -- -- -- ...
-- { dg-do compile } procedure type_conv is type Str is new String; generic package G is private end; package body G is Name : constant String := "it"; Full_Name : Str := Str (Name & " works"); end G; package Inst is new G; begin null; end;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
package Vulkan is function VkEnumerateInstanceVersion return Integer; Vulkan_Error : exception; end Vulkan;
package Problem_55 is -- If we take 47, reverse and add, 47 + 74 = 121, which is palindromic. -- -- Not all numbers produce palindromes so quickly. For example, -- 349 + 943 = 1292, -- 1292 + 2921 = 4213 -- 4213 + 3124 = 7337 -- That is, 349 took three iterations to arrive at a palindrome. -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Assertions; use Ada.Assertions; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Rejuvenation.Finder; use Rejuvenation.Finder; with Rejuvenation.Utils; use Rejuvenation.Utils; with String_Vectors; use String_Vectors; with String_Vectors_Utils; use String_Vectors_Utils; package body Rejuve...
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org) -- 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...
-- -- 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 Types; package Web_IO is subtype...
------------------------------------------------------------------------------ -- -- -- 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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
package body Vecteurs is function To_String (P : Point2D) return String is begin return "(X => " & Float'Image(P (1)) & "; Y => " & Float'Image(P (2)) & ")"; end; function To_String_3D (P : Point3D) return String is begin return "(X => " & Float'Image(P (1)) & "; Y => " & Float'Imag...
with Ada.Strings; use Ada.Strings; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Ada.Text_IO; use Ada.Text_IO; with Ada.Characters.Latin_1; use Ada.Characters.Latin_1; with Display_Warning; use Display_Warning; with Texaco; -- For GetKey input function with Extools; use Extools; package body Proce...
----------------------------------------------------------------------- -- sqlbench -- SQL Benchmark -- 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 except in complianc...
pragma Ada_2012; package body DDS.Request_Reply.Requester.Impl is ----------------------------- -- Get_Request_Data_Writer -- ----------------------------- function Get_Request_Data_Writer (Self : not null access Ref) return DDS.DataWriter.Ref_Access is begin pragma Compile_Time_Warning (...
-- { dg-do compile } package body Discr14 is procedure ASSIGN( TARGET : in out SW_TYPE_INFO ; SOURCE : in SW_TYPE_INFO ) is begin TARGET := new T_SW_TYPE_DESCRIPTOR( SOURCE.SW_TYPE, SOURCE.DIMENSION ); end ASSIGN; end Discr14;
with card_dir; use card_dir; package Coords is --variable(s) type Coord is Private; --1, function Get_X(C: Coord) return Integer; function Get_Y(C: Coord) return Integer; --2, procedure Set_X(C: in out Coord;I:Integer); procedure Set_Y(C: in out Coord;I:Integer); --3, function Get_Distance(C:Coord;C2:Coord)...
procedure Print_Logic(A : Boolean; B : Boolean) is begin Put_Line("A and B is " & Boolean'Image(A and B)); Put_Line("A or B is " & Boolean'Image(A or B)); Put_Line("A xor B is " & Boolean'Image(A xor B)); Put_Line("not A is " & Boolean'Image(not A)); end Print_Logic;
package Giza.Bitmap_Fonts.FreeSans8pt7b is Font : constant Giza.Font.Ref_Const; private FreeSans8pt7bBitmaps : aliased constant Font_Bitmap := ( 16#FF#, 16#D0#, 16#B6#, 16#D0#, 16#13#, 16#09#, 16#04#, 16#8F#, 16#F3#, 16#21#, 16#10#, 16#99#, 16#FE#, 16#24#, 16#12#, 16#19#, 16#00#, 16#10#, 16#FB#, 16#5C#, 1...
-- -- -- package GNAT.Sockets.Server Copyright (c) Dmitry A. Kazakov -- -- Implementation Luebeck -- -- Winter, 2012 -- -- ...
with Interfaces.C; use Interfaces.C; with System; private with GStreamer.GST_Low_Level.Gstreamer_0_10_Gst_Rtsp_Gstrtsptransport_H; with Ada.Finalization; package GStreamer.Rtsp.Transport is type GstRTSPTransport_Record is tagged private; type GstRTSPTransport is access all GstRTSPTransport_Record'Class; type ...
-- { dg-do compile } with Aggr16_Pkg; use Aggr16_Pkg; package body Aggr16 is type Arr is array (1 .. 4) of Time; type Change_Type is (One, Two, Three); type Change (D : Change_Type) is record case D is when Three => A : Arr; when Others => B : Boolean; end case; end reco...
with Zstandard.Functions; use Zstandard.Functions; with Ada.Text_IO; use Ada.Text_IO; procedure Demo_Ada is message : constant String := "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus " & "tempor erat quis metus faucibus, a elementum odio varius. Donec " & "ultrices posuere nisl...
-- Abstract : -- -- Ada language specific indent options and functions -- -- [1] ada.wy -- [2] ada-indent-user-options.el -- -- Copyright (C) 2017 - 2020 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License...
package App is procedure Run_Local; procedure Run_Remote; end App;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- util-concurrent-arrays -- Concurrent Arrays -- Copyright (C) 2012, 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 ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- { dg-do run } with GNAT.Table; with Ada.Text_IO; use Ada.Text_IO; procedure test_table1 is type Rec is record A, B, C, D, E : Integer := 0; F, G, H, I, J : Integer := 1; K, L, M, N, O : Integer := 2; end record; R : Rec; package Tab is new GNAT.Table (Rec, Positive, 1, 4, ...
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with LSP.Messages; with Incr.Nodes.Tokens; with Ada_LSP.Documents; package Ada_LSP.Completions is type Context is tagged limite...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2020, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------- -- Copyright (C) 2020-2030, per.s.sandberg@bahnhof.se -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure FreeCell is type State is mod 2**31; type Deck is array (0..51) of String(1..2); package Random is procedure Init(Seed: State); function Rand return State; end Random; package body Random is S : State := State'First; procedure Init(See...
--------------------------------------------------------------- -- Author: Matthew Bennett --- -- Class: CSC410 Burgess --- -- Date: 09-01-04 Modified: 9-05-04 --- -- Desc: Assignment 1:DEKKER's ALGORITHM --- -- a simple implementation of --- -- Dekker...
--------------------------------------------------------------------------------- -- Copyright 2004-2005 © Luke A. Guest -- -- This code is to be used for tutorial purposes only. -- You may not redistribute this code in any form without my express permission. ------------------------------------------------------------...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. package Apsepp.Test_Reporter_Class.Stub is type Test_Reporter_Stub is limited new Test_Reporter_Interfa with private; overriding function Is_Conflicting_Node_Tag (Obj : Test_Reporter_Stub; ...
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 dichoexp is type stringptr is access all char_array; procedure PInt(i : in Integer) is begin String'Write (Text_Streams.St...
-- Galois Linear Feedback Shift Register -- https://en.wikipedia.org/wiki/Linear-feedback_shift_register#Galois_LFSRs package body Random is State : UInt16 := 16#DEAD#; function Next return UInt16 is Taps : constant UInt16 := 16#B400#; LFSR : UInt16 := State; LSB : UInt16; begin...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with bits_types_struct_timespec_h; package bits_types_struct_itimerspec_h is -- POSIX.1b structure for timer start values and intervals. type itimerspec is record it_interval : aliased bits_types_struct_timespec_h.timespec...
PACKAGE TTY IS PROCEDURE OutS; END TTY; PACKAGE BODY TTY IS PROCEDURE OutS is BEGIN null; END OutS; END TTY; WITH TTY; PROCEDURE Test IS PACKAGE IO RENAMES TTY; BEGIN IO.OutS; END Test;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
----------------------------------------------------------------------- -- ado-queries-tests -- Test loading of database queries -- Copyright (C) 2011, 2012, 2013, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
with Raylib; package Surface.Window is type Instance is abstract new Actor with private; procedure Attach (Application : in out Reference); procedure Run (Self : in out Instance'Class); procedure Title (Self : in out Instance ; Title : String); procedure Background_Color (Self : in out Instance ; Tint ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017-2019, AdaCore -- -- -- -- ...
--***************************************************************************** --* --* PROJECT: BingAda --* --* FILE: q_csv.ads --* --* AUTHOR: Javier Fuica Fernandez --* --* NOTES: This code was taken from Rosetta Code and modifyied to fix -- BingAda needs and Style Guide. --* --...
package body System.Storage_Pools is pragma Suppress (All_Checks); procedure Allocate_Any ( Pool : in out Root_Storage_Pool'Class; Storage_Address : out Address; Size_In_Storage_Elements : Storage_Elements.Storage_Count; Alignment : Storage_Elements.Storage_Count) is begin Alloca...
separate (JSA.Generic_Optional_Value) protected body Buffer is procedure Clear is begin if Stored.Set then Stored := (Set => False); Changed := True; end if; end Clear; entry Get (Item : out Instance) when Changed is begin Item := Stored; Changed := False; ...
-- { dg-do compile } -- { dg-options "-gnato" } with Namet; use Namet; function Overflow_Sum2 return Hash_Index_Type is Even_Name_Len : Integer; begin if Name_Len > 12 then Even_Name_Len := (Name_Len) / 2 * 2; return (((((((((((( Character'Pos (Name_Buffer (01))) * 2 + Character'Pos (Name_Buffer...