CombinedText
stringlengths
4
3.42M
-- This spec has been automatically generated from STM32F7x9.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.MDIOS is pragma Preelaborate; --------------- -- Registers -- --------------- subtype MDIOS_CR_PORT_ADDRES...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- 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 must retain the above copyright notice, t...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package Pinprint is end Pinprint;
-- -- Jan & Uwe R. Zimmer, Australia, 2013 -- with Ada.Containers.Vectors; use Ada.Containers; with Ada.Real_Time; use Ada.Real_Time; with Ada.Task_Identification; use Ada.Task_Identification; with Ada.Unchecked_Deallocation; use Ada; with Barrier_Type; use Barrier_Type; with Generic_...
----------------------------------------------------------------------- -- util-properties-json -- read json files into properties -- Copyright (C) 2013, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may n...
----------------------------------------------------------------------- -- util-http-rest -- REST API support -- Copyright (C) 2012, 2013 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; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_glx_get_mapiv_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; minor_opcode : aliased Interfaces.Unsigned_8...
------------------------------------------------------------------------------ -- -- -- ATRE COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2010, Alexander Senier -- Copyright (C) 2010, secunet Security Networks AG -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or withou...
-- Copyright 2008 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. -- -- This...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Constraints; with Program.Elements.Expressions; with Program.Lexical_Elements; package Program.Elements.Simple_Expression_Ranges is ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- MIT License -- -- Copyright (c) 2021 Glen Cornell <glen.m.cornell@gmail.com> -- -- 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 rig...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- reference: -- http://thomas.baudel.name/Visualisation/VisuTri/inplacestablesort.html package body Ada.Containers.Array_Sorting is use type System.Long_Long_Integer_Types.Word_Integer; subtype Word_Integer is System.Long_Long_Integer_Types.Word_Integer; subtype Word_Natural is System.Long_Long_Integer_Typ...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2014-2015 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 -- -- -- -- ...
-------------------------------------------------------------------------------------------------------------------- -- 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...
package Memory.Transform.Shift is type Shift_Type is new Transform_Type with private; type Shift_Pointer is access all Shift_Type'Class; function Create_Shift return Shift_Pointer; function Random_Shift(next : access Memory_Type'Class; generator : Distribution_Type; ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- druss -- Tool to control Snaga, the bbox -- Copyright (C) 2017 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...
-- Copyright (c) 2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- 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...
package sensor is function HCSR04_Distance return Float; end sensor;
------------------------------------------------------------------------------ -- -- -- Copyright (c) 2016 Vitalij Bondarenko <vibondare@gmail.com> -- -- -- ----...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- with GLOBE_3D; package Spaceship_P is procedure Create (Object : in out GLOBE_3D.p_Object_3D; Object_Scale : GLOBE_3D.Real; Centre : GLOBE_3D.Point_3D); end Spaceship_P;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- A d a r u n - t i m e s p e c i f i c a t i o n -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- FCNDECL.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. -- Unlim...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright (c) 1990 Regents of the University of California. -- All rights reserved. -- -- This software was developed by John Self of the Arcadia project -- at the University of California, Irvine. -- -- Redistribution and use in source and binary forms are permitted -- provided that the above copyright notice and t...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32H743x.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.SAI is pragma Preelaborate; --------------- -- Registers -- --------------- subtype GCR_SYNCIN_Field is HAL.UInt2; sub...
-- This spec has been automatically generated from STM32F40x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with HAL; with System; package STM32_SVD.FLASH is pragma Preelaborate; --------------- -- Registers -- --------------- ------------------ -- ACR_Register -- -----------...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
with GNAT.Spitbol; with AWS.Status; use AWS.Status; with Gprslaves.DB.JSON; with GNATCOLL.JSON; with AWS.Messages; with Gprslaves.DB; use Gprslaves.DB; package body GPR_Tools.Gprslaves.Nameserver.Server is Store : Gprslaves.DB.Table; -------------- -- Register -- -------------- procedure Register (Serve...
with Swaps; use Swaps; with Ada.Text_IO; package body Sorts is procedure Display_List (List : in Integer_List) is package IO renames Ada.Text_IO; procedure Put_String(S : String) renames Ada.Text_IO.Put; begin IO.Put ("("); for I in List'First .. List'Last loop if i /= List'Firs...
pragma Warnings (Off); pragma Style_Checks (Off); with Ada.Exceptions; use Ada.Exceptions; with Ada.Strings.Fixed; use Ada.Strings, Ada.Strings.Fixed; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; -- with Ada.Characters.Handling; use Ada.Characte...
-- Copyright 2019-2020 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- -------------------------------------------...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
pragma Ada_2012; pragma Style_Checks (Off); pragma Warnings ("U"); with Interfaces.C; use Interfaces.C; with sys_ustdint_h; package vl53l1_platform_h is -- skipped anonymous struct anon_anon_1 type VL53L1_Dev_t is record dummy : aliased sys_ustdint_h.uint32_t; -- ../platform/vl53l1_platform.h:19 en...
with Ada.Text_IO; procedure Euler17 is Word_Lengths : array(Natural range <>) of Natural := ( String'("")'Length, String'("one")'Length, String'("two")'Length, String'("three")'Length, String'("four")'Length, String'("five")'Length, String'("six")'Length, String'...
-- This spec has been automatically generated from STM32WL5x_CM0P.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 regi...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Definitions; use Definitions; with Port_Specification; private with HelperText; private with Ada.Containers.Hashed_Maps; package Specification_Parser is package PSP renames Port_Specification; -- P...
-- SPDX-FileCopyrightText: 2019-2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Complete_Contexts.Assignment_Statements; with Program.Complete_Contexts.Call_Statements; with Program.Complete_Contexts.Case_Statements; w...
----------------------------------------------------------------------- -- awa-images -- Image module -- 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 except in complian...
<?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="...
-- Abstract : -- -- Subprograms common to more than one parser, higher-level than in wisitoken.ads -- -- Copyright (C) 2018 - 2019 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Fre...
with HAL; use HAL; with STM32; use STM32; with STM32.GPIO; use STM32.GPIO; with STM32.Device; use STM32.Device; package body Serial_IO is protected body Serial_Port_Controller is procedure Init (Baud_Rate : Baud_Rates) is Tx_Pin : constant GPIO_Point := PB6; ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
function Spiral (N : Positive) return Array_Type is Result : Array_Type (1..N, 1..N); Left : Positive := 1; Right : Positive := N; Top : Positive := 1; Bottom : Positive := N; Index : Natural := 0; begin while Left < Right loop for I in Left..Right - 1 loop Result (Top, I) :=...
with Ada.Unchecked_Conversion; package Tkmrpc.Response.Ike.Isa_Skip_Create_First.Convert is function To_Response is new Ada.Unchecked_Conversion ( Source => Isa_Skip_Create_First.Response_Type, Target => Response.Data_Type); function From_Response is new Ada.Unchecked_Conversion ( Source => R...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Declarations; with Program.Elements.Defining_Identifiers; with Program.Lexical_Elements; with Program.Elements.Expressions; package P...
------------------------------------------------------------------------------ -- G E L A X A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
with Ada.Integer_Text_IO; with Ada.Text_IO; package body Problem_28 is package IO renames Ada.Text_IO; package I_IO renames Ada.Integer_Text_IO; procedure Solve is sum : Positive := 1; last : Positive := 1; begin for row in 2 .. 1_001 loop declare adder : constant Posi...
<?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 -- -- -- -- ...
-- Copyright 2017-2021 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. local json = require("json") name = "Sublist3rAPI" type = "api" function start() set_rate_limit(1) end function vertical(ctx, domain) local page, err = re...
package Employee_Data is type Employee_T is limited private; type Hourly_Rate_T is new Integer; -- better implementation type Id_T is new Integer; -- better implementation function Create (Name : String; Rate : Hourly_Rate_T) return Employee_T; function Id (Employee : Emp...
-- Copyright (c) 1990 Regents of the University of California. -- All rights reserved. -- -- This software was developed by John Self of the Arcadia project -- at the University of California, Irvine. -- -- Redistribution and use in source and binary forms are permitted -- provided that the above copyright notice and t...
with Ada.Calendar; use Ada.Calendar; package body Lto16_Pkg is function F return Float is F1 : Float := Float (Seconds (Clock)); F2 : Float := Float (Seconds (Clock)); F : Float; begin if F1 > F2 then F := (F2 - F1) / 2.0; else F := (F1 - F2) / 2.0; end if; return F; end...
with Ada.Text_IO; with FunctionX; use Ada.Text_IO; use FunctionX; procedure Exercise is StaffMember : Employee; begin StaffMember.EmployeeNumber := 704702; StaffMember.FirstName := "Jonathan"; StaffMember.LastName := "Jensen"; StaffMember.HourlySalary := 22.84; Put_Line("Employee Record...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with VisitablePackage, EnvironmentPackage, VisitFailurePackage; use VisitablePackage, EnvironmentPackage, VisitFailurePackage; package body NoStrategy is ---------------------------------------------------------------------------- -- Object implementation -----------------------------------------------------------...
-- CE3806G.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...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Formal_Type_Definitions; with Program.Lexical_Elements; package Program.Elements.Formal_Ordinary_Fixed_Point_De...
-- This spec has been automatically generated from STM32L0x3.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.ADC is pragma Preelaborate; --------------- -- Registers -- --------------- -- interrupt and status regis...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; with Ada.Exceptions; with SPDX; procedure Main is Fail_Cnt : Natural := 0; Pass_Cnt : Natural := 0; procedure Test (Str : String; Expected_Error : String := ""; Allow_Custom : Boolean := False); ...
with System.Storage_Elements; package body Interfaces.C.Pointers is use type System.Storage_Elements.Storage_Offset; -- no System.Address_To_Access_Conversions for modifying to Pure function To_Pointer (Value : System.Address) return access Element with Import, Convention => Intrinsic; function To_A...
<?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 RP.Device; with RP.Clock; with RP.GPIO; with Pico; package body BB_Pico_Bsp is begin RP.Clock.Initialize (Pico.XOSC_Frequency); RP.Clock.Enable (RP.Clock.PERI); RP.Device.Timer.Enable; RP.GPIO.Enable; RP.DMA.Enable; end BB_Pico_Bsp;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.SUPC is pragma Preelaborate; --------------- -- Registers -- --------------- -- Interrupt Enable Clear type SUPC_INTE...
------------------------------------------------------------------------------ -- Copyright (c) 2014-2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- upload_servlet -- Servlet example to upload files on the server -- Copyright (C) 2012, 2015, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License");...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Entry_Index_Specifications is function Create (For_Token : not null Program.Lexical_Eleme...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright 2017-2021 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. local json = require("json") name = "FullHunt" type = "api" function start() set_rate_limit(1) end function vertical(ctx, domain) local resp, err = reques...
with Ada.Containers; use Ada.Containers; with Ada.Directories; use Ada.Directories; with Blueprint; use Blueprint; with AAA.Strings; use AAA.Strings; with Ada.Command_Line; with Templates_Parser; with Filesystem; with Commands; package body Commands.Announce is ------------- -- Execute -- --------...
----------------------------------------------------------------------- -- awa-storages-beans -- Storage Ada Beans -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
with AUnit.Test_Suites; with AUnit.Test_Fixtures; with AUnit.Test_Caller; with Testsuite.Encode; with Testsuite.Decode; private with Test_Utils.Abstract_Decoder; private with Test_Utils.Abstract_Encoder; package Testsuite.Encode_Decode is procedure Set_Kinds (E : Testsuite.Encode.Encoder_Kind; ...