content
stringlengths
23
1.05M
with Ada.Containers.Vectors; with Ada.Finalization; with GNAT.Strings; -- https://adventofcode.com/2020/day/2 -- ========================================================================== -- --- Day 2: Password Philosophy --- -- -- Your flight departs in a few days from the coastal airport; -- the easiest way do...
with System.Native_Credentials; package body Ada.Credentials is function User_Name return String is begin -- User_Name has a default parameter in Darwin, but not in Windows return System.Native_Credentials.User_Name; end User_Name; end Ada.Credentials;
with Aws.Client, Aws.Messages, Aws.Response, Aws.Resources, Aws.Url; with Dom.Readers, Dom.Core, Dom.Core.Documents, Dom.Core.Nodes, Dom.Core.Attrs; with Input_Sources.Strings, Unicode, Unicode.Ces.Utf8; with Ada.Strings.Unbounded, Ada.Text_IO, Ada.Command_Line; with Ada.Containers.Vectors; use Aws.Client, Aws.Messag...
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Incr.Lexers.Incremental is procedure Apply_Marking (Node : Nodes.Node_Access; Previous : Versio...
------------------------------------------------------------------------------ -- Copyright (c) 2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
-- -- Nice little HTTP 1.x request parser. Uses a state machine. -- Operates by cutting up the incoming request string into sections. -- package HTTP with SPARK_Mode => On is type Version is delta 0.1 range 1.0 .. 9.9; type Indexes is record First : Natural := 1; Last : Natural := 0; end record; end H...
with P_StepHandler; use P_StepHandler; package P_StepHandler.InputHandler is type T_InputHandler is new T_StepHandler with private; PROCEDURE Initialize (Object : in out T_InputHandler) ; end P_StepHandler.InputHandler;
with RTCH.Colours; use RTCH.Colours; package RTCH.Colours.Steps is -- @given ^c ← color\(([-+]?\d+\.?\d*), ([-+]?\d+\.?\d*), ([-+]?\d+\.?\d*)\)$ procedure Given_Colour_C (Red, Green, Blue : Float); -- @then ^c.red = ([-+]?\d+\.?\d*)$ procedure Then_C_Red_Is (Red : Float); -- @and ^c.green = ([-+]?\d+\...
------------------------------------------------------------------------------- -- Copyright (c) 2019 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...
with MSP430_SVD; use MSP430_SVD; package MSPGD.UART is pragma Preelaborate; type Clock_Source_Type is (UCLK, ACLK, SMCLK); end MSPGD.UART;
generic type Element is (<>); with function Image(E: Element) return String; package Set_Cons is type Set is private; -- constructor and manipulation functions for type Set function "+"(E: Element) return Set; function "+"(Left, Right: Element) return Set; function "+"(Left: Set; Right: Element) ...
-- -- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr> -- - Ryad Benadjila -- - Arnauld Michelizza -- - Mathieu Renard -- - Philippe Thierry -- - Philippe Trebuchet -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the...
-- -- Standard Ada packages -- with Ada.Text_IO; with Ada.Integer_Text_IO; with Ada.Float_Text_IO; with Ada.Calendar; -- -- Other packages -- with BBS.BBB.i2c; with BBS.BBB.i2c.PCA9685; with BBS.BBB.i2c.BME280; with BBS.units; with WeatherCommon; procedure weather is port : BBS.BBB.i2c.i2c_interface := BBS.BBB.i2c....
---------------------------------------- -- Copyright (C) 2019 Dmitriy Shadrin -- -- All rights reserved. -- ---------------------------------------- with Pal; use Pal; with Interfaces.C; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; -------------------------------------------------------------...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------- -- 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...
package body Ada.Streams.Naked_Stream_IO.Standard_Files is begin System.Native_IO.Initialize ( Standard_Input_Stream.Handle, Standard_Output_Stream.Handle, Standard_Error_Stream.Handle); end Ada.Streams.Naked_Stream_IO.Standard_Files;
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- { dg-do compile } with ext1; use ext1; procedure test_ext1 is X : Regular_Smiley; begin X.Set_Mood; end;
with gel.World.server; package gel_demo_Server -- -- Provides the server. -- is the_server_World : gel.World.server.view; task Item is entry start; entry stop; end Item; end gel_demo_Server;
-- CD2A21C.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...
with Ada.Text_IO; with GNAT.Source_Info; with GNAT.Current_Exception; with Ada.Text_IO; with Ada.Unchecked_Conversion; with GNAT.OS_Lib; package body Emulator_8080.Processor is procedure Print_Exception(Throwing_Function, Exception_Cause : in String) is begin Ada.Text_IO.Put(Throwing_Function & " threw ex...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package body T67XX_I2C_IO is ---------- -- Read -- ---------- procedure Read (This : Any_IO_Port; Func : UInt8; Register : UInt16; Nxfer : UInt16; Response : out I2C_Data) is Result : I2C_Status; Frame : T67XX_Frame; Buf : I2C_Data (1 ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Source_Buffers; private with Ada.Containers.Hashed_Maps; package Program.Symbols.Tables is pragma Preelaborate; ...
----------------------------------------------------------------------- -- mgrep -- Mail grep command -- 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 complian...
procedure poulet_au() is poulet : integer; begin couper(poulet); revenir(poulet); servir(poulet); end; procedure poulet_au(recette : access procedure (poulet : integer)) is poulet : integer; begin couper(poulet); revenir(poulet); recette(poulet); servir(poulet); end; proced...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Main is --Conversion_Functions type Digit_T is range 0 .. 9; type Digit_Name_T is (Zero, One, Two, Three, Four, Five, Six, Seven, Eight, Nine); -- functions to convert between Digit_T, Digit_Name_T, and input values -- function Convert ( ? -- functi...
-- Implantation du module Piles. with Ada.Text_IO; use Ada.Text_IO; --! Ce module est nécessaire parce qu'on a ajouté le SP Afficher. package body Piles is procedure Initialiser (Pile : out T_Pile) is begin Pile.Taille := 0; end Initialiser; function Est_Vide (Pile : in T_Pile) return...
with Ada.Text_IO; use Ada.Text_IO; package body Prime_Ada is procedure Get_Prime (n : Integer) is prime : array (1 .. n) of Integer; is_prime : array (1 .. n) of Boolean := (False, others => True); begin cnt := 0; for i in 2 .. n loop if is_prime (i) then cnt := c...
with Commands.Generate; with Commands.Create; with Commands.Init; with Commands.Destroy; with Commands.Publish; with Commands.Import; with Commands.Deploy; with Commands.Announce; with CLIC.User_Input; with Commands.Topics.Issues; with Commands.Topics.Contribute; package body Commands is ------------------------- ...
-- This spec has been automatically generated from STM32L5x2.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.RNG is pragma Preelaborate; --------------- -- Registers -- --------------- subtype RNG_CR_RNG_CONFIG3_Fie...
with Instruction; use Instruction; with Machine; use Machine; with Debug; use Debug; procedure Driver with SPARK_Mode is Prog : Program := (others => (Op => NOP)); Code : ReturnCode; Result : Integer; HasInvalidBehaviour : Boolean; begin -- initialise the random number generators used to generate -- ...
----------------------------------------------------------------------- -- wiki-filters-variables -- Expand variables in text and links -- 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 no...
with AUnit; use AUnit; with AUnit.Run; with AUnit.Reporter.Text; with GNAT.OS_Lib; with Tests; with Tests.Device.HID; with Tests.Utils; procedure Run_Tests is function Runner is new AUnit.Run.Test_Runner_With_Status (Tests.Get_Suite); Reporter : AUnit.Reporter.Text.Text_Reporter; begin Reporter.Set_Use_AN...
package Unknown_Discriminant is type Type_1 (<>) is private; private type Type_1 (Size : Natural) is null record; end Unknown_Discriminant;
with System.Storage_Elements; with System.Debug; -- assertions with C.sys.syscall; with C.unistd; package body System.Stack is pragma Suppress (All_Checks); use type Storage_Elements.Storage_Offset; use type C.signed_int; procedure Get ( Thread : C.pthread.pthread_t := C.pthread.pthread_self; T...
------------------------------------------------------------------------------- -- package body Disorderly.Basic_Rand, Linear Random Number Generator -- Copyright (C) 1995-2018 Jonathan S. Parker -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby gra...
-- C36172A.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...
-- { dg-do run } with System; use System; procedure SSO3 is Rev_SSO : constant Bit_Order := Bit_Order'Val (1 - Bit_Order'Pos (Default_Bit_Order)); type R (D : Integer) is record Common : Integer; case D is when 0 => V1 : Integer; when others => V2 : In...
-- { dg-do run { target i?86-*-* x86_64-*-* } } -- { dg-options "-O1 -msse" } -- { dg-require-effective-target sse_runtime } with Ada.Unchecked_Conversion; procedure SSE_Nolib is -- Base vector type definitions package SSE_Types is VECTOR_ALIGN : constant := 16; VECTOR_BYTES : constant := 16;...
with Ada.Text_IO; use Ada.Text_IO; procedure Oups is V : Integer := 0; begin if 1 / V = 1 then New_Line; end if; end;
----------------------------------------------------------------------- -- Security-oayth-jwt-tests - Unit tests for JSON Web Token -- Copyright (C) 2013, 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may ...
generic type Real is digits <>; package Generic_Quaternions is type Quaternion is record W : Real; X : Real; Y : Real; Z : Real; end record; function "-" (Q : Quaternion) return Quaternion; function "+" (L, R : Quaternion) return Quaternion; function "-" (L, R : Quaternion)...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package body Ada.Strings.Generic_Unbounded.Generic_Functions is function Index ( Source : Unbounded_String; Pattern : String_Type; From : Positive; Going : Direction := Forward) return Natural is pragma Suppress (Access_Check); begin return Fixed_Functions.Index ( ...
-- DECLS-D_ATRIBUT.ads -- Paquet de declaracions d'atributs with Decls.Dgenerals, Decls.D_Taula_De_Noms, Decls.Dtnode, Decls.Dtdesc; use Decls.Dgenerals, Decls.D_Taula_De_Noms, Decls.Dtnode, Decls.Dtdesc; package Decls.D_Atribut is type Atribut (T : Tipus_Atr...
with AFRL.CMASI.AutomationResponse.SPARK_Boundary; use AFRL.CMASI.AutomationResponse.SPARK_Boundary; with AFRL.CMASI.MissionCommand; use AFRL.CMASI.MissionCommand; with AVTAS.LMCP.Object.SPARK_Boundary; use AVTAS.LMCP.Object.SPARK_Boundary; with UxAS.Comms.LMCP_Net_Client.Service.Example...
package Inline11_Pkg is procedure Trace (I : Integer); pragma Inline (Trace); end Inline11_Pkg;
-- 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.USBHSH is pragma Preelaborate; ...
-- { dg-do compile } package tag1 is type T is tagged limited record Y : access T'Class; -- OK X : access Tag1.T'Class; -- Problem end record; end tag1;
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Units.Declarations is ------------------ -- Append_Child -- ------------------ procedure Append_Chil...
with Ada.Numerics.Generic_Elementary_Functions; with Giza.Colors; use Giza.Colors; with Ada.Text_IO; use Ada.Text_IO; with Engine_Control_Events; use Engine_Control_Events; package body Power_Phase_Widget is package Float_Functions is new Ada.Numerics.Generic_Elementary_Functions (Float); use Floa...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Text_IO; package body Word_List is package IO renames Ada.Text_IO; use Word_Lists; use Pattern_Sets; function "<"(a, b: pattern) return Boolean is begin return String(a) < String(b); end "<"; function "="(a, b: pattern) return Boolean is begin return String(a) = Strin...
-------------------------------------------------------------------- --| Package : Input_Line Version : -------------------------------------------------------------------- --| Abstract : This package handles everything concerning a user's input. --| The raw user input ...
-- { dg-do run } with Derived_Type3_Pkg; use Derived_Type3_Pkg; procedure Derived_Type3 is begin Proc1; Proc2; end;
-- { dg-do compile } -- { dg-options "-fdump-tree-gimple" } with Atomic6_Pkg; use Atomic6_Pkg; procedure Atomic6_4 is procedure P (I1 : out Integer; I2 : in Integer) is begin I1 := I2; end; Temp : Integer; begin P (Integer(Counter1), Integer(Counter2)); P (Timer1, Timer2); P (Integer(Counter1),...
with Engines, Ada.Strings.Fixed; package body GUIs is use Ada.Strings; use type Console.Y_Pos; Log_X : constant := Bar_Width + 2; Message_Height : constant := Panel_Height - 1; procedure render_bar(self : in out GUI; x : Console.X_Pos; y : Console.Y_Pos; w : Width; name : Strin...
with System; use System; package body Deferred_Const3_Pkg is procedure Dummy is begin null; end; begin if C1'Address /= C'Address then raise Program_Error; end if; if C2'Address /= C'Address then raise Program_Error; end if; if C3'Address /= C'Address then raise Program_Error; end if; end...
with AUnit.Test_Suites; with AUnit.Test_Fixtures; with AUnit.Test_Caller; package Tests is function Get_Suite return AUnit.Test_Suites.Access_Test_Suite; private type Null_Fixture is new AUnit.Test_Fixtures.Test_Fixture with null record; package Null_Caller is new AUnit.Test_Caller (Null_Fixture); Sui...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
generic type Record_Type; package Incomplete5_Pkg is type Access_Type is access Record_Type; type Base_Object is tagged record Handle: Access_Type; end record; function Get_Handle(Object: Base_Object) return Access_Type; function From_Handle(Handle: Access_Type) return Base_Object; end Inco...
with gel.Window.setup, gel.Applet.gui_world, gel.Camera, gel.Mouse, gel.Sprite, gel.Events, gel.Forge, Physics, float_Math, lace.Response, lace.Event.utility, Ada.Calendar, Ada.Text_IO, Ada.Exceptions; pragma unreferenced (gel.Window.setup); ...
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- with GLUT.Devices; package Keyboard is type Complete_Command_Set is ( -- Special Commands -- Move_Accelerator, Full_Screen, Reset_Camera, Screen_Shot, Toggle_Axis, Toggle_Lines, Text_Overlay, Space, -- Ro...
-- -- Copyright (C) 2014-2016 secunet Security Networks AG -- -- 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 2 of the License, or -- (at your option) any later version. -- -- ...
------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. (gh+flacada@heisenbug.eu) -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam ...
-- 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 Peripherals; use Peripherals; package Modem is protected TX is procedure Send (Data : in Radio.Packet_Type); procedure Get_Data (Data_Available : out Boolean; Data : out Radio.Packet_Type); private Data_Available : Boolean := False; Data : Radio.Packet_Type; end TX;...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- 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...
-- This spec has been automatically generated from STM32F40x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.EXTI is pragma Preelaborate; --------------- -- Registers -- --------------- -- IMR_MR array type IMR_...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- generated parser support file. -- command line: wisitoken-bnf-generate.exe --generate LR1 Ada_Emacs re2c PROCESS text_rep ada.wy -- -- Copyright (C) 2013 - 2019 Free Software Foundation, Inc. -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Publ...
------------------------------------------------------------------------------ -- -- -- SPARK LIBRARY COMPONENTS -- -- -- -- ...
with DDS.DomainParticipantFactory; with DDS.DomainParticipant; package DDS.Request_Reply.Tests.Simple is pragma Elaborate_Body; Domain_Id : DDS.DomainId_T := 0; Service_Name : DDS.String := To_DDS_String ("myService"); Service_Name_Octets : DDS.String := To_DDS_String ("myOctets"); Qos_...
----------------------------------------------------------------------- -- asf-navigations-reader -- Read XML navigation files -- Copyright (C) 2010, 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- y...
-- { dg-do run } with sort1; procedure sort2 is begin if Sort1 ("hello world") /= " dehllloorw" then raise Program_Error; end if; end sort2;
-- -- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- with Ada.Text_IO; with Text_Format; use Text_Format; with HAL.SPI; with HAL; with RP.Clock; with RP.Device; with RP.GPIO; with RP.SPI; with Pico; with ADXL345; procedure Accel is Port : RP.SPI.SPI_Port ren...
------------------------------------------------------------------------------ -- Copyright (C) 2012-2020 by Heisenbug Ltd. -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Hocevar. See the LICE...
with AdaBase; with Connect; with Ada.Text_IO; procedure Fruit2 is package CON renames Connect; package TIO renames Ada.Text_IO; numrows : AdaBase.Affected_Rows; -- Intentionally broken UPDATE command (calories misspelled) cmd : constant String := "UPDATE fruits set caloriesx = 14 " & ...
------------------------------------------------------------------------------ -- -- generic package Generic_Table_Text_IO (body) -- -- A package for reading data tables with column headers indicating -- which data are in which columns. -- -----------------------------------------------------------------------------...
with Ada.Containers.Vectors; package wa1 is type Repr(<>) is private; type Abstract_Base is interface; function ToRepr(AB : Abstract_Base) return Repr is abstract; procedure FromRepr(AB : in out Abstract_Base; rp : Repr) is abstract; procedure Set_Smth (AB : in out Abstract_Base'Class; smth : ...
with User; use User; package body Subprograms is procedure Hello_Part1 is begin User.Hello_Part1 (); end Hello_Part1; end Subprograms;
with Ada.Containers.Synchronized_Queue_Interfaces, Ada.Containers.Unbounded_Synchronized_Queues, Ada.Containers.Vectors, Ada.Execution_Time, Ada.Integer_Text_IO, Ada.Long_Long_Integer_Text_IO, Ada.Real_Time, Ada.Strings.Fixed, Ada.Strings.Unbounded, Ada.Text_IO; with Utils;...
-- { dg-do run } -- { dg-options "-O2" } with Loop_Optimization4_Pkg; use Loop_Optimization4_Pkg; procedure Loop_Optimization4 is begin Add ("Nothing"); end;
-- ----------------------------------------------------------------- -- -- AdaSDL -- -- Thin binding to Simple Direct Media Layer -- -- Copyright (C) 2000-2012 A.M.F.Vargas -- -- Antonio M. M....
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- awa-images-modules -- Image management module -- Copyright (C) 2012, 2016, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with System; with TLSF.Config; use TLSF.Config; with TLSF.Block.Types; use TLSF.Block.Types; with TLSF.Block.Proof; package TLSF.Block.Operations_Old with SPARK_Mode is package Proof renames TLSF.Block.Proof; function Get_Block_At_Address(Base : System.Address; Addr : Ali...
------------------------------------------------------------------------------- -- package Disorderly.Basic_Rand.Deviates, Floating point random deviates. -- Copyright (C) 1995-2018 Jonathan S. Parker -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereb...
with System; use System; package body opencl_api_spec is function Load_From(h: dl_loader.Handle) return Boolean is begin clGetPlatformIDs := dl_loader.Get_Symbol(h, "clGetPlatformIDs"); clGetPlatformInfo := dl_loader.Get_Symbol(h, "clGetPlatformInfo"); clGetDeviceIDs := dl_loader.Get_Symbol(h, ...
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 euler31 is type stringptr is access all char_array; procedure PInt(i : in Integer) is begin String'Write (Text_Streams.Str...
-- 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...
pragma No_Run_Time; with Interfaces.C; with APEX; use APEX; with APEX.Processes; use APEX.Processes; with APEX.Partitions; use APEX.Partitions; with APEX.Timing; use APEX.Timing; with APEX.Sampling_Ports; use APEX.Sampling_Ports; package Main is procedure Send; procedure Main; pragma Export (C, Main, "main")...
package Altunits with Spark_Mode is -- Base Units subtype Length_Type is Float; subtype Time_Type is Float; subtype Linear_Velocity_Type is Float; -- Base units --Meter : constant Length_Type := Length_Type (1.0); --Second : constant Time_Type := Time_Type (1.0); end Altunits;
with Interfaces.C, System; package eGL is use Interfaces; --------- -- Types -- subtype void_Ptr is System.Address; subtype Display is System.Address; subtype NativeWindowType is Interfaces.C.unsigned_long; subtype NativePixmapType is Interfaces.C.unsigned_long; ...