CombinedText
stringlengths
4
3.42M
-- Widget for creating bar codes with Gnoga -- -- Copyright (C) 2018 by PragmAda Software Engineering -- -- Released under the terms of the 3-Clause BSD License. See https://opensource.org/licenses/BSD-3-Clause with Gnoga.Gui.Element.Canvas.Context_2D; with Gnoga.Types.Colors; package body Gnoga_Bar_Codes is proce...
with E2GA; package body Mouse_Manager is -- mouse position on last call to MouseButton() / MouseMotion() Prev_Mouse_Pos : E2GA.Vector; -- when true, MouseMotion() will rotate the model Rotate_Model : Boolean := False; Rotate_Model_Out_OfPPlane : Boolean := False; -- rotation of th...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- wi2wic -- wi2wic applications -- 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 not use this file except in compl...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- render -- XHTML Rendering example -- Copyright (C) 2010, 2017, 2020, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use thi...
-- 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...
<?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" ver...
-- CA1012A1.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 RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- -- -- ...
----------------------------------------------------------------------- -- wiki-render -- Wiki renderer -- Copyright (C) 2015, 2016, 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 exce...
-- -- (c) Copyright 1993,1994,1995,1996 Silicon Graphics, Inc. -- ALL RIGHTS RESERVED -- Permission to use, copy, modify, and distribute this software for -- any purpose and without fee is hereby granted, provided that the above -- copyright notice appear in all copies and that both the copyright notice -- and th...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-------------------------------------------------------------------------------------------------------------------- -- 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 ...
-- 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_ge_generic_event_t is -- Item -- type Item is record response_type : aliased Interfaces.Unsigned_8; extension : aliased Interfaces.Un...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- { dg-do compile } with Interfaces.C; use Interfaces.C; procedure Object_Overflow4 is procedure Proc (x : Integer) is begin null; end; type Index_T is new ptrdiff_t range 0 .. ptrdiff_t'Last; type Arr is array(Index_T range <>) of Integer; type Rec (Size: Index_T := 6) is record -- { dg-warning "Storage...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with i386_utypes_h; package sys_utypes_h is -- * Copyright (c) 2003-2007 Apple Inc. All rights reserved. -- * -- * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ -- * -- * This file contains Original Code and/or Modifications of Ori...
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- package Report_Parsers is type Context...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Exceptions; with Ada.Strings.Fixed; package body ARM_Texinfo is -- Copyright (C) 2003, 2007, 2010 - 2013, 2015, 2017, 2018 Stephen Leake. All Rights Reserved. -- E-Mail: stephen_leake@acm.org -- -- This library is free software; you can redistribute it and/or -- modify it under ter...
----------------------------------------------------------------------- -- 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 ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- EMAIL: <darkestkhan@gmail.com> -- -- License: ISC -- -- -- -- ...
with Ada.Text_IO; package body Test_Annotation.Append is File_Name : constant String := "tmp/test-append-annotation.sf"; procedure Initialize (T : in out Test) is begin Set_Name (T, "Test_Annotation.Append"); Ahven.Framework.Add_Test_Routine (T, Append_Test_1'Access, "append test 1"); Ahve...
-- { dg-compile } -- { dg-options "-O2 -gnato -fdump-tree-optimized" } package body Opt37 is function To_Unchecked (Bits : T_Bit_Array) return Unsigned32 is Value : Unsigned32 := 0; begin for I in Bits'Range loop Value := Value * 2 + Unsigned32 (Bits(I)); end loop; return Value;...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright 2012-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. -- -- ...
with AdaM.Factory; package body AdaM.Statement is -- Storage Pool -- record_Version : constant := 1; max_Statements : constant := 5_000; package Pool is new AdaM.Factory.Pools (".adam-store", "statements", ...
with Ada.Numerics.Generic_Complex_Types; with Dsp.Ring_Filters; -- -- This package provides several (OK, only filters so far...) DSP functions -- It needs to be instantiated with a floating point type and a corresponding -- complex type. -- generic type Scalar_Type is digits <>; with package Complex_Types is ...
-- -- (c) Copyright 1993,1994,1995,1996 Silicon Graphics, Inc. -- ALL RIGHTS RESERVED -- Permission to use, copy, modify, and distribute this software for -- any purpose and without fee is hereby granted, provided that the above -- copyright notice appear in all copies and that both the copyright notice -- and th...
with System.Debug; -- assertions with C.errno; with C.sched; with C.signal; package body System.Native_Tasks is use type C.signed_int; use type C.unsigned_int; type sigaction_Wrapper is record -- ??? for No_Elaboration_Code Handle : aliased C.signal.struct_sigaction; end record; pragma Suppress_In...
-- This package has been generated automatically by GNATtest. -- Do not edit any part of it, see GNATtest documentation for more details. -- begin read only with GNATtest_Generated; package Tk.TopLevel.Toplevel_Options_Test_Data.Toplevel_Options_Tests is type Test_Toplevel_Options is new GNATtest_Generated.GNA...
package Case_Null is type T is (a, b, c, d, e); subtype S is T range b .. d; subtype S1 is S range a .. d; -- Low bound out of range of base subtype. procedure P1 (X : T); end Case_Null;
-- parse_args-generic_discrete_option.ads -- A simple command line option parser -- Copyright (c) 2015, James Humphry -- -- 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 permission notice a...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Representation_Clauses; with Program.Lexical_Elements; with Program.Elements.Expressions; package Program.Elements.Attribute_Definiti...
package Integer_Exponentiation is -- int^int procedure Exponentiate (Argument : in Integer; Exponent : in Natural; Result : out Integer); function "**" (Left : Integer; Right : Natural) return Integer; -- real^int pr...
<?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="...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with SDL_stdinc_h; package SDL_rect_h is -- Simple DirectMedia Layer -- Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> -- This software is provided 'as-is', without any express or implied -- warranty. In no event...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is function F return integer is begin return 0; end; begin f; end;
-- This pragma will remove the warning produced by the default -- CE filename and the procedure name differing, -- see : https://gcc.gnu.org/onlinedocs/gcc-8.2.0/gnat_rm/Pragma-Source_005fFile_005fName.html#Pragma-Source_005fFile_005fName pragma Source_File_Name (Square, Body_File_Name => "example.adb"); -- Type...
--********** --* Helen --* Added some declarations here to agree with Ada95 manual --******** ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS ...
-- This spec has been automatically generated from STM32F105xx.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with Interfaces; use Interfaces; with System; -- STM32F105xx package STM32 is pragma Preelaborate; --------------- -- Base type -- --------------- subtype Word is Interfa...
procedure factorial is i, x: Integer; y: Integer; begin put("Ingrese un numero "); get(x); y := 1; i := 1; while i <= x loop y := y * i; i := i + 1; end loop; put("\nEl resultado es "); put(y); end factorial;
with Trendy_Test.Generics; generic type T is (<>); package Trendy_Test.Assertions.Discrete is -- Defaults all operations to what is visible. procedure Assert_EQ is new Trendy_Test.Generics.Assert_Discrete (T, "=", "="); procedure Assert_NE is new Trendy_Test.Generics.Assert_Discrete (T, "/=", "/="); ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
with ObjectPack, AbstractStrategyPackage, StrategyPackage, VisitablePackage; use ObjectPack, AbstractStrategyPackage, StrategyPackage, VisitablePackage; package AbstractStrategyCombinatorPackage is type AbstractStrategyCombinator is abstract new AbstractStrategy and Object with record arguments : ObjectPtrArrayPt...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- basic properties -- Basic types properties -- 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 (the "License...
with AdaM.Comment, AdaM.raw_Source, AdaM.a_Type.enumeration_type, Glib, Glib.Error, Glib.Object, Gtk.Builder, Gtk.Handlers, Pango.Font; with Ada.Text_IO; use Ada.Text_IO; package body aIDE.Palette.of_source_entities is use Glib, Glib.Error, G...
with Ada.Text_IO, Ada.Containers.Doubly_Linked_Lists; use Ada.Text_IO; procedure dll is Equal_Limit : constant := 10; generic Threshold : in Integer := 0; function Special_Equal (Left, Right : Integer) return Boolean; function Special_Equal (Left, Right : Integer) return Boolean is ...
------------------------------------------------------------------------------ -- Copyright (c) 2006-2013, Maxim Reznik -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistr...
-- Copyright 2017 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 = "ArchiveIt" type = "archive" function start() setratelimit(5) end function vertical(ctx, domain) scrape(ctx, {['url']=buildurl(domain)}) end function bu...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY COMPONENTS -- -- -- -- ...
<?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" ver...
-- Copyright 2005-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. -- -- ...
package body Test_Annotation.Write is File_Name : constant String := "tmp/test-annotation-write.sf"; procedure Initialize (T : in out Test) is begin Set_Name (T, "Test_Annotation.Write"); Ahven.Framework.Add_Test_Routine (T, Read_Written'Access, "read written"); Ahven.Framework.Add_Test_Rou...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Object_Declarations is function Create (Names : not null Program.Elements.Defining_Identifiers ...
------------------------------------------------------------------------------ -- -- -- File: -- -- formatted_output-enumeration_output.adb -- ...
-- Author: A. Ireland -- -- Address: School Mathematical & Computer Sciences -- Heriot-Watt University -- Edinburgh, EH14 4AS -- -- E-mail: a.ireland@hw.ac.uk -- -- Last modified: 13.9.2019 -- -- Filename: handler.ads -- -...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME 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...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.Buffers; with GL.Objects.Renderbuffers; with GL.Objects.Textures; private with GL.Low_Level.Enums; package GL.Objects.Framebuffers is pragma Preelaborate; type Framebuffer_Status is (Un...
package Seminar is pragma Pure; end Seminar;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Extraction.Node_Edge_Types; package body Extraction.Project_Files is use type GPR.Project_Type; procedure Extract_Nodes (Project : GPR.Project_Type; Graph : Graph_Operations.Graph_Context) is begin Graph.Write_Node (Project); Graph.Write_Node (Project.Project_Path); end Extract_N...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with GL; use GL; with Glut; use Glut; package ada_sphere_procs is procedure display; procedure reshape (w : Integer; h : Integer); procedure menu (value : Integer); procedure init; end ada_sphere_procs;
package Pixtend is end Pixtend;
with HW.GFX.GMA.Config; private package HW.GFX.GMA.GMCH is GMCH_PORT_PIPE_SELECT_SHIFT : constant := 30; GMCH_PORT_PIPE_SELECT_MASK : constant := 1 * 2 ** 30; type GMCH_PORT_PIPE_SELECT_Array is array (Pipe_Index) of Word32; GMCH_PORT_PIPE_SELECT : constant GMCH_PORT_PIPE_SELECT_Array := (Prim...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Numerics.Aux; use Ada.Numerics.Aux; with Prime_Ada; use Prime_Ada; procedure Main is begin declare n : Integer; begin for i in 1 .. 6 loop n := Integer (Pow (Double (10), Double (i))); Put ("n = "); Put_Line (Integer'Image (n)); ...
package WPs is type WP_Type is null record; end WPs;
------------------------------------------------------------------------------ -- G P S -- -- -- -- Copyright (C) 2000-2016, AdaCore -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
[Users] akirmse@3do.com=
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. private with Ada.Exceptions; private with Ada.Tags; with Apsepp.Test_Node_Class.Case_Stub; use Apsepp.Test_Node_Class.Case_Stub; use Apsepp.Test_Node_Class; package Apsepp.Abstract_Early_Test_Case is subtyp...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Conditions is -- Enable preconditions and postconditinos. pragma Assertion_Policy(Check); -- Trivial example of a post-condition function Increment (x : Integer) return Integer with Post => Increme...
pragma License (Unrestricted); -- extended unit with Ada.Iterator_Interfaces; private with Ada.Containers.Binary_Trees; private with Ada.Containers.Binary_Trees.Arne_Andersson; -- diff (Copy_On_Write) private with Ada.Finalization; private with Ada.Streams; generic type Key_Type (<>) is limited private; type El...
package STM32.F4.Address_Map is pragma Pure; TIM2: constant := 16#4000_0000#; TIM3: constant := 16#4000_0400#; TIM4: constant := 16#4000_0800#; TIM5: constant := 16#4000_0C00#; TIM6: constant := 16#4000_1000#; TIM7: constant := 16#4000_1400#; TIM12: constant := ...
----------------------------------------------------------------------- -- awa-mail -- Mail module -- Copyright (C) 2011, 2012, 2015, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exc...
-- AC1015B.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 -- -- -- -- ...
limited with Engines; with Ada.Containers.Vectors, Ada.Strings.Bounded; with Libtcod.Maps, Libtcod.Color, Libtcod.Console; with Components, Components.Destructibles, Components.Attackers, Components.AIs; use Components, Components.Destructibles, Components.Attackers, Components.AIs; use Libtcod; package Actors is ...
with Ada.Calendar; with Ada.Directories; package body Web.Lock_Files is use type Ada.Calendar.Time; function Lock ( Name : String; Force : Duration := 0.0; Timeout : Duration := 3.0; Retry_Interval : Duration := 1.0; Forced : access Boolean := null) return Boolean is Gone : Duration := 0.0; begin ...
-- Copyright (c) 2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with STM32_SVD; use STM32_SVD; with STM32_SVD.GPIO; with STM32_SVD.USB; use STM32_SVD.USB; with STM32_SVD.RCC; with Ada.Interrupts.Names; with Ada.Text_IO; package body STM32GD.USB.Peripheral is procedure Init is begin STM32_SVD.RCC.RCC_Periph.APB1ENR.USBEN := 1; STM32_SVD.RCC.RCC_Periph.APB1RSTR...