content stringlengths 23 1.05M |
|---|
with COBS;
package body Test_Utils.Abstract_Encoder.COBS_Simple is
-------------
-- Receive --
-------------
overriding
procedure Receive (This : in out Instance; Data : Storage_Element)
is
begin
This.Input.Append (Data);
end Receive;
------------------
-- End_Of_Frame --
----... |
package Giza.Bitmap_Fonts.FreeMonoBold8pt7b is
Font : constant Giza.Font.Ref_Const;
private
FreeMonoBold8pt7bBitmaps : aliased constant Font_Bitmap := (
16#FF#, 16#FC#, 16#F0#, 16#49#, 16#24#, 16#92#, 16#48#, 16#36#, 16#36#,
16#36#, 16#FF#, 16#FF#, 16#3C#, 16#7F#, 16#7F#, 16#6C#, 16#6C#, 16#6C#,
16#30#, 1... |
-----------------------------------------------------------------------
-- util-beans-objects -- Generic Typed Data Representation
-- Copyright (C) 2009, 2010, 2011, 2013, 2016, 2017, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Versio... |
with Ada.Containers.Generic_Array_Access_Types;
with Ada.Containers.Generic_Array_Types;
with Ada.Unchecked_Deallocation;
procedure cntnr_Array is
begin
declare -- String
package Arrays is
new Ada.Containers.Generic_Array_Types (Positive, Character, String);
begin
declare -- Swap
Data : String := "AB";
be... |
package body Web.Producers is
procedure Append (Container : in out Node_Array_Access; Item : in Node) is
Old : Node_Array_Access := Container;
begin
if Old = null then
Container := new Node_Array'(1 => Item);
else
begin
Container := new Node_Array'(Old.all & Item);
exception
when others =>
... |
-----------------------------------------------------------------------
-- druss-commands-devices -- Print information about the devices
-- Copyright (C) 2017, 2018, 2019, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Licens... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Ada.Tags,
Ada.Characters.Handling,
Ada.Assertions,
Apsepp_Testing_System_Test_Fixture,
Apsepp.Generic_Fixture.Creator,
Apsepp.Tags,
Apsepp_Test_Node_Barrier,
Apsepp_Test_Nod... |
with Interfaces;
package Tkmrpc.Operations is
subtype Operation_Type is Interfaces.Unsigned_64;
end Tkmrpc.Operations;
|
with
ada.unchecked_Deallocation;
package body physics.Object
is
procedure free (Self : in out View)
is
procedure deallocate is new ada.unchecked_Deallocation (Item'Class, View);
begin
if Self /= null then
Self.destruct;
end if;
deallocate (Self);
end free;
prot... |
with AAA.Strings; use AAA.Strings;
package Filesystem is
function Read_Directory(Path: String; Recursive: Boolean) return AAA.Strings.Vector;
function Count_Files(Path : String) return Natural;
function Is_Valid_File(Name : String) return Boolean;
function Get_Executable_Path return String;
private
end F... |
package body Linear_Search
with SPARK_Mode
is
function Search (A : Ar; I : Integer) return T is
begin
for Index in T range Ar'First .. Ar'Last loop
if A (Index) = I then
return Index;
else
null;
end if;
end loop;
return 0;
end Search;
end Linear_Search;
|
package body System.Formatting.Literals.Float is
pragma Suppress (All_Checks);
function copysignl (X, Y : Long_Long_Float) return Long_Long_Float
with Import,
Convention => Intrinsic, External_Name => "__builtin_copysignl";
procedure Get_Aft (
Item : String;
Last : in out Natural;
... |
-- Abstract :
--
-- Translate a wisitoken grammar file to a tree-sitter grammar file.
--
-- References:
--
-- [1] tree-sitter grammar: https://tree-sitter.github.io/tree-sitter/creating-parsers#the-grammar-dsl
--
-- Copyright (C) 2020 Stephen Leake All Rights Reserved.
--
-- This library is free software; you ca... |
-- This spec has been automatically generated from STM32F072x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.COMP is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CSR_COMP1EN_Field is STM32_SVD... |
with
openGL.Tasks,
GL.Pointers,
GL.lean,
ada.Characters.latin_1,
ada.Strings.unbounded,
ada.Text_IO,
Interfaces.C.Strings;
package body openGL.Program
is
use gl.lean,
Interfaces,
ada.Text_IO;
compiling_in_debug_Mode : constant Boolean := True;
type Shader... |
-- This spec has been automatically generated from STM32L151.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.COMP is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CSR_INSEL_Field is HA... |
-- TITLE main body
-- AUTHOR: John Self (UCI)
-- DESCRIPTION driver routines for aflex. Calls drivers for all
-- high level routines from other packages.
-- $Header: /co/ua/self/arcadia/aflex/ada/src/RCS/mainS.a,v 1.5 90/01/12 15:20:14 self Exp Locker: self $
--*******************************************************... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package body openGL.Light
is
function is_On (Self : in Item) return Boolean
is
begin
return Self.On;
end is_On;
procedure is_On (Self : in out Item; Now : in Boolean := True)
is
begin
Self.On := Now;
end is_On;
function Site (Self : in Item) return openGL.Site
is
beg... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Cross_Reference_Updaters;
with Program.Elements.Discrete_Ranges;
with Program.Elements.Expressions;
with Program.Interpretations;
with Program.... |
with System.Formatting.Decimal;
package body System.Img_LLD is
procedure Image_Long_Long_Decimal (
V : Long_Long_Integer;
S : in out String;
P : out Natural;
Scale : Integer)
is
Fore_Last : Natural;
begin
Formatting.Decimal.Image (
V,
S,
Fore_Last... |
package ADMBase.Coords is
function x_coord (i : Integer) return Real;
function y_coord (j : Integer) return Real;
function z_coord (k : Integer) return Real;
end ADMBase.Coords;
|
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
-- @file get_rdate.adb
-- @date 7 July 2019
-- @author Chester Gillon
-- @brief Example program using GNAT.sockets to get the date from a RFC 868 TCP protocol server
-- @details The output as seconds since the Linux epoch can be verified by running:
-- $ date -d @`./get_rdate sandy-ubuntu`
-- Sun 7 J... |
----------------------------------------------------------------------
--
-- New_maze : create a new maze
--
-- written by
--
-- Edmond Schonberg
--
-- Ada Project
-- Courant Institute
-- New York University
--... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with GNAT.OS_Lib; use GNAT.OS_Lib;
procedure Lolicon is
Age : Integer;
procedure Intice is
begin
-- Nothing because weebs are already attracted to underage anime girls.
null;
end Intice;
proced... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Attribute_References is
function Create
(Prefix : not null Program.Elements.Expressio... |
-- Ada-GUI version of MP: a Music Player
-- Copyright (C) 2021 by PragmAda Software Engineering. All rights reserved.
-- Released under the terms of the BSD 3-Clause license; see https://opensource.org/licenses
with Ada.Containers.Vectors;
with Ada.Directories;
with Ada.Exceptions;
with Ada.Numerics.Discrete_Random;
... |
-- This spec has been automatically generated from cm7.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
-- Processor Features
package Cortex_M_SVD.PF is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Level o... |
with STM32GD.GPIO.Pin;
with STM32GD.GPIO.IRQ;
with STM32GD.SPI.Peripheral;
with STM32GD.I2C.Peripheral;
with STM32GD.USART.Peripheral;
package HAL is
generic package Pin renames STM32GD.GPIO.Pin;
generic package Pin_IRQ renames STM32GD.GPIO.IRQ;
generic package SPI renames STM32GD.SPI.Peripheral;
... |
package body opengl.Display.privvy
is
function to_eGL (Self : in Display.item'Class) return eGL.EGLDisplay
is
begin
return Self.Thin;
end to_eGL;
end opengl.Display.privvy;
|
-----------------------------------------------------------------------
-- keystore-buffers -- Buffer management for the keystore
-- Copyright (C) 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use ... |
-- Lambda Calculus interpreter
-- ---------------------------
-- Parses and reduces Lamdba Calculus statements.
--
-- Source:
-- lambda - definitions and helper functions
-- lambda_REPL - [This file] REPL and command line parsers
-- lambda_parser - parse tree generator
-- lambda_reducer - optimises and redu... |
with Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
with Blade;
with Blade_Types;
with GA_Maths;
with GA_Utilities;
with Metric;
with Multivectors; use Multivectors;
with Multivector_Type;
procedure General_Inverse_Test is
use Blade.Names_Package;
BV_Names : Blade.Basis_Vector_Names;
C3_Met... |
------------------------------------------------------------------------------
-- Copyright (c) 2013-2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
--
-- This library is free software; you can redistribute it and/or modify
-- it under the terms of the GNU Library General Public License as
-- published by the Free Software Foundation; either version 3 of the
-- License; or (at your option) any later version.
-- This package provides queue abstractions tha... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- ... |
with Day.Test;
package body AOC_Suite is
function Suite return Access_Test_Suite is
Ret : constant Access_Test_Suite := new Test_Suite;
begin
Ret.Add_Test (new Day.Test.Test);
return Ret;
end Suite;
end AOC_Suite;
|
-- { dg-do run }
-- { dg-options "-flto" { target lto } }
with Lto10_Pkg; use Lto10_Pkg;
procedure Lto10 is
A : Integer := Minus_One;
Pos : Position;
begin
Pos := Pix.Pos;
if A /= Minus_One then
raise Program_Error;
end if;
end;
|
PROCEDURE object_renaming_declaration IS
soureVal : Integer;
renamedVal : Integer renames soureVal;
BEGIN
NULL;
END;
|
with Compiler, Ada.Wide_Wide_Text_IO.Text_Streams;
use Compiler, Ada.Wide_Wide_Text_IO.Text_Streams;
package Compiler.Print is
use Compiler.Node_List;
procedure Debug (S : Stream_Access; AST : List);
procedure Recreate (S : Stream_Access; AST : List);
private
end Compiler.Print; |
type Link;
type Link_Access is access Link;
type Link is record
Next : Link_Access := null;
Data : Integer;
end record;
|
--
-- Copyright (C) 2015-2018 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.
--
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Dynamic_Elab_Pkg; use Dynamic_Elab_Pkg;
package Dynamic_Elab2 is
type Plot is record
B : Boolean;
Data : R;
end record;
pragma Pack (Plot);
function Get_Plot return Plot;
end Dynamic_Elab2;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- secret-attributes -- Attribute list representation
-- Copyright (C) 2017 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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- 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 ... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
-- Copyright 2017-2021 Bartek thindil Jasicki
--
-- This file is part of Steam Sky.
--
-- Steam Sky is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (a... |
package Srv_Quit is
procedure Detect_Quits (Irc_Dir : in String); -- TODO rename Handle_Quits?
end Srv_Quit;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
type Name_T is array (1 .. 6) of Character;
type Index_T is range 0 .. 1_000;
type Queue_T is array (Index_T range 1 .. 1_000) of Name_T;
-- type Fifo_Queue_T is ?
-- Queue : Fifo_Queue_T;
Choice : Integer;
begin
loop
Put ("1 = add to ... |
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32H743x.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.HSEM is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype HSEM_R_PROCID_Field is HAL.UInt8;
... |
with
openGL.Shader,
openGL.Variable.uniform,
openGL.Attribute,
openGL.Light;
private
with
GL;
package openGL.Program
--
-- Models an openGL program.
--
is
type Item is tagged limited private;
type View is access all Item'Class;
---------
--- Forge
--
procedure define (... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with datos;
use datos;
with intercambiar;
procedure Ordenar_Por_Burbuja (L : in out Lista_Enteros) is
-- pre:
-- post: L contiene los valores iniciales en orden ascendente
I : Integer;
J: Integer;
Cuenta : Integer;
begin
I := L.Numeros'First;
if L.Cont > 1 then
loop
Cuenta := 0;
J ... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
-- -*- Mode: Ada -*-
-- Filename : ether.ads
-- Description : Root of the Ether SCGI library.
-- Author : Luke A. Guest
-- Created On : Mon Mar 28 11:43:06 2011
with Ada.Strings.Unbounded;
package Ether is
Initialisation_Error : exception;
-- Initialise... |
with Ada.Containers.Formal_Hashed_Maps;
with Ada.Strings.Hash;
with Ada.Directories;
with DOM.Core.Documents;
with DOM.Core.Elements;
with Input_Sources.Strings;
with DOM.Readers;
with Sax.Encodings;
with UxAS.Common.String_Constant;
package body UxAS.Comms.LMCP_Net_Client.Service is
function Hashed_Service_Type... |
-- C74004A.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; use Ada.Text_Io;
procedure Ver_Dar_La_Vuelta is
-- salida: 6 strings(SE)
-- post: corresponden a cada uno de los casos de pruebas dise�ados.
-- pre: { True }
function Dar_La_Vuelta (
S : String)
return String is
-- EJERCICIO 2- ESPECIFICA E IMPLEMENTA recursivam... |
--//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org)
-- This software is provided 'as-is', without any express or implied warranty.
-- In no event will the authors be held liable for any damages arising... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- mat-events-tools - Profiler Events Description
-- Copyright (C) 2014, 2015 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use th... |
--
-- Copyright 2022 (C) Nicolas Pinault (aka DrPi)
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Streams.Stream_IO;
package elf2uf2 is
package SIO renames Ada.Streams.Stream_IO;
use SIO;
type Verbosity_Level is range 0 .. 2;
proc... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- awa-comments-beans -- Beans for the comments module
-- Copyright (C) 2014 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... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is X : Integer; begin X := 1 + 'a'; end;
|
-- Copyright © by Jeff Foley 2022. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
-- SPDX-License-Identifier: Apache-2.0
local json = require("json")
name = "BGPTools"
type = "misc"
local bgptoolsWhoisAddress = ""
-- bgptoolsWhoisURL is the URL ... |
with Ada.Exception_Identification.From_Here;
with System.Zero_Terminated_Strings;
with C.dlfcn;
package body System.Program.Dynamic_Linking is
use Ada.Exception_Identification.From_Here;
use type C.signed_int;
use type C.size_t;
procedure Open (Handle : out C.void_ptr; Name : String);
procedure Open (Ha... |
-- This package provides support for creating and printing graphs in the
-- DOT language, described at www.graphviz.org. From the website:
--
-- The following is an abstract grammar defining the DOT language. Literal
-- characters and keywords are given in single quotes. Parentheses ( and )
-- indicate grouping when ... |
-----------------------------------------------------------------------
-- mat-types -- Global types
-- Copyright (C) 2014, 2015, 2021 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 ... |
--
-- (c) Copyright 1993,1994,1995,1996 Silicon Graphics, Inc.
-- ALL RIGHTS RESERVED
-- Permission to use, copy, modify, and distribute this software for
-- any purpose and without fee is hereby granted, provided that the above
-- copyright notice appear in all copies and that both the copyright notice
-- and th... |
with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO;
procedure Multiply is
Number_Of_Cases, A, B : Integer;
begin
Put("Integer range: ");
Put(Integer'First);
Put(" .. ");
Put(Integer'Last);
New_Line;
Put_Line("How many cases? ");
Flush;
Get(Number_Of_Cases);
fo... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
package body agar.gui.widget.radio is
use type c.int;
package cbinds is
function allocate
(parent : widget_access_t;
flags : flags_t;
items : agar.core.types.void_ptr_t) return radio_access_t;
pragma import (c, allocate, "AG_RadioNew");
function add_item
(radio : radio_acc... |
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@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 Hoc... |
with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Command_Line, Pascal; use Pascal;
procedure Triangle is
Number_Of_Rows: Positive := Integer'Value(Ada.Command_Line.Argument(1));
Row: Pascal.Row := First_Row(Number_Of_Rows);
begin
loop
-- print one row
for J in 1 .. Length(Row) loop
Ada.Integer_Text_... |
with Ada.Calendar;
with Ada.Text_IO;
with System.Address_To_Access_Conversions;
with Lumen.Window;
with Lumen.Image;
with Lumen.Events.Animate;
with GL;
with Noise;
procedure Test_Noise is
package Float_IO is new Ada.Text_IO.Float_IO (Float);
Program_End : exception;
Win : Lumen.Window.Handle;
Image : Lu... |
with Controller_Quit; use Controller_Quit;
with Controller_Internet; use Controller_Internet;
with Controller_Bugz; use Controller_Bugz;
with Controller_Choices; use Controller_Choices;
with Controller_Help; use Controller_Help;
with Controller_MainWindow; use Controller_M... |
package collada.Library.controllers
--
-- Models a collada 'controllers' library, which is a collection of controllers.
--
is
type Inputs_view is access all Library.Inputs;
type int_Array_view is access all int_Array;
----------
--- Joints
--
type Joints is
record
Inputs : Inputs... |
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Hash;
package Rejuvenation.Match_Patterns is
type Match_Pattern is tagged private;
-- The class Match_Pattern represents a single occurrence of an AST pattern
-- in an AST instance. An AST pattern or AST instanc... |
-- 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... |
-- C64201C.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) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Abstract_Early_Test_Case; use Apsepp.Abstract_Early_Test_Case;
package Apsepp_Test_Reporter_Class_Struct_Builder_Early_Test_Case is
-- TODOC: This test case uses the same fixture as
-- Apsepp_T... |
procedure Unit_1 is
begin
null;
end;
|
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
with Sf.System.Clock; use Sf.System.Clock;
with Sf.System.Sleep; use Sf.System.Sleep;
with Sf.System.Types; use Sf.System.Types;
procedure Main is
My_Clock : sfClock_Ptr;
begin
My_Clock := sfClock_Create;
sfSleep ... |
--
-- for the Mandelbrot part, see
-- https://github.com/shintakezou/adaplayground/blob/master/src/mandel_utf.adb
--
-- Usage example:
-- ./mandelpng -2 -2 2 2
--
-- To build, gprbuild. It works on my machine! You need libpng lib and
-- headers.
--
-- Messy withs and uses; no idea if there's a better more idiomatic... |
-- Copyright (c) 2021 Bartek thindil Jasicki <thindil@laeran.pl>
--
-- 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/LICENSE-2.0
--
-- Unless required... |
-- Example_Adafunctions
-- A example of using the Ada 2012 interface to Lua for functions / closures etc
-- Copyright (c) 2015, James Humphry - see LICENSE for terms
with Ada.Text_IO; use Ada.Text_IO;
package body Example_AdaFunctions is
function FooBar (L : Lua_State'Class) return Natural is
x : constant ... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
private package Ada_Pretty.Definitions is
type Access_Definition is new Node with private;
function New_Access
(Modifier ... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
-- { dg-do run }
with elim1;
procedure elim2 is
begin
null;
end;
|
-- Copyright 2015,2017 Steven Stewart-Gallus
--
-- 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/LICENSE-2.0
--
-- Unless required by applicable law o... |
with Ada.Text_IO; use Ada.Text_IO;
with Railway; use Railway;
procedure Main is
OK : Boolean;
-- change TRYB to check for different possibilities of crash situation:
-- TRYB = 0 => From Left to Right - no crash.
-- TRYB = 1 => From Right to Left - no crash.
-- TRYB = 2 => Simulated crash in the middle, ... |
-- This spec has been automatically generated from STM32WL5x_CM0P.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.IPCC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- IPCC Processor 1 con... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.