CombinedText
stringlengths
4
3.42M
generic type Element_Type is digits <>; type Index_Type is (<>); type Array_Type is array(Index_Type range <>) of Element_Type; package Shell_Sort is procedure Sort(Item : in out Array_Type); end Shell_Sort;
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces.C; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_glx_get_tex_enviv_cookie_t is -- Item -- type Item is record sequence : aliased Interfaces.C.unsigned; end record; -- Item_Array -- type It...
-- TITLE main body -- AUTHOR: John Self (UCI) -- DESCRIPTION driver routines for aflex. Calls drivers for all -- high level routines from other packages. -- $Header: /co/ua/self/arcadia/aflex/ada/src/RCS/mainB.a,v 1.23 90/10/15 20:00:28 self Exp Locker: self $ --******************************************************...
with Entities; use Entities; with Rectangles; with Worlds; with Materials; with Vectors2D; use Vectors2D; with Renderer; use Renderer; with DemoLogic; use DemoLogic; with Utils; use Utils; package body AdaPhysics2DDemo is procedure Start(This : in out Menu) is SCeiling, SFloor, SRight, SLeft : EntityClass...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Program is begin Ada.Text_IO.Put("HelloWorld"); end Program;
package body Meassure_Velocity is procedure Retrieve_Velocity (Velocity_Z : out Float) is begin --if Imu.Gyro.Read.Available() not true then -- raise Gyro_Not_Available ; --end if; --Imu.gyro.read(data); --z_gyro = gyro.data(z_angle); --return z_gyro; Z_Coordinate := 2.0; Velocity_Z ...
----------------------------------------------------------------------- -- util-commands-parsers.gnat_parser -- GNAT command line parser for command drivers -- Copyright (C) 2018, 2019, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2....
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2010, AdaCore -- -- -- -- G...
with Interfaces; use Interfaces; with Interfaces.C; use Interfaces.C; generic type Element is mod <>; -- ELement type, must be mod 2**8, i.e. represent a byte type Index is range <>; -- Index type type Element_Array is array (Index range <>) of aliased Element; -- An array of aliased Elements ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- -- 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 Tarmi.Environments; use Tarmi.Environments; package Tarmi.Evaluation is function Eval (Form : Datum; Env : Environment) return Datum ; end Tarmi.Evaluation;
----------------------------------------------------------------------- -- awa-users-module -- User management module -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "L...
-- { dg-do run } -- { dg-options "-gnatws" } procedure Small_Alignment is type My_Integer is new Integer; for My_Integer'Alignment use 1; function Set_A return My_Integer is begin return 12; end; function Set_B return My_Integer is begin return 6; end; C : Character; A : My_Integer := S...
------------------------------------------------------------------------------- -- Copyright (c) 2019, Daniel King -- 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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- Copyright (c) 2015, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
------------------------------------------------------------------------ -- -- Copyright (c) 2018, Brendan T Malone All Rights Reserved. -- -- 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 a...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" version="0...
with lace.Event, lace.Subject; package gel.Keyboard with remote_Types -- -- Provides an interface for a keyboard. -- is type Item is limited interface and lace.Subject.item; type View is access all Item'class; -------- --- Keys -- type Key is (Nil, -- T...
<?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="...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Pragmas is function Create (Pragma_Token : not null Program.Lexical_Elements .Lexic...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016-2017, AdaCore -- -- -- -- ...
-- { dg-do compile } package Small_Alignment is type Int is range -512 .. 511; for Int'Alignment use 1; type R is record I: Int; end record; Pragma Pack (R); end Small_Alignment;
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
with openGL.Geometry.lit_textured, openGL.Primitive.indexed; package body openGL.Model.hexagon.lit_textured is --------- --- Forge -- function new_Hexagon (Radius : in Real; Face : in lit_textured.Face) return View is Self : constant View := new Item; begi...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
-- -- Copyright (c) 2007, 2008 Tero Koskinen <tero.koskinen@iki.fi> -- -- Permission to use, copy, modify, and 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 all copies. -- -- THE SOFTWARE IS PROVIDED "A...
pragma License (Unrestricted); -- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux) package System.Native_Command_Line is pragma Preelaborate; function Argument_Count return Natural; pragma Pure_Function (Argument_Count); pragma Inline (Argument_Count); function Argument (Number : ...
-- Lumen.Program -- Helper routines fr working with shader programs. -- -- darkestkhan, Winter 2014 -- This code is covered by the ISC License: -- -- Copyright © 2014, darkestkhan -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org) -- This software is provided 'as-is', without any express or implied warranty. -- In no event will the authors be held liable for any damages arising...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- el-methods -- Bean methods -- Copyright (C) 2010, 2021 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 co...
-- SPDX-License-Identifier: MIT -- -- Copyright (c) 2007 - 2018 Gautier de Montmollin (Maintainer of the Ada version) -- 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 Softwar...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with STM32GD.Board; with STM32_SVD; use STM32_SVD; with STM32_SVD.USART; use STM32_SVD.USART; package body Last_Chance_Handler is procedure Put_Char (Char : Byte) is begin USART1_Periph.TDR.TDR := UInt9 (Char); while USART1_Periph.ISR.TXE = 0 loop null; end loop; end Put_Char; ...
-- @(#)File: csv.ads -- @(#)Last changed: Aug 6 2015 10:07:13 -- @(#)Purpose: Character Separated Value (CSV) file support -- @(#)Author: Marc Bejerano <marcbejerano@gmail.com> -- @(#)Copyright: Copyright (C) 2015, Marc Bejerano, All Rights Reserved -- @(#)Product: None -- @...
-- C45347B.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
with Freetype; package Render.Fonts is FONT_SIZE : constant := 14; -- We reuse this object to store the current character glyph face : Freetype.FT_Face; emojiFace : Freetype.FT_Face; --glyph : Freetype.FT_GlyphSlot; function loadGlyph (c : Character; fontFace : Freetype.FT_Fac...
-- Copyright 2007-2015 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- ...
separate (Numerics.Sparse_Matrices) function Is_Square_Matrix (A : in Sparse_Matrix) return Boolean is begin if A.N_Row = A.N_Col then return True; else return False; end if; end Is_Square_Matrix;
-- { dg-do link } -- { dg-options "-largs -f -margs -flto" { target lto } } -- { dg-skip-if "missing linker support" { *-*-solaris2.* } } procedure Lto14 is begin null; end;
package Employee is type Person_T is tagged private; -- create primitive subprograms to set/get attributes for Person_T and -- to print the contents of Person_T procedure Set_Attribute (O : in out Person_T; Value : String); function Get_Attribute (O : Person_T) return St...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
generic type Element_Type is private; C_Max_Number : Positive; package Q_Gen_Shuffle is type Array_Type is array (Positive range 1 .. C_Max_Number) of Element_Type; procedure P_Shuffle (List : in out Array_Type); end Q_Gen_Shuffle;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- A string set is just a weaker form of regular expression. A string -- set is a finite set of strings where each character belongs to a set. -- -- A string set can be represented by a regex of the form -- -- [...][...][...] -- -- that is, as a concatenation of character sets. -- -- This is convenient choice when yo...
-- C52104Y.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
with Dispatch; with System.Multiprocessors.Dispatching_Domains; use System.Multiprocessors.Dispatching_Domains; procedure Main is begin Set_CPU(1); for i in 1 .. 100 loop delay 1.0; end loop; end Main;
-- C41205A.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...
-- Auteur: MOUDDENE Hamza. -- Gérer un stock de matériel informatique. package Stocks_Materiel is CAPACITE : constant Integer := 10; -- nombre maximum de matériels dans un stock type T_Nature is (UNITE_CENTRALE, DISQUE, ECRAN, CLAVIER, IMPRIMANTE); type T_Materiel is array(1..CAPACITE) of Integer...
with SPARKNaCl.Core; with SPARKNaCl.Stream; package SPARKNaCl.Cryptobox with Pure, SPARK_Mode => On is -------------------------------------------------------- -- Public Key Authenticated Encryption - "Crypto Box" -- -------------------------------------------------------- -- Limited, so no assi...
-- AOC, Day 3 with Ada.Text_IO; use Ada.Text_IO; with FMS; procedure main is begin FMS.load_file("day3_input.txt"); put_line("Part 1: " & Positive'Image(FMS.closest_intersection)); put_line("Part 2: " & Positive'Image(FMS.shortest_intersection)); end main;
with Extraction.Node_Edge_Types; package body Extraction.Source_Files_From_Projects is use type VFS.File_Array_Access; use type VFS.Filesystem_String; procedure Extract_Nodes (Project : GPR.Project_Type; Graph : Graph_Operations.Graph_Context) is Source_Files : VFS.File_Array_Access :=...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- 程序名稱必須跟檔案名稱相同 procedure Basic is -- 這個區塊是一個叫做 basic 的程序 begin -- 由此開始 null; end Basic; -- 由此結束
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
-- Abstract : -- -- Translate a wisitoken grammar file to a tree-sitter grammar file. -- -- References: -- -- [1] tree-sitter grammar: https://tree-sitter.github.io/tree-sitter/creating-parsers#the-grammar-dsl -- -- Copyright (C) 2020 Stephen Leake All Rights Reserved. -- -- This library is free software; you ca...
-- FastAPI -- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -- -- The version of the OpenAPI document: 0.1.0 -- -- -- NOTE: This package is auto generated by OpenAPI-Generator 4.0.0. -- https://openapi-generator.tech -- Do not edit the class manually....
with Ada.Directories; with Ada.Environment_Variables; package body SP.Platform is function Home_Dir return String is package Env renames Ada.Environment_Variables; User_Profile : constant String := "HOME"; begin if Env.Exists (User_Profile) then return Ada.Directories.Full_...
----------------------------------------------------------------------- -- atlas-microblog-modules -- Module microblog -- Copyright (C) 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 this file e...
with ACO.Messages; with ACO.OD_Types; with ACO.Utils.Byte_Order; with Interfaces; with System; package ACO.SDO_Commands is use Interfaces; use ACO.Messages; use ACO.OD_Types; use ACO.Utils.Byte_Order; type Unsigned_3 is mod 2 ** 3 with Size => 3; type Unsigned_2 is mod 2 ** 2 with Size => 2; sub...
separate(Basic_Declaration) procedure Subprogram_Body_Stub_Name is begin null; end Subprogram_Body_Stub_Name;
------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. (gh+flacada@heisenbug.eu) -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Containers.Indefinite_Vectors; use Ada.Containers; -- XML includes libraries with Input_Sources.File; use Input_Sources.File; with Sax.Readers; use Sax.Readers; with DOM.Readers; use DOM.Readers; with DOM.Core; use DOM.Core; with DO...
--=========================================================================== -- -- This package is the master configuration for the ItsyBitsy -- use cases: -- 3: Master ItsyBitsy -> Slave Pico -- 4: Master ItsyBitsy -> Slave ItsyBitsy -- --============================================================...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with fann_c.Pointers; with interfaces.c; with interfaces.C; package fann_c.user_function is -- Item -- type Item is access procedure (arg_5_1 : in interfaces.c.unsigned; arg_5_2 : in interfaces.c.unsigned; arg_5_3 : in interfaces....
-- 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 Tk.Test_Data is procedure ...
/*- * Copyright (c) 1980 The Regents of the University of California. * All rights reserved. * * %sccs.include.proprietary.c% * * @(#)instrs.adb 5.1 (Berkeley) 04/04/91 */ OP("adda",0x8e,2,ACCR+TYPL,ACCM+TYPL,0,0,0,0), OP("addb2",0x08,2,ACCR+TYPB,ACCM+TYPB,0,0,0,0), OP("addb3",0x18,3,ACCR+TYPB,ACCR+TYPB,ACCW+TY...
with Ada.Strings.Unbounded; with Ada.Text_IO.Text_Streams; with DOM.Core.Documents; with DOM.Core.Elements; with DOM.Core.Nodes; procedure Character_Remarks is package DC renames DOM.Core; package IO renames Ada.Text_IO; package US renames Ada.Strings.Unbounded; type Remarks is record Name : US.Unbou...
-- C95065A.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 -- -- -- -- ...
with AdaM.Environment; procedure AdaM.parse (File : in String; Into : in out AdaM.Environment.item);
package body Ada.Containers.Unbounded_Synchronized_Queues is use type Implementation.Node_Access; protected body Queue is -- overriding entry Enqueue (New_Item : Queue_Interfaces.Element_Type) when True is New_Node : constant Implementation.Node_Access := new Implementation.Node'( ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org) -- This software is provided 'as-is', without any express or implied warranty. -- In no event will the authors be held liable for any damages arising...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with System; with SDL_SDL_stdinc_h; package SDL_SDL_thread_h is -- skipped empty struct SDL_Thread function SDL_CreateThread (fn : access function (arg1 : System.Address) return int; data : System.Address) return System.Address;...
----------------------------------------------------------------------- -- util-commands-consoles-text -- Text console interface -- Copyright (C) 2014, 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you m...
-- Copyright 2014-2019 Simon Symeonidis (psyomn) -- -- 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/LICENSE-2.0 -- -- Unless required by applicable law...
-- AoC 2020, Day 10 with Ada.Text_IO; with Ada.Containers.Ordered_Maps; package body Day is package TIO renames Ada.Text_IO; function load_file(filename : in String) return Adaptors.Vector is package Natural_Text_IO is new Ada.Text_IO.Integer_IO(Natural); package Adaptor_Sorter is new Adaptors.Generic_Sor...
-- Copyright ©2022 Steve 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, merge, publish, dist...
with UxAS.Comms.Transport.Socket_Configurations; use UxAS.Comms.Transport.Socket_Configurations; with ZMQ.Sockets; package UxAS.Comms.Transport.ZeroMQ_Socket_Configurations is type ZeroMq_Socket_Configuration is new Socket_Configuration with record Zmq_Socket_Type : ZMQ.Sockets.Socket_Type; Is...
Function INI.Section_to_Map( Object : in Instance; Section: in String:= "" ) return NSO.Types.String_Map.Map is Use NSO.Types.String_Map; Begin Return Result : Map do For Item in Object(Section).Iterate loop Declare ...
-- -- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- with HAL.Real_Time_Clock; with HAL.I2C; with HAL; package DS3231 is Default_Address : constant HAL.I2C.I2C_Address := 2#1101000#; type DS3231_Device (I2C_Port : not null HAL.I2C.Any_I2C_Port; ...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with gmp_c.Pointers; with Interfaces.C; package gmp_c.pointer_Pointers is -- mp_limb_t_Pointer_Pointer -- type mp_limb_t_Pointer_Pointer is access all gmp_c.Pointers.mp_limb_t_Pointer; -- mp_limb_signed_t_Pointer_Pointer -- ...
--PRÁCTICA 4: César Borao Moratinos (chat_server_2) with Handlers; with Ada.Text_IO; with Ada.Calendar; with Chat_Messages; with Ordered_Maps_G; with Chat_Procedures; with Lower_Layer_UDP; with Ada.Command_Line; with Ada.Strings.Unbounded; procedure Chat_Server_2 is package ATI renames Ada.Text_IO; p...
<?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="...
-- Adobe Experience Manager (AEM) API -- Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API -- ------------ 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 ...