content stringlengths 23 1.05M |
|---|
package body Blade_Types is
BV_Names : Basis_Vector_Names;
-- -------------------------------------------------------------------------
function Basis_Names_C3GA return Basis_Vector_Names is
begin
return BV_Names;
end Basis_Names_C3GA;
-- ------------------------------------------... |
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_mixertrack_h is
-- unsupported ma... |
package body Molecular_Dynamics is
function Verlet (R : in Pos2D_Vector;
R_New : in Pos2D_Vector;
Is_BC : in BC_Vectype;
Dt : in Real) return Pos2D_Vector is
F : Pos2D_Vector := Calculate_Forces (R_New, Is_BC);
begin
return (2.0 * R_New - R + (Dt**2) * F);
end Verlet;
... |
with Ada.Text_IO;
use Ada.Text_IO;
package Parseur is
Erreur_Lecture_Config,Erreur_Option,Fichier_Trop_Long : exception;
Max_X, Max_Y:Float:=Float'first;
Min_X, Min_Y : Float:=Float'Last;
type Arrete_Adj;
type Ptr_Liste_Arretes_Adj is access Arrete_Adj;
type Coord_Point is record
X,Y... |
-----------------------------------------------------------------------
-- 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 ... |
with Logging.Logger; use Logging.Logger;
with Logging.Level; use Logging.Level;
with Logging.Event; use Logging.Event;
with GNAT.Source_Info;
procedure LoggerTest is
myLogger : Logger_Ptr;
begin
Init_Logging("logger.properties");
myLogger := Get_Logger("LoggerTest");
... |
with Ada.Streams; use Ada.Streams;
with SHA1;
with SHA2;
with HMAC_Generic;
package HMAC with
Pure,
Preelaborate
is
package HMAC_SHA_1 is new HMAC_Generic
(Element => Stream_Element, Index => Stream_Element_Offset,
Element_Array => Stream_Element_Array,
Digest_Length => SHA1.Digest_L... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
-- SPDX-License-Identifier: BSD-3-Clause
--
-- Copyright (c) 2017 Eric Bruneton
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions
-- are met:
-- 1. Redistributions of source code must retain the a... |
package body p4 with SPARK_MODE is
-- minimalist evil: line 32 is missed silently, but post is obviosuly stupid
--function f1 (X : Integer) return Integer is (X) with Post => False;
-- this is more evil: Post has no failing VC
-- because a failing VC in the body shadows it
-- and line 32 is missed
fu... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2020 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... |
--*****************************************************************************
--*
--* PROJECT: BingAda
--*
--* FILE: q_csv-q_read_file.adb
--*
--* AUTHOR: Javier Fuica Fernandez
--*
--*****************************************************************************
with ADA.EXCEPTION... |
with
lace.Strings.bounded,
ada.Text_IO;
procedure launch_strings_Demo
--
-- Displays a string message in a Pure unit.
--
is
use ada.Text_IO;
package Text is new lace.Strings.Bounded.Generic_Bounded_Length (Max => 64);
use Text;
the_String : bounded_String := to_bounded_String ("Howdy ...");... |
with Gilded_Rose;
use Gilded_Rose;
with Items;
use Items;
with Ahven;
with Ada.Strings.Unbounded;
package body Gilded_Rose_Tests is
procedure Initialize(T : in out Test) is
begin
Set_Name(T, "Gilded_Rose_Test");
Ahven.Framework.Add_Test_Routine(T, Test_Gilded_Rose'Access, "Foo");
end Initialize;
pr... |
with Ada.Text_IO;
with Ada.Exceptions;
with AdaBaseXClient;
use Ada.Exceptions;
use AdaBaseXClient;
procedure ExampleAdd is
begin
if (Connect ("localhost", 1_984) = False) then
Ada.Text_IO.Put_Line ("Connect failed.");
return;
else
if (Authenticate ("admin", "admin") = False) then
Ada... |
private package SPARKNaCl.Utils
with Pure,
SPARK_Mode => On
is
--===================================================
-- Exported subprogram declarations
--
-- Note that these subprograms appear in a distinct
-- private child package so they are NOT
-- primitive operations of either types ... |
--PRÁCTICA 3: CÉSAR BORAO MORATINOS (Chat_Messages.ads)
with Lower_Layer_UDP;
with Ada.Strings.Unbounded;
package Chat_Messages is
package LLU renames Lower_Layer_UDP;
package ASU renames Ada.Strings.Unbounded;
type Message_Type is (Init, Welcome, Writer, Server, Logout);
procedure Init_Message (S... |
pragma Check_Policy (Validate => Disable);
with Ada.Strings.Canonical_Composites;
-- with Ada.Strings.Naked_Maps.Debug;
with System.Once;
with System.Reference_Counting;
package body Ada.Strings.Naked_Maps.Canonical_Composites is
-- Base_Set
type Character_Set_Access_With_Pool is access Character_Set_Data;
... |
generic
package BitOperations.Shift.Axiom with
SPARK_Mode, Pure, Ghost is
end BitOperations.Shift.Axiom;
|
------------------------------------------------------------------------------
-- Copyright (C) 2018, AdaCore --
-- --
-- This is free software; you can redistribute it and/or modify it under --
-- t... |
-- Taken from https://www.adaic.org/resources/add_content/standards/05rm/html/RM-10-1-3.html
package body Parent is
Variable : String := "Hello, there.";
procedure Inner is separate;
end Parent;
with Ada.Text_IO;
separate(Parent)
procedure Inner is
begin
Ada.Text_IO.Put_Line(Variable);
end Inner;
|
with STM32_SVD; use STM32_SVD;
with STM32GD.Board; use STM32GD.Board;
with STM32GD.USART; use STM32GD.USART;
with Ada.Real_Time; use Ada.Real_Time;
with Ada.Synchronous_Task_Control; use Ada.Synchronous_Task_Control;
with Peripherals; use ... |
-----------------------------------------------------------------------
-- keystore-repository-workers -- Data access and management for the keystore
-- Copyright (C) 2019, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Licen... |
with Interfaces; use Interfaces;
package body CRC8 with SPARK_Mode is
-- init
function calculateCRC8 (Data : Byte_Array) return Byte is
crc : Byte := 0;
begin
for pos in Data'Range loop
crc := crc8_tab (crc xor Data (pos)); -- loop over all bytes
end loop;
return crc;
... |
package Opt28_Pkg is
type Posix_String is array (Positive range <>) of aliased Character;
function To_Posix (Str : String) return Posix_String;
function To_String (Str : Posix_String) return String;
function Is_File (Str : Posix_String) return Boolean;
function Value_Of (Name : Posix_String) return Posix_St... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is begin if false and 'a' then new_line; end if; end;
|
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Environment_Variables;
with Ada.Directories; use Ada.Directories;
with GNAT.OS_Lib; use GNAT.OS_Lib;
procedure Gnatpp is
-- Ada_Launch is the default name, but is meant to be renamed
-- to the executable name that this execu... |
-- Lua
-- an Ada 2012 interface to Lua
-- Copyright (c) 2015, James Humphry
-- 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 right... |
--
-- Copyright (C) 2019, AdaCore
--
-- This spec has been automatically generated from ATSAMV71Q21.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package Interfaces.SAM.PIO is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Registers --
---------------
--... |
-------------------------------------------------------------------------------
--
-- WAVEFILES GTK APPLICATION
--
-- Wavefile Manager
--
-- The MIT License (MIT)
--
-- Copyright (c) 2017 Gustavo A. Hoffmann
--
-- Permission is hereby granted, free of charge, to any pe... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
private with Apsepp.Test_Reporter_Class.Instant_Standard,
Apsepp_Test_Suite;
package Apsepp_Test_Harness is
procedure Apsepp_Test_Procedure;
private
use Apsepp.Test_Reporter_Class.Instant_St... |
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl>
--
-- 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 vers... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
-- Copyright (c) 2019-2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Unchecked_Conversion;
with Interfaces;
with AWS.Response;
with AWS.Client;
with AWS.Messages;
with League.IRIs;
with L... |
package body SPARKNaCl.Car
with SPARK_Mode => On
is
pragma Warnings (GNATProve, Off, "pragma * ignored (not yet supported)");
--===============================================
-- Functions supporting normalization
-- of GF values following "+", "-" or "*"
-- operations.
--
-- The core algori... |
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Integer_Text_Io; use Ada.Integer_Text_Io;
with Ada.Numerics.Discrete_Random;
procedure NumberReverse is
subtype RandRange is Integer range 1..9;
type NumArrayType is array (Integer range 1..9) of Integer;
package RandNumbers is new Ada.Numerics.Discrete_Random(Ran... |
package Agar.Core.Error is
procedure Set_Error (Message : in String);
procedure Fatal_Error (Message : in String);
type Error_Callback_t is access procedure (Message : in String);
subtype Error_Callback_Not_Null_t is not null Error_Callback_t;
procedure Set_Fatal_Callback
(Callback : Error... |
with Colors;
package Flags is
-- For a map, we need a key and an element type
type Key_T is new Integer; -- implement something smarter!
type Map_Element_T is private;
type Map_T is private;
procedure Add
(Map : in out Map_T;
Key : Key_T;
Description : Colo... |
-- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_SVD.DMA is
pragma Preelaborate;
... |
package Thin_Pointer2_Pkg is
type SA is access String;
for SA'Size use Standard'Address_Size;
S : SA;
function F return Character;
end Thin_Pointer2_Pkg;
|
-- { dg-do compile }
-- { dg-options "-O2" }
procedure volatile3 is
v1 : Integer := 0;
v2 : Integer := 0;
pragma Volatile (v1);
pragma Volatile (v2);
begin
if v1 /= v2 then
raise Program_Error;
end if;
end;
-- { dg-final { scan-assembler "__gnat_rcheck" } }
|
with Ada.Text_IO;
procedure Equilibrium is
type Integer_Sequence is array (Positive range <>) of Integer;
function Seq_Img (From : Integer_Sequence) return String is
begin
if From'First /= From'Last then
return " " & Integer'Image (From (From'First)) &
Seq_Img (From (From'First + 1... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Utilities;
with Ada.Characters.Latin_1;
with HelperText;
package body Port_Specification.Json is
package LAT renames Ada.Characters.Latin_1;
package UTL renames Utilities;
package HT renames Helper... |
with Ada.Text_IO; use Ada.Text_IO;
with Interfaces; use Interfaces;
with Ada.Unchecked_Conversion;
with System;
procedure Represent is
use Ada;
type Byte is mod 2**8 with Size => 8;
type T_Instruction is (Load, Store, Clear, Move)
with Size => 2;
for T_Instruction use (Load => 2#00#,
... |
--
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
--
-- The version of the OpenAPI document: 20220523
--
--
-- NOTE: This package is auto generated by OpenAPI-Generator 5.4.0.
-- https://openapi-generator.tech
-- Do not edit the class manually.
prag... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with word_operations_hpp;
with Interfaces.C.Extensions;
package sprite_hpp is
package Class_Sprite is
type Sprite is limited record
x_pos_u : aliased word_operations_hpp.uint8_t; -- ./sprite.hpp:29
y_pos_u : ... |
with Ada.Containers.Doubly_Linked_Lists;
limited with Configs;
package Prop_Links is
-- A followset propagation link indicates that the contents of one
-- configuration followset should be propagated to another whenever
-- the first changes.
type Config_Access is access all Configs.Config_Record;
... |
with Bits;
with TLSF.Config;
with TLSF.Mem_Block_Size;
use TLSF.Config;
use TLSF.Mem_Block_Size;
private package TLSF.Bitmaps
with SPARK_Mode is
type First_Level_Index is range SL_Index_Count_Log2 .. FL_Index_Max;
type Second_Level_Index is range 0 .. SL_Index_Count - 1;
type Free_List_Status is (Not_Presen... |
with
eGL.Binding,
Swig,
interfaces.C.Strings,
System;
procedure launch_egl_linkage_Test
--
-- Tests linkage to eGL functions.
-- Is not meant to be run.
--
is
use eGL,
eGL.Binding,
System;
an_EGLint : EGLint;
an_EGLdisplay : EGLdisplay;
an_EGLboolean : EGLboolean;
... |
with EU_Projects.Nodes;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package EU_Projects.Searchable_Nodes is
type Child_Class is (Void, Node, Attribute);
type Child_Value (Class : Child_Class) is
record
case Class is
when Void =>
null;
when Node ... |
with Ada.Exception_Identification.From_Here;
with Ada.Exceptions.Finally;
with Ada.Unchecked_Conversion;
with System.Address_To_Named_Access_Conversions;
with System.Soft_Links;
with System.Synchronous_Objects.Abortable;
with System.Tasks;
package body System.Tasking.Rendezvous is
use Ada.Exception_Identification.Fr... |
function Palindrome (Text : String) return Boolean is
(for all i in Text'Range => Text(i)= Text(Text'Last-i+Text'First));
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-----------------------------------------------------------------------
-- wiki-parsers-html -- Wiki HTML parser
-- Copyright (C) 2015, 2016 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... |
-- C45342A.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... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
--
-- Copyright (C) 2012 Reto Buerki
-- Copyright (C) 2012 Adrian-Ken Rueegsegger
-- Hochschule fuer Technik Rapperswil
--
-- 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... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- for ZCX (or SjLj, or Win64 SEH)
pragma Check_Policy (Trace => Ignore);
with Ada.Unchecked_Conversion;
with System.Unwind.Representation;
with System.Unwind.Searching;
with C.unwind;
separate (System.Unwind.Raising)
package body Separated is
pragma Suppress (All_Checks);
use type C.unwind.Unwind_Action;
fu... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Score_21 is
De1, De2 : Integer; -- les deux dés
Score: Integer; -- le score obtenu avec les deux dés
begin
-- Demander la valeur des dés
Get (De1);
Get (De2);
-- Déterminer le score
Score := 0;
if (D... |
-- The Beer-Ware License (revision 42)
--
-- Jacob Sparre Andersen <jacob@jacob-sparre.dk> wrote this. As long as you
-- retain this notice you can do whatever you want with this stuff. If we meet
-- some day, and you think this stuff is worth it, you can buy me a beer in
-- return.
--
-- Jacob Sparre Andersen
w... |
pragma Priority_Specific_Dispatching(FIFO_Within_Priorities, 10 , 16);
pragma Priority_Specific_Dispatching(Round_Robin_Within_Priorities, 2 , 9);
with Ada.Text_IO;use Ada.Text_IO;
with Ada.Real_Time; use Ada.Real_Time;
with Ada.Dispatching; use Ada.Dispatching;
with System; use System;
procedure mixed is
pragma Pr... |
-----------------------------------------------------------------------
-- wiki-filters-toc -- Filter for the creation of Table Of Contents
-- Copyright (C) 2016, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
-- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com)
-- //
-- // This software is provided 'as-is', without any express or implied warranty.
-- // In no event will the authors be held li... |
with RandFloat; use RandFloat;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Calendar; use Ada.Calendar;
with Ada.Calendar.Formatting; use Ada.Calendar.Formatting;
with Ada.Calendar.Time_zones; use Ada.Calendar.Time_zones;
with Unchecked_Conversion;
with gstack;
procedure ArrivalForRepair is
package FloatIO is new Ad... |
------------------------------------------------------------------------------
-- --
-- WAVEFILES --
-- --
-- ... |
-- unique_ptrs.ads
-- A "unique pointer" type similar to that in C++
-- Copyright (c) 2016, James Humphry
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all... |
------------------------------------------------------------------------------
--
-- package Debugged (spec)
--
-- As below, but not saving debugging messages.
--
-- This package is used to log debugging messages.
-- If the program is executed with command line arguments, then the last
-- argument is used as the n... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 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 Ada.Containers.Ordered_Maps;
with Ada.Strings.Unbounded;
with External; use External;
package EdgeRegistry is
package HMP is new Ada.Containers.Ordered_Maps(
Key_Type => MString,
Element_Type => Boolean,
"<" => Ada.Strings.Unbounded."<"
);
subtype HashMap is HMP.Map;
pro... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- Copyright 2021 Lev Kujawski --
-- --
-- Permission is hereby granted, free of charge, to any person --
-- obtaining a copy of this sof... |
-----------------------------------------------------------------------
-- util-dates-formats -- Date Format ala strftime
-- Copyright (C) 2011, 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 ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Characters.Latin_1;
procedure Pound is
begin
Put(Ada.Characters.Latin_1.Pound_Sign);
end Pound;
|
with STM32_SVD; use STM32_SVD;
with STM32GD.USB; use STM32GD.USB;
with Ada.Text_IO;
package body STM32GD.Drivers.CDC is
-- TODO: Add functions to read/write data from/to the buffer table
-- TODO: Add record types for control transfers
procedure EP0_Setup;
procedure EP0_Out;
procedure EP0_In;
pro... |
with Ada.Characters.Latin_1;
with Ada.Command_Line;
package body GNAT.Command_Line is
function Getopt (
Switches : String;
Concatenate : Boolean := True;
Parser : Opt_Parser := Command_Line_Parser)
return Character
is
pragma Unreferenced (Switches);
pragma Unreferenced (Concat... |
------------------------------------------------------------------------------
-- Copyright (c) 2013, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with Ada.Finalization;
package Loop_Optimization8_Pkg1 is
type Array_T is array (Positive range <>) of Natural;
type Array_Access_T is access Array_T;
type T is new Ada.Finalization.Controlled with record
Last : Natural := 0;
Elements : Array_Access_T;
end record;
Empty : T := (Ada.Finalization.C... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package low_level_io is
type devicetype is (console_printer_data,
console_printer_control,
console_keyboard_data,
console_keyboard_control);
subtype datatype is character;
type console_control_type is new integer;
procedure send_control(device : devi... |
with Drivers.Text_IO;
with HAL;
generic
with package Chip_Select is new HAL.Pin (<>);
with package IRQ is new HAL.Pin (<>);
with package SPI is new HAL.SPI (<>);
AES_Enabled : Boolean := False;
Packet_Size : Unsigned_8 := 64;
Frequency : Unsigned_32;
package Drivers.RFM69 is
pragma Preelaborate... |
-- =============================================================================
-- Package AVR.ADC
--
-- Handles the Analog Comparator and the Analog-To-Digital Converter.
-- =============================================================================
package AVR.ADC is
type Analog_Comparator_Control_And_Status_R... |
with Samples.Petstore.Clients;
with Samples.Petstore.Models;
with Swagger;
with Util.Http.Clients.Curl;
with Ada.Text_IO;
with Ada.Command_Line;
with Ada.Calendar.Formatting;
with Ada.Exceptions;
procedure Samples.Petstore.Client is
use Ada.Text_IO;
procedure Usage;
Server : constant Swagger.UString := S... |
with Ada.Unchecked_Conversion;
package body Memory_Compare is
------------
-- memcmp --
------------
function memcmp (S1 : Address; S2 : Address; N : size_t) return int is
subtype mem is char_array (size_t);
type memptr is access mem;
function to_memptr is
new Ada.Unchecked_Conv... |
-- Copyright (C) 2020 Glen Cornell <glen.m.cornell@gmail.com>
--
-- 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 versi... |
with Limited_With3;
with Limited_With3_Pkg1;
package Limited_With3_Pkg3 is
package My_Q is new Limited_With3_Pkg1 (Limited_With3.T);
type TT is tagged record
State : My_Q.Element_Access;
end record;
end Limited_With3_Pkg3;
|
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
package AOC.AOC_2019.Day03 is
type Day_03 is new Day.Day with null record;
overriding procedure Init (D : in out Day_03; Root : String);
overriding function Part_1 (D : Day_03) return String;
overriding function Part_2 (D : Day_03) return String;
end AOC.AOC_2019.Day03;
|
-----------------------------------------------------------------------
-- atlas-microblog-modules -- Module microblog
-- Copyright (C) 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file e... |
--*****************************************************************************
--*
--* PROJECT: BINGADA
--*
--* FILE: q_bingada.adb
--*
--* AUTHOR: Javier Fuica Fernandez
--*
--*****************************************************************************
with TEXT_IO;
with ADA.S... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- { dg-do compile }
-- { dg-options "-gnatwr" }
procedure notnot (x, y : integer) is
begin
if not (not (x = y)) then -- { dg-warning "redundant double negation" }
return;
end if;
end;
|
-- { dg-do compile }
-- { dg-options "-fdump-tree-gimple" }
with Atomic6_Pkg; use Atomic6_Pkg;
procedure Atomic6_3 is
function F (I : Integer) return Integer is
begin
return I;
end;
function F2 return Integer is
begin
return Integer(Counter1);
end;
function F3 return Integer is
begin
re... |
-- { dg-do link }
-- { dg-options "-g -flto" { target lto } }
with Lto13_Pkg; use Lto13_Pkg;
procedure Lto13 is
begin
Proc;
end;
|
-- { dg-do compile }
package Access_Constant is
c: aliased constant integer := 3;
type const_ptr is access constant integer;
cp : const_ptr := c'access;
procedure inc (var_ptr: access integer :=
cp) -- { dg-error "access-to-constant" }
is abstract;
end Access_Constant;
|
with Lv.Style;
with System;
package Lv.Objx.Btnm is
subtype Instance is Obj_T;
Btnm_Ctrl_Code : constant := 16#80#;
Btnm_Ctrl_Mask : constant := 16#C0#;
Btnm_Width_Mask : constant := 16#07#;
Btnm_Hide_Mask : constant := 16#08#;
Btnm_Repeat_Disable_Mask : const... |
package SP
with Pure
is
Version : constant String := "0.0.5";
end SP;
|
with Globals_Example1;
package Globals_Example3 is
type Record3 is record
I_Attribute : Globals_Example1.Itype;
end record;
function Unrelated (The_I : Globals_Example1.Itype)
return Globals_Example1.Itype;
end Globals_Example3;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.