CombinedText
stringlengths
4
3.42M
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright 2008-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. -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Ada.Exception_Identification.From_Here; with System.Address_To_Named_Access_Conversions; with System.Standard_Allocators; with System.Storage_Elements; with System.Zero_Terminated_Strings; with C.errno; with C.fnmatch; with C.stdint; package body System.Native_Directories.Searching is use Ada.Exception_Identifi...
----------------------------------------------------------------------- -- AWA.Blogs.Models -- AWA.Blogs.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-spec.xhtml -- Ada Generator: https://ada-gen.go...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER 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...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- C64109K.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 Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with utypes_uuint32_t_h; with renderer_gl_h; with Interfaces.C.Strings; limited with tileset_h; limited with context_h; package renderer_gl2_h is -- BSD 3-Clause License -- * -- * Copyright © 2008-2021, Jice and the libtcod contri...
with System.Machine_Code; use System.Machine_Code; package body MSPGD is procedure Standby is begin Asm ("bis.b #0xD8, SR", Volatile => True); end Standby; procedure Stop is begin Asm ("bis.b #0xF8, SR", Volatile => True); end Stop; procedure Reset is begin Asm ("mov.b #0, ...
----------------------------------------------------------------------- -- stemmer-tests -- Tests for stemmer -- Copyright (C) 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 this file except in ...
<?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="...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- pragma SPARK_Mode; with Wire; use Wire; with Interfaces; use Interfaces; package body Zumo_LSM303 is LM_Addr : constant := 2#0001_1101#; -- 16#1D# 10#29# LM_ID : constant := 2#0100_1001#; -- 16#49# 10#73# procedure Check_WHOAMI is ID : Byte; begin ID := Wire.Read_Byte (Addr => L...
GLOBAL { -- # define yySetPosition Attribute.Position.Line := yyLineCount; \ -- Attribute.Position.Column := yyChBufferIndex - yyLineStart - TokenLength; -- Int_Io.Put (Text_Io.Standard_Output, yyOffset (TokenIndex)); -- Text_Io.New_Line (Text_Io.Standard_Output); package Int_Io is new Text_Io.Integer_IO (Integer...
pragma Ada_2012; pragma Style_Checks (Off); pragma Warnings ("U"); with Interfaces.C; use Interfaces.C; with Interfaces.C.Extensions; package machine_udefault_types_h is subtype uu_int8_t is signed_char; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/machine/_defau...
with Simple_IO; package body Side_Effects with SPARK_Mode => On is X, Y, Z, R : Integer; function F (X : Integer) return Integer is begin Z := 0; -- Side effect return X + 1; end F; procedure Test is begin X := 10; Y := 20; Z := 10; R := Y / Z + F (X); -- pos...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
package body Sinu is function Norm (Y : Dynamical_Variable) return Real is Sum : Real := +0.0; begin for i in Dyn_Index loop Sum := Sum + Abs Y(i); --Sum := Sum + Y(i) * Y(i); end loop; return Sum; end Norm; function "-" (Left : Dynamical_Variable; Right :...
with AUnit.Simple_Test_Cases; use AUnit.Simple_Test_Cases; with Test_Minimal_Parenthesis; use Test_Minimal_Parenthesis; package body Rewriters_Lib_Suite is function Suite return Access_Test_Suite is Ret : constant Access_Test_Suite := new Test_Suite; Minimal_Parenthesis : constant Test...
-- Copyright 2011-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. -- -- ...
with Ada.Finalization; with kv.avm.Registers; with kv.avm.Control; package kv.avm.Capabilities is type Capability_Interface is interface; type Capability_Access is access all Capability_Interface'CLASS; procedure Execute (Self : in out Capability_Interface; Machine : in out kv.avm.Control.C...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with AAA.Strings; with CLIC.User_Input; use CLIC.User_Input; with GNAT.OS_Lib; package body CLIC_Ex.Commands.User_Input is function Valid_Number (Str : String) return Boolean is (for all C of Str => C in '0' .. '9'); ------------- -- Execute -- ------------- ov...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
----------------------------------------------------------------------- -- components-ajax -- AJAX Components -- Copyright (C) 2011 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 ...
with Ada.Text_IO; use Ada.Text_IO; with Libadalang.Analysis; use Libadalang.Analysis; with Libadalang.Common; use Libadalang.Common; with Rejuvenation.Simple_Factory; use Rejuvenation.Simple_Factory; package body Examples.Visitor is procedure Demo_Visitor (Unit : Analysis_Unit); ...
------------------------------------------------------------------------------ -- Copyright (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
<?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="...
----------------------------------------------------------------------- -- util-serialize-io-xml -- XML Serialization Driver -- Copyright (C) 2011, 2012, 2016, 2017, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -...
pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; with vadefs_h; with System; with umingw_h; with umingw_off_t_h; package stdio_h is BUFSIZ : constant := 512; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/s...
----------------------------------------------------------------------- -- Ada Labs -- -- -- -- Copyright (C) 2008-2009, AdaCore -- -- ...
-- C48009B.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 RUN-TIME COMPONENTS -- -- -- -- ...
-------------------------------------------------------------------------- -- Arbitrary Precision Math Library: Logarithmic Functions -- Joe Wingbermuehle 20020320 <> 20020327 -------------------------------------------------------------------------- with Arbitrary.Trig; use Arbitrary.Trig; package body Arbitrary.Log...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
package body getter.macros is function get return character is c : character; procedure rem_var (cur : in params_t.cursor) is begin environment.delete(environment_t.key(params_t.element(cur))); end rem_var; begin if current_called.last > unb.length(current_macros.code) then params_t...
function Palindrome (message: String) return Boolean is -- Palindrome checker rev, orig : String(message'First..message'Last); counter, rev_count : Integer := 0; begin -- Remove any spaces for c in message'First..message'Last loop if message(c) /= ' ' then counter := counter + 1; ...
with Ada; procedure Debug is pragma Debug (Ada.Debug.Put ("here, we go !")); begin null; end Debug;
----------------------------------------------------------------------- -- awa-applications-configs -- Read application configuration files -- Copyright (C) 2011, 2012, 2015, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Lic...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright 2010-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. -- -- ...
-- 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- C34007A.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 RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with OpenGL.Thin; with System; generic type Element_Type is private; type Index_Type is range <>; type Array_Type is array (Index_Type range <>) of aliased Element_Type; package OpenGL.Buffer_Object is type Buffer_t is new Thin.Unsigned_Integer_t; type Buffer_Array_t is array (Natural range <>) o...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; package body Greetings is procedure Hello is begin Put_Line ("Hello WORLD!"); end Hello; procedure Goodbye is begin Put_Line ("Goodbye WORLD!"); end Goodbye; end Greetings;
-- { dg-do run } -- { dg-options "-gnatws" } pragma Assertion_Policy (Check); with Text_IO; use Text_IO; procedure assert1 is type p1 is array (1 .. 113) of Boolean; pragma Pack (p1); type p2 is array (1 .. 13) of Boolean; pragma Pack (p2); type p3 is array (1 .. 113) of Boolean; pragma Pack (p3); ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- 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.CRS is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_TRIM_Field is HAL.U...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with STM32GD.GPIO; with STM32GD.GPIO.Pin; with STM32GD.USART; with STM32GD.USART.Peripheral; with STM32GD.Clock; with STM32GD.Clock.Tree; with STM32GD.SPI; with STM32GD.SPI.Peripheral; with STM32GD.RTC; with STM32GD.GPIO; with Drivers.Text_IO; package STM32GD.Board is package GPIO renames STM32GD.GPIO; package...
with Histogram; with PixelArray; with ImageRegions; package HistogramDescriptor is pragma Assertion_Policy (Pre => Check, Post => Check, Type_Invariant => Check); BinCount: Positive := 20; type Divergence is (JensenShannon, KullbackLeibler); type D...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
with physics.Object; package body GEL.ball_Joint is ---------- --- Forge -- procedure define (Self : access Item; in_Space : in std_physics.Space.view; Sprite_A, Sprite_B : access gel.Sprite.item'Class; ...
pragma License (Unrestricted); with Ada.Streams.Stream_IO; package Ada.Text_IO.Text_Streams is -- type Stream_Access is access all Streams.Root_Stream_Type'Class; subtype Stream_Access is Streams.Stream_IO.Stream_Access; -- extended procedure Open ( File : in out File_Type; Mode : File_Mode; ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- gen-model-projects -- Projects meta data -- Copyright (C) 2011 - 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this fi...
-- -- Copyright (C) 2021, AdaCore -- pragma Style_Checks (Off); -- This spec has been automatically generated from STM32G474xx.svd with System; package Interfaces.STM32.Flash is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Registers -- --------------- subtype ACR_LA...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Glfw.API; with Glfw.Enums; package body Glfw.Events.Mouse is function Pressed (Query : Button) return Boolean is begin return API.Get_Mouse_Button (Query) = Events.Press; end Press...
-- flyweights-untracked_ptrs.adb -- A package of generalised references which point to resources inside a -- Flyweight without tracking or releasing those resources -- Copyright (c) 2016, James Humphry -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is here...
-- PR ada/43106 -- Testcase by Bill Neven <neven@hitt.nl> -- { dg-do run } -- { dg-options "-O2 -flto" { target lto } } with Lto1_Pkg; use Lto1_Pkg; procedure Lto1 is Radar : Radar_T; begin Radar.Sensor_Type := radcmb; Initialize (Radar); end;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------- -- LSE -- L-System Editor -- Author: Heziode -- -- License: -- MIT License -- -- Copyright (c) 2018 Quentin Dauprat (Heziode) <Heziode@protonmail.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a -- c...
-- 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. -- -- ...
-- Copyright (C) 2015-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 -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
with String_Utils; use String_Utils; with AVTAS.LMCP.ByteBuffers; use AVTAS.LMCP.ByteBuffers; with AVTAS.LMCP.Factory; with UxAS.Common.Configuration_Manager; with UXAS.Messages.UxNative.KillService; with Ada.Text_IO; with Ada.Exceptions; use Ada.Exceptions; with Ada.Strings.Fixed; package body UxAS.Comm...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
With Ada.Text_IO; Use Ada.Text_IO; With Ada.Integer_Text_IO; Use Ada.Integer_Text_IO; procedure Program is begin -- your code goes here end Program;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Tkmrpc.Servers.Ike; with Tkmrpc.Results; with Tkmrpc.Request.Ike.Cc_Set_User_Certificate.Convert; with Tkmrpc.Response.Ike.Cc_Set_User_Certificate.Convert; package body Tkmrpc.Operation_Handlers.Ike.Cc_Set_User_Certificate is ------------------------------------------------------------------------- proced...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
with Ada.Text_IO, Miller_Rabin; procedure Mr_Tst is type Number is range 0 .. (2**48)-1; package Num_IO is new Ada.Text_IO.Integer_IO (Number); package Pos_IO is new Ada.Text_IO.Integer_IO (Positive); package MR is new Miller_Rabin(Number); use MR; N : Number; K : Positive; begin for I in ...
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2018 Componolit GmbH -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that th...
pragma License (Unrestricted); -- implementation unit specialized for Linux with C.signal; package System.Interrupt_Numbers is pragma Preelaborate; First_Interrupt_Id : constant := C.signal.SIGHUP; Last_Interrupt_Id : constant := C.signal.NSIG - 1; -- SIGRTMAX (__libc_current_sigrtmax) = NSIG - 1 = 64...
----------------------------------------------------------------------- -- widgets-factory -- Factory for widget Components -- Copyright (C) 2013, 2015, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may no...
package Giza.Bitmap_Fonts.FreeMonoBoldOblique24pt7b is Font : constant Giza.Font.Ref_Const; private FreeMonoBoldOblique24pt7bBitmaps : aliased constant Font_Bitmap := ( 16#01#, 16#E0#, 16#3F#, 16#07#, 16#F0#, 16#FF#, 16#0F#, 16#F0#, 16#FF#, 16#0F#, 16#E0#, 16#FE#, 16#0F#, 16#E0#, 16#FE#, 16#0F#, 16#C0#, 16#...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- CE2401C.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) 2017, AdaCore -- -- -- -- ...