CombinedText
stringlengths
4
3.42M
----------------------------------------------------------------------- -- AWA tests - AWA Tests Framework -- Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
pragma License (Unrestricted); -- extended unit private with Ada.Command_Line.Argument_Parsing; private with Ada.Finalization; private with Ada.Streams; generic type Input_Cursor is private; with function Has_Element (Position : Input_Cursor) return Boolean is <>; with package Input_Iterator_Interfaces is ...
-- TODO: Think about memory management issues w.r.t. strings -- and symbols used in the symbol table. What about string -- pointers given as arguments to Interned? -- Newly-allocated strings in other version of Interned? -- Newly-allocated symbols when a name not already -- interned? What is the portable semanti...
----------------------------------------------------------------------- -- streams.files.tests -- Unit tests for buffered streams -- Copyright (C) 2012, 2018, 2019, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); --...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- A pipeline version of the Sieve or Erastosthenes: we create a chain of tasks -- each of which holds several primes. The main program feeds successive integers -- into the pipe; each task tests the integer for divisibility by its own -- primes, and passes it along to the next task if not divisible. Each task has -- a...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
-- The MIT License (MIT) -- Copyright (c) 2015 Pavel Zhukov <landgraf@fedoraproject.org> -- 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 limit...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Extraction.Node_Edge_Types; with Extraction.Utilities; package body Extraction.Decls is use type LALCO.Ada_Node_Kind_Type; function Is_Standard_Package_Decl (Node : LAL.Ada_Node'Class) return Boolean; function Is_Standard_Package_Decl (Node : LAL.Ada_Node'Class) return Boolean is Standard...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with agar.core.event; with agar.core.timeout; package agar.gui.widget.scrollbar is use type c.unsigned; type type_t is (SCROLLBAR_HORIZ, SCROLLBAR_VERT); for type_t use (SCROLLBAR_HORIZ => 0, SCROLLBAR_VERT => 1); for type_t'size use c.unsigned'size; pragma convention (c, type_t); type button_t is ( ...
----------------------------------------------------------------------- -- awa-applications-configs -- Read application configuration files -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- asf-lifecycles-response -- Response phase -- Copyright (C) 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use t...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with RandInt; with Logger; use Logger; with External; use External; package Node is package RAD renames RandInt; type NodeObj; type pNodeObj is access NodeObj; type Array_pNodeObj is array (Natural range <>) of pNodeObj; type pArray_pNodeObj is access Array_pNodeObj; type Offer is record ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Unchecked_Deallocation; package body ABR is procedure Free is new Ada.Unchecked_Deallocation (Object => T_Noeud, Name => T_ABR); procedure Initialiser(Abr: out T_ABR) is begin Abr := Null; end Initialiser; function Est_Vide (Abr : T_Abr) return Boole...
pragma Check_Policy (Validate => Disable); -- with Ada.Strings.Naked_Maps.Debug; with Ada.Unchecked_Conversion; with Ada.Unchecked_Deallocation; with System.UTF_Conversions.From_8_To_32; with System.UTF_Conversions.From_16_To_32; with System.UTF_Conversions.From_32_To_8; with System.UTF_Conversions.From_32_To_16; pack...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_glx_get_polygon_stipple_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; minor_opcode : aliased Interfaces....
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with openGL.Visual, openGL.Palette, openGL.Font, openGL.Model.Text.lit_colored, openGL.Demo; procedure launch_render_Text -- -- Render updated text. -- is use openGL, openGL.Palette, openGL.Math, openGL.linear_Algebra_3d; the_font_Id : constant openGL.Font.font_Id ...
pragma Warnings (Off); pragma Ada_95; pragma Source_File_Name (ada_main, Spec_File_Name => "b__demovec.ads"); pragma Source_File_Name (ada_main, Body_File_Name => "b__demovec.adb"); pragma Suppress (Overflow_Check); with Ada.Exceptions; package body ada_main is E072 : Short_Integer; pragma Import (Ada, E072, "syst...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Text_IO.Text_Streams; use Ada.Text_IO.Text_Streams; procedure Using_Text_Streams is Input, Output : File_Type; Buffer : Character; begin Open (File => Input, Mode => In_File, Name => "input.txt"); Create (File => Output, Mode => Out_File...
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 aaa_readints is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Stre...
-- -- 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...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2012 Felix Krause <contact@flyx.org> -- -- 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/licen...
----------------------------------------------------------------------- -- awa-wikis-beans -- Beans for module wikis -- Copyright (C) 2015, 2016, 2017, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you m...
package Generator.Filtered is type Filtered_Generator is new Generator with private; procedure Reset (Gen : in out Filtered_Generator); function Get_Next (Gen : access Filtered_Generator) return Natural; procedure Set_Source (Gen : in out Filtered_Generator; Source : access Gen...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.Types; package GL.Enums.Getter is pragma Preelaborate; type Parameter is (Current_Color, Current_Index, Current_Normal, Current_Texture_Coords, Current_Raste...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Implantation du module Piles. with Ada.Text_IO; use Ada.Text_IO; --! Ce module est nécessaire parce qu'on a ajouté le SP Afficher. package body Piles is procedure Initialiser (Pile : out T_Pile) is begin Pile.Taille := 0; end Initialiser; function Est_Vide (Pile : in T_Pile) return...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-------------------------------------------------------------------------------- -- Copyright (c) 2013, Felix Krause <contact@flyx.org> -- -- 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 pe...
-- { dg-do run } -- { dg-options "-O2" } procedure Opt14 is type Rec is record I1, I2, I3 : Integer; end record; type Ptr is access Rec; P : Ptr := new Rec'(0,0,0); procedure Sub (R : In Out Rec) is begin R.I3 := R.I3 - 1; end; begin P.all := (1,2,3); Sub (P.all); if P.all /= (1,2,2) t...
-- CD1009L.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 LIBRARY COMPONENTS -- -- -- -- ...
with gel.World.server; package gel_demo_Server -- -- Provides the server. -- is the_server_World : gel.World.server.view; task Item is entry start; entry stop; end Item; end gel_demo_Server;
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
-- generated parser support file. -- command line: wisitoken-bnf-generate.exe --generate LR1 Ada_Emacs re2c PROCESS gpr.wy -- -- Copyright (C) 2013 - 2020 Free Software Foundation, Inc. -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public Licens...
package body Inline13_Pkg is function Padded (Value : T) return Padded_T is begin return Padded_T(Value); end Padded; end Inline13_Pkg;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; package body arbre_genealogique is procedure Creer_Minimal ( Abr : out T_Abr_Genea ; Racine : Integer ; Registre : out T_Registre_Genea; Nom : in unbounded_string ; Prenom : in unbounded_string ; Jour : Integer ; Mois : T_Mois_Gen ; Annee : in Integer ; ...
with RASCAL.OS; use RASCAL.OS; package Controller_Help is type TEL_ViewManual_Type is new Toolbox_UserEventListener(16#11#,-1,-1) with null record; type TEL_ViewSection_Type is new Toolbox_UserEventListener(16#20#,-1,-1) with null record; type TEL_ViewIHelp_Type is new Toolbo...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Ada.Numerics; with Ada.Numerics.Generic_Elementary_Functions; with Hypot; with text_io; use text_io; -- Test estimates err in calculation of Sqrt(a^2 + b^2), a/Sqrt(a^2 + b^2), etc. -- -- Best accuracy uses -mfpmath=387 ! Runs about the same speed at -mfpmath=387 and -- -mfpmath=sse. procedure hypot_tst_1 is ...
------------------------------------------------------------------------------ -- -- -- tiled-code-gen -- -- -- -- ...
function Palindrome (Text : String) return Boolean is begin for Offset in 0..Text'Length / 2 - 1 loop if Text (Text'First + Offset) /= Text (Text'Last - Offset) then return False; end if; end loop; return True; end Palindrome;
with agar.gui.unit; with agar.gui.widget.button; with agar.gui.widget.textbox; with agar.gui.widget.ucombo; package agar.gui.widget.numerical is use type c.unsigned; type flags_t is new c.unsigned; NUMERICAL_HFILL : constant flags_t := 16#01#; NUMERICAL_VFILL : constant flags_t := 16#02#; type numer...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- C24003A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Text_IO.Unbounded_IO; use Ada.Text_IO.Unbounded_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Solve is function Get_Line_Integer (File : File_Type) return Integer; end Solve;
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, ...
----------------------------------------------------------------------- -- awa-jobs-modules -- Job module -- Copyright (C) 2012, 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 i...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Converters; -- @summary -- Units used in aviation, operations among them and conversion -- factors. -- -- @description -- Measure_Units provides all you can need to play with -- units used in aviation, except that this is a lie because -- this is a test, so you won't find anything really useful -- here. ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- properties.hash -- Hash-based property implementation -- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (t...
-- ----------------------------------------------------------------------------- -- Copyright (C) 2003-2019 Stichting Mapcode Foundation (http://www.mapcode.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- util-listeners -- Listeners -- Copyright (C) 2012 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 complia...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2013 Felix Krause <contact@flyx.org> -- -- 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/licen...
-- Copyright 2019-2020 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- ...
-- Ada regular expression library -- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net> -- Report bugs and issues on <https://github.com/skordal/ada-regex> with AUnit.Assertions; use AUnit.Assertions; with Regex.Utilities.Sorted_Sets; package body Utilities_Test_Cases is package Integer_Sets...
package openGL.Program.lit_colored_textured_skinned -- -- Provides a program for lit, colored, textured and skinned vertices. -- is type Item is new openGL.Program.item with private; type View is access all Item'Class; overriding procedure define (Self : in out Item; use_vertex_Shader : in Shader.vie...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Ada.Containers.Hashed_Maps; with Ada.Containers.Vectors; with Ada.Directories; with Ada.Exceptions; with Ada.Text_IO; with File_Operations; with HelperText; package body Package_Manifests is package DIR re...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Unchecked_Conversion; with System.Address_To_Constant_Access_Conversions; with System.Storage_Elements; with C.stdint; package body C.unwind_pe is pragma Suppress (All_Checks); use type System.Storage_Elements.Storage_Offset; procedure unreachable with Import, Convention => Intrinsic, ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Generated by Snowball 2.2.0 - https://snowballstem.org/ package body Stemmer.Lithuanian is pragma Style_Checks ("-mr"); pragma Warnings (Off, "*variable*is never read and never assigned*"); pragma Warnings (Off, "*mode could be*instead of*"); pragma Warnings (Off, "*formal parameter.*is not modified*"...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces.C; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_glx_is_list_cookie_t is -- Item -- type Item is record sequence : aliased Interfaces.C.unsigned; end record; -- Item_Array -- type Item_Arr...
private with Ada.Finalization; package GMP.Root_F is pragma Preelaborate; type MP_Float (Precision : GMP.Precision) is private; function To_MP_Float (X : Long_Float; Precision : GMP.Precision) return MP_Float; function To_Long_Float (X : MP_Float) return Long_Float; function Image (Value : MP_Float; Base...
with MSP430_SVD; use MSP430_SVD; package MSPGD.UART is pragma Preelaborate; type Clock_Source_Type is (UCLK, ACLK, SMCLK); end MSPGD.UART;
with Ada.Unchecked_Deallocation; package body Spark_Unbound.Safe_Alloc with SPARK_Mode is package body Definite with SPARK_Mode is function Alloc return T_Acc is pragma SPARK_Mode (Off); -- Spark OFF for exception handling begin return new T; exception when Stora...
-- Copyright (c) 2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- 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 ...
-- Abstract: -- -- See spec. -- -- Copyright (C) 2004, 2008, 2009, 2011, 2017, 2019 Free Software Foundation All Rights Reserved. -- -- 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; eit...
-- This package is intended to set up and tear down the test environment. -- Once created by GNATtest, this package will never be overwritten -- automatically. Contents of this package can be modified in any way -- except for sections surrounded by a 'read only' marker. package body Ships.Test_Data.Tests.Crew_Con...
-- 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...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Exit_Statements is function Create (Exit_Token : not null Program.Lexical_Elements .L...
-- CD3015F.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
with lace.Event, lace.Observer, lace.Subject, lace.Response; package lace.Event.Logger -- -- Provides an event logging interface. -- is type Item is limited interface; type View is access all Item'Class; -------- -- Forge -- procedure destruct (Self : in out Item) is null; ...
------------------------------------------------------------------------------- -- Copyright (c) 2016, 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...
with AdaM.a_Type.enumeration_literal, Ada.Streams; package AdaM.a_Type.enumeration_type is type Item is new a_Type.discrete_Type with private; type View is access all Item'Class; -- Forge -- function new_Type (Name : in String := "") return enumeration_type.view; procedure free ...
-- C23006B.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...
-- part of ParserTools, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" package body Text.Builder is procedure Init (Object : in out Reference; Pool : Text.Pool.Reference; Initial_Size : Positive := 255) is begin null; end Init; ...
WITH Ada.TeXt_iO; ProCEDure HElLoworLd iS beGin ADA.tEXt_Io.PuT_liNE("Hello, World!"); ENd heLLoWORlD;