CombinedText
stringlengths
4
3.42M
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Recurve - recover curves from a chart (in JPEG, PNG, or other image format) -- -- Currently supports only charts on a white background -- -- By David Malinge and Gautier de Montmollin -- -- Started 28-Jun-2016 with GID; with Ada.Calendar; with Ada.Characters.Handling; use Ada.Characters....
-- Import necessary packages with Ada.Text_IO; -- Our main function is "Hello_World" procedure Hello_World is -- Declare local variables here begin -- Execute statements here. -- Include the full package, like Python Ada.Text_IO.Put_Line("Hello, world!"); end Hello_World; -- Semicolon ends statements, ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Parameter_Specifications; with Program.Elements.Anonymous_Access_To_Procedures; w...
------------------------------------------------------------------------------ -- 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 -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure owo is begin Put_Line (" *Notices Bulge*"); Put_Line ("__ ___ _ _ _ _ _"); Put_Line ("\ \ / / |__ __ _| |_ ( ) ___ | |_| |__ (_) ___"); Put_Line (" \ \ /\ / /| '_ \ / _\`| __|// / __| | __| '_ \| |/ __|"); Pu...
-- Hyperion API -- Hyperion Monitoring API The monitoring agent is first registered so that the server knows it as well as its security key. Each host are then registered by a monitoring agent. -- -- The version of the OpenAPI document: 1.0.0 -- Contact: Stephane.Carrez@gmail.com -- -- NOTE: This package is auto...
----------------------------------------------------------------------- -- security-openid -- OpenID 2.0 Support -- Copyright (C) 2009, 2010, 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...
-- Copyright 2008-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. -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Formal_Private_Type_Definitions is function Create (Abstract_Token : Program.Lexical_Elements.Lexical_Element_Access; ...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package xopintrin_h is -- Copyright (C) 2007-2017 Free Software Foundation, Inc. -- This file is part of GCC. -- GCC is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public L...
-- Copyright 2008-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. -- -- ...
package Aggr16 is procedure Proc; end Aggr16;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; package body Lib_A is ------------------- -- Print_Content -- ------------------- procedure Print_Content is File : File_Type; begin Open (File, In_File, Lib_A.Resources.Resource_Path & "/text_file.txt"); while not End_Of_File (File) loop ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- druss-commands-status -- Druss status commands -- Copyright (C) 2017, 2018, 2019, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ma...
----------------------------------------------------------------------- -- compress -- Compress file using Util.Streams.Buffered.LZMA -- Copyright (C) 2019, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
with Zip.Headers; with Ada.Characters.Handling; with Ada.Unchecked_Deallocation; with Ada.Exceptions; with Ada.IO_Exceptions; with Ada.Strings.Fixed; package body Zip is use Interfaces; procedure Dispose is new Ada.Unchecked_Deallocation (Dir_node, p_Dir_node); procedure Dispose is new Ada.Unchecked_Deallo...
with ada.Numerics.discrete_Random; procedure lace.Containers.shuffle_Vector (the_Vector : in out vectors.Vector) is use type vectors.Index_type; begin for i in reverse 2 .. vectors.Index_type (the_Vector.Length) -- Start from 2, since swapping the loop ...
-------------------------------------------------------------------------------------------------------------------- -- 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...
with Ada.Numerics.Big_Numbers.Big_Integers; use Ada.Numerics.Big_Numbers.Big_Integers; with Ada.Containers.Vectors; with Fibonacci; use Fibonacci; with Perfect_Number; use Perfect_Number; with Primes; use Primes; package Aux_Image is function Img (X : Natural) return String renames Natural'Image; function I...
-- Standard Ada library specification -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. -- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaRe...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is X : Integer; begin X := 1 * 'a'; end;
with Ada.Text_IO; procedure Hello_World is use Ada.Text_IO; begin Put_line ("Hello World"); end Hello_World;
----------------------------------------------------------------------- -- asf-beans-requests -- Bean giving access to the request object -- 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 ...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_poly_rectangle_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; pad0 : aliased Interfaces.Unsigned_...
-------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2020 Zane Myers -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software witho...
-- C94004B.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="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
-- Abstract : -- -- See spec. -- -- Copyright (C) 2017 - 2020 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 Free -- Software Foundation; either version 3, or (at your option) ...
-- -- Copyright (C) 2021, AdaCore -- pragma Style_Checks (Off); -- This spec has been automatically generated from STM32L562.svd with System; package Interfaces.STM32.RCC is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Registers -- --------------- -- Clock control ...
------------------------------------------------------------------------------ -- G E L A X A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
generic type Object is limited private; type Object_Access is access all Object; package Program.Relative_Access_Types is type Relative_Access is limited private; function "+" (Value : Object_Access) return Relative_Access with Inline; function "-" (Value : Relative_Access) return Object_Access with In...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- { dg-do compile } -- { dg-options "-O -flto -g" { target lto } } package body Lto15 is function Proc (Data : Arr) return R is begin return (Data'Length, Data); end; end Lto15;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package UxAS.Common is end UxAS.Common;
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Formal_Decimal_Fixed_Point_Definitions is function Create (Delta_Token : not null Program.Lexical_Elements.Lexical_Eleme...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- MIT License -- Copyright (c) 2021 Stephen 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,...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- util-factory -- Factory for UI Util Components -- Copyright (C) 2009, 2010 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not ...
-- -- Copyright (c) 2002-2003, David Holm -- 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 of source code must retain the above copyright notice, -- this ...
with AdaBase; with Connect; with Ada.Text_IO; procedure Fruit2 is package CON renames Connect; package TIO renames Ada.Text_IO; numrows : AdaBase.Affected_Rows; -- Intentionally broken UPDATE command (calories misspelled) cmd : constant String := "UPDATE fruits set caloriesx = 14 " & ...
M:custom S:Lcustom.aligned_alloc$size$1$13({2}SI:U),B,1,-4 S:Lcustom.aligned_alloc$alignment$1$13({2}SI:U),B,1,1 F:G$custom_command$0$0({2}DF,SC:U),Z,0,8,0,0,0 S:Lcustom.custom_command$msg$1$123({3}DG,STu2f_hid_msg:S),B,1,1 S:Lcustom.custom_command$res$1$124({4}STatecc_response:S),B,1,8 S:Lcustom.custom_command$ec$1$12...
with STM32.Setup; package body STM32.Board is --------------------- -- Initialize_LEDs -- --------------------- procedure Initialize_LEDs is Configuration : GPIO_Port_Configuration; LED : GPIO_Point := Red_LED; begin Enable_Clock (LED); Configuration.Mode := Mode_Out; ...
package Rev with SPARK_Mode is procedure Reve (S : in out String) with SPARK_Mode, Pre => S'First < Positive'Last / 2 and S'Last < Positive'Last / 2, Post => (for all I in S'Range => S(I) = S'Old(S'First + S'Last - I)); end Rev;
-- C95065C.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...
-- { dg-do compile } -- { dg-options "-g" } with Taft_Type2_Pkg; use Taft_Type2_Pkg; package body Taft_Type2 is procedure Proc is A : T; function F return T is My_T : T; begin My_T := Open; return My_T; end; begin A := F; end; end Taft_Type2;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Extraction.Graph_Operations; private package Extraction.Decls is procedure Extract_Nodes (Node : LAL.Ada_Node'Class; Graph : Graph_Operations.Graph_Context); procedure Extract_Edges (Node : LAL.Ada_Node'Class; Graph : Graph_Operations.Graph_Context); end Extraction.Decls;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- awa-settings -- Settings module -- 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 not use this file except...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
pragma License (Unrestricted); -- specialized for Darwin private with System.Interrupt_Numbers; private with C.signal; package Ada.Interrupts.Names is -- This package is system-specific. SIGHUP : constant Interrupt_Id; SIGINT : constant Interrupt_Id; SIGQUIT : constant Interrupt_Id; SIGILL : constant ...
-- Copyright 2008, 2009, 2010, 2011 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later ve...
-- Copyright 2004-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. -- -- ...
with Ada.Text_IO; -- reuse Is_Prime from [[Primality by Trial Division]] with Is_Prime; procedure Mersenne is function Is_Set (Number : Natural; Bit : Positive) return Boolean is begin return Number / 2 ** (Bit - 1) mod 2 = 1; end Is_Set; function Get_Max_Bit (Number : Natural) return Natural is ...
with Ada.Real_Time; use Ada.Real_Time; with ada.strings.unbounded; use ada.strings.unbounded; with ada.strings.unbounded.text_io; use ada.strings.unbounded.text_io; package devices1 is --------------------------------------------------------------------- ------ Access time for devices ------------------...
-- C35A05Q.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 Ada.Exception_Identification.From_Here; package body Ada.Hierarchical_File_Names is use Exception_Identification.From_Here; function Parent_Directory_Name ( Level : Positive; Path_Delimiter : Character) return String; function Parent_Directory_Name ( Level : Positive; Path_D...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Element_Visitors; with Program.Elements.Component_Definitions; with Program.Elements.Defining_Identifiers; with Program.E...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- -- Copyright (C) 2015-2016 secunet Security Networks AG -- -- 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 2 of the License, or -- (at your option) any later version. -- -- ...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Nodes.Generic_Vectors; with Program.Elements.Expressions; package Program.Nodes.Expression_Vectors is new Program.Nodes.Generic_Vectors ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Compilation_Units; with Program.Compilation_Unit_Vectors; limited with Program.Library_Unit_Declarations; package Program.Library_Items is ...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; package uctermid_h is -- * Copyright (c) 2000, 2002-2006, 2008-2010, 2012 Apple Inc. All rights reserved. -- * -- * @APPLE_LICENSE_HEADER_START@ -- * -- * This file contains Original Code and/or Modi...
-- @(#)File: logging-logevent.ads -- @(#)Last changed: July 21 2015 14:51:00 -- @(#)Purpose: Application and system logging -- @(#)Author: Marc Bejerano <marcbejerano@gmail.com> -- @(#)Copyright: Copyright (C) 2015, Marc Bejerano, All Rights Reserved -- @(#)Product: None -- ...
package Plugin_Emoji is pragma Elaborate_Body; end Plugin_Emoji;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
package body System.Long_Long_Elementary_Functions is function Fast_Log (X : Long_Long_Float) return Long_Long_Float is begin return Long_Long_Float (Fast_Log (Long_Float (X))); end Fast_Log; function Fast_Exp (X : Long_Long_Float) return Long_Long_Float is begin return Long_Long_Float (Fas...
with Ada.Text_Io, Ada.Integer_Text_Io, Datos; with Crear_Lista_Vacia, Ins, Esc, Calcular_Maximo_y_Posicion; use Datos; use Ada.Text_Io, Ada.Integer_Text_Io; procedure Prueba_Calcular_Maximo_y_posicion is Lis : Lista; -- variable del programa principal Maximo, Posicion: Integer; procedure Pedir_Return i...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- ...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces.C; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_query_colors_cookie_t is -- Item -- type Item is record sequence : aliased Interfaces.C.unsigned; end record; -- Item_Array -- type Item_Ar...
package FLTK.Images.RGB is type RGB_Image is new Image with private; type RGB_Image_Reference (Data : not null access RGB_Image'Class) is limited null record with Implicit_Dereference => Data; function Copy (This : in RGB_Image; Width, Height : in Natural) ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
procedure Cserel (A, B: in out T) is Tmp: T := A; begin A := B; B := Tmp; end Cserel;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- keystore-passwords-tests -- Tests for Keystore.Passwords -- Copyright (C) 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package Named is XYZ : constant := 2#0100_0000_0000#; end Named;
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
-- Copyright 2012-2014 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.Directories; use Ada.Directories; with Ada.Text_IO; use Ada.Text_IO; with Ada.Calendar.Formatting; use Ada.Calendar.Formatting; procedure File_Time_Test is begin Put_Line (Image (Modification_Time ("file_time_test.adb"))); end File_Time_Test;
package body Benchmark.QSort is function Create_QSort return Benchmark_Pointer is begin return new QSort_Type; end Create_QSort; procedure Set_Argument(benchmark : in out QSort_Type; arg : in String) is value : constant String := Extract_Argument(arg); begin...
-- Copyright 2008-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 COMPILER COMPONENTS -- -- -- -- ...
package Unknown_Discriminant is type Type_1 (<>) is private; private type Type_1 (Size : Natural) is null record; end Unknown_Discriminant;
with Ada.Containers.Indefinite_Ordered_Sets; with Ada.Finalization; with Ada.Text_IO; use Ada.Text_IO; procedure Heronian is package Int_IO is new Ada.Text_IO.Integer_IO(Integer); use Int_IO; -- ----- Some math... function GCD (A, B : in Natural) return Natural is (if B = 0 then A else GCD (B, A mod B)); ...
-- -- Copyright 2021 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause -- with RP.Device; with RP.Clock; with RP.GPIO; with RP.I2C_Master; with ItsyBitsy; with Transport.Serial; with Matrix_Area_Word; with Matrix_Area_Double_Word; package body Initializer is ------------------------------------...
with GNAT.String_Split; with Ada.Strings.Fixed; package body UxAS.Comms.Data.Addressed is ---------------------- -- Is_Valid_Address -- ---------------------- function Is_Valid_Address (Address : String) return Boolean is Delimiter_Pos : Natural; use Ada.Strings.Fixed; begin if Addre...