CombinedText
stringlengths
4
3.42M
with Ada.Text_IO; with Ada.Directories; with Ada.Command_Line; with Templates_Parser; with CLIC.TTY; with Filesystem; with Commands; with Blueprint; use Blueprint; package body Init_Project is package IO renames Ada.Text_IO; package TT renames CLIC.TTY; use Ada.Directories; Errors : Boolean := false; Filt...
with impact.d3.collision.Detector.discrete; with impact.d3.collision.convex_penetration_depth_Solver; with impact.d3.collision.simplex_Solver; with impact.d3.Shape.convex; with impact.d3.collision.Proxy; -- #include "impact.d3.collision.Detector.discrete.h" -- #include "BulletCollision/CollisionShapes/impact.d3.coll...
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_09chars is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Strea...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package body Disp2_Pkg is function Impl_Of (Self : access Object) return Object_Ptr is begin return Object_Ptr (Self); end Impl_Of; end Disp2_Pkg;
with Protypo.API.Consumers; with Protypo.API.Symbols; with Protypo.Api.Engine_Values; private with Protypo.Code_Trees; with Utilities; package Protypo.API.Interpreters is type Template_Type is new String; type Compiled_Code is limited private; procedure Dump (X : Compiled_Code); -- Print a tree represe...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
package body System.Fat_LLF is function frexp (value : Long_Long_Float; exp : access Integer) return Long_Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_frexpl"; function inf return Long_Long_Float with Import, Convention => Intrinsic, External_Name => "_...
-- 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) ...
-- -- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr> -- - Ryad Benadjila -- - Arnauld Michelizza -- - Mathieu Renard -- - Philippe Thierry -- - Philippe Trebuchet -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the...
with STM32_SVD; use STM32_SVD; with STM32_SVD.RCC; use STM32_SVD.RCC; with STM32_SVD.GPIO; use STM32_SVD.GPIO; with STM32GD.Startup; with STM32GD.Vectors; package body STM32GD.Board is procedure Enable_Peripherals is begin RCC_Periph.IOPENR.IOPAEN := 1; RCC_Periph.IOPENR.IOPBEN := 1; RCC_Peri...
with Ada.Integer_Text_IO, Generic_Perm; procedure Topswaps is function Topswaps(Size: Positive) return Natural is package Perms is new Generic_Perm(Size); P: Perms.Permutation; Done: Boolean; Max: Natural; function Swapper_Calls(P: Perms.Permutation) return Natural is Q: Perms.Perm...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
package Pig is type Dice_Score is range 1 .. 6; type Player is tagged private; function Recent(P: Player) return Natural; function All_Recent(P: Player) return Natural; function Score(P: Player) return Natural; type Actor is abstract tagged null record; function Roll_More(A: Actor; Self, Opponen...
-- This spec has been automatically generated from cm4f.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package Cortex_M_SVD.SCB is pragma Preelaborate; --------------- -- Registers -- --------------- -- Disables Interruption Foldin...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_poly_line_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; coordinate_mode : aliased Interfaces.Unsigned...
-- { dg-do run } with dispatch2_p; use dispatch2_p; procedure dispatch2 is Obj : Object_Ptr := new Object; begin if Obj.Get_Ptr /= Obj.Impl_Of then raise Program_Error; end if; end;
----------------------------------------------------------------------- -- ADO Sqlite Database -- SQLite Database connections -- Copyright (C) 2009, 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- yo...
<?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="...
-- Copyright 2012-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. -- -- ...
package body env is function validate_variable (s : string) return boolean is begin return gnat.regexp.match(s, variable_regexp); end validate_variable; end env;
-- CE3402C.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 COMPILER 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 aaa_02if is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Streams....
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY COMPONENTS -- -- -- -- ...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with Interfaces.C; package osmesa_c.Pointers is -- GLenum_Pointer -- type GLenum_Pointer is access all osmesa_c.GLenum; -- GLenum_Pointers -- type GLenum_Pointers is array (Interfaces.C .size_t range <>) of ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Clauses; package Program.Elements.Representation_Clauses is pragma Pure (Program.Elements.Representation_Cl...
----------------------------------------------------------------------- -- ADO Mysql -- Mysql Interface -- Copyright (C) 2009, 2010 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 ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-------------------------------------------------------------------------------- -- Copyright (C) 2020 by Heisenbug Ltd. (gh+owm@heisenbug.eu) -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Ho...
with float_Math.Algebra.linear.d3; package Impact -- -- Provides 2/3d physics simulations. -- is pragma Pure; package Math renames float_Math; package linear_Algebra_3d renames float_Math.Algebra.linear.d3; BT_LARGE_FLOAT : constant math.Real := 1.0e18; type Any is abstract tagge...
with Ada.Text_IO; use Ada.Text_IO; with Registre; procedure Test_Registre is package Registre_Test is new Registre (100, Integer); use Registre_Test; procedure Test_Initialiser is Registre : T_Registre; begin Initialiser (Registre); pragma Assert (Est_Vide (Registre)); Detruire (R...
with Interfaces; with kv.avm.Actor_References; with kv.avm.Tuples; with kv.avm.Registers; with kv.avm.Messages; package kv.avm.Control is NO_FUTURE : constant Interfaces.Unsigned_32 := 0; type Status_Type is (Active, Blocked, Deferred, Idle, Error); subtype Running_Status_Type is Status_Type range Active ....
procedure Puzzle_20 is begin null; end Puzzle_20;
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Expressions; with Program.Lexical_Elements; package Program.Elements.Type_Conversions is pragma Pure (Progr...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Expressions; with Program.Lexical_Elements; with Program.Elements.Simple_Expression_Ranges; with Program.Element...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, AdaCore -- -- -- -- ...
----------------------------------------------------------------------- -- akt-commands-password-remove -- Remove a wallet password -- 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 not us...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Numerics.Real_Arrays; use Ada.Numerics.Real_Arrays; with Ada.Numerics.Generic_Elementary_Functions; procedure QR is procedure Show (mat : Real_Matrix) is package FIO is new Ada.Text_IO.Float_IO (Float); begin for row in mat'Range (1) loop for col i...
-- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, -- are permitted provided that the following conditions are met: -- -- 1. Redistributions of source code must retain the above copyright notice, t...
-- 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-blogs-tests -- Unit tests for blogs module -- Copyright (C) 2011, 2012, 2013, 2014, 2015, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License")...
with Bounded_Dynamic_Strings; with afrl.cmasi.KeyValuePair; use afrl.cmasi.KeyValuePair; with Ada.Strings.Unbounded; with afrl.cmasi.AutomationResponse; use afrl.cmasi.AutomationResponse; package body UxAS.Comms.LMCP_Net_Client.Service.Automation_Request_Validation.SPARK with SPARK_Mode is function Prove_Sa...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- -- -- ...
-- C34005U.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...
pragma License (Unrestricted); with Ada.Numerics.Generic_Complex_Types; generic with package Complex_Types is new Generic_Complex_Types (<>); use Complex_Types; package Ada.Numerics.Generic_Complex_Elementary_Functions is pragma Pure; function Sqrt (X : Complex) return Complex; function Log (X : Complex...
-- Lumen.Events.Animate -- Event loop with frame-animation callback -- -- Chip Richards, NiEstu, Phoenix AZ, Spring 2010 -- This code is covered by the ISC License: -- -- Copyright © 2010, NiEstu -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby gr...
-- Copyright 2008-2014 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. -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.API; with GL.Enums.Getter; package body GL.Culling is procedure Set_Front_Face (Face : Orientation) renames API.Front_Face; function Front_Face return Orientation is Ret : aliased...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with RASCAL.OS; use RASCAL.OS; package Controller_Dummy is type TEL_Dummy is new Toolbox_UserEventListener(16#59#,-1,-1) with null record; -- -- This does nothing. -- procedure Handle (The : in TEL_Dummy); end Controller_Dummy;
-- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, -- are permitted provided that the following conditions are met: -- -- 1. Redistributions of source code must retain the above copyright notice, t...
----------------------------------------------------------------------- -- awa-blogs-module -- Blog and post management module -- Copyright (C) 2011, 2012, 2013, 2014, 2015, 2017, 2018, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Vers...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- 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. with Interfaces.C.Pointers.Test_Data; with ...
package body TREE_STATIC_Def is procedure check (i : int; v : integer) is begin if i.value /= v then raise program_error; end if; end; end;
with Ada.Unchecked_Conversion; with System.Address_To_Named_Access_Conversions; with System.Soft_Links; with System.Synchronous_Control; with System.Termination; package body System.Tasking.Stages is package Task_Id_Conv is new Address_To_Named_Access_Conversions ( Tasks.Task_Record, Tasks.T...
-- This spec has been automatically generated from STM32F072x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.COMP is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CSR_COMP1EN_Field is STM32_SVD...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- mapping -- Example of serialization mappings -- Copyright (C) 2010, 2011, 2012, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may ...
-- Copyright (C) 2008-2011 Maciej Sobczak -- Distributed under the Boost Software License, Version 1.0. -- (See accompanying file LICENSE_1_0.txt or copy at -- http://www.boost.org/LICENSE_1_0.txt) package SOCI.Oracle is -- -- Registers the Oracle backend so that it is ready for use -- by the dynamic b...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
<?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="...
----------------------------------------------------------------------- -- keystore-passwords-tests -- Tests for Keystore.Passwords -- 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 not us...
-- This spec has been automatically generated from STM32L4x5.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.DMA is pragma Preelaborate; --------------- -- Registers -- --------------- -- interrupt status register ...
with Ada.Text_IO; with kv.avm.vole_tree; use kv.avm.vole_tree; with kv.avm.Tree_Visitors; use kv.avm.Tree_Visitors; package kv.avm.Tree_Rewrite is type Rewriter_Class is limited new Visitor_Class with record Temp : Natural := 0; Block : Natural := 0; end record; procedure Init ...
with Ada.Text_IO;use Ada.Text_IO; with Ada.Float_Text_IO;use Ada.Float_Text_IO; procedure newton is Number: Float; Accuracy: Float; a0: Float; ak: Float; begin put("Enter your number : "); get(Number); put("Enter the accuracy : "); get(Accuracy); a0 := 1.0; ak := 1.0; loop ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with AdaM.a_Type.enumeration_literal, gtk.Widget; private with gtk.gEntry, gtk.Box, gtk.Button; limited with adam.a_Type.enumeration_type; package aIDE.Editor.of_enumeration_literal is type Item is new Editor.item with private; type View is access all Item'Class; type enume...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- 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...
----------------------------------------------------------------------- -- AWA.Comments.Models -- AWA.Comments.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-spec.xhtml -- Ada Generator: https://ada-...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with gmp_c.a_a_mpz_struct; with Interfaces.C; package gmp_c.mpz_ptr is -- Item -- subtype Item is gmp_c.a_a_mpz_struct.Pointer; -- Items -- type Items is array (Interfaces.C.size_t range <>) of aliased gmp_c.mpz_ptr.Item; ...
-------------------------------------------------------------------------------- -- Fichier : foret.ads -- Auteur : MOUDDENE Hamza & CAZES Noa -- Objectif : Spécification du module Ensemble -- Crée : Dimanche Nov 10 2019 -------------------------------------------------------------------------------- gener...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Sum is subtype Based_From_2 is Integer range 2 .. 4; type Range_n_Based is array (Positive range <>) of Integer; Prime_Number : Range_n_Based(Based_From_2) := (2, 3, 5); function Sum_Array (A : Ra...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
with ARM_Input; package ARM_String is -- -- Ada reference manual formatter (ARM_Form). -- -- This package contains the definition of reading input from a string. -- -- --------------------------------------- -- Copyright 2000, 2011 -- AXE Consultants. All rights reserved. ...
----------------------------------------------------------------------- -- util-encoders-hmac-sha1 -- Compute HMAC-SHA256 authentication code -- Copyright (C) 2017, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); --...
-- This spec has been automatically generated from STM32F103.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.WWDG is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_T_Field is STM32_SVD.UInt7; ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------- -- -- -- Coffee Clock -- -- -- ...
----------------------------------------------------------------------- -- awa-storages-services -- Storage service -- Copyright (C) 2012, 2013, 2016, 2018, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
----------------------------------------------------------------------- -- AWA.Events.Models -- AWA.Events.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-spec.xhtml -- Ada Generator: https://ada-gen....
with Zstandard.Functions.Streaming_Decompression; use Zstandard.Functions; with Ada.Command_line; use Ada.Command_Line; with Ada.Directories; use Ada.Directories; with Ada.Text_IO; use Ada.Text_IO; with Ada.Exceptions; use Ada.Exceptions; with Ada.Streams.Stream_IO; use Ada.Streams; procedu...
-- C54A24A.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...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...