CombinedText
stringlengths
4
3.42M
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- Copyright (c) 2006-2013, Maxim Reznik -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistr...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016-2017, AdaCore -- -- -- -- ...
-- #include "impact.d3.striding_Mesh.triangle_index_vertex_array.h" package body impact.d3.striding_Mesh.triangle_index_vertex_array -- -- -- is procedure addIndexedMesh (Self : in out Item; mesh : in btIndexedMesh) is begin Self.m_indexedMeshes.append (mesh); -- Self.m_indexedMeshes[m_i...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, Fabien Chouteau -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired) -- -- Copyright William A. Whitaker (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is C...
pragma License (Unrestricted); -- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux) with Ada.IO_Exceptions; with Ada.IO_Modes; with Ada.Streams; with System.Native_IO; with C.termios; package System.Native_Text_IO is pragma Preelaborate; subtype Handle_Type is Native_IO.Handle_Type; -- ...
----------------------------------------------------------------------- -- css-commands-list -- List command for CSS tools -- Copyright (C) 2018, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use t...
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; with glib.Values; with System; with glib; with System; limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstelement_h; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_gsturi_h is -- arg-mac...
------------------------------------------------------------------------------- -- 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 of s...
----------------------------------------------------------------------- -- components-utils-escape -- Escape generated content produced by component children -- Copyright (C) 2011, 2012, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Vers...
----------------------------------------------------------------------- -- keystore-marshallers -- Data marshaller for the keystore -- Copyright (C) 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not us...
-- C47004A.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...
-- 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.SPI is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR1_BR_Field is HAL.UI...
------------------------------------------------------------------------------ -- -- -- Internet Protocol Suite Package -- -- -- -- -...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- This file is generated by SWIG. Please do not modify by hand. -- with xcb.xcb_request_error_t; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_length_error_t is -- Item -- subtype Item is xcb.xcb_request_error_t.Item; -- Item_Array -- type Item_Array is array (Interfac...
----------------------------------------------------------------------- -- Util.Serialize.Mappers.Record_Mapper -- Mapper for record types -- Copyright (C) 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License");...
------------------------------------------------------------------------------ -- AGAR CORE LIBRARY -- -- A G A R . T I M E R -- -- S p e c -- ----...
-- Lambda Calculus interpreter -- --------------------------- -- Parses and reduces Lamdba Calculus statements. -- -- Source: -- lambda - definitions and helper functions -- lambda_REPL - [This file] REPL and command line parsers -- lambda_parser - parse tree generator -- lambda_reducer - optimises and redu...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
-- 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...
----------------------------------------------------------------------- -- events-tests -- Unit tests for AWA events -- Copyright (C) 2012, 2019 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 fi...
pragma SPARK_Mode; with Types; use Types; with Interfaces; use Interfaces; -- @summary -- Interface to Arduino Wire library -- -- @description -- Provides an interface to the Arudino Wire library. This is used for -- I2C busses. -- package Wire is -- Return result of a transmission -- @value Success succe...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Ada.Directories; with Ada.Direct_IO; with Ada.Text_IO; with HelperText; package body File_Operations is package DIR renames Ada.Directories; package TIO renames Ada.Text_IO; package HT renames Help...
with Numerics, Ada.Text_IO; use Numerics, Ada.Text_IO; package Molecular_Dynamics is use Real_Functions, Real_IO, Int_IO; type BC_Vectype is array (Nat range <>) of Boolean; function Verlet (R : in Pos2D_Vector; R_New : in Pos2D_Vector; Is_BC : in BC_Vectype; Dt : in Real) retur...
-- { dg-do compile } -- { dg-options "-O2" } procedure boolean_subtype is subtype Component_T is Boolean; function Condition return Boolean is begin return True; end; V : Integer := 0; function Component_Value return Integer is begin V := V + 1; return V; end; Most_Sig...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- Copyright (c) 2016-2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h; with glib; with glib.Values; with System; with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h; with System; package GStreamer.GST_Low_Level....
-- -- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- with HAL.UART; with System; package Last_Chance_Handler is procedure Initialize (UART : not null HAL.UART.Any_UART_Port); procedure Last_Chance_Handler (Source_Location : System.Address; ...
----------------------------------------------------------------------- -- are-tests -- Various tests for the are tool (based on examples) -- Copyright (C) 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Defining_Identifiers; with Program.Elements.Definitions; with Program.Elements.Formal_Type_Definitions;...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME 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 -- -- ...
-- This package was generated by the Ada_Drivers_Library project wizard script package ADL_Config is Vendor : constant String := "STMicro"; -- From board definition Max_Mount_Points : constant := 2; -- From default value Max_Mount_Name...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO, Ada.Containers.Vectors; procedure RPN_Calculator is package IIO is new Ada.Text_IO.Float_IO(Float); package Float_Vec is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => Float); Stack: Float_Vec.Vector; Input: String := Ada.Text_IO.Get_Line; Cursor: Positive :...
-- Copyright 2014-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. -- -- ...
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- 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. ...
-- { dg-do run } with Init7; use Init7; with Text_IO; use Text_IO; with Dump; procedure S7 is A1 : R1 := My_R1; A2 : R2 := My_R2; N1 : Nested1; N2 : Nested2; C1 : Integer; C2 : Integer; C3 : Integer; begin Put ("A1 :"); Dump (A1'Address, R1'Max_Size_In_Storage_Elements); New_Line; -- { dg-o...
-- Copyright 2005 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 2 of the License, or -- (at your option) any later version. -- -- This...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" generic type Instance is limited new Refcount_Base with private; type Reference is tagged private; type Accessor (Data : not null access Instance) is limited private; with function Value ...
-- C45632A.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) 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 of s...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Declarations; with Program.Lexical_Elements; with Program.Elements.Defining_Identifiers; with Program.Elements.Known_Discriminant_Part...
pragma SPARK_Mode(ON); with Types; use Types; package gpsModule with SPARK_Mode is Top_Left : constant Types.Point := (667271.0, 6398091.0, 0.0); Bottom_Right : constant Types.Point := (677862.0, 6397724.0, 0.0); function gpstest(Position : Types.Point) return Boolean with Post => (if Gpstest'Result the...
------------------------------------------------------------------------------ -- Copyright (c) 2015-2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
package GPR_Tools is VERSION : constant String := "2.0.3"; end GPR_Tools;
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
<?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...
-- 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. -- -- ...
-- C95078A.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...
package SubmarineSubSystem with SPARK_Mode is type Operational is (On, Off); -- Can Submarine Operate? type DoSomething is (Fire, CantFire); -- Test for actions can only be done once, -- Nuclear Submarine is operational. --Door Duntionality types type AirDoorOne is...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- akt-callbacks -- Callbacks for Ada Keystore GTK application -- 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 m...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2018, AdaCore -- -- -- -- ...
with display,Ada.Containers.Hashed_Maps ; with Ada.Strings.Hash; with Ada.text_io; use Ada.text_io; package body snake_types is function Hash_Func(Key : character) return Ada.Containers.Hash_Type is begin return Ada.Strings.Hash(Key'Image); end Hash_Func; end snake_types ; ...
with Extraction.Node_Edge_Types; with Extraction.Utilities; package body Extraction.Subp_Overrides is procedure Extract_Nodes (Node : LAL.Ada_Node'Class; Graph : Graph_Operations.Graph_Context) is begin if Utilities.Is_Relevant_Basic_Decl (Node) and then Node.As_Basic_Decl.P_Is_Subprogram ...
-- This package was generated by the Ada_Drivers_Library project wizard script package ADL_Config is Max_Mount_Points : constant := 2; -- From default value Max_Mount_Name_Length : constant := 128; -- From default value Has_Ravenscar_Ful...
-- Copyright (c) 2021 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Streams.Stream_IO; with League.Strings; with Network.Connection_Promises; with Network.Connections; with Network.Streams; p...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package FLTK.Widgets.Inputs.Float is type Float_Input is new Input with private; type Float_Input_Reference (Data : not null access Float_Input'Class) is limited null record with Implicit_Dereference => Data; package Forge is function Create (X, Y, W, H : in Integer;...
------------------------------------------------------------------------------ -- Copyright (c) 2014-2015, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with box2d_c.Binding, box2d_physics.Object, c_math_c.Vector_3, c_math_c.Matrix_4x4, c_math_c.Conversion, Swig, interfaces.C, ada.unchecked_Deallocation, ada.unchecked_Conversion; package body box2d_Physics.Joint is use c_math_c.Conversion, box2d_c.Binding, ...
-- C41303G.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) 2010-2020 by Heisenbug Ltd. (github@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 Hocev...
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with System; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h; with glib; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_app_gstappbuffer_h is -- unsupported macro: GST_TYPE_APP_BUFFER (gst_app_...
package body impact.d3.motion_State.default is function to_motion_State (startTrans, centerOfMassOffset : Transform_3d := impact.d3.Transform.getIdentity) return Item is Self : Item; begin Self.m_graphicsWorldTrans := startTrans; Self.m_centerOfMassOffset := centerOfMassOffset; Self....
----------------------------------------------------------------------- -- util-processes-tests - Test for processes -- Copyright (C) 2011, 2016, 2018, 2019, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you m...
----------------------------------------------------------------------- -- secret-tests - Unit tests for secret service library -- 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 th...
-- Copyright 2007, 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. -- --...
-- CC1227A.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 Tkmrpc.Servers.Ike; with Tkmrpc.Results; with Tkmrpc.Request.Ike.Ae_Reset.Convert; with Tkmrpc.Response.Ike.Ae_Reset.Convert; package body Tkmrpc.Operation_Handlers.Ike.Ae_Reset is ------------------------------------------------------------------------- procedure Handle (Req : Request.Data_Type; Res : ou...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt package Definitions is pragma Pure; raven_version_major : constant String := "1"; raven_version_minor : constant String := "71"; copyright_years : constant String := "2015-2021"; raven_tool ...
-- This file is generated by SWIG. Please do not modify by hand. -- with xcb.xcb_request_error_t; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_access_error_t is -- Item -- subtype Item is xcb.xcb_request_error_t.Item; -- Item_Array -- type Item_Array is array (Interfac...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with interfaces.c; with interfaces.C; package fann_c.fann_neuron is -- Item -- type Item is record first_con : aliased interfaces.c.unsigned; last_con : aliased interfaces.c.unsigned; sum : aliased fann_c...
-- io.adb -- Plays with console IO. -- Note that Ada is case-INSENSITIVE. -- -- Simon Heath -- 19/7/2004 with Ada.Text_Io; use Ada.Text_Io; procedure Io is C : Character; S : String(1..32); begin Put_Line( "This reads information and then displays it." ); Put_Line( "Please type a character then 'enter'" )...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
-- Auto generated file. Don't edit -- Read copyright and license at the end of this file package Encodings.Maps.CP_852 is function Decode (Char : Character) return Wide_Character; pragma Inline (Decode); procedure Encode (Text : in Wide_String; Text_Last : out Natural; Res...
-- -- 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. -- package Symbols is type Symbol_Type i...
-------------------------------------------------------------------- --| Package : DISPLAY Version : 1.0 -------------------------------------------------------------------- --| Abstract : Provides a display object for the Mahjongg game. --| This package handles hard...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- C97301E.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...
pragma License (Unrestricted); -- runtime unit specialized for Darwin with C.pthread; with C.signal; package System.Stack is pragma Preelaborate; procedure Get ( Thread : C.pthread.pthread_t := C.pthread.pthread_self; Top, Bottom : out Address); procedure Fake_Return_From_Signal_Handler; fun...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with ada.Strings.Hash; package body lace.Event is function Hash (the_Kind : in Kind) return ada.Containers.Hash_type is begin return ada.Strings.Hash (String (the_Kind)); end Hash; end lace.Event;
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
----------------------------------------------------------------------- -- files.tests -- Unit tests for files -- Copyright (C) 2009, 2010, 2011, 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...
-- SPDX-FileCopyrightText: 2010-2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Characters.Wide_Wide_Latin_1; package body WebIDL.String_Sources is -------------- -- Get_Next -- -------------- overriding fun...
with Interface_Pkg; procedure Main_Proc is begin Interface_Pkg.Find_Prime; end Main_Proc;
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...