content
stringlengths
23
1.05M
----------------------------------------------------------------------- -- util-strings-transforms -- Various Text Transformation Utilities -- Copyright (C) 2015, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
-- Abstract : -- -- See spec -- -- Copyright (C) 2017 - 2019 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 as published by the Free -- Software Foundation; either version 3, or (at your option) a...
package calc with SPARK_Mode is function calc (f1, f2: Float) return Float with Pre => f1 in -1000.0 .. 1000.0 and f2 in -1000.0 .. 1000.0; end calc;
-- 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...
-- Copyright (c) 2013, 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: -- -- * Redistributions of source code must retain the above copyright notice, this -- lis...
----------------------------------------------------------------------- -- awa-setup -- Setup and installation -- 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 exc...
with Ada.Assertions; use Ada.Assertions; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package body Rejuvenation.Nested is function Remove_Nested_Flags (Source : String; On_Flag : String; Off_Flag : String; Depth : Natural := 0) return ...
with Gdk.Event; with Gdk.Types.Keysyms; with Gtkada.Dialogs; with Gtkada.File_Selection; with Gtk.Dialog; with Gtk.File_Chooser; with Gtk.File_Chooser_Dialog; use Gtk.File_Chooser_Dialog; with Gtk.List_Store; with Gtk.Message_Dialog; with Gtk.Main; with Gtk.Status_Bar; with Gtk.Text_Iter; with Gtk.Tree_Model; with Gt...
-- { dg-do compile } -- { dg-options "-g" } with Taft_Type3_Pkg; use Taft_Type3_Pkg; procedure Taft_Type3 is subtype S is String (1..32); Empty : constant S := (others => ' '); procedure Proc (Data : in out T) is begin null; end; task type Task_T is entry Send (Data : in out T); end; task body Ta...
with Ada.Text_IO; use Ada.Text_IO; procedure Man_Or_Boy is function Zero return Integer is begin return 0; end Zero; function One return Integer is begin return 1; end One; function Neg return Integer is begin return -1; end Neg; function A ( K : Integer; X1, X2, X3, X4, X...
----------------------------------------------------------------------- -- asf-factory -- Component and tag factory -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
with AVR, AVR.MCU; use AVR; with Interfaces; use Interfaces; package Hardware.PWM is -- Set Servo_ISR as the TIMER1 COMPA handler. See page 101 of the -- ATmega2560 datasheet for more details. procedure Servo_ISR; pragma Machine_Attribute (Entity => Servo_ISR, Attribute_N...
with Courbes.Singletons; use Courbes.Singletons; with Courbes.Droites; use Courbes.Droites; with Courbes.Bezier_Cubiques; use Courbes.Bezier_Cubiques; with Courbes.Bezier_Quadratiques; use Courbes.Bezier_Quadratiques; package Courbes.Visiteurs is type Visiteur_Courbe is abstract tagged null record; procedure ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2019, Fabien Chouteau -- -- -- -- ...
-- //////////////////////////////////////////////////////////// -- // -- // 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...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2020 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 Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Google_Naive; procedure test_google_naive is type Double is digits 10 ; package Double_Text_Io is new Ada.Text_IO.Float_IO (Double); use Double_Text_Io; Fichier : constant String := "Fichier_Test.net"...
package body SomeClass is function someFunction (Self : in SomeClass) return Integer is begin return Self.someAttribute; end someFunction; procedure someProcedure (Self : in SomeClass) is begin null; end someProcedure; procedure someUnrelatedProcedure is begin null; en...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, Universidad Politécnica de Madrid -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package body GL.Text.UTF8 is type Byte is mod 2**8; subtype Surrogate_Halves is UTF8_Code_Point range 16#D800# .. 16#DFFF#; procedure Read (Buffer : String; Position : in out Positive; Result : out UTF8_Code_Point) is Cur : Byte := Character'Pos (Buffer (Position)); Additional_B...
with Asis; with A_Nodes; with Dot; package Asis_Tool_2.Context is type Class is tagged limited private; procedure Process (This : in out Class; Tree_File_Name : in String; Outputs : in Outputs_Record); private type Class is tagged limited -- Initialized rec...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with System; use System; package body Deferred_Const2_Pkg is procedure Dummy is begin null; end; begin if S'Address /= I'Address then raise Program_Error; end if; end Deferred_Const2_Pkg;
with System.Storage_Elements; package Array14_Pkg is package SSE renames System.Storage_Elements; function Parity_Byte_Count return SSE.Storage_Count; Length2 : constant SSE.Storage_Count := Parity_Byte_Count; subtype Encoded_Index_Type2 is SSE.Storage_Count range 1 .. Length2; subtype Encoded_Type2 is S...
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- package Graphics_Setup is procedure Initialize_Graphics (Operations : access procedure); procedure Window_Resize (Size_x, Size_y : Integer); end Graphics_Setup;
--------------------------------------------------------------------------- -- package body QR_Symmetric_Eigen, QR based eigen-decomposition -- Copyright (C) 2018 Jonathan S. Parker -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided...
with Ada.Text_Io; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; procedure Sort_Composite is type Composite_Record is record Name : Unbounded_String; Value : Unbounded_String; end record; type Pairs_Array is array(Positive range <>) of Composite_Record; procedure Swap(Left, Right : in...
with Ada.Text_IO, Ada.Numerics.Discrete_Random; -- can play human-human, human-computer, computer-human or computer-computer -- the computer isn't very clever: it just chooses a legal random move procedure Tic_Tac_Toe is type The_Range is range 1 .. 3; type Board_Type is array (The_Range, The_Range) of Char...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- C32107A.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...
-- { dg-do compile } with Limited_With4_Pkg; package body Limited_With4 is procedure Proc1 (A : Limited_With4_Pkg.Rec12 ; I : Integer) is begin if A.R.I /= I then raise Program_Error; end if; end; function Func1 (I : Integer) return Limited_With4_Pkg.Rec12 is begin return (I => I, R => (...
------------------------------------------------------------------------------- -- Copyright (c) 2019, Daniel King -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions of s...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
-- ----------------------------------------------------------------- -- -- -- -- This is free software; you can redistribute it and/or -- -- modify it under the terms of the GNU General Public -- -- License as published by the ...
package body any_Math.any_Geometry is function Image (Self : in Triangle) return String is begin return "(" & Vertex_Id'Image (Self (1)) & "," & Vertex_Id'Image (Self (2)) & "," & Vertex_Id'Image (Self (3)) & ")"; end Image; function Image (Self : in Triangles...
with any_Math.any_Analysis; package float_Math.Analysis is new float_Math.any_Analysis; pragma Pure (float_Math.Analysis);
with Ada.Numerics.Discrete_Random; function lanzar_dado (dado: in out Integer) return Integer is subtype rango is Integer range 1..6; package miRango is new Ada.Numerics.Discrete_Random(rango); semilla : miRango.generator; begin miRango.reset(semilla); dado:= miRango.random(semilla); return dado...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Access_Types; with Program.Lexical_Elements; with Program.Elements.Subtype_Indications; package Program.Element...
------------------------------------------------------------------------------ -- -- -- J E W L . M E S S A G E _ H A N D L I N G -- -- -- ...
with Gtk.Widget; package aIDE.Style is procedure define; procedure apply_CSS (Widget : not null access Gtk.Widget.Gtk_Widget_Record'Class); end aIDE.Style;
with Ada.Exception_Identification.From_Here; with Ada.Exceptions.Finally; with System.Formatting; with System.UTF_Conversions; package body Ada.Text_IO.Formatting is use Exception_Identification.From_Here; use type System.Long_Long_Integer_Types.Word_Integer; use type System.Long_Long_Integer_Types.Word_Unsign...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2020 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 Ada.Real_Time; use Ada.Real_Time; with System; use System; package pulse_interrupt is --------------------------------------------------------------------- ------ declaracion de procedimientos de acceso a DISPOSITIVOS E/S -- -----------------------------------------------------------------...
with System.Long_Long_Elementary_Functions; with System.Long_Long_Integer_Types; package body Ada.Numerics.Distributions is use type System.Long_Long_Integer_Types.Long_Long_Unsigned; subtype Long_Long_Unsigned is System.Long_Long_Integer_Types.Long_Long_Unsigned; function popcountll (x : Long_Long_Uns...
----------------------------------------------------------------------- -- ADO Statements -- Database statements -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Licens...
with Ada.Integer_Text_IO; with Ada.Text_IO; package body Problem_18 is package IO renames Ada.Text_IO; package I_IO renames Ada.Integer_Text_IO; procedure Solve is num_rows : constant Positive := 15; cache : Array (1 .. num_rows) of Natural; input : IO.File_Type; begin for item in ca...
package body Depends_Exercise is procedure Initialize is begin Stack_Pointer := 0; Stack := (others => 0); end Initialize; procedure Push (X : in Integer) is begin Stack_Pointer := Stack_Pointer + 1; Stack (Stack_Pointer) := X; end Push; function Is_Full return Boolean is...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package body CSV is function Line(S: String; Separator: Character := ',') return Row is (Length => S'Length, Str => S, Fst => S'First, Lst => S'Last, Nxt => S'First, Sep => Separator); function Item(R: Row) return String is (R.Str(R.Fst .. R.Lst)); function Next(R: in out ...
pragma License (Unrestricted); -- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux) with Ada.Command_Line; with Ada.IO_Exceptions; with Ada.Streams.Naked_Stream_IO; with C.sys.types; package System.Native_Processes is use type C.sys.types.pid_t; subtype Command_Type is C.char_ptr_ptr; pr...
-- C38005A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
package Agar.Core.Config is function Load return Boolean; function Save return Boolean; end Agar.Core.Config;
----------------------------------------------------------------------- -- are-generator-c-tests -- Tests for C generator -- Copyright (C) 2021 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 fil...
------------------------------------------------------------------------------ -- Copyright (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
pragma License (Unrestricted); -- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux) private with C.pthread; package System.Synchronous_Objects is pragma Preelaborate; -- mutex type Mutex is limited private; procedure Initialize (Object : in out Mutex); procedure Finalize (Object ...
-- 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...
with openGL.Light, openGL.Visual, openGL.Model.Sphere.lit_colored_textured, openGL.Model.Sphere.lit_colored, openGL.Palette, openGL.Demo; procedure launch_render_Lighting -- -- Exercise the rendering of lit models. -- is use openGL, openGL.Model, openGL.Math, ope...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Institution: Technische Universitaet Muenchen -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- -- Authors: Emanuel Regnath (emanuel.regnath@tum.de) -- -- Description: Generic vector package -- -- ToDo: -- [ ] Implementation with Ada.Numerics.Generic_Elementary_Functions; generic type ...
with Math; use Math; with Courbes.Visiteurs; use Courbes.Visiteurs; package body Courbes.Droites is function Ctor_Droite (Debut, Fin : Point2D) return Droite is Diff : constant Point2D := Fin - Debut; Longueur : constant Float := Hypot(Diff); begin return (Debut => Debut, ...
with Ada.Unchecked_Conversion; with System.Formatting.Address; with System.Long_Long_Integer_Types; with System.Termination; package body Ada.Containers.Binary_Trees.Arne_Andersson.Debug is subtype Word_Unsigned is System.Long_Long_Integer_Types.Word_Unsigned; function To_Address (Value : Node_Access) return Sy...
------------------------------------------------------------------------------ -- Copyright (c) 2011, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with Tarmi.Environments; use Tarmi.Environments; package Tarmi.Combiners is type Combiner_R is abstract new Datum_R with null record; type Combiner is not null access constant Combiner_R'Class; type Operative_R is new Combiner_R with record Param_Tree_Formals : Datum; Dyn_Env_Formal ...
with Ada.Text_IO; procedure Count_The_Coins is type Counter_Type is range 0 .. 2**63-1; -- works with gnat type Coin_List is array(Positive range <>) of Positive; function Count(Goal: Natural; Coins: Coin_List) return Counter_Type is Cnt: array(0 .. Goal) of Counter_Type := (0 => 1, others => 0); ...
pragma License (Unrestricted); -- optional runtime unit with System; package nosig is pragma Preelaborate; procedure Install_Exception_Handler (SEH : System.Address) is null with Export, -- for weak linking Convention => Ada, External_Name => "__drake_install_exception_handler"; proc...
------------------------------------------------------------------------------ -- 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 -- -- ...
package GESTE_Fonts.FreeSerif12pt7b is Font : constant Bitmap_Font_Ref; private FreeSerif12pt7bBitmaps : 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#01#, 16#80#, 16#00#, 16#07#, 16#00#,...
----------------------------------------------------------------------- -- mat-frames - Representation of stack frames -- Copyright (C) 2014, 2015, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use...
package body gel.remote.World is function refined (Self : in coarse_Vector_3) return math.Vector_3 is begin return (math.Real (Self (1)), math.Real (Self (2)), math.Real (Self (3))); end refined; function coarsen (Self : in math.Vector_3) return coarse_Vector_3 is...
with Ada.Text_IO; with Ada.Unchecked_Deallocation; with ARM_Output; with ARM_Contents; package ARM_Texinfo is -- -- Ada reference manual formatter. -- -- This package defines the TEXINFO output object. -- Output objects are responsible for implementing the details of -- a particular fo...
package Vect15 is type Sarray is array (1 .. 4) of Long_Float; for Sarray'Alignment use 16; procedure Add (X, Y : Sarray; R : out Sarray); end Vect15;
package body Setup is protected body Motor_Setup is procedure Calibrate_Motors_If_Required is begin if not Setup_Done then --Calibrating left and right ESC Put("Start Setup"); delay 4.0; --Write(3,1000); ...
-- -- Copyright (C) 2015 secunet Security Networks AG -- -- 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 2 of the License, or -- (at your option) any later version. -- -- This ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt with AdaBase.Results.Field; with Ada.Containers.Vectors; with Ada.Containers.Indefinite_Hashed_Maps; with Ada.Strings.Hash; package AdaBase.Results.Sets is package ARF renames AdaBase.Results.Field; typ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
generic type Character_Type is (<>); -- Character, Wide_Character, Wide_Wide_Character (or whatever) type String_Type is array(Positive range <>) of Character_Type; Carriage_Return: in Character_Type; -- CR in the corresponding type Line_Feed: in Character_Type; -- LF in the corresponding type type Coder_Base is ...
with Ada.Text_IO; procedure A_Plus_B is type Small_Integers is range -2_000 .. +2_000; subtype Input_Values is Small_Integers range -1_000 .. +1_000; package IO is new Ada.Text_IO.Integer_IO (Num => Small_Integers); A, B : Input_Values; begin IO.Get (A); IO.Get (B); IO.Put (A + B, Width => 4, Base...
package Forward_AD.Hamiltonian is function Func (Q, V : in Real_Array; T : in Real) return AD_Type; end Forward_AD.Hamiltonian;
with OpenAL.Types; package OpenAL.Error is type Error_t is (No_Error, Invalid_Name, Invalid_Enumeration, Invalid_Value, Invalid_Operation, Out_Of_Memory, Unknown_Error); -- proc_map : alGetError function Get_Error return Error_t; private function Map_Constant_To_Error (Err...
with Ada.Text_IO; package body HIL.UART is procedure configure is null; procedure write (Device : in Device_ID_Type; Data : in Data_Type) is begin --ada.Text_IO.Put (String (Data)); null; end write; procedure read (Device : in Device_ID_Type; Data : out Data_Type; n_read : out Natural) is ...
----------------------------------------------------------------------- -- ado-utils-streams -- IO stream utilities -- Copyright (C) 2018, 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 fil...
-- { dg-do run } -- { dg-options "-gnatws -gnatVa" } pragma Initialize_Scalars; procedure Invalid1 is X : Boolean; A : Boolean := False; procedure Uninit (B : out Boolean) is begin if A then B := True; raise Program_Error; end if; end; begin -- first, check that initialize_scalars ...
------------------------------------------------------------------------------ -- AGAR CORE LIBRARY -- -- A G A R . E R R O R -- -- B o d y -- -- ...
with Interfaces.C_Streams; with Simple_Logging; use Simple_Logging; with Simple_Logging.Decorators; package body CLIC.TTY is use all type ANSI.Colors; use all type ANSI.Styles; Use_Color : Boolean := False; -- Err on the safe side function Regular_Decorator (Level : Simple_Logging.Levels; ...
with Raylib; with Surface.elements; with tracker.datasource; package body tracker.presentation is PURE_BLUE : constant := 16#0000FFFF#; PURE_RED : constant := 16#FF0000FF#; PURE_GREEN : constant := 16#00FF00FF#; WHITE : constant := 16#FFFFFFFF#; BLUE : constant := 16#447FFFFF#; GOLD : constant := 1...
with HAL; use HAL; with STM32.GPIO; use STM32.GPIO; with STM32.Timers; use STM32.Timers; with STM32.PWM; use STM32.PWM; with STM32.CORDIC; use STM32.CORDIC; with STM_Board; use STM_Board; with Inverter_ADC; use Inverter_ADC; package Inverter_PWM is ----------------- -- Definitions -- -----...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Directories; package body Torrent.Storages is use type Ada.Streams.Stream_Element_Count; protected body Storage is ...
-- -- A characteristic of Ada task is that if an exception happens they -- silently die. This can make debugging difficult. The procedure -- Install_Reaper installs a handler that print some useful information -- to standard error when a task dies. -- package Utilities.Task_Reaper is type Verbosity_Level is (Ex...
----------------------------------------------------------------------- -- import -- Import some HTML content and generate Wiki text -- Copyright (C) 2015, 2016, 2020, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License");...
with Text_IO; use Text_IO; procedure Nextdate is type Month_Type is (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec); subtype Day_Subtype is Integer range 1 .. 31; type Date is record Day : Day_Subtype; Month : Month_Type; Year : Positive; end record; ...
package body afrl.cmasi.keyValuePair is function getFullLmcpTypeName (this : KeyValuePair) return String is ("afrl.cmasi.keyValuePair.KeyValuePair"); function getLmcpTypeName (this : KeyValuePair) return String is ("KeyValuePair"); function getLmcpType (this : KeyValuePair) return UInt32_t is (CMASIEnum'Pos...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A...
pragma License (Unrestricted); -- implementation unit package Ada.Containers.Binary_Trees.Simple is pragma Preelaborate; Node_Size : constant := Standard'Address_Size * 3; type Node is new Binary_Trees.Node; for Node'Size use Node_Size; procedure Insert ( Container : in out Node_Access; ...
----------------------------------------------------------------------- -- awa-workspaces-module -- Module workspaces -- Copyright (C) 2011, 2012, 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 ...
with Cairo; use Cairo; with Cairo.Png; use Cairo.Png; with Cairo.Image_Surface; use Cairo.Image_Surface; procedure XorPattern is type xorable is mod 256; Surface : Cairo_Surface; Data : RGB24_Array_Access; Status : Cairo_Status; Num : Byte; begin Data := new RGB24_Array(0..256*256-1); for x in Natu...
procedure Access_Variable is type Button is null record; type ButtonRef is access all Button; procedure Press (B : ButtonRef) is begin null; end Press; Red_Button : aliased Button; begin Press(Red_Button'Access); end Access_Variable;
-- This file is an Ada file containing test data -- for etags (Ada83 and Ada95 support). package Pkg1 is type Private_T is private; package Inner1 is procedure Private_T; end Inner1; package Inner2 is task Private_T; end Inner2; type Public_T is record A : Integer; B : Integer; ...
with Ada.Text_IO; use Ada.Text_IO; procedure Adventofcode.Day_24.Main is begin Put_Line ("Day-24"); end Adventofcode.Day_24.Main;
with Ada.Tags; with Generic_Logging; with Langkit_Support.Slocs; with Langkit_Support.Text; With System.Address_Image; package body Lal_Adapter.Node is package Slocs renames Langkit_Support.Slocs; package Text renames Langkit_Support.Text; --------------------------------------------------------------------...