CombinedText
stringlengths
4
3.42M
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- CE3806C.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 -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package GESTE_Fonts.FreeSerifItalic6pt7b is Font : constant Bitmap_Font_Ref; private FreeSerifItalic6pt7bBitmaps : aliased constant Font_Bitmap := ( 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#20#, 16#08#, 16#01#, 16#00#, 16#20#, 16#08#, 16#01#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#00...
-- { dg-do run } with Unchecked_Conversion; procedure Unchecked_Convert12 is subtype Unsigned_Type is Integer range 2_034 .. 2_164; subtype Signed_Type is Integer range -2048 .. 2047; type Rec is record S : Unsigned_Type; end record; pragma Pack (Rec); function To_Signed_Type is new Unchecke...
-------------------------------------------------------------------------------- -- Copyright (c) 2013, Felix Krause <contact@flyx.org> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this pe...
-- A54B01A.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 -- -- -- -- ...
-- Copyright 2014-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. -- -- ...
----------------------------------------------------------------------- -- functions -- Show how to plug and use functions -- 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...
with Ada.Strings.Fixed.Hash; package body Limited_With3_Pkg1 is function Equal ( Left, Right : Element_Access) return Boolean is begin return True; end; function Equivalent_Keys (Left, Right : Key_Type) return Boolean is begin return True; end; function Hash (Key :...
-- C43105B.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...
-- -- -- package Copyright (c) Dmitry A. Kazakov -- -- IEEE_754.Generic_Double_Precision Luebeck -- -- Interface Summer, 2008 -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Interfaces; use Interfaces; with Interfaces.C.Extensions; package Lv.Color_Types is type Color_T_Comp is record Blue : Extensions.Unsigned_5; Green : Extensions.Unsigned_6; Red : Extensions.Unsigned_5; end record with Pack, Object_Size => 16; pragma Convention (C_Pass_By_Copy, ...
-- 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.Events.Context is use type Store.Optional_Reference; use type Text.Reference; use type Store.Anchor_Cursor; use type Store.Element_Curso...
with Ada.Real_Time; use Ada.Real_Time; with HIL.GPIO; use HIL.GPIO; with HIL.Clock; use HIL.Clock; with Crash; pragma Unreferenced (Crash); with Calc; procedure main with SPARK_Mode is f1, f2, res : Float; next : Time := Clock; PERIOD : constant Time_Span := Milliseconds(500); led_on : Boolean := False; ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 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...
-- Copyright 2008-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. -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- components-utils-beans -- Bean component utility -- 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 f...
with Ada.Text_IO; use Ada.Text_IO; procedure Print_Line is Printer : File_Type; begin begin Open (Printer, Mode => Out_File, Name => "/dev/lp0"); exception when others => Put_Line ("Unable to open printer."); return; end; Set_Output (Printer); Put_Line ("Hello World!");...
-- BinToAsc_Suite -- Unit tests for BinToAsc -- Copyright (c) 2015, James Humphry - see LICENSE file for details with BinToAsc_Suite.Misc_Tests; with BinToAsc_Suite.Base16_Tests; with BinToAsc_Suite.Base32_Tests; with BinToAsc_Suite.Base64_Tests; with BinToAsc_Suite.Base85_Tests; package body BinToAsc_Suite is us...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- components-root -- ASF Root View Component -- Copyright (C) 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use ...
-- Copyright 2012-2019 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 -- -- -- -- ...
----------------------------------------------------------------------- -- servlet -- Ada Servlet -- Copyright (C) 2009, 2010, 2018 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 ...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
-- ============================================================================= -- Package AVR.POWER_MANAGEMENT -- -- Handles the power management. -- - Sleep mode -- - Power reduction -- ============================================================================= package AVR.POWER_MANAGEMENT is type Sleep_Mode_C...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2013 Felix Krause <contact@flyx.org> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licen...
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- private package Markdown.Inline_Parsers.Autolinks is procedure Find (Text : Plain_Texts.Plain_Text; Cursor : Position; State : in...
with Tkmrpc.Request; with Tkmrpc.Response; package Tkmrpc.Operation_Handlers.Cfg.Tkm_Version is procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type); -- Handler for the tkm_version operation. end Tkmrpc.Operation_Handlers.Cfg.Tkm_Version;
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
with Globals_Example1; with Md_Example4; package Md_Example5 is type T is new Md_Example4.T with record Child_Attribute : Globals_Example1.Itype; end record; procedure Display_It (The_T : T); end Md_Example5;
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_render_pictvisual_t is -- Item -- type Item is record visual : aliased xcb.xcb_visualid_t; format : aliased xcb.xcb_render_pictformat_t; end record; -- Item_A...
----------------------------------------------------------------------- -- util-serialize-io-form-tests -- Unit tests for form parser -- Copyright (C) 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not ...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32F3x4.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.RTC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype TR_SU_Field is HAL.UInt4; subtype T...
with Interfaces.C.Extensions; with Ada.Strings.Hash; with z3_optimization_h; with System; package body Z3 is use Interfaces.C.Strings; procedure Set_Param_Value (ID : String; Value : String) is C_ID : chars_ptr := New_String (ID); C_Value : chars_ptr := New_String (Value); begin z3_ap...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Ada.Directories; with Ada.Direct_IO; with Ada.Unchecked_Deallocation; with Interfaces.C.Strings; with GL.API; with GL.Types; package body GL.Files is use GL.Types; procedure Load_Shader_S...
with AUnit.Assertions; use AUnit.Assertions; with Interfaces.C.Strings; with Ada.Text_IO; with ImageIO; with PixelArray; with ImageRegions; with Histogram; with HistogramGenerator; use PixelArray; package body HistogramTests is procedure Register_Tests (T: in out TestCase) is use AUnit.Test_Cases.Registrat...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT INTERFACE COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- util-streams-buffered -- Buffered streams utilities -- Copyright (C) 2010, 2011, 2013, 2014, 2016, 2017, 2018, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Vers...
-------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2021 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...
package body Generic_Unit_Vectors with SPARK_Mode is function addition(Left, Right : Unit_Vector) return Unit_Vector is begin return (Left.x + Right.x, Left.y + Right.y, Left.z + Right.z); end addition; end Generic_Unit_Vectors;
-- AOC 2020, Day 6 with Ada.Text_IO; use Ada.Text_IO; with Day; use Day; procedure main is anyone : constant Natural := anyone_sum("input.txt"); everyone : constant Natural := everyone_sum("input.txt"); begin put_line("Part 1: " & Natural'Image(anyone)); put_line("Part 2: " & Natural'Image(everyone)); end main...
----------------------------------------------------------------------- -- keystore-io-files -- Ada keystore IO for files -- 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 fil...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Characters.Wide_Wide_Latin_1; with Ada.Wide_Wide_Text_IO; with League.Text_Codecs; with Slim.Message_Visiters; package bod...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Formal_Signed_Integer_Type_Definitions is function Create (Range_Token : not null Program.Lexical_E...
-- This spec has been automatically generated from STM32F427x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with System; with HAL; package STM32_SVD.DCMI is pragma Preelaborate; --------------- -- Registers -- --------------- ----------------- -- CR_Register -- -------------...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- EL.Methods.Proc_1 -- Procedure Binding with 1 argument -- Copyright (C) 2010, 2011, 2012, 2013, 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License...
package body System.Tasking.Async_Delays is function Enqueue_Duration ( T : Duration; D : not null access Delay_Block) return Boolean is begin raise Program_Error; -- unimplemented return Enqueue_Duration (T, D); end Enqueue_Duration; procedure Cancel_Async_Delay (D : not nul...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
with Ada.Unchecked_Deallocation; package body GNAT.Sockets is procedure Free is new Ada.Unchecked_Deallocation ( Ada.Streams.Stream_IO.File_Type, Socket_Type); function Addresses (E : Host_Entry_Type; N : Positive := 1) return Inet_Addr_Type is pragma Unreferenced (N); ...
------------------------------------------------------------------------------ -- -- -- Hardware Abstraction Layer for STM32 Targets -- -- -- -- ...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package bits_byteswap_h is -- Macros and inline functions to swap the order of bytes in integer values. -- Copyright (C) 1997-2021 Free Software Foundation, Inc. -- This file is part of the GNU C Library. -- The GNU C Libr...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Glfw.API; package body Glfw.Events.Joysticks is function Index (Source : Joystick) return Joystick_Index is begin return Enums.Joystick_ID'Pos (Source.Raw_Index) + 1; end Index; ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- awa-mail-components-messages -- Mail UI Message -- Copyright (C) 2012, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use t...
-- Copyright 2008-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. -- -- ...
-- 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,...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Numerics.Discrete_Random; function lanzar_dado (dado: in out Integer) return Integer is subtype rango is Integer range 1..6; package miRango is new Ada.Numerics.Discrete_Random(rango); semilla : miRango.generator; begin miRango.reset(semilla); dado:= miRango.random(semilla); return dado...
--A procedure to sort an array of integers into ascending order using Shuffle Sorting type Array_type is array (Positive range <>) of Integer; procedure Shuffle_Sort (X: in out Array_type) is Position: Positive; Value : Integer; begin for I in X'First+1 .. X'Last loop if X(I) < X(I-1) then --Misplaced item ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with STM_Board; use STM_Board; with Inverter_PWM; package body Error_Handling is procedure Make_Safe is begin if not STM_Board.Is_Initialized then STM_Board.Initialize_GPIO; end if; -- Force the gate driver into a safe state Inverter_PWM.Safe_State; -- Signal error t...
<?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="...
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; with glib.Values; with System; with glib; with System; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_interfaces_videoorientation_h is -- unsupported macro: GST_TYPE_VIDEO_ORIENTATION (gst_video...
-- Euler1 in Ada with Ada.Integer_Text_IO, Ada.Numerics.Elementary_Functions; procedure Euler1_5 is type Integers is array (Natural range <>) of Integer; function aRange(size : in Integer; ints : in out Integers) return Integers is begin if size > 0 then ints(size) := size; return aRange(size-1, ints)...
------------------------------------------------------------------------------ -- -- -- Ada binding for OpenGL/WebGL -- -- -- -- ...
-- generated parser support file. -- command line: wisitoken-bnf-generate.exe --generate LR1 Ada_Emacs re2c PROCESS gpr.wy -- -- Copyright (C) 2013 - 2019 Free Software Foundation, Inc. -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public Licens...
-- Copyright 2015-2019 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 -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- -- Copyright (C) 2021, AdaCore -- pragma Style_Checks (Off); -- This spec has been automatically generated from STM32G474xx.svd with System; package Interfaces.STM32.GPIO is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Registers -- --------------- -- MODER array...
<?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/> <cdfg class_id="1" tracking_level="1" vers...
------------------------------------------------------------------------------ -- -- -- GNAT SYSTEM UTILITIES -- -- -- -- ...
with Ada.Text_IO; with Ada.Calendar; with Pendulums; procedure Main is package Float_Pendulum is new Pendulums (Float, -9.81); use Float_Pendulum; use type Ada.Calendar.Time; My_Pendulum : Pendulum := New_Pendulum (10.0, 30.0); Now, Before : Ada.Calendar.Time; begin Before := Ada.Calen...
----------------------------------------------------------------------- -- util-http-rest -- REST API support -- Copyright (C) 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 file exce...
package estado_casillero is type t_estado_casillero is (Limpio,Sucio); function random_estado return t_estado_casillero; procedure put_estado_casillero (c : in t_estado_casillero); end estado_casillero;
with Ada.Text_IO; procedure Hello is begin Ada.Text_IO.Put_Line("Hello, world!"); end Hello;
with Ada.Text_IO; use Ada.Text_IO; procedure Day20 is type Position is record X : Integer; Y : Integer; end record; function Next_Pos (Pos : Position; Dir : Character) return Position is begin case Dir is when 'N' => return (Pos.X, Pos.Y + 1); when 'S' => ret...
-------------------------------------------------------------------------------------------------------------------- -- 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 f...
with openGL.Tasks, openGL.Errors, GL.Binding, GL.Pointers, freetype_c.Binding, freetype_c.FT_Bitmap, interfaces.C; package body openGL.GlyphImpl.texture is ----------- -- Globals -- activeTextureID : openGL.texture.texture_Name; -- TODO: Check C source for how th...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- Test_Bean - A simple bean ffor unit tests -- 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 fi...
------------------------------------------------------------------------------ -- 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 -- -- ...
with Geo3x3; use Geo3x3; with Ada.Text_IO; use Ada.Text_IO; procedure Simple_Geo3x3 is T: WGS84; begin Put_Line(Encode(35.65858, 139.745433, 14)); T := Decode("E9139659937288"); Put_Line (Long_Float'Image(T.Lat) & " " & Long_Float'Image(T.Lng) & " " & Integer'Image(T.Level) & " " & Long_Float'Image(T.Unit)...
<?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="...