text
stringlengths
4
1.04M
package body Encodings.Line_Endings.Generic_Add_CR is procedure Convert( This: in out Coder; Source: in String_Type; Source_Last: out Natural; Target: out String_Type; Target_Last: out Natural ) is C: Character_Type; begin Source_Last := Source'First - 1; Target_Last := Target'First - 1; if This.St...
-- convert UCD/extracted/DerivedEastAsianWidth.txt -- bin/ucd_eastasianwidth $UCD/extracted/DerivedEastAsianWidth.txt > ../source/strings/a-ueaswi.ads with Ada.Command_Line; use Ada.Command_Line; with Ada.Containers.Ordered_Maps; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Strings; use Ada.Strings; with...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32H743x.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.CRS is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_TRIM_Field is HAL.UInt6; -- C...
with Ada.Numerics.Discrete_Random; procedure Generic_Shuffle (List : in out Array_Type) is package Discrete_Random is new Ada.Numerics.Discrete_Random(Result_Subtype => Integer); use Discrete_Random; K : Integer; G : Generator; T : Element_Type; begin Reset (G); for I in reverse List'Range loop ...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_ungrab_keyboard_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; pad0 : aliased Interfaces.Unsigned...
with System.Machine_Code; use System.Machine_Code; with STM32_SVD.Flash; use STM32_SVD.Flash; with STM32_SVD; use STM32_SVD; with System; package body Flash is procedure Init is begin null; end Init; procedure Unlock is begin Flash_Periph.KEYR := 16#4567_0123#; Flash_Periph.KEYR := 1...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
-- 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with numbers; use numbers; with strings; use strings; package address is type pos_addr_t is tagged private; null_pos_addr : constant pos_addr_t; error_address_odd : exception; function create (value : word) return pos_addr_t; procedure set (pos_addr : in out pos_addr_t; value : word); function get (pos_a...
package Agar.Core.Config is function Load return Boolean; function Save return Boolean; end Agar.Core.Config;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Varsize3_Pkg1; use Varsize3_Pkg1; package Varsize3_1 is pragma Elaborate_Body; Filter : constant Object := True; end Varsize3_1;
-- C34014P.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...
----------------------------------------------------------------------- -- util-dates-iso8601 -- ISO8601 dates -- Copyright (C) 2011, 2013, 2015, 2016, 2017, 2018, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, Universidad Politécnica de Madrid -- -- -- -- T...
-- 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...
-- General Profiler -- Author: Emanuel Regnath (emanuel.regnath@tum.de) -- -- Description: measures execution time between 'start' and 'stop'. -- Stores maximum execution time. -- -- Usage: enter loop, call 'start', execute code, call 'stop'. -- call 'get_Max' outside of loop to retrieve...
-- flyweight_example.adb -- An example of using the Flyweight package -- Copyright (c) 2016, 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 appear in al...
-- BinToAsc_Suite.Utils -- Unit test utilities for BinToAsc -- Copyright (c) 2015, James Humphry - see LICENSE file for details with System.Storage_Elements; with AUnit.Assertions; use AUnit.Assertions; with String_To_Storage_Array, Storage_Array_To_String; package body BinToAsc_Suite.Utils is use RFC4648; u...
----------------------------------------------------------------------- -- files.tests -- Unit tests for files -- Copyright (C) 2009, 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 fi...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- AUnit utils - Helper for writing unit tests -- Copyright (C) 2009, 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may n...
pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Lzma.Base; with Ada.Streams; with System; package lzma_lzma_h is -- unsupported macro: LZMA_FILTER_LZMA1 LZMA_VLI_C(0x4000000000000001) -- unsupported macro: LZMA_FILTER_LZMA2 LZMA_VLI_C(0x21) -- unsupported macro: LZMA_DICT_SIZE_MIN UI...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package Slim.Messages.rtcs is type Rtcs_Message is new Message with private; not overriding procedure Set_Format (Self : in out...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Giza.Context; with Giza.Events; use Giza.Events; with Giza.Widget.Text; with Giza.Widget.Button; use Giza.Widget; with Screen_Interface; use Screen_Interface; with Test_Main_Window; package Timer_Callback is Main_W : aliased Test_Main_Window.Main_Window; My_Str : access String := new String'("Gte...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32G474xx.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.SYSCFG is pragma Preelaborate; --------------- -- Registers -- --------------- subtype MEMRMP_MEM_MODE_Field is HAL.UInt...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
----------------------------------------------------------------------- -- util-encodes-ecc-tests - ECC function tests -- 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 e...
-- This spec has been automatically generated from out.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; -- Watchdog Timer package MSP430_SVD.WATCHDOG_TIMER is pragma Preelaborate; --------------- -- Registers -- --------------- -- WDTCTL_WDTI...
-- Copyright (c) 2013, Nordic Semiconductor ASA -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, this -- lis...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" version="0...
with -- ARM_Output, -- ARM_Contents, -- Ada.Text_IO, Ada.Exceptions, Ada.Strings.Maps.Constants, Ada.Strings.Fixed, Ada.Unchecked_Deallocation; package body ARM_HTML is -- -- Ada reference manual formatter (ARM_Form). -- -- This package defines the HTML output ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; with Ada.Assertions; with GNAT.Exception_Actions; procedure Fuzzme is Length : Integer := 3; Input : String (1 .. Length); Fd : File_Type; Filename : aliased String := Ada.Command_Line.Argument(1); procedure FuzzTest (Input : String) is Zero : Int...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
---------------------------------------------------------------- -- ZLib for Ada thick binding. -- -- -- -- Copyright (C) 2002-2003 Dmitriy Anisimkov -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- This package is intended to set up and tear down the test environment. -- Once created by GNATtest, this package will never be overwritten -- automatically. Contents of this package can be modified in any way -- except for sections surrounded by a 'read only' marker. package body Tcl.Commands.Test_Data.Tests.A...
------------------------------------------------------------------------------ -- 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 -- -- ...
<?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/> <cdfg class_id="1" tracking_level="1" version="0...
with AdaCar.Parametros; package body AdaCar.Entrada_Salida is ----------------------- -- Entrada_Salida_PO -- ----------------------- protected Entrada_Salida_PO with Priority => Parametros.Techo_Entrada_Salida_PO is procedure Init_System; function Lectura_Digital(Canal: Canal_DI) ret...
pragma License (Unrestricted); private with System.Storage_Elements; package Ada.Tags is pragma Preelaborate; type Tag is private; pragma Preelaborable_Initialization (Tag); No_Tag : constant Tag; function Expanded_Name (T : Tag) return String; function Wide_Expanded_Name (T : Tag) return Wide_Stri...
with Ahven, float_Math.Geometry.d2; package body math_Tests.Geometry_2d is use Ahven, float_Math; function almost_Equal (Left, Right : in Real) return Boolean is Tolerance : constant := 0.000_001; begin return abs (Left - Right) <= Tolerance; end almost_Equal; pro...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Swaggy Jenkins -- Jenkins API clients generated from Swagger / Open API specification -- ------------ EDIT NOTE ------------ -- This file was generated with openapi-generator. You can modify it to implement -- the server. After you modify this file, you should add the following line -- to the .openapi-genera...
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; with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_interfaces_xoverlay_h is -- unsupp...
package body Opt25_Pkg2 is function Default_Stack return Stack is begin return Default_Stack_Var; end Default_Stack; end Opt25_Pkg2;
----------------------------------------------------------------------- -- Util.Streams -- Stream utilities -- 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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- 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_query_text_extents_cookie_t is -- Item -- type Item is record sequence : aliased Interfaces.C.unsigned; end record; -- Item_Array -- type I...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- Copyright 2008-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. -- -- ...
with gel.Window.sdl, gel.Applet.gui_world, gel.Forge, gel.Sprite, gel.hinge_Joint, physics.Model, openGL.Model.box.colored, openGL.Palette, float_math.Algebra.linear.d3, ada.Text_IO, ada.Exceptions; pragma unreferenced (gel.Window.sdl); procedure launch_hinge...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Expressions; with Program.Elements.Constraints; with Program.Elements.Delta_Const...
----------------------------------------------------------------------- -- helios-schemas -- Helios schemas -- Copyright (C) 2017, 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 except...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Abstract : -- -- Output Ada source code to recreate Grammar. -- -- Copyright (C) 2018 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either versio...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Ada.Numerics.Discrete_Random; with GNAT.String_Split; with PortScan.Buildcycle.Pkgsrc; with PortScan.Buildcycle.Ports; with Replicant.Platform; with Signals; with Unix; package body PortScan.Ops is packag...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, AdaCore -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Slim.Fonts; with Slim.Menu_Models; limited with Slim.Players.Displays; package Slim.Menu_Views is type Menu_View is tagged p...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="17"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" version="0...
-- Copyright (c) 2021, Karsten Lueth (kl@kloc-consulting.de) -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- 1. Redistributions of source code must retain the above copyright notice...
----------------------------------------------------------------------- -- util-concurrent-fifos -- Concurrent Fifo Queues -- Copyright (C) 2012, 2017, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not...
package Tail_Call_P is type T is new Natural; type Index is (First, Second); type A is array (Index) of T; My_Array : A := (0, 0); procedure Insert (Into : A; Element : T; Value : T); end Tail_Call_P;
-- Copyright 2011-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. -- -- ...
package body agar.gui.widget.notebook is package cbinds is procedure set_padding (notebook : notebook_access_t; padding : c.int); pragma import (c, set_padding, "AG_NotebookSetPadding"); procedure set_spacing (notebook : notebook_access_t; spacing : c.int); pragma import...
-- { dg-do compile } -- { dg-options "-O3" } -- { dg-options "-O3 -msse" { target i?86-*-* x86_64-*-* } } package body Loop_Optimization7 is function Conv (A : Arr) return Arr is Result : Arr; begin for I in A'Range loop Result (I) := Conv (A (I)); end loop; return Result; end; end Loop_O...
with Ada.Text_IO; with Sax.Readers; with Input_Sources.Strings; with Unicode.CES.Utf8; with DOM.Readers; with DOM.Core.Documents; with DOM.Core.Nodes; with DOM.Core.Attrs; procedure Extract_Students is Sample_String : String := "<Students>" & "<Student Name=""April"" Gender=""F"" DateOfBirth=""1989-01-02"" />" &...
package Problem_64 is procedure Solve; end Problem_64;
------------------------------------------------------------------------------ -- G E L A X A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- dates.adb -- -- A program to read dates from the keyboard in the form -- day_no month_no e.g. 30 8 -- and output the next day's date in the form -- day_no month e.g. 31 AUG -- Assume it is not a leap year. -- The program loops until a zero day number is entered. -- -- version 2.0 8-Mar-07 w...
-- Copyright (c) 2019-2020 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Calendar.Formatting; with Ada.Calendar; with Ada.Containers; with Ada.Directories; with Ada.Wide_Wide_Text_IO; with GNA...
-- 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. -- -- ...
-- Copyright 2008-2020 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------csc410/prog5/as5.adb---------------------------- -- Author: Matthew Bennett -- Class: CSC410 Burgess -- Date: 11-01-04 Modified: 11-01-04 -- Due: 11-7-04 -- Desc: Assignment 5: LAMPORT'S ALGORITHM FOR VIRTUAL TOPOLOGY NETWORKS -- -- a nonproduction implementation of -- LAMPORT's ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------------- -- Concrete implementation class for the MicroChip 24XX01/24LC01B EEPROM -- -- Copyright 2022 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause -- with HAL.I2C; package EEPROM_I2C.MC24XX16 is ---------------------------...
with Ada.Text_IO; use Ada.Text_IO; with OLED_SH1106; use OLED_SH1106; with Interfaces.C; use Interfaces.C; with Bitmap_Graphics; use Bitmap_Graphics; procedure AdaOLED is Center : Point := (64, 32); P : Point := (10, 10); Q : Point := (100, 40); begin Put_Line ("OLED Display Driver Test"); if Start_Driv...
-- -- Copyright 2021 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause -- with Interfaces; private with Edc_Client.Matrix.Common; with Edc_Client.Matrix.Types; use Edc_Client.Matrix.Types; package body Edc_Client.Matrix.Double_Word is -------------------------------------------------------------...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- 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...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Discrete_Ranges; with Program.Elements.Component_Definitions; with Program.Elemen...
with Memory.RAM; use Memory.RAM; package body Test.RAM is procedure Run_Tests is mem : RAM_Pointer := Create_RAM(latency => 100, burst => 1, word_size => 4, word_count => 8); ...
-- Copyright 2017-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. local url = require("url") name = "Ask" type = "scrape" function start() setratelimit(1) end function vertical(ctx, domain) for i=1,10 do local ok...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------- -- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file) -- 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 Lic...
pragma License (Unrestricted); -- implementation unit specialized for Linux function System.System_Allocators.Allocated_Size ( Storage_Address : Address) return Storage_Elements.Storage_Count; pragma Preelaborate (System.System_Allocators.Allocated_Size); pragma Inline (System.System_Allocators.Allocated_Size);
-- -- 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...
------------------------------------------------------------------------------ -- G P S -- -- -- -- Copyright (C) 2001-2016, AdaCore -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
package GL.Materials is -- Material. Doc from the VRML 1.0 spec (refers to OpenGL): -- * The ambient color reflects ambient light evenly from all parts of -- an object regardless of viewing and lighting angles. -- -- * The diffuse color reflects all VRML light sources depending on the -- a...