content
stringlengths
23
1.05M
with Interfaces.C; private package Glfw.Window_Hints is -- Return Codes that can be passed back from GLFW operations type Enum_Window_Hints is ( FOCUSED, RESIZABLE, VISIBLE, DECORATED, AUTO_ICONIFY, FLOATING, MAXIMIZED, CENTER_CURSOR...
with AdaM.Any, AdaM.Entity, AdaM.Context, AdaM.library_Item, AdaM.Subunit, Ada.Containers.Vectors, Ada.Streams; package AdaM.compilation_Unit is type Item is new AdaM.Any.item with private; -- View -- type View is access all Item'Class; procedure View_write (Stre...
with Ada.Integer_Text_IO; with String_Int; procedure Euler25 is Max_Digits: constant Positive := 1000; use type String_Int.Number; A, B: String_Int.Number(1 .. Max_Digits) := (Max_Digits => '1', others => '0'); Term: Positive := 3; begin loop declare Sum: constant String_Int.Num...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Interfaces.C.Pointers; with GL.Vectors; with GL.Matrices; generic type Element_Type is private; type Index_Type is (<>); with function "+" (Left, Right : Element_Type) return Element_T...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Wide_Wide_Characters.Handling; with Program.Source_Buffers; package body Program.Lexical_Handlers is use all type Program.Scanner_Destination...
--with Ada.Dispatching; with Ada.Exceptions; with Ada.Text_IO; with Ada.Unchecked_Deallocation; package body Futures is function Create (Callback : Callback_Function) return Object is begin return Self : Object := Object' (Callback => Callback, others => <>); end Create;...
with Ada.Characters.Latin_9; package body Readable_Sequences.String_Sequences is procedure Fill_Position (Seq : in out Sequence) is use Ada.Characters.Latin_9; Old_Position : constant Cursor := Seq.Current_Position; Current : Position_Type := Position_Type'(Line => 1, ...
-- 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...
-- remote_server.ads - Main package for use by NymphRPC clients (Spec). -- -- 2017/07/01, Maya Posch -- (c) Nyanko.ws package NymphRemoteServer is function init(logger : in LogFunction, level : in integer, timeout: in integer) return Boolean; function sync(handle : in integer, result : out string) return Boolean;...
with Glib; use Glib; with Cairo; use Cairo; with Cairo.Png; use Cairo.Png; with Cairo.Image_Surface; use Cairo.Image_Surface; procedure YinYang is subtype Dub is Glib.Gdouble; procedure Draw (C : Cairo_Context; x : Dub; y : Dub; r : Dub) is begin Arc (C, x, y, r + 1.0, 1.571, 7.854); Set_Source_Rgb ...
-- Standard Ada library specification -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. -- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaRe...
-- 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...
----------------------------------------------------------------------- -- mat-readers-tests -- Unit tests for MAT readers -- Copyright (C) 2014, 2015, 2019, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you m...
with physics.Object, ada.unchecked_Deallocation; package body gel.hinge_Joint is use gel.Joint; procedure define (Self : access Item; in_Space : in std_physics.Space.view; Sprite_A, Sprite_B : access gel.Sprite.item'Class; ...
----------------------------------------------------------------------- -- applications-main-configs -- Configuration support for ASF Applications -- Copyright (C) 2009, 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (t...
-- { dg-do run } -- { dg-options "-O2" } with Opt12_Pkg; use Opt12_Pkg; procedure Opt12 is Static_Target : Static_Integer_Subtype; begin Static_Target := Static_Integer_Subtype(Fix_Half); if not Equal(Static_Target, 1) then raise Program_Error; end if; end Opt12;
with lace.Text.all_Tokens; package body lace.Text.utility is function replace (Self : in Text.item; Pattern : in String; By : in String) return Text.item is Tail_matches_Pattern : Boolean := False; begin -- Corner case: Pattern exactly matc...
-- Institution: Technische Universität München -- Department: Real-Time Computer Systems (RCS) -- Project: StratoX -- Authors: Martin Becker (becker@rcs.ei.tum.de) with Interfaces; use Interfaces; with HIL; -- @summary -- read/write from/to a non-volatile location. Every "variable" -- has one byte. Wh...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
with impact.d2.Solid, impact.d2.Types; package impact.d2.contact.Solver -- -- -- is use Impact.d2.Types; type Solid_view is access all Solid.b2Body'Class; type Manifold_view is access all collision.b2Manifold; type b2ContactPositionConstraint is record localPoints ...
with RTCH.Maths.Tuples; package RTCH.Maths.Points with Pure is subtype Point is Tuples.Tuple; -- TODO - Make this a type? function Make_Point (X, Y, Z : Float) return Point is (Point'(X => X, Y => Y, Z => Z, W => 1.0)); end RTCH.Maths.Points;
private with Interfaces.C, Ada.Containers.Vectors; package FLTK.Widgets.Groups.Text_Displays.Text_Editors is type Text_Editor is new Text_Display with private; type Text_Editor_Reference (Data : not null access Text_Editor'Class) is limited null record with Implicit_Dereference => Data; ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Unchecked_Deallocation; with League.Strings; with Slim.Menu_Commands; with Slim.Players.Displays; package body Slim.Menu_V...
package Stack_Usage3_Pkg is subtype Small_String is String (1..80); function Diag (S : String) return Small_String; end Stack_Usage3_Pkg;
package body Life_Pkg is ------------- -- Gtk_New -- ------------- procedure Gtk_New (Life_Value : out Life_Access) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Gtk_New unimplemented"); end; ---------------- -- Initialize -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package body Ada.Enumeration is pragma Suppress (All_Checks); package body Arithmetic is function "+" (Left : Enum; Right : Distance) return Enum is begin return Enum'Val (Enum'Pos (Left) + Right); end "+"; function "+" (Left : Distance; Right : Enum) return Enum is begin...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2015 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; package body Printable_Calendar is use Ada.Calendar; package F renames Ada.Calendar.Formatting; function Days_Per_Month(Year: Year_Number; Month: Month_Number) return Day_Number is begin case Month is when 1 | 3 | 5 | 7 | 8 | 10 | 12 => return 31...
with Interfaces; -- Offloaded Log Formatting package Offmt is procedure Log (Str : String) is null; subtype U8 is Interfaces.Unsigned_8; subtype U16 is Interfaces.Unsigned_16; subtype U32 is Interfaces.Unsigned_32; -- Danger Zone -- type Log_Id is new U16; procedure Start_Frame (Id : Log_Id...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
With Ada.Text_IO; Use Ada.Text_IO; With Ada.Integer_Text_IO; Use Ada.Integer_Text_IO; procedure Program is begin -- your code goes here end Program;
-- Generated at 2015-06-24 18:19:13 +0000 by Natools.Static_Hash_Maps -- from src/natools-s_expressions-templates-dates-maps.sx function Natools.Static_Maps.S_Expressions.Templates.Dates.T return Boolean; pragma Pure (Natools.Static_Maps.S_Expressions.Templates.Dates.T);
-- 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...
package Opt56 is type Vector is array (Positive range <>) of Float; function F (Values : Vector) return Boolean; end Opt56;
When adacontrol can build with the ravenports base compiler delete this patch. --- src/project_file-factory.ads.orig 2019-10-30 08:19:42 UTC +++ src/project_file-factory.ads @@ -36,10 +36,10 @@ -- To have full support of GNAT .gpr project files, -- uncomment the following lines : -with Project_File.Factory_Full; -...
pragma License (Unrestricted); -- implementation unit specialized for FreeBSD package System.Native_Directories.Copying is pragma Preelaborate; procedure Copy_File ( Source_Name : String; Target_Name : String; Overwrite : Boolean := True); procedure Replace_File ( Source_Name : Strin...
------------------------------------------------------------------------------- -- Copyright (c) 2016 Daniel King -- -- 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...
-------------------------------------------------------------------------------------------------------------------- -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- openapi-server -- Rest server support -- Copyright (C) 2017, 2020, 2022 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 ...
-- { dg-do run } with Prot3_Pkg; use Prot3_Pkg; procedure Prot3 is begin P.Foo (4); end;
-- SPDX-FileCopyrightText: 2022 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- -- Generic module for Bluetooth Low Energy, Peripheral role. -- Byte array type is provided as a formal parameters. -- Enumeration if provided for suppor...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Pascal is type Node; type List is access Node; type Node is record Value: Integer; Next: List; end record; function Get(L: List; I: Integer) return Integer is begin if I = 0 then return L.Value; end if; return Get(L.next, I - 1); ...
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Characters.Wide_Wide_Latin_1; with League.String_Vectors; with League.Strings; package body LSP_Documents is function "...
----------------------------------------------------------------------- -- ado-queries -- Database Queries -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may n...
-- { dg-do run } procedure Concat_Length is type Byte is mod 256; for Byte'Size use 8; type Block is array(Byte range <>) of Integer; C0: Block(1..7) := (others => 0); C1: Block(8..255) := (others => 0); C2: Block := C0 & C1; begin if C2'Length /= 255 then raise Program_Error; end if; end;
with Ada.Directories; use Ada.Directories; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Containers.Indefinite_Vectors; use Ada.Containers; package Extract_List_Files is -- Simple vector of Strings package String_Vector is new Indefinite_Vectors (Natural, String); -- Print the xml list fi...
with collada.Library.geometries, collada.Library.controllers, collada.Library.animations, collada.Library.visual_scenes; package collada.Libraries -- -- Provides a container for the specific collada library packages. -- is type Item is record Geometries : collada.Library.geome...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Characters.Wide_Wide_Latin_1; with League.Text_Codecs; with Slim.Message_Visiters; package body Slim.Messages.strm is ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-------------------------------------------------------------------------------- -- * Prog name dfttest.adb -- * Project name dfttest -- * -- * Version 1.0 -- * Last update 11/9/08 -- * -- * Created by Adrian Hoe on 11/9/08. -- * Copyright (c) 2008 AdaStar Informatics http://adastarinformatics.com -- * ...
with Lv.Style; package Lv.Objx.Led is subtype Instance is Obj_T; subtype Brightness is Uint8_T range 0 .. 255; -- Create a led objects -- @param par pointer to an object, it will be the parent of the new led -- @param copy pointer to a led object, if not NULL then the new object will be copied fro...
-- { dg-do run } procedure Alignment10 is type Short_T is mod 2 ** 16; for Short_T'Size use 16; for Short_T'Alignment use 1; subtype Short_Sub_T is Short_T range 1000 .. 1005; A : aliased Short_T := 1000; B : Short_Sub_T; for B'Address use A'Address; pragma Import (Ada, B); b...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- -- -- ...
with Matrices; pragma Elaborate_All (Matrices); package Matrices_4D is new Matrices (4);
with openGL.Texture; package openGL.Frame_Buffer is type Item is tagged private; null_Buffer : constant Item; --------- --- Forge -- package Forge is function to_Frame_Buffer return Item; function to_Frame_Buffer (Width, Height : in Positive) r...
package body tests is testVal : Unsigned_64 := 0; procedure runTests is use ASCII; parseResult : Boolean; codeGenResult : Boolean; errmsg : Unbounded_String; insts : InstructionVector.Vector; -- a bit hacky... short-hand for To_Unbounded_String function...
-- Copyright (c) 1990 Regents of the University of California. -- All rights reserved. -- -- The primary authors of ayacc were David Taback and Deepak Tolani. -- Enhancements were made by Ronald J. Schmalz. -- -- Send requests for ayacc information to ayacc-info@ics.uci.edu -- Send bug reports for ayacc to ...
package body Globals_Example3 is function Unrelated (The_I : Globals_Example1.Itype) return Globals_Example1.Itype is begin return 5; end Unrelated; end Globals_Example3;
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- -- @summary -- Version Trees -- -- @description -- The package provides Version and Version_Tree types. -- Nested generic pa...
----------------------------------------------------------------------- -- akt-commands-info -- Info command to describe the current configuration -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
-- Euler1 in Ada with Ada.Integer_Text_IO, Ada.Numerics.Elementary_Functions; procedure Euler1_5 is type Integers is array (Natural range <>) of Integer; function aRange(size : in Integer; ints : in out Integers) return Integers is begin if size > 0 then ints(size) := size; return aRange(size-1, ints)...
----------------------------------------------------------------------- -- keystore-repository -- Repository management for the keystore -- 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 n...
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 euler08 is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Streams.S...
----------------------------------------------------------------------- -- mat-events-timelines - Timelines -- Copyright (C) 2015, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except...
------------------------------------------------------------------------------ -- -- -- Copyright (c) 2014-2017 Vitalij Bondarenko <vibondare@gmail.com> -- -- -- ----...
with aIDE.GUI, AdaM.exception_Handler, glib, glib.Error, gtk.Builder, gdk.Event; package body aIDE.Editor.of_block is use gtk.Builder, gtk.Widget, glib, glib.Error; function exception_Button_Press (Self : access Gtk_Widget_Record'Class; E...
-- package Spline -- -- Package of cubic splines, for interpolation, integration, -- and differentiation of tabulated data. -- -- Splines of this sort are especially useful for smooth data -- sets (Y_1, Y_2, ... Y_n) defined at unequally spaced -- knots: X_1, X_2, X_3, ... X_n. They are not least squares -- fits, s...
----------------------------------------------------------------------- -- util-refs -- Reference Counting -- Copyright (C) 2010, 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 this file except ...
-- { dg-do run } -- { dg-options "-Os" } with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Opt41_Pkg; use Opt41_Pkg; procedure Opt41 is R : Rec := (Five, To_Unbounded_String ("CONFIG")); SP : String_Access := new String'(To_String (Rec_Write (R))); RP : Rec_Ptr := new Rec'(Rec_Read (SP...
----------------------------------------------------------------------- -- util-streams-buffered -- Buffered streams utilities -- Copyright (C) 2010, 2011, 2013, 2014, 2016, 2017, 2018, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Vers...
with System; use type System.Address; package body FLTK.Devices.Surfaces is function new_fl_surface (G : in System.Address) return System.Address; pragma Import (C, new_fl_surface, "new_fl_surface"); pragma Inline (new_fl_surface); procedure free_fl_surface ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Cups.Cups; procedure Pinprint.Main is -- Main, but no special name is needed. begin Cups.Cups.PrintString ("Hello", True); -- Cups.PrintString ("Hi there!", True); -- Cups.PrintString ("How are you?", True); -- Cups.PrintString ("I am fine thank you!", True); -- Cups.PrintString ("Bye!", True); ...
package ECOA is type Boolean_8_Type is new Boolean; for Boolean_8_Type'Size use 8; type Character_8_Type is new Character; for Character_8_Type'Size use 8; type Signed_8_Type is range -127 .. 127; for Signed_8_Type'Size use 8; type Signed_16_Type is range -32767 .. 32767; for Signed_16_Type'Size use 16...
-- PR rtl-optimization/45394 -- { dg-do compile } -- { dg-options "-O2 -g" } package body Opt6 is function Current_Parameter (Iter : Command_Line_Iterator) return String is begin if Iter.Params = null or else Iter.Current > Iter.Params'Last or else Iter.Params (Iter.Current) = null ...
with Ada.Locales; procedure locale is use type Ada.Locales.ISO_639_Alpha_2; use type Ada.Locales.ISO_639_Alpha_3; begin Ada.Debug.Put (String (Ada.Locales.ISO_639_Alpha_2'(Ada.Locales.Language))); Ada.Debug.Put (String (Ada.Locales.ISO_639_Alpha_3'(Ada.Locales.Language))); Ada.Debug.Put (String (Ada.Locales.Countr...
-- PR ada/53766 -- Reported by Duncan Sands <baldrick@gcc.gnu.org> -- { dg-do compile } -- { dg-options "-gnatp" } with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package body Controlled7 is procedure Proc (Offset : Storage_Offset) is begin if Offset + Unbounded_String'Max_Size_In_Storage_Element...
package Check1 is type Arr is array (Integer range <>) of Integer; type P2 is access all Arr; type R (Disc : access Arr) is limited null record; function FD (X : access R) return P2; end Check1;
-------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2020 Zane Myers -- -- 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 witho...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Streams; with League.Strings; package Network.Streams is pragma Preelaborate; ------------------ -- Input Stream -- ----------------...
with Ada.Containers.Vectors; generic type Index_Type is range <>; type Element_Type is private; Zero : Element_Type; with function "+" (Left, Right : Element_Type) return Element_Type is <>; with function "-" (Left, Right : Element_Type) return Element_Type is <>; with function "=" (Left, Right : Ele...
with Ada.Integer_Text_IO; -- Copyright 2021 Melwyn Francis Carlo procedure A001 is use Ada.Integer_Text_IO; Val_1A, Val_1B, Val_2A, Val_2B, Val_3A, Val_3B : Float; begin Val_1A := Float'Floor ((1000.0 - 1.0) / 3.0); Val_1B := 3.0 * ((Val_1A * (Val_1A + 1.0)) / 2.0); Val_2A := Float'Floor ((1000.0 ...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements; package Lace.Element_Flat_Kinds is pragma Pure; type Element_Flat_Kind is (Pragma_Kind, Defining_Name_Kind, ...
-- 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...
-- { dg-do compile } -- { dg-options "-O" } with System, Ada.Unchecked_Conversion; with System.Storage_Elements; use System.Storage_Elements; procedure Loop_Address2 is type Ptr is access all Integer; function To_Ptr is new Ada.Unchecked_Conversion (System.Address, Ptr); function F (BM : System.Address; I : ...
------------------------------------------------------------------------------- -- 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 ...
package Warn6 is package Q is type T is private; -- this is the trigger private type T is access Integer; pragma No_Strict_Aliasing (T); end Q; subtype Q_T is Q.T; procedure Dummy; end Warn6;
with Interfaces.C; with Interfaces.C.Strings; with Ada.Exceptions; package body Simple is package IC renames Interfaces.C; package ICS renames Interfaces.C.Strings; use all type GDNATIVE_API_TYPES; Core_Api : godot_gdnative_core_api_struct_ptr; Nativescript_Api : godot_gdnative_ext_nativescript...
-- runner.adb with Ahven.Text_Runner; with Ahven.Framework; with ClientTest; procedure Runner is S : constant Ahven.Framework.Test_Suite_Access := Ahven.Framework.Create_Suite ("All my tests"); begin Ahven.Framework.Add_Test (S.all, new ClientTest.Test); Ahven.Text_Runner.Run (S); Ahven.Framework.Rele...
with Stream; package Hello_Ada is procedure Start (console : Stream.Stream'Class); end Hello_Ada;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
package Pck is My_Global_Variable : Integer := 1; Exported_Capitalized : Integer := 2; pragma Export (C, Exported_Capitalized, "Exported_Capitalized"); Local_Identical_One : Integer := 4; Local_Identical_Two : Integer := 8; External_Identical_One : Integer := 19; package Inner is Inside_...
with ada.text_io; package body winicon_callbacks is package io renames ada.text_io; procedure quit (event : gui_event.event_access_t) is begin io.put_line ("winicon: exiting"); agar.core.quit; end quit; end winicon_callbacks;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
package Pigpio_Ada is PI_INPUT : constant Natural := 0; PI_OUTPUT : constant Natural := 1; PI_PUD_OFF : constant Natural := 0; PI_PUD_DOWN : constant Natural := 1; PI_PUD_UP : constant Natural := 2; type SpeedSelection is (B50, B75, B110, B134, B150, B200, B300, B600, B1200, B1800, B2400, B4800, B960...
------------------------------------------------------------------------------ -- -- -- tiled-code-gen -- -- -- -- ...