text
stringlengths
4
1.04M
generic type Color (<>) is private; Screen_Width : Positive; Screen_Height : Positive; with function Color_Map (X, Y : Integer) return Color; with function Height_Map (X, Y : Integer) return Integer; with procedure Draw_Vertical_Line (X, Start_Y, Stop_Y : Integer; C : Color); package Ada_Voxel is ...
-------------------------------------------------------------------------------------------------------------------- -- 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 Ada.Characters.Handling; use Ada.Characters.Handling; with Ada.Strings; with Ada.Strings.Maps; with Ada.Strings.Fixed; with Ada.Wide_Text_IO; use Ada.Wide_Text_IO; with Ada.Calendar; with Ada.Calendar.Formatting; with Ada.IO_Exceptions; with Asis.Compilation_Units; with Asis.Elements; with Asis.Text; with Asis.Ex...
with Entities; use Entities; with Vectors2D; use Vectors2D; with Ada.Containers.Doubly_Linked_Lists; with Links; use Links; with Collisions; use Collisions; package Worlds is package EntsList is new Ada.Containers.Doubly_Linked_Lists(EntityClassAcc); type EntsListAcc is access EntsList.List; package LinksLi...
with IntList, Ada.Text_IO; use Ada.Text_IO; procedure Main is List : IntList.T; begin for I in 1 .. 20 loop IntList.Insert( List, I ); end loop; for I in 1 .. 20 loop if ( I mod 3 = 0 ) then IntList.Remove( List, I ); end if; end loop; IntList.Print( List ); Put_Line...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with File_Operations; with Ada.Characters.Latin_1; with Ada.Directories; with Ada.Exceptions; with Ada.Text_IO; package body INI_File_Manager is package EX renames Ada.Exceptions; package LAT renames Ada.C...
<?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="...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Interfaces.C; package Glfw is subtype Seconds is Interfaces.C.double; subtype Size is Interfaces.C.int range 0 .. Interfaces.C.int'Last; Initialization_Exception : exception; Operat...
-- The Beer-Ware License (revision 42) -- -- Jacob Sparre Andersen <jacob@jacob-sparre.dk> wrote this. As long as you -- retain this notice you can do whatever you want with this stuff. If we meet -- some day, and you think this stuff is worth it, you can buy me a beer in -- return. -- -- Jacob Sparre Andersen w...
------------------------------------------------------------------------------ -- AGAR CORE LIBRARY -- -- A G A R -- -- S p e c -- ----...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces.C; with xcb.xcb_client_message_data_t; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_client_message_data_iterator_t is -- Item -- type Item is record data : access xcb.xcb_client_message_data_t.Item...
-- This spec has been automatically generated from STM32L4x6.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.DMA is pragma Preelaborate; --------------- -- Registers -- --------------- -- interrupt status register ...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2018 Luke A. Guest -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising fr...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Unchecked_Conversion; package Tkmrpc.Response.Cfg.Tkm_Reset.Convert is function To_Response is new Ada.Unchecked_Conversion ( Source => Tkm_Reset.Response_Type, Target => Response.Data_Type); function From_Response is new Ada.Unchecked_Conversion ( Source => Response.Data_Type, ...
-- Generated by Snowball 2.2.0 - https://snowballstem.org/ package Stemmer.Catalan with SPARK_Mode is type Context_Type is new Stemmer.Context_Type with private; procedure Stem (Z : in out Context_Type; Result : out Boolean); private type Context_Type is new Stemmer.Context_Type with record I_P2 : Inte...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with gmp_c.Pointers; with gmp_c.a_a_gmp_randstate_struct; with gmp_c.gmp_randstate_t; with gmp_c.mp_ptr; with gmp_c.mp_srcptr; with gmp_c.mpf_ptr; with gmp_c.mpf_srcptr; with gmp_c.mpf_t; with gmp_c.mpq_ptr; with gmp_c.mpq_srcptr; with gmp_c.mpz_ptr;...
<?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="...
package body System.Shared_Locking is pragma Suppress (All_Checks); procedure Enter is begin Enter_Hook.all; end Enter; procedure Leave is begin Leave_Hook.all; end Leave; end System.Shared_Locking;
----------------------------------------------------------------------- -- nodes-core -- Core nodes -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may no...
with impact.d3.Vector; with impact.d3.Scalar; with ada.unchecked_Deallocation; package body impact.d3.convex_Hull is ------------ --- Globals -- generic type T is private; procedure Any_swap (A, B : in out T); procedure Any_swap (A, B : in out T) is Pad : constant T := A; be...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with XML.SAX.Writers; with Incr.Documents; with Incr.Parsers.Incremental; package Incr.Debug is package P renames Incr.Parse...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- gen-model-list -- List bean interface for model objects -- Copyright (C) 2009, 2010, 2011, 2012, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "L...
-- Copyright 2015-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. -- -- ...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with SDL_SDL_stdinc_h; with SDL_SDL_keysym_h; with Interfaces.C.Strings; package SDL_SDL_keyboard_h is SDL_ALL_HOTKEYS : constant := 16#FFFFFFFF#; -- ../include/SDL/SDL_keyboard.h:67 SDL_DEFAULT_REPEAT_DELAY : constant := 500;...
package ItsyBitsy_UART_Interrupt_Handlers is UART0_Data_Received : Boolean := False; private procedure UART0_IRQ_Handler with Export => True, Convention => C, External_Name => "isr_irq20"; end ItsyBitsy_UART_Interrupt_Handlers;
----------------------------------------------------------------------- -- babel-stores -- Storage management -- Copyright (C) 2014, 2015, 2016 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 RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright 2008, 2009, 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 ve...
------------------------------------------------------------------------------- -- -- FIXED TYPES -- -- Fixed_Short & Fixed_Sat_Short definitions -- -- The MIT License (MIT) -- -- Copyright (c) 2015 Gustavo A. Hoffmann -- -- Permission is hereby granted, free of charge, to ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------- -- 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 without...
----------------------------------------------------------------------- -- mat-readers-tests -- Unit tests for MAT readers -- Copyright (C) 2014, 2015, 2019, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you m...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Cross_Reference_Updaters; with Program.Elements.Discrete_Ranges; with Program.Elements.Expressions; with Program.Interpretations; with Program....
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- with Real_Type; use Real_Type; generic Dimension : Positive; package Matrices is type Matrix is array (1 .. Dimension, 1 .. Dimension) of Real; -- function Image (Matrix : Matrix_3D) return String; function "*" (A, B : Matrix) return Matrix; funct...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- AGAR GUI LIBRARY -- -- A G A R . W I D G E T -- -- B o d y -- -- ...
-------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2020 Zane Myers -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software witho...
------------------------------------------------------------------------------ -- 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...
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; -- limited -- with GStreamer.GST_Low_Level.glib_2_0_gobject_gparam_h; -- limited with GStreamer.GST_Low_Level.glib_2_0_glib_glist_h; -- limited w...
<?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></userIPName> <cdfg class_id="1" tracking_level="1" version="...
-- 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 Tashy2.Test_Data is proced...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- C24106A.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 -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
package body System.Formatting.Literals.Float is pragma Suppress (All_Checks); function copysignl (X, Y : Long_Long_Float) return Long_Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_copysignl"; procedure Get_Aft ( Item : String; Last : in out Natural; ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Defining_Names; with Program.Elements.Expressions; with Program.Elements.Aspect_S...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. with Ada.Tags; use Ada.Tags; with Apsepp.Test_Node_Class.Testing; use Apsepp.Test_Node_Class.Testing; with Apsepp.Abstract_Early_Test_Case; use Apsepp.Abstract_Early_Test_Case; package Aps...
-- 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_best_size_cookie_t is -- Item -- type Item is record sequence : aliased Interfaces.C.unsigned; end record; -- Item_Array -- type Item...
with Ada.Assertions; use Ada.Assertions; with Ada.Containers.Ordered_Maps; use Ada.Containers; with Ada.Text_IO; use Ada.Text_IO; with Input; use Input; procedure Day04 is type Hour is array (Natural range 0 .. 59) of Natural; package Time_Maps is new Ordered_...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Lumen.Binary.Endian.Shorts -- Byte re-ordering routines for "short" -- (16-bit) values -- -- -- Chip Richards, NiEstu, Phoenix AZ, Summer 2010 -- This code is covered by the ISC License: -- -- Copyright © 2010, NiEstu -- -- Permission to use, copy, modify, and/or distribute this softw...
with aIDE.GUI, aIDE.Editor.of_subtype_indication, AdaM.a_Type.enumeration_literal, glib.Error, gtk.Builder, gtk.Handlers; with Ada.Text_IO; use Ada.Text_IO; package body aIDE.Editor.of_array_type is use Gtk.Builder, Glib, glib.Error; function on_type_name_Entry_l...
package FLTK.Devices is type Device is new Wrapper with private; private type Device is new Wrapper with null record; end FLTK.Devices;
------ WHILE / LOOP / FOR procedure Hello is a: Integer; b: Float ; c: Boolean; function uno(a,b:in Integer) return Integer is begin Put(one); for I in 1..1 loop Get(a); end loop; return True; end uno; begin b := 2.0; c := True; wh...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with AUnit.Assertions; use AUnit.Assertions; package body Day.Test is procedure Test_Part1 (T : in out AUnit.Test_Cases.Test_Case'Class) is pragma Unreferenced (T); orbits : constant Orbit_List.Vector := load_orbits("test1.txt"); count : constant Orbit_Checksum := orbit_count_checksum(orbits); ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- { dg-do compile } -- { dg-options "-gnatd.h" } with Concat1_Pkg; use Concat1_Pkg; package Concat1 is C : constant Natural := Id_For ("_" & Image_Of); end Concat1;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
--------------------------------------------------------------------------------- -- Copyright 2004-2005 © Luke A. Guest -- -- This code is to be used for tutorial purposes only. -- You may not redistribute this code in any form without my express permission. ------------------------------------------------------------...
with Ada.Command_Line; with Ada.Text_IO; with ZMQ; procedure HWServer is function Main return Ada.Command_Line.Exit_Status is Context : constant ZMQ.Context_Type := ZMQ.New_Context; Responder : constant ZMQ.Socket_Type'Class := Context.New_Socket (ZMQ.ZMQ_REP); begin Responder.Bind ("tcp:/...
w←1 2 3 1 2 3 4 1 ((⍳⍨w)=⍳⍴w)/w 1 2 3 4
------------------------------------------------------------------------------ -- -- -- 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...
with Interfaces.C.Strings, System; use type Interfaces.C.Strings.chars_ptr, System.Address; package body FLTK.Widgets.Inputs.Integer is procedure int_input_set_draw_hook (W, D : in System.Address); pragma Import (C, int_input_set_draw_hook, "int_input_set_draw_hook"); pra...
------------------------------------------------------------------------------ -- -- -- tiled-code-gen -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- This file is generated by SWIG. Please do not modify by hand. -- with xcb.xcb_request_error_t; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_alloc_error_t is -- Item -- subtype Item is xcb.xcb_request_error_t.Item; -- Item_Array -- type Item_Array is array (Interface...
-- 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...
<?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="...
------------------------------------------------------------------------------------- -- -- EXCEL_OUT - A low level package for writing Microsoft Excel (*) files -- -- Pure Ada 95 code, 100% portable: OS-, CPU- and compiler- independent. -- -- Version / date / download info: see the version, reference, web string...
with Ada.Containers.Indefinite_Vectors; package Protypo.Api.Engine_Values.Engine_Value_Vectors is new Ada.Containers.Indefinite_Vectors (Index_Type => Positive, Element_Type => Engine_Value); -- package Engine_Value_Vectors is -- subtype Engine_Value_Array is Engine_...
with Ada.IO_Exceptions; with AWS.Config.Set; with Swagger.Servers.AWS; with Swagger.Servers.Applications; with Util.Log.Loggers; with Util.Properties; with .Servers; procedure .Server is procedure Configure (Config : in out AWS.Config.Object); CONFIG_PATH : constant String := ".properties"; procedure Config...
with ada.Strings.Hash; package body any_Math.any_Geometry.any_d3.any_Modeller is use ada.Containers; function Hash (Site : in my_Vertex) return ada.Containers.Hash_type is use ada.Strings; begin return Hash ( Site (1)'Image & Site (2)'Image & Site (...
-- SPDX-License-Identifier: MIT -- -- Copyright (c) 2000 - 2018 Gautier de Montmollin -- SWITZERLAND -- -- 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...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2018 Luke A. Guest -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising fr...
with Ada.Numerics.Discrete_Random; with Ada.Containers.Vectors; use Ada.Containers; with Applicative; use Applicative; with Util; use Util; -- Package containing functions for generating random numbers. package Distribution is -- Type to represent a random distribution. type Distribution_Type is limite...
---------------------------------------------------------------- -- ZLib for Ada thick binding. -- -- -- -- Copyright (C) 2002-2003 Dmitriy Anisimkov -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
<<Top>> Put_Line("Hello, World"); goto Top;
-- Generated by Snowball 2.2.0 - https://snowballstem.org/ package body Stemmer.Irish is pragma Style_Checks ("-mr"); pragma Warnings (Off, "*variable*is never read and never assigned*"); pragma Warnings (Off, "*mode could be*instead of*"); pragma Warnings (Off, "*formal parameter.*is not modified*"); ...
-- The MIT License (MIT) -- Copyright (c) 2015 Pavel Zhukov <landgraf@fedoraproject.org> -- 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 limit...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package Game.Test_Data.Tests.Attributes_Container is end Game.Test_Data.Tests.Attributes_Container;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...