content
stringlengths
23
1.05M
with System, Interfaces.C.Strings, Ada.Unchecked_Conversion; use type System.Address, Interfaces.C.int, Interfaces.C.Strings.chars_ptr; package body FLTK.Menu_Items is function new_fl_menu_item (T : in Interfaces.C.char_array; C : in System.Address; ...
with Generic_Root, Ada.Text_IO; use Generic_Root; procedure Digital_Root is procedure Compute is new Compute_Root("+"); -- "+" for additive digital roots package TIO renames Ada.Text_IO; procedure Print_Roots(Inputs: Number_Array; Base: Base_Type) is package NIO is new TIO.Integer_IO(Number); ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.Objects.Textures.With_1D_Loader; with GL.Objects.Textures.With_2D_Loader; with GL.Objects.Textures.With_3D_Loader; package GL.Objects.Textures.Targets is pragma Preelaborate; -----------...
with Ada.Integer_Text_IO; with Ada.Text_IO; package body Problem_28 is package IO renames Ada.Text_IO; package I_IO renames Ada.Integer_Text_IO; procedure Solve is sum : Positive := 1; last : Positive := 1; begin for row in 2 .. 1_001 loop declare adder : constant Posi...
-- Advanced Resource Embedder 1.2.0 with Interfaces; use Interfaces; package body Bundle is function Hash (S : String) return Natural; P : constant array (0 .. 1) of Natural := (1, 4); T1 : constant array (0 .. 1) of Unsigned_8 := (0, 4); T2 : constant array (0 .. 1) of Unsigned_8 := (1,...
------------------------------------------------------------------------------ -- Copyright (c) 2014-2019, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
package Opt13_Pkg is N : Natural := 0; type My_Type is private; procedure Allocate (T : out My_Type); private type Data; type My_Type is access Data; end Opt13_Pkg;
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. package body GBA.Input.Unbuffered is function Is_Key_Down(K : Key) return Boolean is ( Key_Set'(Read_Key_State)(K) ); function Are_Any_Down(F : Key_Flags) return Boolean is ( (F and Read_Key_State) /= 0 ); function Are_All_D...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt package File_Operations is file_handling : exception; -- Generic function to scan a text file and convert to a string function get_file_contents (dossier : String) return String; -- Generic proc...
with AAA.Strings; with CLIC.Subcommand; with CLIC.Config; package CLIC_Ex.Commands.Config is type Instance is limited new CLIC.Subcommand.Command with private; overriding function Name (Cmd : Instance) return CLIC.Subcommand.Identifier is ("config"); overriding function Switch_Parsing (This...
private with System; with Lv.Font; package Lv.Theme is type Theme is private; No_Theme : constant Theme; subtype Hue_T is Uint16_T range 0 .. 360; -- Set a theme for the system. -- From now, all the created objects will use styles from this theme by default -- @param th pointer to theme (retu...
generic type Element_T is private; package Opt27_Pkg is type Node_T is private; type List_T is private; function Is_Null (Node : in Node_T) return Boolean; generic type Template_T is private; with function Is_Match (Element : in Element_T; ...
-- Specification of class called data -- This class is generic type class generic n:Integer; -- Parametr used in class p:Integer; package data is --Declaration of private types type Vector is private; type Matrix is private; --Input Vector from keyboard procedure Vector_Input(A: out ...
------------------------------------------------------------------------------ -- Copyright (c) 2014-2019, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with Ada.Strings; with Ada.Strings.Fixed; with Ada.Characters.Handling; use Ada.Characters.Handling; with SPDX.Licenses; with SPDX.Exceptions; package body SPDX is function Token_Str (This : Expression; Loc : Location) return String; function Is_Custom_Id (Str : String) return Boolean; procedure Parse_Lice...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- Reference Implementation -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- Copyright (c) 2013-2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
----------------------------------------------------------------------- -- gen-artifacts-yaml -- Query artifact for Code Generator -- Copyright (C) 2018, 2019, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
----------------------------------------------------------------------- -- ado-audits -- Auditing support -- Copyright (C) 2018, 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 file except i...
with Ada.Text_IO.Editing; procedure textioed is type T is delta 0.001 digits 12; package O is new Ada.Text_IO.Editing.Decimal_Output (T); begin -- simple pragma Assert ( O.Image (0.0, Ada.Text_IO.Editing.To_Picture ("999.999")) = "000.000"); pragma Assert ( O.Image (0.0, Ada.Text_IO.Editing.To_Picture ("ZZ9....
----------------------------------------------------------------------- -- keystore-properties -- Property manager on top of keystore -- 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 ...
function Ada.Strings.Generic_Unbounded.Generic_Hash (Key : Unbounded_String) return Containers.Hash_Type is pragma Suppress (Access_Check); begin return Fixed_Hash (Key.Data.Items (1 .. Key.Length)); end Ada.Strings.Generic_Unbounded.Generic_Hash;
-- { dg-do run } with access3; use access3; procedure access4 is Obj_IT : aliased T; Obj_T2 : T2; begin Obj_T2.Op (Obj_IT'Access); end;
package body System.Formatting.Literals is pragma Suppress (All_Checks); use type Long_Long_Integer_Types.Word_Integer; use type Long_Long_Integer_Types.Word_Unsigned; use type Long_Long_Integer_Types.Long_Long_Unsigned; subtype Word_Integer is Long_Long_Integer_Types.Word_Integer; subtype Word_Unsig...
package body System.Interrupt_Numbers is function Is_Reserved (Interrupt : C.signed_int) return Boolean is begin return Interrupt not in First_Interrupt_Id .. Last_Interrupt_Id or else Interrupt = C.signal.SIGKILL or else Interrupt = C.signal.SIGSTOP; end Is_Reserved; end System.Inter...
with FLTK.Images; package FLTK.Devices.Graphics is type Graphics_Driver is new Device with private; type Graphics_Driver_Reference (Data : not null access Graphics_Driver'Class) is limited null record with Implicit_Dereference => Data; function Get_Color (This : in Graphic...
-- C34011B.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) 2011, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
package Sensors.Images is function Image (Source : Bus_Id) return String; function Image (Source : Chip_Name'class) return String; function Image (Source : Feature_Type)return String; function Image (Source : Natural)return String; function Image (Source : Ada.Strings.Unbounded.Unbounded_String)return...
package body Generic_Taylor_Series is function Normalize (A : Taylor_Series) return Taylor_Series is begin for Power in reverse A'Range loop if A (Power) /= 0 then return A (0..Power); end if; end loop; return Zero; end Normalize; function "+" (A : Taylor_Ser...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with ada.Text_IO, xml.Writer; procedure launch_Write is use ada.Text_IO, xml.Writer; begin start_Document (Standard_Output); start (standard_Output, "foo", "bar" + "bing"); empty (standard_Output, "frodo", MkAtt ("hobbit" + "true", "ring" + "1") & ("purpose" + "To rule them all.")); fini...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016-2018, AdaCore -- -- -- -- ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Definitions; use Definitions; with Ada.Integer_Text_IO; with Ada.Directories; with Ada.Text_IO; with HelperText; with Unix; package body Configure is package INT renames Ada.Integer_Text_IO; package D...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2012 Felix Krause <contact@flyx.org> -- -- 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/licen...
with Ada.Text_Io; use Ada.Text_Io; procedure Sierpinski_Carpet is subtype Index_Type is Integer range 1..81; type Pattern_Array is array(Index_Type range <>, Index_Type range <>) of Boolean; Pattern : Pattern_Array(1..81,1..81) := (Others =>(others => true)); procedure Clear_Center(P : in out Pattern_Array...
--# inherit PolyPaver.Exact; package PolyPaver.Floats is --# function Is_Range(Variable : Float; Min : Float; Max : Float) return Boolean; function Eps_Abs return Float; function Eps_Rel return Float; --# function Plus_Minus_Eps_Abs return Float; --# function Plus_Minus_Eps_Rel return Float; ...
package body Motor is BLE_Port : aliased Serial_Port (BLE_UART_Transceiver_IRQ); BLE : Bluefruit_LE_Transceiver (BLE_Port'Access); Period : constant Time_Span := Milliseconds (System_Configuration.Remote_Control_Period); Current_Vector : Travel_Vector := (0, Forward, Emergency_Braking => False) with ...
with System; package MMap is function Get_MMAP_RW return System.Address; procedure Close_MMAP; end MMap;
-- This spec has been automatically generated from STM32L0x1.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.SYSCFG is pragma Preelaborate; --------------- -- Registers -- --------------- -- SYSCFG configuration register 1 ...
-- Chip Richards, NiEstu, Phoenix AZ, Spring 2010 -- Lumen would not be possible without the support and contributions of a cast -- of thousands, including and primarily Rod Kay. -- This code is covered by the ISC License: -- -- Copyright © 2010, NiEstu -- -- Permission to use, copy, modify, and/or distribute this s...
package Person is subtype Age is Natural range 0 .. 140; Adult_Age : constant Age := 18; Unit_Age : Age; end Person;
with Ada.Text_IO; package body Problem_71 is package IO renames Ada.Text_IO; procedure Solve is -- This problem is obviously pertaining to mediants, stern-brocot trees, and farey sequences. -- Specifically since we're doing constrained sequences, we're dealing with farey and we -- basically want...
-- Copyright (c) 2010-2011 Xiph.Org Foundation, Skype Limited -- -- Most of the documentation has been copied from opus.h and opus_defines.h -- and is licensed under the license of those files; the Simplified BSD License. -- -- Copyright (c) 2014 onox <denkpadje@gmail.com> -- -- Permission to use, copy, modify, an...
with Terminal_Interface.Curses; use Terminal_Interface.Curses; with Ada.Text_IO; use Ada.Text_IO; package Process_Menu is type String_Access is access String; type Function_Access is access function return Boolean; type Menu_Record is record Prompt : String_Access; Func : access ...
With Ada.Text_IO; Use Ada.Text_IO; Procedure Determinante is type Real_Matrix is array (Integer range <>, Integer range <>) of Integer'Base; matriz: Real_Matrix(1..3, 1..3); diagonalPrincipal1: Integer; diagonalPrincipal2: Integer; diagonalPrincipal3: Integer; diagonalPrincipalSoma: Integer; diagonalSecundaria1...
package ref_type is private type T is tagged null record; procedure Print (X : T); end ref_type;
-- Motherlode -- Copyright (c) 2020 Fabien Chouteau with HAL; use HAL; with PyGamer; use PyGamer; with PyGamer.Time; with PyGamer.Controls; use PyGamer.Controls; with PyGamer.Screen; with Parameters; with Render; use Render; with World; use World; with Sound; package body Title_Screen is Selected : Boolean :=...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt with Ada.Strings.Fixed; with Ada.Strings.Wide_Fixed; with Ada.Strings.Wide_Wide_Fixed; with Ada.Characters.Conversions; with Ada.Strings.UTF_Encoding.Strings; package body AdaBase.Results.Generic_Converters is ...
with Approximation, Ada.Numerics.Elementary_Functions; procedure Test_Approximations is package A is new Approximation(Float, Ada.Numerics.Elementary_Functions.Sqrt, Ada.Numerics.Elementary_Functions."**"); use type A.Number; X1: A.Number := ...
-- ________ ___ ______ ______ ___ -- /___ .. ._/ |.| |.___.\ /. __ .\ __|.| ____ -- / .. / |.| |.____/ |.|__|.| / .. ..| __\ .. \ -- _/ .. /___ |.| |.| === | .. __ .. ||. = .| | = .. | -- /_______/ |_| /__| /__| |_| \__\_| \__\_| -- UnZip.Streams ----------...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
swagger.dir=web swagger.web.enable=false swagger.ui.enable=true swagger.port=8080 swagger.apps=app swagger.users=users swagger.key=NTk4YzEyODNhMjM4IDJjMjNkOGFiNThkYSBkZWExOTQ1MTQ2YjkgZmIxNGM4NWY4OGQzCg app.list=1 app.1.client_id=test-app app.1.client_secret=test-app-secret app.1.scope=none users.list=1,2 users.1.user...
package body Opt25_Pkg1 is procedure Swap (A, B : in out T) is Tmp : T := A; begin A := B; B := Tmp; end Swap; end Opt25_Pkg1;
with STM32_SVD.SPI; with STM32_SVD; use STM32_SVD; package STM32GD.SPI is pragma Preelaborate; SPI_1 : STM32_SVD.SPI.SPI_Peripheral renames STM32_SVD.SPI.SPI1_Periph; type SPI_Data_Size is (Data_Size_8b, Data_Size_16b); type SPI_Data_8b is array (Natural range <>) of Byte; type SPI_Data_...
----------------------------------------------------------------------- -- awa-wikis-modules -- Module wikis -- Copyright (C) 2015, 2016, 2018, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use thi...
package body Kafka.Message is function Get_Error(Message : access constant Message_Type) return String is begin return Interfaces.C.Strings.Value(rd_kafka_message_errstr(Message)); end Get_Error; end Kafka.Message;
package String_Int is type Digit is new Character range '0' .. '9'; subtype Index is Positive; type Number is array (Index range <>) of Digit; function From_String(S: String) return Number; function To_String(N: Number) return String; function "+"(A, B: Number) return Number; end String_Int;
pragma License (Unrestricted); -- implementation unit with System.Reference_Counting; package Ada.Strings.Naked_Maps is pragma Pure; -- Representation for a set of Wide_Wide_Character values subtype Character_Type is Wide_Wide_Character; subtype Character_Sequence is Wide_Wide_String; -- alternativ...
function Yes_Or_No (Prompt : String := "Your answer (Y/N): ") return Boolean is Answer : Character; begin Ada.Text_IO.Put (Prompt); loop Ada.Text_IO.Get_Immediate (Answer); case Answer is when 'Y'|'y' => return True; when 'N'|'n' => return False; ...
-- 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...
-- AOC 2020, Day 1 with Ada.Text_IO; use Ada.Text_IO; with Day; use Day; procedure main is v : constant XMAS_Vector.Vector := load_file("input.txt"); invalid : constant Long_Integer := first_invalid(v, 25); contig : constant Long_Integer := find_sum(v, invalid); begin put_line("Part 1: " & Long_Integer'Image(i...
with Animals.Humans; use Animals; with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; procedure Test_Humans is package U renames Ada.Strings.Unbounded; Karl_Marx : Humans.Human := Humans.Make ("Karl Marx", Humans.Male); --Not_Human : Animal; begin Put (U.To_String (Karl...
with Interfaces; use Interfaces; package body VirtAPU is generic type Int_T is range <>; function To_Int (S : Sample) return Int_T with Inline; generic type UInt_T is mod <>; function To_UInt (S : Sample) return UInt_T with Inline; function Saturate (S : Sample) return Sample ...
with Interfaces; with Atomic.Signed; package Atomic.Signed_8 is new Atomic.Signed (Interfaces.Integer_8);
with Ada.Text_IO; with Ada.IO_Exceptions; with LibRISCV.Sim.Hart; with LibRISCV.CSR; package body LibRISCV.Sim.GDB_Remote_Target is use type GDB_Remote.Breakpoint_Type; ------------------ -- Start_Server -- ------------------ procedure Start_Server (This : in out Instance) is begin GNAT.Soc...
with Interfaces; use Interfaces; package body Drivers.Text_IO is procedure Put (C : Character) is begin USART.Transmit (Character'Pos (C)); end Put; procedure Put (S : String) is begin for C of S loop Put (C); end loop; end Put; procedure Put_Line (S : String) is b...
with Generator.Match_Pattern_Specific; procedure Main_Rejuvenation_Lib_Generator is begin Generator.Match_Pattern_Specific.Main; end Main_Rejuvenation_Lib_Generator;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- gen-xmi-tests -- Tests for xmi -- 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 in comp...
package interface5 is type B is tagged null record; type I is interface; function F (Object : I) return access I is abstract; type Child is new B and I with null record; function F (Object : Child) return access Child; end interface5;
with Ada.Text_IO; procedure Middle_Three_Digits is Impossible: exception; function Middle_String(I: Integer; Middle_Size: Positive) return String is S: constant String := Integer'Image(I); First: Natural := S'First; Full_Size, Border: Natural; begin while S(First) not in '0' .. '9' l...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017-2020, AdaCore -- -- -- -- ...
pragma License (Unrestricted); generic type Object (<>) is limited private; package System.Address_To_Access_Conversions is pragma Preelaborate; type Object_Pointer is access all Object; pragma No_Strict_Aliasing (Object_Pointer); function To_Pointer (Value : Address) return Object_Pointer with Im...
with Ada.Text_IO, Turing; procedure Simple_Incrementer is type States is (Start, Stop); type Symbols is (Blank, One); package UTM is new Turing(States, Symbols); use UTM; Map: Symbol_Map := (One => '1', Blank => '_'); Rules: Rules_Type := (Start => (One => (Start, Right, One), ...
----------------------------------------------------------------------- -- asf-navigations-tests - Tests for ASF navigation -- 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 use this ...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with SDL_stdinc_h; with Interfaces.C.Strings; package SDL_version_h is SDL_MAJOR_VERSION : constant := 2; -- ..\SDL2_tmp\SDL_version.h:60 SDL_MINOR_VERSION : constant := 0; -- ..\SDL2_tmp\SDL_version.h:61 SDL_PATCHLEVEL : c...
-- Package body Scaliger.Ada_conversion ---------------------------------------------------------------------------- -- Copyright Miletus 2015 -- 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 Softwa...
with Ada.Unchecked_Deallocation; package body Rectangles is -- Initialization of a Rectangle procedure Initialize(This : in RectangleAcc; Pos, Vel, Grav, Dim : in Vec2D; Mat : in Material) is begin Entities.Initialize(Entities.Entity(This.all), Entit...
---------------------------------------------------------------------- -- -- Maze Demonstration Main Program -- -- written by -- -- Edmond Schonberg -- -- Ada Project -- Courant Institute -- New York University -...
with Ada.Text_IO; with TOML; procedure Main is Value : constant TOML.TOML_Value := TOML.Load_File ("example.toml").Value; Clone : constant TOML.TOML_Value := Value.Clone; begin -- Mutate Value: the Clone is supposed to be unaffected Value.Set ("hello", TOML.Create_Boolean (true)); Value.Get ("array")...
package PolyPaver.Integers is --# function Is_Integer(Variable : Integer) return Boolean; --# function Is_Range(Variable : Integer; Min : Integer; Max : Integer) return Boolean; end PolyPaver.Integers;
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with bits_stdint_intn_h; with bits_stdint_uintn_h; package KHR_khrplatform_h is -- unsupported macro: KHRONOS_APICALL __attribute__((visibility("default"))) KHRONOS_SUPPORT_INT64 : constant := 1; -- /usr/include/KHR/khrplatform...
with Ada.Containers.Vectors; use Ada.Containers; with Ada.Finalization; with Interfaces.C; with Interfaces.C.Pointers; package PixelArray is pragma Elaborate_Body; pragma Assertion_Policy (Pre => Check, Post => Check, Type_Invariant => Check); type Pixe...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; use Ada.Command_Line; with Cellular; use Cellular; procedure Main is Width, Number : Natural; begin if Argument_Count < 2 then Put("usage: cellular <width> <lines>"); return; end if; Width := Natural'Value(Argument(1)); ...
-- -- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: Apache-2.0 -- with Ada.Strings.UTF_Encoding.Wide_Wide_Strings; with Ada.Characters.Wide_Wide_Latin_1; with Interfaces.C.Strings; use Interfaces.C.Strings; with Interfaces.C; use Interfaces.C; with Interfaces.C_Streams; with Inte...
-- { dg-do compile } with Discr25_Pkg; procedure Discr25 (N : Natural) is package Test_Set is new Discr25_Pkg (N); begin null; end;
with Support.Strings; use Support.Strings; with GNAT.Regpat; use GNAT.Regpat; package body Support.RegEx is Matches : Match_Array (0 .. 10); -- Matches (0) = first & last for the whole regex -- Matches (1) = first & last fo...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. package GBA.Memory.IO_Registers is pragma Preelaborate; -- Display Registers -- DISPCNT : constant Address := 16#4000000#; GREENSWAP : constant Address := 16#4000002#; DISPSTAT : constant Address := 16#4000004#; VCOUNT :...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with System; with Interfaces.C.Strings; private package CUPS.cups_backend_h is -- * "$Id: backend.h 10996 2013-05-29 11:51:34Z msweet $" -- * -- * Backend definitions for CUPS. -- * -- * Copyright 2007-2011 by Apple Inc. ...
-- Institution: Technische Universitaet Muenchen -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Module: Software Configuration -- -- Authors: Martin Becker (becker@rcs.ei.tum.de) -- @summary -- Target-specific types for the devices that are exposed -- in hil-i2c et. al in Pixracer V...
----------------------------------------------------------------------- -- ado-schemas-entities -- Entity types cache -- Copyright (C) 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 use ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Ada.Finalization; with GL.Types.Colors; -- This package provides functions to directly insert vertices, colors, normals -- etc. into the pipeline. Note that these functions have been deprecated w...
with Ada.Text_IO, Ada.Integer_Text_IO, display; use Ada.Text_IO, Ada.Integer_Text_IO, display; procedure spritemaker is procedure showFile(Filename : String) is File : File_Type; begin Open(File, In_File, Filename); while(not End_Of_File(File)) loop Put(Get_Line(File => File)); new_line; end loop; C...
-- { dg-do run } -- { dg-options "-gnato" } procedure Test_8bitlong_Overflow is pragma Unsuppress (Overflow_Check); generic type T is range <>; package G is LO : T := T'first; ONE : T := T(1); type A2 is array(T range <>) of T; subtype SA2 is A2(LO..4*ONE); ARRAY_AGG...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
with Ada.Text_IO; with Logging_With_Priority; procedure TC_Log_Priorities is Maximum_Message_Length : constant := 64; package Log is new Logging_With_Priority (Priorities => Natural, Maximum_Message_Length => Maximum_Message_Length, Maximum_Number_Of_Messages => 6); pro...