text
stringlengths
4
1.04M
<?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...
-- This package was generated by the Ada_Drivers_Library project wizard script package ADL_Config is Vendor : constant String := "STMicro"; -- From board definition Max_Mount_Points : constant := 2; -- From default value Max_Mount_Name...
package Test_Container is end Test_Container;
-- { dg-do compile } package Universal_Fixed is Nm2Metres : constant := 1852.0; type Metres is delta 1.0 range 0.0 .. 1_000_000.0; type Nautical_Miles is delta 0.001 range 0.0 .. (Metres'Last + (Nm2Metres / 2)) / Nm2Metres; end Universal_Fixed;
with GL; with GLOBE_3D.Math; package body Actors is use GLOBE_3D, GLOBE_3D.Math, GLOBE_3D.REF, Game_Control, GL; procedure Limited_Translation (actor : in out GLOBE_3D.Camera; gc : Game_Control.Command_set; ...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
----------------------------------------------------------------------- -- asf-converters-dates -- Date Converters -- Copyright (C) 2011, 2012, 2013, 2014, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Asynchronous_Fifo; with Ada.Text_Io; use Ada.Text_Io; procedure Asynchronous_Fifo_Test is package Int_Fifo is new Asynchronous_Fifo(Integer); use Int_Fifo; Buffer : Fifo; task Writer is entry Stop; end Writer; task body Writer is Val : Positive := 1; begin loop ...
-- C64201B.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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
procedure Hello is begin Put_Line ("Hello, world!"); end Hello;
pragma Ada_2012; with Ada.Strings.Unbounded; with Ada.Strings.Equal_Case_Insensitive; with Ada.Text_IO; use Ada.Text_IO; with Ada.Unchecked_Deallocation; with Ada.Containers.Vectors; with Ada.Containers.Ordered_Sets; with EU_Projects.Nodes.Partners; with EU_Projects.Nodes.Action_Nodes.WPs; with EU_Projects.Nodes.Acti...
with gel.Window.lumen, gel.Applet.gui_world, gel.Forge, gel.Sprite, openGL.Palette, openGL.Model.text.lit_colored_textured, Physics; pragma unreferenced (gel.Window.lumen); procedure launch_text_sprite_Demo -- -- Shows a few text sprites. -- is use gel.Applet, gel.Math...
-- { dg-do run } with Init12; use Init12; with Text_IO; use Text_IO; with Dump; procedure R12 is function Get_Elem (A : Arr1) return Integer is Tmp : Arr1 := A; begin return Tmp(1); end; procedure Set_Elem (A : access Arr1; I : Integer) is Tmp : Arr1 := A.all; begin Tmp(1) := I; A.all ...
with Interfaces.C; use type Interfaces.C.int; package body FLTK.Screen is function fl_screen_x return Interfaces.C.int; pragma Import (C, fl_screen_x, "fl_screen_x"); pragma Inline (fl_screen_x); function fl_screen_y return Interfaces.C.int; pragma Import (C, fl_scr...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
package datos is Max_Elem : constant Integer := 10; type Vector_De_Enteros is array (Integer range <>) of Integer; type Lista_Enteros is record Numeros : Vector_De_Enteros (1 .. Max_Elem); Cont : Integer; end record; type Vector_De_Reales is array (Integer ra...
-- 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...
------------------------------------------------------------------------------ -- AGAR CORE LIBRARY -- -- A G A R . D A T A _ S O U R C E -- -- S p e c -- ----...
------------------------------------------------------------------------------ -- -- -- Ada binding for OpenGL/WebGL -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- search-testsuite -- Testsuite for search -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exce...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package Program.Elements.Clauses is pragma Pure (Program.Elements.Clauses); type Clause is limited interface and Program.Eleme...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- C92005B.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. -- Unlimite...
with Vector_package, Ada.Integer_Text_IO,Ada.Text_IO; use Vector_package, Ada.Text_IO; procedure DemoVec is V: Vector(5); V2: Vector(5); Arr : TArray := (1,8); begin insert(V,2); insert(V,5); insert(V,5); insert(V2,5); insert(V2,2); insert(V2,2); --assign(V2,3,7); if (compare(V,V2)=...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="11"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
with GL, GL.Binding, openGL.Tasks, interfaces.C; package body openGL.Renderer is use GL, interfaces.C; procedure Background_is (Self : in out Item; Now : in openGL.Color; Opacity : in Opaqueness := 1.0) is begin Self...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Formal_Derived_Type_Definitions is function Create (Abstract_Token : Program.Lexical_Elements.L...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2021 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 2017 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. local json = require("json") name = "ThreatCrowd" type = "api" function start() setratelimit(10) end function vertical(ctx, domain) local c local cfg = dat...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.Low_Level.Enums; package GL.Objects.Queries is pragma Preelaborate; type Query_Object is new GL_Object with private; Default_Query : constant Query_Object; procedure Begin_Query ...
with Ada.Text_IO; use Ada.Text_IO; procedure cal is type daynum is range 1 .. 31; type monthnum is range 1 .. 12; type monthname is (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec); type weekday is (Mon, Tue, Wed, Thu, Fri, Sat, Sun); --variables today_weekday : weekday; today_monthnu...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2019 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...
----------------------------------------------------------------------- -- facebook - Use Facebook Graph API -- Copyright (C) 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 use this file...
package Test.Cache is procedure Run_Tests; end Test.Cache;
-- This spec has been automatically generated from STM32L4x3.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.COMP is pragma Preelaborate; --------------- -- Registers -- --------------- subtype COMP1_CSR_COMP1_PWRMO...
------------------------------------------------------------------------------ -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- CB1010D.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 ncurses Binding -- -- -- -- ...
-- 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. -- -- ...
-- Based on AdaCore's Ada Drivers Library, -- see https://github.com/AdaCore/Ada_Drivers_Library, -- checkout 93b5f269341f970698af18f9182fac82a0be66c3. -- Copyright (C) Adacore -- Initially based on stm32f7xx_hal_sd.h -- V1.0.4 -- 09-December-2015 -- -- Tailored to StratoX project. -- Author: Martin Becker (be...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------- -- -- -- 0MQ Ada-binding -- -- -- ...
with interfaces.C, System; package Freetype_C -- -- Provides core types for the Freetype C library. -- is use Interfaces; -- FT_UShort -- subtype FT_UShort is C.unsigned_short; type FT_UShort_array is array (C.Size_t range <>) of aliased FT_UShort; -- FT_Int -- subtype F...
----------------------------------------------------------------------- -- awa-audits-services -- AWA Audit Manager -- Copyright (C) 2018, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this fil...
-- 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_is_query_arb_cookie_t is -- Item -- type Item is record sequence : aliased Interfaces.C.unsigned; end record; -- Item_Array -- type Ite...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package Giza.Bitmap_Fonts.FreeSansOblique32pt7b is Font : constant Giza.Font.Ref_Const; private FreeSansOblique32pt7bBitmaps : aliased constant Font_Bitmap := ( 16#00#, 16#3E#, 16#00#, 16#7C#, 16#00#, 16#F0#, 16#03#, 16#E0#, 16#07#, 16#C0#, 16#0F#, 16#80#, 16#1E#, 16#00#, 16#7C#, 16#00#, 16#F8#, 16#01#, 1...
package body LATIN_FILE_NAMES is function ADD_FILE_NAME_EXTENSION(NAME, EXTENSION : STRING) return STRING is -- This is the version that creates a DOS file name -- One that has a name, a '.', and an extension no longer than 3 characters -- Arbitarily, we also truncate the NAME to 8 characters -- To...
with Ada.Text_IO; procedure Integers is Value : Integer := 1; begin loop Ada.Text_IO.Put_Line (Integer'Image (Value)); Value := Value + 1; -- raises exception Constraint_Error on overflow end loop; end Integers;
-- This file is generated by SWIG. Please do *not* modify by hand. -- with gmp_c.a_a_mpq_struct; with Interfaces.C; package gmp_c.MP_RAT is -- Item -- subtype Item is gmp_c.a_a_mpq_struct.Item; -- Items -- type Items is array (Interfaces.C.size_t range <>) of aliased gmp_c.MP_RAT.Item; -- ...
with Asis, AdaM.Source; package AdaM.Assist.Query.find_All.Actuals_for_traversing is type Traversal_State is record parent_Stack : AdaM.Source.Entities; ignore_Starter : asis.Element := asis.Nil_Element; end record; Initial_Traversal_State : constant Traversal_State ...
-- generated parser support file. -- command line: wisitoken-bnf-generate.exe --generate LR1 Ada_Emacs re2c PROCESS text_rep ada.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 Publ...
with Rejuvenation.Match_Patterns; use Rejuvenation.Match_Patterns; with Rejuvenation.Node_Locations; use Rejuvenation.Node_Locations; with Rejuvenation.Patterns; use Rejuvenation.Patterns; with Rejuvenation.Text_Rewrites; use Rejuvenation.Text_Rewrites; package Rejuvenation.Find_And_Replacer is type Match_A...
----------------------------------------------------------------------- -- pipe -- Print the GNAT version by using a pipe -- 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 fil...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- ZLib for Ada thick binding. -- -- -- -- Copyright (C) 2002-2004 Dmitriy Anisimkov -- -- ...
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
with openGL.Texture, freetype_c.FT_GlyphSlot; private with openGL.Geometry.lit_textured, openGL.Primitive.indexed, GL; package openGL.GlyphImpl.texture -- -- Implements a texture-based glyph. -- is type Item is new GlyphImpl.item with private; type View is access all Item'Class; -...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- ...
package body WFC is function Modular_Index (Matrix : in Element_Matrix; X, Y : Natural) return Element_Type with Inline is Matrix_X : constant Natural := ((X - Matrix'First(1)) mod Matrix'Length(1)) + Matrix'First(1); Matrix_Y : constant Natural := ((Y - Matrix'First(2)) mod Matrix'Length(2)) + Matrix...
-- { dg-do compile } pragma Restrictions (No_Streams); with Ada.Containers.Ordered_Maps; package No_Streams is type Arr is new String (1..8); package My_Ordered_Map is new Ada.Containers.Ordered_Maps (Key_Type => Natural, Element_Type => Arr); end No_Streams;
----------------------------------------------------------------------- -- contexts-facelets -- Contexts for facelets -- Copyright (C) 2009, 2010, 2011, 2013, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ...
---------------------------------------------------------------------------- -- Symbolic Expressions (symexpr) -- -- Copyright (C) 2012, Riccardo Bernardini -- -- This file is part of symexpr. -- -- symexpr is free software: you can redistribute it and/or modify -- it under the t...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- tiled-code-gen -- -- -- -- ...
-- -- Copyright (C) 2019, AdaCore -- -- Copyright (c) 2010 - 2018, 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: -- -- 1. Redistributions of source code mu...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
private with STM32.GPIO, STM32.Device; package TTS_Example2 is procedure Main; private use STM32.GPIO, STM32.Device; Probe_TT_Point : GPIO_Point := PD2; Probe_ET_Point : GPIO_Point := PD6; end TTS_Example2;
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with League.String_Vectors; package WebIDL.Contexts is pragma Preelaborate; type Context is tagged limited private; private type Context is tag...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- C62003A.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...
-- Mojang Session API -- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -- -- OpenAPI spec version: 2020_06_05 -- -- -- NOTE: This package is auto generated by the swagger code generator 3.3.4. -- https://openapi-generator.tech -- Do not edit the class...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" procedure GL.Load_Function_Pointers; pragma Preelaborate (GL.Load_Function_Pointers);
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
pragma Ada_2012; package body Protypo.Api.Callback_Utilities is --------------------- -- Match_Signature -- --------------------- function Match_Signature (Parameters : Engine_Value_Vectors.Vector; Signature : Class_Array) return Boolean is ...
with Interfaces; use Interfaces; package body Natools.Static_Maps.Web.Error_Pages.Messages is P : constant array (0 .. 0) of Natural := (0 .. 0 => 3); T1 : constant array (0 .. 0) of Unsigned_8 := (0 .. 0 => 4); T2 : constant array (0 .. 0) of Unsigned_8 := (0 .. 0 => 6); G : constant ar...
with Pig; with Ada.Text_IO; with Ada.Command_Line; procedure automatic_Pig is use Pig; type Robot is new Actor with record Bound: Natural := 20; Final_Run: Natural := 0; end record; function Roll_More(A: Robot; Self, Opponent: Player'Class) return Boolean; function Roll_More(A: Robot; Sel...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Package body Cycle_computations ---------------------------------------------------------------------------- -- Copyright Miletus 2015 -- 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 wi...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- AoC 2020, Day 17 with Ada.Text_IO; package body Day is package TIO renames Ada.Text_IO; function location_hash(key : in Location) return Hash_Type is begin return Hash_Type(abs((key.x * 137) + (key.y * 149) + (key.z * 163) + (key.w * 13))); end location_hash; procedure parse_line(line : in String; ...
with Ada.Text_IO; package body MyString is function To_String(M : MyString) return String is Result : String(1..M.Length); begin Result := String(M.Str(M.Str'First..M.Length)) ; return Result; end To_String; function From_String(S : String) return MyString is M : MyString := (Leng...
package Exception_Declaration is The_Exception : exception; end Exception_Declaration;
<?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="...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- Copyright 2015-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. -- -- ...