content stringlengths 23 1.05M |
|---|
-- 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... |
-----------------------------------------------------------------------
-- wiki-filters-collectors -- Wiki word and link collectors
-- Copyright (C) 2016, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may ... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
procedure Nested_Proc2 is
type Arr is array(1..2) of Integer;
type Rec is record
Data : Arr;
end record;
From : Rec;
Index : Integer;
function F (X : Arr) return Integer is
begin
return 0;
end;
procedure Test is
begin
... |
package box_info is
-- exception levée si paramètres incorrects
invalid_args : exception;
-- décrit les paramètres de la boîte
type box_info_t is
record
-- paramètre t
thickness : integer;
-- paramètre h
height : integer;
-- paramètr... |
-- Ada Unit Library
--
-- Authors: Emanuel Regnath (emanuel.regnath@tum.de)
--
-- Description: Library for physical calculations
--
-- ToDo:
-- [ ] rename to Units.Mechanics3D or Physics.Units, Physics.Vector3D
with Ada.Numerics.Generic_Real_Arrays;
package Units.Vectors with SPARK_Mode is
package Unit_Arrays_... |
-- { dg-do compile }
-- { dg-options "-gnatN" }
with inline_scope_p;
procedure inline_scope (X : Integer) is
type A is array (Integer range 1 .. 2) of Boolean;
S : A;
pragma Warnings (Off, S);
procedure Report_List is
begin
inline_scope_p.Assert (S (1), Natural'Image (Natural (1)));
end R... |
with Ada.Text_IO; use Ada.Text_IO;
procedure T_Inv is
package Internal is
type Unknown is private with
Type_Invariant => Isnt_Bad_Luck (Unknown);
function Isnt_Bad_Luck
(S : Unknown) return Boolean;
procedure Assign (S : out Unknown;
D : in Integ... |
-----------------------------------------------------------------------
-- gen-commands-page -- Page creation command for dynamo
-- Copyright (C) 2011, 2012, 2013, 2014, 2017, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (t... |
With
INI.Section_to_Map,
Ada.Containers,
Ada.Text_IO,
Ada.Characters.Conversions,
Ada.Characters.Latin_1,
Ada.Strings.Fixed,
Ada.Strings.Unbounded,
Gnoga.Gui.Element.Form.Fieldset;
Package Body NSO.Helpers is
Use NSO.Types;
Procedure Add_Discrete(
Form : in out Gnoga.Gui.Element.Form.Form_Type'Class... |
-- AoC 2020, Day 22
with Ada.Text_IO;
with Ada.Containers.Vectors;
with Ada.Containers.Hashed_Sets;
use Ada.Containers;
with Ada.Strings.Hash;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package body Day is
package TIO renames Ada.Text_IO;
package Deck_Vectors is new Ada.Containers.Vectors
(Index_T... |
-- Lua
-- an Ada 2012 interface to Lua
-- Copyright (c) 2015-2021, James Humphry - see LICENSE for terms
with Ada.Unchecked_Conversion, Ada.Unchecked_Deallocation;
with System.Address_To_Access_Conversions;
with Ada.Streams;
with Interfaces; use Interfaces;
with Interfaces.C;
use type Interfaces.C.int, Interfaces.C.... |
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure aaa_01hello is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Strea... |
with Ada.Characters.Handling;
with Ada.Command_Line;
with Ada.Containers.Indefinite_Ordered_Sets;
with Ada.Containers.Indefinite_Ordered_Maps;
with Ada.Directories;
with Ada.Environment_Variables;
with Ada.Exceptions;
with Ada.Strings.Equal_Case_Insensitive;
with Ada.Strings.Fixed;
with Ada.Strings.Less_Case_Insensitiv... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- util-streams-sockets-tests -- Unit tests for socket streams
-- 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... |
with Ada.Streams;
use Ada.Streams;
-- Several utilities to ease encoded string processing
package Encodings.Utility is
pragma Pure;
-- Generic array version of Stream.Read returning last element written
generic
type Element_Type is (<>);
type Index_Type is (<>);
type Array_Type is array(Index_Type range <>) ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Characters.Conversions; use Ada.Characters.Conversions;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Langkit_Support.Text;
with Libadalang.Analysis;
with Libadalang.Helpers;
with Libadalang.Unparsing;
with GNATCOLL; use GNATCOLL;
with GNATCOLL.VFS;
with GNA... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- awa-storages-services-tests -- Unit tests for storage service
-- Copyright (C) 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you... |
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.Ethernet is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype DMAMR_PR_Field is HAL.UInt3;
... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
procedure In_Och_Utmatningar is
I: Integer;
F: Float;
C: Character;
S: String(1..6);
begin
Put("Skriv in en sträng med 3 tecken: ");
Get_Line(S, I);
Put(S(1.... |
-- This file only exists because of circular type dependencies in the C
-- library. Types must therefore be collected here, imported and renamed
-- in each package to prevent loops.
with agar.core.tail_queue;
with agar.core.types;
with agar.gui.rect;
with agar.gui.widget.box;
with agar.gui.widget.button;
with agar.gui... |
-- { dg-do run }
-- { dg-options "-gnatws" }
procedure Small_Alignment is
type My_Integer is new Integer;
for My_Integer'Alignment use 1;
function Set_A return My_Integer is
begin
return 12;
end;
function Set_B return My_Integer is
begin
return 6;
end;
C : Character;
A : My_Integer := S... |
with Ada.Integer_Text_IO;
with Ada.Numerics.Long_Elementary_Functions;
-- Copyright 2021 Melwyn Francis Carlo
procedure A002 is
use Ada.Integer_Text_IO;
use Ada.Numerics.Long_Elementary_Functions;
----------------------------------------------------------------------------
function Binets_Formula (N_Va... |
package body LATIN_FILE_NAMES is
function ADD_FILE_NAME_EXTENSION(NAME, EXTENSION : STRING) return STRING is
-- This is the version that creates a DOS file name
-- One that has a name, a '.', and an extension no longer than 3 characters
-- Arbitarily, we also truncate the NAME to 8 characters
-- To... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Yaml.Lexer.Evaluation;
package body Yaml.Lexer is
use type Text.Reference;
-----------------------------------------------------------------------------
-- Initialization a... |
-- Motherlode
-- Copyright (c) 2020 Fabien Chouteau
package Sound is
procedure Tick;
procedure Play_Coin;
procedure Play_Drill;
procedure Play_Music;
procedure Stop_Music;
end Sound;
|
-- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O G A . S E ... |
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.PM is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Control A
type PM_CTRLA_Register is rec... |
with Ada.Unchecked_Conversion;
with System.Machine_Code; use System.Machine_Code;
with System; use System;
with System.Storage_Elements; use System.Storage_Elements;
with Interfaces; use Interfaces;
with STM32_SVD; use STM32_SVD;
with Flash;
with STM32GD.Board;
with STM32_SVD.RCC;
procedure Bootloader is
Line : ar... |
-- Copyright 2019 Michael Casadevall <michael@casadevall.pro>
--
-- 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, cop... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Fibonacci; use Fibonacci;
procedure Fibotest is
C : Fibo_Cur;
-- T : Fibo_Forward;
-- R : Fibo_Reversible;
F : Fibo_List;
begin
-- C := First (T);
-- while Has_Element (C) loop
-- Put_Line (Natural'Image (Element (C)));
-- C := Next (T, C);
... |
------------------------------------------------------------------------------
-- Copyright (c) 2015, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with RASCAL.OS; use RASCAL.OS;
package Controller_Internet is
type TEL_ViewHomePage_Type is new Toolbox_UserEventListener(16#18#,-1,-1) with null record;
type TEL_SendEmail_Type is new Toolbox_UserEventListener(16#19#,-1,-1) with null record;
--
-- The user wants to view the ... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with System;
with Interfaces.C.Strings;
private package CUPS.xlocale_h is
-- Definition of locale datatype.
-- Copyright (C) 1997-2016 Free Software Foundation, Inc.
-- This file is part of the GNU C Library.
-- Contribute... |
with Trendy_Locations;
package Trendy_Test.Generics is
use Trendy_Locations;
-- A generic assertion of a discrete type, which can be compared using a
-- binary operator. This operation includes a string which can be used
-- during reporting.
generic
type T is (<>);
Operand : Stri... |
-- { dg-do run }
-- { dg-options "-gnatws" }
with Unchecked_Conversion;
procedure biased_uc is
begin
-- Case (f) target type is biased, source is unbiased
declare
type a is new integer range 0 .. 255;
for a'size use 8;
type b is new integer range 200 .. 455;
for b'size use 8;
... |
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.Strings;
with Incr.Lexers.Batch_Lexers;
package Incr.Nodes.Tokens is
-- @summary
-- Token nodes of parse tr... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
package HAL.Touch_Panel is
type TP_Touch_State is record
X : Natural;
Y : Natural;
Weight : Natural;
end record;
type Swap_State is new UInt3;
Invert_X : constant Swap_State;
Invert_Y : constant Swap_State;
Swap_XY : constant Swap_State;
subtype Touch_Identifier is ... |
-------------------------------------------------------------------------------
-- 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... |
-- Copyright 2016-2021 Bartek thindil Jasicki
--
-- This file is part of Steam Sky.
--
-- Steam Sky 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
-- (a... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- optional runtime unit
with System.Unwind;
package notb is
pragma Preelaborate;
Exception_Tracebacks : Integer
with Export,
Convention => C, External_Name => "__gl_exception_tracebacks";
procedure Call_Chain (
Current : in out System.Unwind.Exception_Occ... |
-----------------------------------------------------------------------
-- asf -- XHTML Reader
-- 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 use this file e... |
with Ada.Text_IO, Spec;
use Ada.Text_IO, Spec;
package Both with Ada_2012 is
--@description Just a simple test package
--@version 1.0
type TestInt is range 0 .. 1;
type TestMod is mod 8;
type TestFloat is digits 8;
type TestFloatRange is digits 8 range 0.0 .. 12.0;
type TestFixed is delta 0.0... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
package body logger is
procedure debug(output : string) is
begin
-- affichage sur console
if show_debug then
put_line(output);
end if;
-- écriture fichier
if is_open(log_file) then
put_line(log_file, output);
end if;
end;
proc... |
with STM32_SVD; use STM32_SVD;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.PWR; use STM32_SVD.PWR;
package body STM32GD.Clock.Tree is
function Frequency (Clock : Clock_Type) return Integer is
begin
case Clock is
when STM32GD.Clock.RTCCLK => return RTCCLK;
when STM32GD.Clock.SYS... |
with Ada.Numerics;
with Gtk.Widget; use Gtk.Widget;
with PortAudioAda; use PortAudioAda;
package GA_Waves_Globals is
Frames_Per_Buffer : Long_Float := 64.0;
Sample_Rate : Long_Float := 44_100.0;
stream : aliased PA_Stream_Ptr;
Two_Pi : Long_Float := Ada.Numerics.Pi * 2.0;
type Float_Array... |
-- 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... |
with STM32GD.SPI;
with STM32GD.SPI.Peripheral;
with STM32GD.GPIO;
with STM32GD.GPIO.Pin;
with STM32GD.Board; use STM32GD.Board;
with STM32_SVD.RCC; use STM32_SVD.RCC;
procedure Main is
package SPI is new STM32GD.SPI.Peripheral (SPI => STM32GD.SPI.SPI_1);
Data : STM32GD.SPI.SPI_Data_8b := (0, 1, 2, 3, 4, 5, 6, 7... |
-- SPDX-FileCopyrightText: 2019-2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Strings.Wide_Wide_Unbounded;
with Program.Element_Vector_Factories;
with Program.Element_Vectors;
with Program.Elements.Aspect_Specifications... |
-- 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,... |
-----------------------------------------------------------------------
-- keystore-io-files -- Ada keystore IO for files
-- 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 use this fil... |
-- ---------------------------------------------------------------------------
-- --
-- BLACKBOARD constant and type definitions and management services --
-- --
-- ---------------------------------------------------------------------------
with APEX.Processes;
package APEX.Blackboards is
Max_Number_Of_Blackboards :... |
-----------------------------------------------------------------------
-- util-texts-builders_tests -- Unit tests for text builders
-- Copyright (C) 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not u... |
-- *************************************************************************************
--
-- The recipient is warned that this code should be handled in accordance
-- with the HM Government Security Classification indicated throughout.
--
-- This code and its contents shall not be used for other than UK Governme... |
with Ada.Containers.Vectors;
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Sockets; use Sockets;
procedure Chat_Server is
package Client_Vectors is new Ada.Containe... |
with
FLTK.Widgets.Groups.Windows;
private with
Interfaces.C;
package FLTK.Static is
type Awake_Handler is access procedure;
type Timeout_Handler is access procedure;
type Idle_Handler is access procedure;
type Buffer_Kind is (Selection, Clipboard);
type Clipboard_Notify_Handl... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- 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... |
--PRÁCTICA 2: César Borao Moratinos (chat_admin)
with Ada.Text_IO;
with Chat_Messages;
with Lower_Layer_UDP;
with Ada.Command_Line;
with Client_Collections;
with Ada.Strings.Unbounded;
procedure Chat_Admin is
package ATI renames Ada.Text_IO;
package CM renames Chat_Messages;
package LLU renames Lower_La... |
-- MIT License
--
-- Copyright (c) 2020 Max Reznik
--
-- 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, mo... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Calendar.Formatting;
with Ada.Command_Line;
with Ada.Strings.Unbounded;
with Ada.Text_IO;
procedure Tabula.Users.Lists.Dump (
Users_Directory : in not null Static_String_Access;
Users_Log_File_Name : in not null Static_... |
with Ada.Text_IO; use Ada.Text_IO;
procedure owo is
begin
Put_Line (" *Notices Bulge*");
Put_Line ("__ ___ _ _ _ _ _");
Put_Line ("\ \ / / |__ __ _| |_ ( ) ___ | |_| |__ (_) ___");
Put_Line (" \ \ /\ / /| '_ \ / _\`| __|// / __| | __| '_ \| |/ __|");
Pu... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Definitions;
with Program.Lexical_Elements;
package Program.Elements.Incomplete_Type_Definitions is
pragma ... |
with Ada.Text_IO;
with Prime_Numbers;
procedure Parallel is
package Integer_Primes is new Prime_Numbers (
Number => Integer, -- use Large_Integer for longer numbers
Zero => 0,
One => 1,
Two => 2,
Image => Integer'Image);
My_List : Integer_Primes.Number_List :=
( 127579... |
with Ada.Text_IO; use Ada.Text_IO;
-- Should be counted as only five lines
procedure Hello is
begin
Put_Line ("Hello WORLD!"); -- the classic example
end Hello;
|
with
openGL.Display,
openGL.Screen,
OSMesa_C;
package openGL.surface_Profile
--
-- Models an openGL surface profile.
--
is
type Item is tagged private;
type View is access all Item'Class;
type Items is array (Positive range <>) of Item;
-------------------
-- Surface Quality
... |
with agar.core.timeout;
with agar.core.types;
package agar.gui.widget.editable is
use type c.unsigned;
type encoding_t is (ENCODING_UTF8, ENCODING_ASCII);
for encoding_t use (ENCODING_UTF8 => 0, ENCODING_ASCII => 1);
for encoding_t'size use c.unsigned'size;
pragma convention (c, encoding_t);
type flags... |
-----------------------------------------------------------------------
-- files.tests -- Unit tests for files
-- Copyright (C) 2009, 2010, 2011, 2012, 2017, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you m... |
with Gtk.Main;
with Glib;
with Gtk.Window; use Gtk.Window;
with Gtk.Enums; use Gtk.Enums;
with Ada.Text_IO; use Ada.Text_IO;
procedure Max_Size is
Win : Gtk_Window;
Win_W, Win_H : Glib.Gint;
package Int_Io is new Integer_IO (Glib.Gint);
Hid : Gtk.Main.Quit_Handler_Id;
begin
Gtk.Main.Init;
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- Copyright (C) 2011, Stefan Berghofer
-- Copyright (C) 2011, secunet Security Networks AG
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or withou... |
-- { dg-do compile { target *-*-linux* } }
-- { dg-options "-gdwarf-2" }
procedure Return3 is
begin
return;
end;
-- { dg-final { scan-assembler "loc 1 6" } }
|
----------------------------------------------------------------------------
-- Symbolic Expressions (symexpr)
--
-- Copyright (C) 2012, Riccardo Bernardini
--
-- This file is part of symexpr.
--
-- symexpr is free software: you can redistribute it and/or modify
-- it under the t... |
pragma Ada_2012;
package body GStreamer.rtsp.G_range is
-----------
-- parse --
-----------
function parse (rangestr : String) return GstRTSPTimeRange is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "parse unimplemented");
return raise ... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Incr.Documents;
with Incr.Nodes;
with Incr.Parsers.Incremental;
package Ada_LSP.Ada_Parser_Data is
package P renames Incr.Pa... |
package body System.Formatting.Address is
pragma Suppress (All_Checks);
subtype Word_Unsigned is Long_Long_Integer_Types.Word_Unsigned;
subtype Long_Long_Unsigned is Long_Long_Integer_Types.Long_Long_Unsigned;
-- implementation
procedure Image (
Value : System.Address;
Item : out Address_... |
with
GNAT.OS_Lib,
Ada.Strings.Fixed,
Ada.Strings.Maps,
Ada.Characters.Handling,
Ada.Exceptions,
Ada.Unchecked_Deallocation,
Ada.Unchecked_Conversion;
package body Shell.Commands
is
--- Strings
--
function To_String_Vector (Strings : String_Array) return String_Vector
is... |
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32G474xx.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.CORDIC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CSR_FUNC_Field is HAL.UInt4;
s... |
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
-- with GStreamer.GST_Low_Level.glib_2_0_gobject_gobject_h;
with glib;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_interfaces_tunernorm_h is
-- unsupported mac... |
--//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org)
-- 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... |
with Accumulator;
with Ada.Text_IO; use Ada.Text_IO;
procedure Example is
package A is new Accumulator;
package B is new Accumulator;
begin
Put_Line (Integer'Image (A.The_Function (5)));
Put_Line (Integer'Image (B.The_Function (3)));
Put_Line (Float'Image (A.The_Function (2.3)));
end;
|
-- 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.
... |
pragma Ada_2012;
with Protypo.Api.Engine_Values.Constant_Wrappers;
package body Protypo.Api.Engine_Values.Handlers is
function Create (Val : Array_Interface_Access) return Engine_Value
is (Engine_Value'(Class => Array_Handler,
Array_Object => Val));
function Create (Val :... |
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with gmp_c.Pointers;
with Interfaces.C;
package gmp_c.pointer_Pointers is
-- mp_limb_t_Pointer_Pointer
--
type mp_limb_t_Pointer_Pointer is
access all gmp_c.Pointers.mp_limb_t_Pointer;
-- mp_limb_signed_t_Pointer_Pointer
--
... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
with Ada;
package GNAT.Source_Info is
pragma Pure;
function File return String
renames Ada.Debug.File;
function Line return Integer
renames Ada.Debug.Line;
function Source_Location return String
renames Ada.Debug.Source_Location;
function Enclosing_Entity... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with League.Strings.Hash;
with Ada.Containers.Hashed_Maps;
with WebIDL.Scanner_Handlers;
with WebIDL.Scanners;
with WebIDL.Scanner_Types;
with WebIDL.Token... |
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.SysTick is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- SysTick Counter Enable
type CSR_EN... |
with Interfaces;
package ACO.Utils.Byte_Order is
pragma Preelaborate;
use Interfaces;
type Octets is array (Natural range <>) of Unsigned_8;
type Octets_2 is array (0 .. 1) of Unsigned_8;
type Octets_4 is array (0 .. 3) of Unsigned_8;
type Octets_8 is array (0 .. 7) of Unsigned_8;
function ... |
-----------------------------------------------------------------------
-- serialize-io-csv-tests -- Unit tests for CSV parser
-- Copyright (C) 2011, 2016, 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) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Statements;
with Program.Elements.Defining_Identifiers;
with Program.Lexical_Elements;
with Program.Element_Vect... |
-- { dg-do compile }
-- { dg-options "-O -gnatws" }
procedure Opt63 is
type T_MOD is mod 2**32;
subtype T_INDEX is T_MOD range 3_000_000_000 .. 4_000_000_000;
type T_ARRAY is array(T_INDEX range <>) of INTEGER;
function Build_Crash(First : T_INDEX; Length : NATURAL) return T_ARRAY is
R : T_ARRAY(Fi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.