content
stringlengths
23
1.05M
with AWS.Status; with AWS.Templates; with AWS.Services.Web_Block.Context; package @_Project_Name_@.Ajax is use AWS; use AWS.Services; procedure Onclick_Incr (Request : in Status.Data; Context : not null access Web_Block.Context.Object; Translations : in out ...
with Text_IO; use Text_io; with Chebychev_Quadrature; with Ada.Numerics.Generic_Elementary_Functions; procedure cheby_quad_tst_1 is type Real is digits 15; package Maths is new Ada.Numerics.Generic_Elementary_Functions (Real); use Maths; No_Gauss_Pts : constant Positive := 2**16; package Quad is ne...
-- 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.FLASH is pragma Preelaborate; ...
with ada.unchecked_Deallocation; package body openGL.Model is --------- --- Forge -- procedure define (Self : out Item) is null; procedure deallocate is new ada.unchecked_Deallocation (Geometry.views, access_Geometry_views); proced...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Exception_Identification.From_Here; with System.Address_To_Named_Access_Conversions; with System.UTF_Conversions.From_8_To_16; with System.UTF_Conversions.From_16_To_8; with C.winnls; with C.winnt; package body System.Native_Text_IO is use Ada.Exception_Identification.From_Here; use type Ada.Streams.Stre...
-- Some USB Device controllers require the address to be set earlier than -- the standard calls for. That is, before the set_address setup request -- is acknoledged with a Zero-Lenght-Packet. with USB_Testing; use USB_Testing; with USB_Testing.UDC_Stub; use USB_Testing.UDC_Stub; with USB_Testing....
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Numerics, Ada.Numerics.Elementary_Functions; package body PolyPaver.Floats is function Eps_Abs return Float is begin return 0.5**126; end Eps_Abs; function Eps_Rel return Float is begin return 0.5**22; end Eps_Rel; function Pi return Float is begin return Ada.N...
with Ada.Text_IO; with Ada.Strings.Unbounded; with DataBatch; with MathUtils; package CSV is type Reader is tagged limited private; function open(path: in String; separator: in Character := ',') return Reader; function hasNext(r: in Reader) return Boolean; function next(r: in out Reader) return MathUtils...
with Zstandard.Functions.Streaming_Decompression; use Zstandard.Functions; with Ada.Command_line; use Ada.Command_Line; with Ada.Directories; use Ada.Directories; with Ada.Text_IO; use Ada.Text_IO; with Ada.Exceptions; use Ada.Exceptions; with Ada.Streams.Stream_IO; use Ada.Streams; procedu...
with ada.text_io; use ada.text_io; procedure fast_fibo is -- We work with biggest natural integers in a 64 bits machine type Big_Int is mod 2**64; -- We provide an index type for accessing the fibonacci sequence terms type Index is new Big_Int; -- fibo is a generic function that needs a modulus type since it w...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Glfw.Windows.Clipboard; with Glfw.Monitors; with Glfw.Input; procedure Glfw_Test.Clipboard is type My_Window is new Glfw.Windows.Window with null record; overriding procedure Init (Obje...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- { dg-do compile } -- { dg-options "-O" } with Ada.Strings; with Ada.Strings.Fixed; procedure String_Slice2 is package ASF renames Ada.Strings.Fixed; Delete_String : String(1..10); Source_String2 : String(1..12) := "abcdefghijkl"; begin Delete_String := Source_String2(1..10); ASF.Delete(Source ...
with One; procedure Two is X : Integer := 1; begin One (X); pragma Assert (X=2); end Two;
-- generic_example -- An example of the use of parse_args with generic option types -- Copyright (c) 2015, 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 notic...
----------------------------------------------------------------------- -- jobs-tests -- Unit tests for AWA jobs -- 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 except ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- ----------------------------------------------------------------- -- -- AdaSDL_Framebuffer -- -- Copyright (C) 2001 A.M.F.Vargas -- -- Antonio M. F. Vargas -- -- Ponta Delgada...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2020, Luke A. Guest -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising f...
-- 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...
with Datos, Ada.Text_Io; use Datos, Ada.Text_Io; procedure Eliminar_Primera_Aparicion ( L : in out Lista; Num : in Integer ) is -- Pre: -- Post: se ha eliminado de L la primera aparicion de Num -- en caso de que no aparezca se escribira un mensaje begin end Eliminar_Primera_A...
with AUnit; use AUnit; with AUnit.Test_Suites; with AUnit.Run; with AUnit.Reporter.Text; with GNAT.OS_Lib; with Ada.Text_IO; with Testsuite.Encode; with Testsuite.Decode; with Testsuite.Encode_Decode; procedure Tests is Failures : Natural := 0; begin for Kind in Testsuite.Encode.Encoder_Kind loop decl...
with AUnit.Assertions; use AUnit.Assertions; with ACO.Utils.DS.Generic_Collection; with ACO.Utils.DS.Generic_Collection.Sorted; package body Generic_Collection_Test is pragma Assertion_Policy (Check); type Item_Type is new Character; subtype Test_Items is Item_Type range 'a' .. 'z'; package Collection_...
with Ada.Containers.Vectors; With Ada.Strings.Unbounded; package Util is -- TODO separate further into specialized packages? -- TODO make child package of Iictl? Verbose : Boolean := False; -- TODO make private or something. Util.Set_Verbose? use type Ada.Strings.Unbounded.Unbounded_String; ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Interfaces; use Interfaces; package avtas.lmcp.types is -- C/C++ compatible integer types type UInt16_t is new Interfaces.Unsigned_16; type UInt32_t is new Interfaces.Unsigned_32; type Int16_t is new Interfaces.Integer_16; type Int32_t is new Interfaces.Integer_32; type Int64_t is new Interf...
with Ada.Text_IO; use Ada.Text_IO; package body Important_Dates with SPARK_Mode => On is function "=" (L, R : Date_T) return Boolean is (L.Year = R.Year and L.Month = R.Month and L.Day = R.Day); function ">=" (L, R : Date_T) return Boolean is (L.Year > R.Year or el...
------------------------------------------------------------------------------ -- File : Game_control.ads -- Description : Command set for games, based on GLUT -- Copyright (c) Gautier de Montmollin/Rod Kay 2007 ------------------------------------------------------------------------------ ...
with Ada.Numerics.Discrete_Random; with Ada.Text_IO; procedure Minesweeper is package IO renames Ada.Text_IO; package Nat_IO is new IO.Integer_IO (Natural); package Nat_RNG is new Ada.Numerics.Discrete_Random (Natural); type Stuff is (Empty, Mine); type Field is record Contents : Stuff := Empty...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- REST API Validation -- API to validate -- -- The version of the OpenAPI document: 1.0.0 -- Contact: Stephane.Carrez@gmail.com -- -- NOTE: This package is auto generated by OpenAPI-Generator 5.2.1-SNAPSHOT. -- https://openapi-generator.tech -- Do not edit the class manually. with TestAPI.Models; with Swagger....
------------------------------------------------------------------------------ -- 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...
-- { dg-do link } -- { dg-options "-largs -f -margs -flto" { target lto } } -- { dg-skip-if "missing linker support" { *-*-solaris2.* } } procedure Lto14 is begin null; end;
separate (Numerics.Sparse_Matrices) function Eye (N : in Pos) return Sparse_Matrix is Result : Sparse_Matrix; use Ada.Containers; begin Result.Format := CSC; Result.N_Row := N; Result.N_Col := N; Result.X := RV_Package.To_Vector (1.0, Count_Type (N)); Result.I.Reserve_Capacity (Count_Type (N));...
package Test_Utils.Abstract_Decoder is subtype Parent is Test_Utils.Abstract_Data_Processing; type Instance is abstract limited new Parent with private; type Acc is access all Instance; type Any_Acc is access all Instance'Class; procedure Receive (This : in out Instance; Data : ...
with Ada.Containers.Vectors; use Ada.Containers; procedure Vector_Example is package Vector_Pkg is new Vectors (Natural, Integer); use Vector_Pkg; V : Vector; begin V.Append (1); V.Append (2); V.Append (3); end Vector_Example;
-- CC1221B.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 - 2018, Nordic Semiconductor ASA -- -- 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 above copyright notice, t...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package Program.Storage_Pools.Instance is Pool : aliased Storage_Pool; Pool_Access : constant Storage_Pool_Access := Pool'Access with Export, Ex...
generic type T is private; package Prot2_Pkg2 is type Id is private; procedure Create (B : out Id); procedure Delete (B : in out Id); private type Rec; type Id is access Rec; end Prot2_Pkg2;
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.TAMP is pragma Preelaborate; --------------- -- Registers -- --------------- -- control register 1 type CR1_Register...
with Interfaces; with Atomic.Signed; package Atomic.Signed_32 is new Atomic.Signed (Interfaces.Integer_32);
package body Lto13_Pkg is procedure Proc is begin raise Constraint_Error; end; type T is null record; end Lto13_Pkg;
with Interfaces.C.Strings; with Tkmrpc.Types; with Tkmrpc.Results; package Tkmrpc.Clients.Ees is procedure Init (Result : out Results.Result_Type; Address : Interfaces.C.Strings.chars_ptr); pragma Export (C, Init, "ees_init"); pragma Export_Valued_Procedure (Init); -- Initialize EES client w...
-- -- 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. -- with Ada.Text_IO; with Types; package Te...
with Ada.Exceptions; with Ada.Text_IO; -- For int."+": with Interfaces.C; package body A_Nodes is Module_Name : constant String := "A_Nodes"; package AEX renames Ada.Exceptions; package ATI renames Ada.Text_IO; -- Checks to be sure no Unit with this ID has already been pushed. Raises -- Usage_Error ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Slim.Menu_Models is ----------- -- Child -- ----------- function Child (Self : Menu_Model'Class; ...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is procedure P(A: integer; A: character) is begin New_Line; end; begin P(0,'a'); end;
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- with Swarm_Configuration; use Swarm_Configuration; with Swarm_Configurations; use Swarm_Configurations; pragma Elaborate_All (Swarm_Configurations); with Swarm_Structures; use Swarm_Structures; with Swarm_Structures_Base; use Swarm_Structures_Base; package Sw...
procedure Function_Renaming is function Increment (I : Integer) return Integer is begin return I + 1; end Increment; function RenamedIncrement (NewI : Integer) return Integer renames Increment; begin null; end Function_Renaming;
with Rejuvenation.Placeholders; use Rejuvenation.Placeholders; with String_Maps; use String_Maps; package Rejuvenation.Replacer is function Replace (Node : Ada_Node'Class; Replacements : Map) return String with Pre => (for all Placeholder_Name of Get_Placeholder_Names (Node) => ...
package Volatile13 is type Index_Map (Length : Natural) is record Map : String (1 .. Length); end record; type Index_Map_Access is access all Index_Map; pragma Volatile (Index_Map_Access); type Shared_String (Size : Natural) is limited record Length : Natural := 0; Index_Map : Ind...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Abstract : -- -- See spec. -- -- Copyright (C) 2017 - 2019 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3, or (at your option) ...
----------------------------------------------------------------------- -- volume - Bean to compute the cylinder volume -- 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"); -- you may not us...
package Discr46 is type Enum is (One, Two, Three); for Enum use (One => 1, Two => 2, Three => 3); type Rec1 (D : Boolean := False) is record case D is when False => null; when True => T : Integer; end case; end record; type Rec2 is record R : Rec1; C : Charact...
with Constant2_Pkg2; use Constant2_Pkg2; package Constant2_Pkg1 is Val : constant Boolean := F1 and then F2; end Constant2_Pkg1;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- 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. -- -- ...
with Test_Solution; use Test_Solution; package Problem_2 is type Int64 is range -2**63 .. 2**63 - 1; type Int128 is range -2**127 .. 2**127 - 1; function Solution_1( Max : Int128 ) return Int128; function Solution_2( Max : Int128 ) return Int128; procedure Test_Solution_1; procedure Test_So...
with Glib; use Glib; with Cairo; use Cairo; with Cairo.Png; use Cairo.Png; with Cairo.Pattern; use Cairo.Pattern; with Cairo.Image_Surface; use Cairo.Image_Surface; with Ada.Numerics; procedure Sphere is subtype Dub is Glib.Gdouble; Surface : Cairo_Surface; Cr ...
package body labels is function last_label return label_t is begin return last; end last_label; function get_by_name (str : string) return label_t is cur : labels_t.cursor := labels_t.find(labels, str); begin if cur = labels_t.no_element then return null_label; end if; return (curso...
----------------------------------------------------------------------- -- html.messages -- Faces messages -- Copyright (C) 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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Demonstrates: -- Declaring arrays -- Indexted Component -- Slice procedure simple_array_expressions is type Arr_Type is array (Integer range <>) of Integer; Arr1 : Arr_Type ( 1 .. 26); begin Arr1(1) := 1; if Arr1(1) = 1 then null; end if; Arr1(7 .. 9) := (7, 8, 9); if A...
pragma Ada_2012; with Vulkan.Low_Level.Vulkan_Core_H; with Interfaces.C; package body Vulkan is use Vulkan.Low_Level.Vulkan_Core_H; use Interfaces.C; -------------------------------- -- VkEnumerateInstanceVersion -- -------------------------------- function VkEnumerateInstanceVersion return Integer i...
with Ada.Unchecked_Conversion; with ACO.Utils.Byte_Order; package body ACO.Generic_Entry_Types is use ACO.Utils.Byte_Order; function Swap (X : Byte_Array) return Byte_Array is (Byte_Array (Swap_Bus (Octets (X)))) with Inline; function Read (This : Entry_Type) return Item_Type is (This.Data); ...
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.RSTC is pragma Preelaborate; --------------- -- Registers -- --------------- -- Reset Cause type RSTC_RCAUSE_Register...
with DDS.DataReader; with DDS.DataWriter; with DDS.Publisher; with DDS.Subscriber; with DDS.TopicDescription; with Interfaces.C.Extensions; with DDS.DomainParticipant; with DDS.Treats_Generic; with DDS.Request_Reply.Connext_C_Entity_Params; with DDS; with DDS.DataReaderListener; with Interfaces.C.Extensions; with Ada....
----------------------------------------------------------------------- -- awa_test_app - -- 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 compliance with the ...
-- AOC 2020, Day 20 with Ada.Text_IO; use Ada.Text_IO; with Day; use Day; procedure main is part1 : constant Long_Integer := image_checksum("input.txt"); part2 : constant Long_Integer := water_roughness; begin put_line("Part 1: " & part1'IMAGE); put_line("Part 2: " & part2'IMAGE); end main;
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2018 Componolit GmbH -- Copyright (C) 2010, Alexander Senier -- Copyright (C) 2010, secunet Security Networks AG -- All rights reserved. -- -- Redistribution and use in s...
private with Interfaces; package Atomic.Critical_Section with Preelaborate is type Interrupt_State is private; procedure Enter (State : out Interrupt_State) with Inline_Always; procedure Leave (State : Interrupt_State) with Inline_Always; private type Interrupt_State is new Interfaces.Unsi...
with Text_IO; package body Control is procedure Put_Line (S: String) is begin Text_IO.Put_Line(S); end Put_Line; function Get_Line return String is S: String(1..5) := (others => ASCII.NUL); Char : Character; begin for I in 1 .. 3 loop Text_IO.Get(Char); Text_IO....
-- 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 BBqueue; use BBqueue; package body COBS.Queue.Encoder is procedure Ensure_Buffer (This : in out Instance; Success : out Boolean); procedure Set (This : in out Instance; Index : Storage_Offset; Data : Storage_Element) with ...
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- -- @summary -- Lexical Analysis Stuff -- -- @description -- This package provides namespace for lexical analysis algorithms -...
package body Opt21_Pkg is function Get_Object (Object : not null access R) return System.Address is begin return Object.Ptr; end; function Convert (W : Obj) return System.Address is begin if W = null then return System.Null_Address; else return Get_Object (W); ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Contexts; package Program.Compilations is pragma Pure; -- A specific Compilation ...
----------------------------------------------------------------------- -- awa-users-filters -- Specific filters for authentication and key verification -- Copyright (C) 2011, 2012, 2015, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version ...
----------------------------------------------------------------------- -- gen-model-operations -- Operation declarations -- Copyright (C) 2012, 2016, 2017, 2018, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
with Data; with Ada.Integer_Text_IO,Ada.Text_IO; use Ada.Integer_Text_IO,Ada.Text_IO; with System.Multiprocessors; use System.Multiprocessors; --F1 ME = MAX(B) *(MA*MD) --F2 MF = g*TRANS(MG)*(MK*ML) --F3 O = (MP *MR)*S + T procedure Main is N:Integer:=2; package Data1 is new Data (N); use Data1; Res1:Matr...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Ada.Characters.Latin_1; with Ada.Directories; with Ada.Exceptions; with File_Operations; with Utilities; with PortScan.Log; package body Port_Specification.Web is package LAT renames Ada.Characters.Latin_...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
pragma License (Unrestricted); -- implementation unit required by compiler package System.Val_Real is pragma Pure; -- required for Float'Value by compiler (s-valrea.ads) function Value_Real (Str : String) return Long_Long_Float; end System.Val_Real;
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with Ada.Streams.Stream_IO; with Ada.Wide_Wide_Text_IO; with League.Application; with League.Stream_Element_Vectors; with League.String_Vectors; with Le...
with MSPGD; package MSPGD.GPIO is pragma Preelaborate; type Alt_Func_Type is (IO, Primary, Secondary, Device_Specific, Analog, Comparator); type Direction_Type is (Input, Output); type Resistor_Type is (None, Up, Down); subtype Pin_Type is Integer range 0 .. 7; subtype Port_Type is Unsigned_8 range...
------------------------------------------------------------------------------- -- Copyright (c) 2016 Daniel King -- -- 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, in...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Lcm_Test is function Gcd (A, B : Integer) return Integer is M : Integer := A; N : Integer := B; T : Integer; begin while N /= 0 loop T := M; M := N; N := T mod N; end loop; return M; end Gcd; functi...
with Interfaces.C; package Libtcod is type Width is new Interfaces.C.int range 0 .. Interfaces.C.int'Last; type Height is new Interfaces.C.int range 0 .. Interfaces.C.int'Last; end Libtcod;
-- { dg-do run } with Ifaces; use Ifaces; procedure test_ifaces is view2 : access Iface_2'Class; obj : aliased DT := (m_name => "Abdu"); begin view2 := Iface_2'Class(obj)'Access; view2.all.op2; end;
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- -- -- Usage if the purpose is to "catch all": -- -- begin -- .. -- exception -- when Exception_Id : others => Show_Exception (Exception_Id); -- end; -- with Ada.Exceptions; use Ada.Exceptions; package Exceptions is procedure Show_Exception (Exception_I...
-- 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.STK is pragma Preelaborate; --------------- -- Registers -- --------------- -- SysTick control and status...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Strings.UTF_Encoding.Strings; with Ada.Strings.UTF_Encoding.Wide_Strings; with Ada.Strings.UTF_Encoding.Wide_Wide_Strings; with Text.Builder; package body Yaml.Lexer.Evaluation is ------...