CombinedText
stringlengths
4
3.42M
-- This spec has been automatically generated from STM32F7x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.CRYP is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_ALGOMODE0_Field is ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with gel.Sprite, gel.Joint, gel.human_Types_v1, physics.Model, openGL.Model, openGL.Program; limited with gel.World; private with collada.Library.visual_scenes; package gel.Human_v1 -- -- Provides access to and control of a 'make_human' produced model. -- is type Item is...
with STM32.Device; use STM32.Device; with STM32.GPIO; use STM32.GPIO; package STM32.Board is pragma Elaborate_Body; subtype User_LED is GPIO_Point; Red_LED : User_LED renames PB2; LCH_LED : User_LED renames PB2; procedure Initialize_Board; procedure Initialize_LEDs; procedure Turn_On ...
-- This spec has been automatically generated from STM32F7x9.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; -- STM32F7x9 package STM32_SVD is pragma Preelaborate; -------------------- -- Base addresses -- -------------------- RNG_Base : cons...
with Interfaces; package GESTE_Config is type Color_Index is range 0 .. 20; subtype Output_Color is Interfaces.Unsigned_16; Transparent : constant Output_Color := 391; Tile_Size : constant := 16; type Tile_Index is range 0 .. 82; No_Tile : constant Tile_Index := 0; end GESTE_Config;
------------------------------------------------------------------------------ -- Copyright (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt with AdaBase.Connection.Base.MySQL; with AdaBase.Bindings.MySQL; with Ada.Containers.Vectors; package AdaBase.Statement.Base.MySQL is package ACM renames AdaBase.Connection.Base.MySQL; package ABM rename...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with RP.ROM; pragma Unreferenced (RP.ROM); package Runtime is -- crt0.S expects this symbol to exist. It is called after main returns. procedure OS_Exit (Status : Integer) with Export => True, Convention => C, External_Name => "exit"; procedure HardFault_Handler w...
------------------------------------------------------------------------------- -- 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...
with Samples.Petstore.Clients; with Samples.Petstore.Models; with Swagger; with Util.Http.Clients.Curl; with Ada.Text_IO; with Ada.Command_Line; with Ada.Calendar.Formatting; with Ada.Exceptions; procedure Samples.Petstore.Client is use Ada.Text_IO; procedure Usage; Server : constant Swagger.UString := S...
package body tests is testVal : Unsigned_64 := 0; procedure runTests is use ASCII; parseResult : Boolean; codeGenResult : Boolean; errmsg : Unbounded_String; insts : InstructionVector.Vector; -- a bit hacky... short-hand for To_Unbounded_String function...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
-- THIS GENERIC PROCEDURE IS INTENDED FOR USE IN CONJUNCTION WITH THE -- ACVC CHAPTER 13 C TESTS. IT IS INSTANTIATED FOR A TYPE WHOSE -- REPRESENTATION IS TO BE CHECKED, AND THEN THE PROCEDURE REP_CHECK -- IS CALLED WITH TWO ARGUMENTS, THE FIRST IS A VALUE OF THE TYPE TO -- BE CHECKED, AND THE SECOND IS A STRING DE...
----------------------------------------------------------------------- -- util-http-clients-mockups -- HTTP Clients -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use t...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package body String_Sets_Utils is function From_Vector (V : Vector) return Set is Return_Value : Set; begin for E of V loop Return_Value.Include (E); end loop; return Return_Value; end From_Vector; function To_Str...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
procedure Puzzle_11 is begin null; end Puzzle_11;
------------------------------------------------------------------------------ -- -- -- Hardware Abstraction Layer for STM32 Targets -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
pragma Ada_2012; with Ada.Strings.Fixed; with Ada.Strings.Maps; package body EU_Projects.Times.Time_Expressions.Parsing is ------------------------ -- Fill_With_Defaults -- ------------------------ procedure Fill_With_Defaults (Container : in out Symbol_Table) is begin Define_Function (Contai...
with GL; use GL; with GLU; use GLU; with Glut; use Glut; with GNAT.OS_Lib; package body ada_sphere_procs is procedure display is begin glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT); glutSolidSphere(1.0, 10, 10); glutSwapBuffers; end display; procedure reshape(w : Integer; h : Integer) is ...
-- 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 = "Shodan" type = "api" function start() setratelimit(2) end function vertical(ctx, domain) if (api == nil or api.key == "") ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2018 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-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. -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- C52103A.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 Libadalang.Analysis; use Libadalang.Analysis; with Libadalang.Common; use Libadalang.Common; with Rejuvenation.Match_Patterns; use Rejuvenation.Match_Patterns; with Rejuvenation.Patterns; use Rejuvenation.Patterns; with Placeholder_Relations; use Placeholder_Relations; with Rewrite...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- OEML _ REST API -- This section will provide necessary information about the `CoinAPI OEML REST API` protocol. This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a> -- -- The version of the OpenAPI document: v1 -- C...
-- reference: -- http://www.mudpedia.org/mediawiki/index.php/Xterm_256_colors with System.Address_To_Named_Access_Conversions; with System.Formatting; with System.Long_Long_Integer_Types; with System.Once; with C.stdlib; package body System.Native_Text_IO.Terminal_Colors is use type C.char_array; use type C.cha...
-- Copyright 2011-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. -- -- ...
-- Ada regular expression library -- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net> -- Report bugs and issues on <https://github.com/skordal/ada-regex> with Ada.Strings.Unbounded; with Regex.State_Machines; use Regex.State_Machines; package body Regex.Matchers is function Matches (Input :...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
<?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 HWIF_Types; use HWIF_Types; with MMap; with System.Storage_Elements; with System; pragma Elaborate(MMap); package HWIF is Addr : constant System.Address := MMap.Get_MMAP_RW; function "+" (A : in System.Address; B : in System.Storage_Elements.Storage_Offset) ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Unchecked_Deallocation; with PB_Support.IO; with PB_Support.Internal; package body Google.Protobuf.Duration is function Length (Self : Duration_Vector) return Natural is begin return Self.Length; end Length; procedure Clear (Self : in out Duration_Vector) is begin Self.Length := 0...
-- Copyright 2011-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. -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright (c) 1990 Regents of the University of California. -- All rights reserved. -- -- The primary authors of ayacc were David Taback and Deepak Tolani. -- Enhancements were made by Ronald J. Schmalz. -- -- Send requests for ayacc information to ayacc-info@ics.uci.edu -- Send bug reports for ayacc to ...
-- -- Copyright (C) 2017, AdaCore -- -- This spec has been automatically generated from STM32F46_79x.svd pragma Ada_2012; pragma Style_Checks (Off); with System; package Interfaces.STM32.PWR is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Registers -- --------------- ...
----------------------------------------------------------------------- -- asf-navigations-render -- Navigator to render a page -- 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 ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Renaming8_Pkg3; use Renaming8_Pkg3; package Renaming8_Pkg2 is type Arr is array (Positive range 1 .. Last_Index) of Boolean; type Rec is record E : Arr; end record; function F return Rec; end Renaming8_Pkg2;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY COMPONENTS -- -- -- -- ...
with Ada.Text_IO; with Ada.Exceptions; use Ada.Exceptions; package body kv.avm.File_Reader is procedure Parse_Input_File (Self : in out Reader; File_In : in String) is File : Ada.Text_IO.File_Type; Buffer : String(1..1024); Length : Natural := 0; Line : Natural := 0;...
-- basic_operations.adb with Ada.Text_IO; use Ada.Text_IO; procedure basic_operations is TestInteger : Integer := 7; TestNatural : Natural := 0; TestPositive : Positive := 1; begin -- do some basic operations on the Integer TestInteger := TestInteger - 14; Put_Line("This is the integer: " & Integer'Image(TestIn...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright 2012-2016 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- ...
----------------------------------------------------------------------- -- security-openid-servlets - Servlets for OpenID 2.0 Authentication -- Copyright (C) 2010, 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Li...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Operator_Symbols is function Create (Operator_Symbol_Token : not null Program.Lexical_Elements .Lexical_Element_...
-- CE2109B.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
package body STM32F4.Reset_Clock_Control is HSE_VALUE : constant := 8_000_000; -- External oscillator in Hz HSI_VALUE : constant := 16_000_000; -- Internal oscillator in Hz HPRE_Presc_Table : constant array (Bits_4) of Word := (1, 1, 1, 1, 1, 1, 1, 1, 2, 4, 8, 16, 64, 128, 256, 512); PPRE_Presc_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="...
------------------------------------------------------------------------------ -- Copyright (c) 2016, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
----------------------------------------------------------------------- -- awa-blogs-servlets -- Serve files saved in the storage service -- Copyright (C) 2017, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- yo...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with Interfaces.C.Pointers; with Interfaces.C.Strings; with System; package clib.Pointers is -- time_t_Pointer -- type time_t_Pointer is access all clib.time_t; -- time_t_Pointers -- type time_t_Pointers is array (Inte...
with Ada.Integer_Text_IO; procedure Euler6 is Sum_Of_Squares, Sum_Of_Ints: Integer := 0; begin for I in Integer range 1 .. 100 loop Sum_Of_Squares := Sum_Of_Squares + I * I; Sum_Of_Ints := Sum_Of_Ints + I; end loop; Ada.Integer_Text_IO.Put(Sum_Of_Ints * Sum_Of_Ints - Sum_Of_Squares); end Euler6...
-- -- Copyright (C) 2006-2013, AdaCore -- -- This package provides a general block copy mechanism analogous to that -- provided by the C routine memmove allowing for copies with overlap. with System; use System; with Interfaces.C; use Interfaces.C; package Memory_Move is pragma Preelaborate; procedure memmove...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
-- CE2109A.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 LIBRARY COMPONENTS -- -- -- -- ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with System; with GL.API; package body GL.Objects.Textures.With_1D_Loader is procedure Load_Empty_Texture (Object : Target; Level : Mipmap_Level; ...
pragma License (Unrestricted); -- extended unit with Ada.Strings.Generic_Unbounded.Generic_Functions; with Ada.Strings.Wide_Functions; package Ada.Strings.Unbounded_Wide_Strings.Functions is new Generic_Functions (Wide_Functions); pragma Preelaborate (Ada.Strings.Unbounded_Wide_Strings.Functions);
with ada.strings.unbounded; use ada.strings.unbounded; with ada.text_io; use ada.text_io; package text_file is -- Ecriture une chaîne dans un fichier procedure write_string_to_file(file_path, content : string); -- Lire le fichier dans la chaîne procedure read_file_to_string(file_path : string; conten...
------------------------------------------------------------------------------ -- -- -- Hardware Abstraction Layer for STM32 Targets -- -- -- -- ...
<?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 COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright 2012-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. -- -- ...
with Ada.Containers; use Ada.Containers; with Ada.Containers.Hashed_Maps; with Ada.Containers.Vectors; package body Lto21_Pkg2 is pragma Suppress (Tampering_Check); procedure Proc is function Hash (Syd : Natural) return Hash_Type is (Hash_Type'Mod (Syd)); package Vect2 is new Vectors (Positive, N...
-- C64104O.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...
<?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...
<?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="...
-- This spec has been automatically generated from msp430g2553.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; -- USCI_B0 SPI Mode package MSP430_SVD.USCI_B0_SPI_MODE is pragma Preelaborate; --------------- -- Registers -- --------------- --...
with Ada.Text_IO; use Ada.Text_IO; procedure Rendezes_Fv is type Index is new Integer; type Elem is new Integer; type Tomb is array (Index range <>) of Elem; function Max_Hely ( T: Tomb ) return Index is Mh: Index := T'First; begin for I in T'Range loop if...
package body Construct_Conversion_Array with SPARK_Mode is ---------------------- -- Conversion_Array -- ---------------------- function Conversion_Array return Conversion_Array_Type is Conversion_Array : Conversion_Array_Type := (others => Zero); begin for J in Product_Index_Type loop ...
package body Plugin.Base is procedure Say (Message : IRC.Message) is Arguments : Vector := Words (Message.Content); Answer : IRC.Message := Message; begin Answer.Channel := Arguments (2); Delete (Arguments, 1); Delete (Arguments, 1); Answer.Content := Unwords (Arguments); ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- awa-commands-drivers -- Driver for AWA commands for server or admin tool -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); --...