CombinedText
stringlengths
4
3.42M
with Ada.Unchecked_Deallocation; with Physics; use Physics; with Materials; with Circles; package body Worlds is -- init world procedure Init(This : in out World; dt : in Float; MaxEnts : Natural := 32) is VecZero : constant Vec2D := (0.0, 0.0); begin This.MaxEntities := MaxEnts; This.dt...
pragma License (Unrestricted); with Ada.Characters.Conversions; package Ada.Characters.Handling is -- pragma Pure; pragma Preelaborate; -- use mapping -- Note: These single Character functions propagates Constraint_Error for -- 16#80# .. 16#FF#. -- If you want to handle full-unicode, use Wide_Wide_Ch...
-- Copyright 2014-2017 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. -- -- ...
-- This spec has been automatically generated from STM32L0x1.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.STK is pragma Preelaborate; --------------- -- Registers -- --------------- -- SysTick control and status register ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- awa-components -- UI Components -- Copyright (C) 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 in com...
-- Abstract : -- -- See spec. -- -- Copyright (C) 2002 - 2005, 2008 - 2015, 2017 - 2019 Free Software Foundation, Inc. -- -- This file is part of the WisiToken package. -- -- The WisiToken package is free software; you can redistribute it -- and/or modify it under terms of the GNU General Public License as -- pu...
package body Loop_Optimization1_Pkg is type Unconstrained_Array_Type is array (Index_Type range <>) of Element_Type; procedure Local (UA : in out Unconstrained_Array_Type) is begin null; end; procedure Proc (CA : in out Constrained_Array_Type) is begin Local (Unconstrained_Array_Type (CA)); ...
-- { dg-do run } with Init9; use Init9; with Ada.Numerics; use Ada.Numerics; with Text_IO; use Text_IO; with Dump; procedure T9 is Local_R1 : R1; Local_R2 : R2; begin Local_R1.F := My_R1.F + 1.0; Put ("Local_R1 :"); Dump (Local_R1'Address, R1'Max_Size_In_Storage_Elements); New_Line; -- { dg-output "L...
--------------------------------------------------------------------------------- -- Copyright 2004-2005 © Luke A. Guest -- -- This code is to be used for tutorial purposes only. -- You may not redistribute this code in any form without my express permission. ------------------------------------------------------------...
-- 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_list_properties_cookie_t is -- Item -- type Item is record sequence : aliased Interfaces.C.unsigned; end record; -- Item_Array -- type Item...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package wmmintrin_h is -- Copyright (C) 2008-2017 Free Software Foundation, Inc. -- This file is part of GCC. -- GCC is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public L...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package Opt59_Pkg is type Boolean_Vector is array (1 .. 8) of Boolean; function Get_BV1 return Boolean_Vector; function Get_BV2 return Boolean_Vector; procedure Test (B : Boolean); end Opt59_Pkg;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- -- Copyright (C) 2017, AdaCore -- -- This spec has been automatically generated from M2Sxxx.svd pragma Ada_2012; pragma Style_Checks (Off); with System; -- No description provided for this peripheral package Interfaces.SF2.System_Registers is pragma Preelaborate; pragma No_Elaboration_Code_All; ----...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Complete_Contexts.Assignment_Statements is -------------------------- -- Assignment_Statement -- -------------------------- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2018 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 fr...
-- 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_get_atom_name_cookie_t is -- Item -- type Item is record sequence : aliased Interfaces.C.unsigned; end record; -- Item_Array -- type Item_A...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Type_Definitions; with Program.Lexical_Elements; with Program.Elements.Definitions; package Program.Elements.Record_Types is prag...
-- Copyright (c) 2010-2011 Xiph.Org Foundation, Skype Limited -- -- Most of the documentation has been copied from opus.h and opus_defines.h -- and is licensed under the license of those files; the Simplified BSD License. -- -- Copyright (c) 2014 onox <denkpadje@gmail.com> -- -- Permission to use, copy, modify, an...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with swig; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_glx_get_query_objectiv_arb_reply_t is -- Item -- type Item is record response_type : aliased Interfaces.Unsigned_8; pad0 : alias...
-- 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.CRS is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_TRIM_Field is HAL.U...
with Ada.Strings.UTF_Encoding.Wide_Wide_Strings; with Interfaces.C.Strings; with Notcurses_Thin; package body Notcurses.Strings is function Width (Str : Wide_Wide_String) return Natural is use Ada.Strings.UTF_Encoding.Wide_Wide_Strings; use Interfaces.C.Strings; Chars : constant cha...
----------------------------------------------------------------------- -- security-auth-oauth-github -- Github OAuth based authentication -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may...
package Return2_Pkg is function F return String; function G (Line : String; Index : Positive) return String; end Return2_Pkg;
-- { dg-do compile { target i?86-*-* x86_64-*-* } } -- { dg-options "-O3 -msse2 -fdump-tree-vect-details" } package body Vect17 is procedure Add (X, Y : aliased Sarray; R : aliased out Sarray) is begin for I in Sarray'Range loop R(I) := X(I) + Y(I); end loop; end; end Vect17; -- { dg-f...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Interfaces; with Ada.Numerics.Float_Random; with Ada.Assertions; with Vector_Math; with Materials; with Ada.Unchecked_Deallocation; with Ray_Tracer; use Interfaces; use Vector_Math; use Materials; use Ada.Assertions; use Ray_Tracer; private package Ray_Tracer.Integrators is -----------------------------------...
-- POK header -- -- The following file is a part of the POK project. Any modification should -- be made according to the POK licence. You CANNOT use this file or a part -- of a file for your own project. -- -- For more information on the POK licence, please see our LICENCE FILE -- -- Pleas...
-------------------------------------------------------------------------------- -- 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...
pragma License (Unrestricted); -- implementation unit with Ada.Tags; -- [gcc-5] is confused in C390004 if this line is "private with" package System.Storage_Pools.Standard_Pools is pragma Preelaborate; type Standard_Pool is limited new Storage_Pools.Root_Storage_Pool with null record with Disable_Co...
package Sizetype3 is type Values_Array is array (Positive range <>) of Integer; type Values_Array_Access is access all Values_Array; procedure Simplify_Type_Of; end Sizetype3;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
procedure Parenthesis_Matter is subtype SmallIntType is Integer range 0..12; function SmallIntVal return SmallIntType is begin return 0; end SmallIntVal; begin case SmallIntVal is when 0 => null; -- when 13 => null; -- error when others => null; end case; case (SmallIntVal) is whe...
with gel.Forge, gel.Conversions, physics.Model, openGL.Model.any, opengl.Palette, opengl.Program .lit_colored_textured_skinned, opengl.Geometry.lit_colored_textured_skinned, collada.Document, collada.Library, collada.Library.controllers, collada.Library.animation...
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_pbutils_pbutils_h is -- GStreamer base utils library -- * Copyright (C) 2006 Tim-Philipp Müller <tim centricular net> -- * -- * This library is free softw...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package body System.Native_Real_Time is use type C.signed_int; function Clock return Native_Time is Result : aliased C.time.struct_timespec; begin if C.time.clock_gettime (C.time.CLOCK_MONOTONIC, Result'Access) < 0 then raise Program_Error; -- ??? end if; return Result; end...
with Numerics, Numerics.Sparse_Matrices; use Numerics, Numerics.Sparse_Matrices; package Forward_AD.AD2D is type AD2D is tagged private; type AD2D_Vector is array (Nat range <>) of AD2D; function "+" (A, B : in AD2D) return AD2D; function "-" (A, B : in AD2D) return AD2D; function "*" (A : in AD2D;...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017-2020, Fabien Chouteau -- -- -- -- ...
with GESTE; with GESTE.Maths_Types; with GESTE_Config; pragma Style_Checks (Off); package Game_Assets is Palette : aliased GESTE.Palette_Type := ( 0 => 391, 1 => 59147, 2 => 22089, 3 => 58727, 4 => 52303, 5 => 4907, 6 => 41834, 7 => 39694, 8 => 16847,...
with Ada.Text_IO; use Ada.Text_IO; procedure Dinesman is subtype Floor is Positive range 1 .. 5; type People is (Baker, Cooper, Fletcher, Miller, Smith); type Floors is array (People'Range) of Floor; type PtFloors is access all Floors; function Constrained (f : PtFloors) return Boolean is begin if...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Scanned_Rule_Handlers; with Program.Scanner_States; with Program.Source_Buffers; package ...
-- C41401A.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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
$NetBSD: patch-posix-signals.adb,v 1.5 2014/04/30 16:27:04 marino Exp $ Fix style check violation for GNAT 4.9 --- posix-signals.adb.orig 2012-05-10 13:32:11.000000000 +0000 +++ posix-signals.adb @@ -340,16 +340,18 @@ package body POSIX.Signals is begin for Sig in Signal loop if Reserved_Signal...
------------------------------------------------------------------------------ -- -- -- SPARK LIBRARY COMPONENTS -- -- -- -- ...
-- Ada_GUI implementation based on Gnoga. Adapted 2021 -- -- -- GNOGA - The GNU Omnificent GUI for Ada -- -- -- -- G N O G A . ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
--****p* Data_Streams/Files -- DESCRIPTION -- The user can use as data stream for sample I/O files with different -- format. Every implemented format corresponds to a different implementation -- of the Data_Source or Data_Destination interface defined in the package -- Data_Streams. -- -- In order to ma...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with impact.d2.orbs.Collision, impact.d2.orbs.Contact, impact.d2.orbs.Solid, impact.d2.Math; package impact.d2.orbs.toi_Solver -- -- -- is use impact.d2.Math; -- -- class b2Contact; -- class b2Body; -- struct b2TOIConstraint; -- class b2StackAllocator; -- This is a pure position solver ...
with PIN; with PasswordDatabase; with Ada.Containers; use Ada.Containers; with Ada.Text_IO; use Ada.Text_IO; package PasswordManager with SPARK_Mode is type Information is private; -- Private function returns length of database in Password Manager function StoredDatabaseLength(Manager_Information : in Infor...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
# Turns capslock off ifj caps turn_off goto off_done :turn_off toggle caps :off_done # Turn light on depending on caps state :light_off light off goto loop :light_on light on :loop wait 100 ifj caps light_on goto light_off
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- keystore-gpg_tests -- Test AKT with GPG2 -- 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 use this file exce...
With NSO.Helpers, Ada.Text_IO, Config, INI, GNAT.Sockets.Server, GNAT.Sockets.SMTP.Client.Synchronous; Procedure Send_Report(Text : String:= ""; Params : INI.Instance:= INI.Empty) is use all type GNAT.Sockets.SMTP.Client.Mail; Use GNAT.Sockets.SMTP.Client, GNAT.Sockets.Server; DEBUG : Constant Boolean:=...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Anonymous_Access_Definitions; with Program.Lexical_Elements; with Program.Elements.Subtype_Indications; package Program.Elements.Anon...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2020, AdaCore -- -- -- -- ...
----------------------------------------------------------------------- -- awa-blogs-tests -- Unit tests for blogs module -- Copyright (C) 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- CC1004A.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...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
-- Copyright 2021 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. name = "Searchcode" type = "scrape" function start() set_rate_limit(2) end function vertical(ctx, domain) for i=0,20 do local page, err = request(ctx, {...
----------------------------------------------------------------------- -- awa-events-dispatchers-actions -- Event dispatcher to Ada bean actions -- Copyright (C) 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Discrete_Simple_Expression_Ranges is function Create (Lower_Bound : not null Program.Elements.Expressi...
-- Copyright 2018-2021 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. -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (c) 2016 Vitalij Bondarenko <vibondare@gmail.com> -- -- -- ----...
-- { dg-do run } -- { dg-options "-gnatws" } with discr3; use discr3; with Text_IO; use Text_IO; procedure Conv_Bug is begin begin V2 := S2 (V1); exception when Constraint_Error => null; when others => Put_Line ("Wrong Exception raised"); end; begin V2 := S2(V1(V1'Range)); ...
limited with openGL.Program; package openGL.Variable.uniform -- -- Models a uniform variable for shaders. -- is type Item is abstract new Variable.item with private; --------- -- Forge -- procedure define (Self : in out Item; Program : access openGL.Program.item'class; ...
-- Copyright 2014-2015 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. -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with DDS.Request_Reply.Replier.Typed_Replier_Generic; with Dds.Builtin_Octets_DataReader; with Dds.Builtin_Octets_DataWriter; package DDS.Request_Reply.Tests.Simple.Octets_Replier is new DDS.Request_Reply.Replier.Typed_Replier_Generic (Reply_DataWriter => Dds.Builtin_Octets_DataWriter, Request_DataReader...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ahven.Framework; with Container.Api; package Test_Container.Read is package Skill renames Container.Api; use Container; use Container.Api; type Test is new Ahven.Framework.Test_Case with null record; procedure Initialize (T : in out Test); procedure Constant_Length_Array; procedure Variab...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- MIT License -- -- Copyright (c) 2021 Glen Cornell <glen.m.cornell@gmail.com> -- -- 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 limitation the rig...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2018 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 fr...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Copyright 2012-2017 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. -- -- ...
with Tkmrpc.Request; with Tkmrpc.Response; package Tkmrpc.Operation_Handlers.Ike.Esa_Select is procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type); -- Handler for the esa_select operation. end Tkmrpc.Operation_Handlers.Ike.Esa_Select;
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Streams; with GNAT.Sockets; with Network.Streams; private package Network.Managers.TCP_V4_Out is type Out_Socket (Poll : Network.Polls.Poll_...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2019, AdaCore -- -- -- -- ...
-- C95085O.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) 2015-2016 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. -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018-2021, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- $Header: /dc/uc/self/arcadia/ayacc/src/RCS/output_file_body.a,v 1.2 1993/05/31 22:36:35 self Exp self $ -- 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...
------------------------------------------------------------------------------ -- Copyright (c) 2011, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...