CombinedText
stringlengths
4
3.42M
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
--PRÁCTICA 4: CÉSAR BORAO MORATINOS (Chat_Procedures.ads) with Ada.Text_IO; with Hash_Maps_G; with Ada.Calendar; with Ordered_Maps_G; with Lower_Layer_UDP; with Ada.Command_Line; with Ada.Strings.Unbounded; package Chat_Procedures is package ATI renames Ada.Text_IO; package LLU renames Lower_Layer_UDP; ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- -- -- package Copyright (c) Dmitry A. Kazakov -- -- Parsers.Generic_Source.XPM Luebeck -- -- Implementation Summer, 2006 -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- The MIT License (MIT) -- -- Copyright (c) 2016-2017 artium@nihamkin.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...
-- -*- Mode: Ada -*- -- Filename : last_chance_handler.ads -- Description : Definition of the exception handler for the kernel. -- Author : Luke A. Guest -- Created On : Thu Jun 14 12:06:21 2012 -- Licence : See LICENCE in the root directory. with Syste...
<?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="...
------------------------------------------------------------------------------ -- A d a r u n - t i m e s p e c i f i c a t i o n -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) -- 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...
with ACO.Events; package body ACO.Protocols.Error_Control is overriding function Is_Valid (This : in out EC; Msg : in ACO.Messages.Message) return Boolean is pragma Unreferenced (This); use type ACO.Messages.Function_Code; begin return ACO.Messages.Func_Code (Ms...
package body GNAT.Regpat is function Compile (Expression : String; Flags : Regexp_Flags := No_Flags) return Pattern_Matcher is begin raise Program_Error; -- unimplemented return Compile (Expression, Flags); end Compile; function Match ( Self : Pattern_Matcher; Data : String;...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
with Ada.Text_IO; with Ada_Code; procedure Ada_Main is package ATI renames Ada.Text_Io; begin ATI.Put_Line ("Ada_Main: Calling Ada_Proc"); Ada_Code.Ada_Proc; ATI.Put_Line ("Ada_Main: Returned from Ada_Proc"); end Ada_Main;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- Copyright 2011-2016 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 -- -- -- -- ...
-- The Village of Vampire by YT, このソースコードはNYSLです with Ada.Formatting; package Tabula is pragma Pure; type Static_String_Access is access constant String; for Static_String_Access'Storage_Size use 0; -- string of Natural without spacing function Image is new Ada.Formatting.Integer_Image ( Natural, Signs...
-- Copyright (C) 2011-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. --...
-- { dg-do compile } with Varsize3_Pkg1; use Varsize3_Pkg1; procedure Varsize3_4 is Filter : Object renames True; begin null; end;
-- C9A011B.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 -- -- -- -- ...
----------------------------------------------------------------------- -- security -- Security -- Copyright (C) 2010, 2011, 2012, 2015, 2017, 2018, 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...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2019, AdaCore -- -- -- -- ...
with GNAT.Exception_Traces; with GNAT.Traceback.Symbolic; package body DDS.Request_Reply.Tests.Simple is begin GNAT.Exception_Traces.Trace_On (GNAT.Exception_Traces.Every_Raise); GNAT.Exception_Traces.Set_Trace_Decorator (GNAT.Traceback.Symbolic.Symbolic_Traceback_No_Hex'Access); end DDS.Request_Reply.Tests.Simpl...
------------------------------------------------------------------------------ -- -- -- GNAT BSP Test -- -- -- -- ...
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired) -- -- Copyright William A. Whitaker (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is C...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Formal_Floating_Point_Definitions; with Program.Element_Visitors; package Progra...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package Slim.Messages.DSCO is type DSCO_Message is new Message with private; private type DSCO_Message is new Base_Message ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- C85005C.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...
-- { dg-do run } procedure Volatile4 is type My_Int is new Integer; pragma Volatile (My_Int); type Rec is record I : My_Int; end record; function F (R : Rec) return Rec is begin return R; end; R : Rec := (I => 0); begin R := F (R); if R.I /= 0 then raise Program_Error; end if; en...
-- CD1009R.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 AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Unchecked_Deallocation; package body Yaml.Transformation is procedure Adjust (Object : in out Reference) is begin Increase_Refcount (Object.Data); end Adjust; procedure Fi...
----------------------------------------------------------------------- -- asf -- Ada Server Faces -- 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 compl...
-- Copyright 2010, 2011 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.a_Type.interface_type is -- Storage Pool -- record_Version : constant := 1; pool_Size : constant := 5_000; package Pool is new AdaM.Factory.Pools (storage_Folder => ".adam-store", ...
------------------------------------------------------------ -- B B . G U I -- -- -- -- Spec -- -- -- -- Graphical U...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- sarge.adb - Implementation file for the Sarge command line argument parser project. -- Revision 0 -- Features: -- - -- Notes: -- - -- 2019/04/10, Maya Posch with Ada.Command_Line; with Ada.Text_IO; use Ada.Text_IO; package body Sarge is --- SET ARGUMENT --- procedure setArgument(arg_shor...
with openGL.Geometry, openGL.Font, openGL.Texture; package openGL.Model.Box.lit_colored -- -- Models a lit and colored box. -- -- Each face may be separately colored via each of its 4 vertices. -- is type Item is new Model.box.item with private; type View is access all Item'Class; type Fac...
with System.Storage_Elements; use System.Storage_Elements; with MSP430_SVD; use MSP430_SVD; with MSP430_SVD.SYSTEM_CLOCK; use MSP430_SVD.SYSTEM_CLOCK; with MSPGD.GPIO; use MSPGD.GPIO; with MSPGD.GPIO.Pin; with Startup; package body Board is CALDCO_1MHz : DCOCTL_Register with Import, Address => System'To_Address (1...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Integer_Text_IO, Ada.Text_IO; use Ada.Integer_Text_IO, Ada.Text_IO; package body data is function Sum_Vector(A,B: in Vector) return Vector is S: Vector; begin for i in 1..N loop S(i):=A(i)+B(i); end loop; return S; end Sum_Vector; function Matrix_Multiplication(A,B...
-- Keepa API -- The Keepa API offers numerous endpoints. Every request requires your API access key as a parameter. You can find and change your key in the keepa portal. All requests must be issued as a HTTPS GET and accept gzip encoding. If possible, use a Keep_Alive connection. Multiple requests can be made in pa...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2021, AdaCore -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Adventofcode.Day_25.Main is begin Put_Line ("Day-25"); end Adventofcode.Day_25.Main;
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- C66002D.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...
-- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ stream to skill tokens -- -- |___/_|\_\_|_|____| by: Timm Felden, Dennis Przytarski ...
with Interfaces; use Interfaces; with Interfaces.C; use Interfaces.C; with SDL_SDL_video_h; use SDL_SDL_video_h; package body Display.Basic.Fonts is type Byte is new Interfaces.Unsigned_8; -- for shift/rotate type Half_Word is new Interfaces.Unsigned_16; -- for shift/rotate BMP_Font16x24 : constant arra...
----------------------------------------------------------------------- -- awa-users-principals -- User principals -- Copyright (C) 2011, 2012, 2013, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is procedure P is begin return 0; end; begin P; end;
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 affect_param is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Stre...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Interfaces.C.Strings; with Glfw.API; package body Glfw.Errors is Cur_Callback : Callback := null; procedure Raw_Handler (Code : Kind; Description : Interfaces.C....
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
pragma License (Unrestricted); -- runtime unit package System.Startup is pragma Preelaborate; -- command arguments (initialize.c) argc : Integer with Export, Convention => C, External_Name => "gnat_argc"; argv : Address with Export, Convention => C, External_Name => "gnat_argv"; envp : ...
-- { dg-do run } procedure Concat_Length is type Byte is mod 256; for Byte'Size use 8; type Block is array(Byte range <>) of Integer; C0: Block(1..7) := (others => 0); C1: Block(8..255) := (others => 0); C2: Block := C0 & C1; begin if C2'Length /= 255 then raise Program_Error; end if; end;
----------------------------------------------------------------------- -- nodes-core -- Core nodes -- Copyright (C) 2009, 2010, 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 use this f...
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- @author Alexander Senier -- @date 2019-01-21 -- -- Copyright (C) 2018 Componolit GmbH -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or w...
with physics.Object, ada.unchecked_Deallocation; package body gel.hinge_Joint is use gel.Joint; procedure define (Self : access Item; in_Space : in std_physics.Space.view; Sprite_A, Sprite_B : access gel.Sprite.item'Class; ...
with AUnit.Run.Generic_Runner; procedure Suits.Main is new AUnit.Run.Generic_Runner (Suit);
-- 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_get_convolution_parameterfv_cookie_t is -- Item -- type Item is record sequence : aliased Interfaces.C.unsigned; end record; -- Item_Array ...
with Heap; generic type Num is range <>; package PrimeUtilities is type Sieve is Array (Positive range <>) of Num; type Prime_Count is Record prime : Num; count : Positive; end Record; type Prime_Factors is Array (Positive range <>) of Prime_Count; type Proper_Divisors is Array (Positive ...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_get_geometry_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; pad0 : aliased Interfaces.Unsigned_8;...
package A_Stack with SPARK_Mode, Abstract_State => The_Stack, Initializes => The_Stack is Stack_Size : constant := 100; subtype Item is Integer range 0 .. 20; function Is_Empty return Boolean with Global => The_Stack; function Is_Full return Boolean with Global => The_Stack; f...
-- 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.DBGMCU is pragma Preelaborate; --------------- -- Registers -- --------------- -- MCU Device ID Code Register ty...
-- SaxonSOC GPIO mapping -- The structure is mostly based on https://github.com/AdaCore/bb-runtimes/ -- blob/community-2020/riscv/sifive/fe310/svd/i-fe310-gpio.ads with System; -- TODO do more than just the LEDS package Interfaces.SaxonSOC.GPIO is pragma Preelaborate; pragma No_Elaboration_Code_All; -...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
with HAL.UART; with FE310.UART; with FE310.Device; package body IO is type BToCT is array (Byte range 0 .. 15) of Character; BToC : constant BToCT := ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'); --------- -- Put -- --------- procedure Put (C : Charac...
-- Copyright 2013-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. -- -- ...
-- Copyright 2008-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. -- -- ...
----------------------------------------------------------------------- -- AWA.Counters.Models -- AWA.Counters.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 Interfaces.C; with xcb.xcb_render_pictforminfo_t; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_render_pictforminfo_iterator_t is -- Item -- type Item is record data : access xcb.xcb_render_pictforminfo_t.Item...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
package Tk.TopLevel.Test_Data.Tests is end Tk.TopLevel.Test_Data.Tests;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- MIT License -- Copyright (c) 2021 Stephen Merrony -- 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 rights -- to use, copy, modify,...
-- 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 EXAMPLE -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- This spec has been automatically generated from STM32F0xx.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; ...
with Ada.Tags.Generic_Dispatching_Constructor; package generic_dispatch_p is type Iface is interface; function Constructor (I : not null access Integer) return Iface is abstract; function Dispatching_Constructor is new Ada.Tags.Generic_Dispatching_Constructor (T => Iface, ...
-- This spec has been automatically generated from STM32WB55x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.MPU is pragma Preelaborate; --------------- -- Registers -- --------------- subtype MPU_TYPER_DREGION_Fie...
-- This spec has been automatically generated from cm7.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; -- Data Watchpoint Trace package Cortex_M_SVD.DWT is pragma Preelaborate; --------------- -- Registers -- --------------- subtype...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------ -- Copyright (C) 2005-2020 by <ada.rocks@jlfencey.com> -- -- -- -- This work is free. You can redistribute it and/or modify it under -- -- the terms of the Do What...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER 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="...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- CD5014X.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 Text_IO; use Text_IO; procedure example is begin -- Hello world in ADA Put_Line("Hello world"); end example;
-- { dg-do run } -- { dg-options "-O3 -flto" { target lto } } with Lto21_Pkg1; with Lto21_Pkg2; use Lto21_Pkg2; procedure Lto21 is begin Proc; end;
----------------------------------------------------------------------- -- asf-lifecycles-validation -- Validation phase -- Copyright (C) 2010, 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 thi...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" generic type Base (<>) is new Texture_Proxy with private; package GL.Objects.Textures.With_2D_Loader is pragma Preelaborate; type Target is new Base with null record; procedure Load_Empty_...