content stringlengths 23 1.05M |
|---|
-----------------------------------------------------------------------
-- akt-configs -- Configuration
-- 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 this file except in compli... |
with agar.gui.types;
package agar.gui.widget.titlebar is
subtype titlebar_t is agar.gui.types.widget_titlebar_t;
subtype titlebar_access_t is agar.gui.types.widget_titlebar_access_t;
subtype flags_t is agar.gui.types.widget_titlebar_flags_t;
TITLEBAR_NO_CLOSE : constant flags_t := 16#01#;
TITLEBAR_NO_MI... |
package Sorok is
subtype Elem is Integer;
type Sor( Max: Positive ) is limited private;
procedure Hiext( S: in out Sor; E: in Elem );
procedure Lopop( S: in out Sor; E: out Elem );
function Lov( S: Sor ) return Elem;
function Is_Empty( S: Sor ) return Boolean;
fu... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2020 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/L... |
-----------------------------------------------------------------------
-- asf-converters-dates -- Date Converters
-- Copyright (C) 2011, 2014, 2016 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use thi... |
with Sax.Attributes;
with Sax.Readers;
with Unicode.CES;
package My_Reader is
type Reader is new Sax.Readers.Reader with null record;
procedure Start_Element
(Handler : in out Reader;
Namespace_URI : Unicode.CES.Byte_Sequence := "";
Local_Name : Unicode.CES.Byte_Sequence := "";
Qna... |
with Ada.Text_IO;
procedure Radix_Sort is
type Integer_Array is array (Positive range <>) of Integer;
procedure Least_Significant_Radix_Sort (Data : in out Integer_Array; Base : Positive := 10) is
type Bucket is record
Count : Natural := 0;
Content : Integer_Array (Data'Range);
en... |
package Import1 is
type Arr is array (Positive range <>) of Integer;
procedure Create (Bounds : Arr);
end Import1;
|
-- LED-Library by Emanuel Regnath (emanuel.regnath@tum.de) Date:2_015-05-20
--
-- Description:
-- Portable LED Library that features switching, blinking and morse (non-blocking)
--
-- Setup:
-- To port the lib to your system, simply overwrite the 2 functions LED_HAL_init
-- and LED_HAL_set in the .c file and a... |
-- very excotic with and use clauses for demonstration purposes
with Ada.Assertions; use Ada.Assertions;
with Ada.Strings.Equal_Case_Insensitive;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
with GNAT
. -- with comment
Source_Info; use GNAT
. -- an... |
package openGL.Screen
--
-- Models an openGL screen.
--
is
type Item is tagged limited private;
-- function Thin (Self : in Item) return xcb.xcb_screen_t.Pointer;
-- procedure Thin_is (Self : in out Item; Now : in xcb.xcb_screen_t.Pointer);
private
type Item is tagged limited
r... |
pragma Ada_2012;
pragma Style_Checks (Off);
pragma Warnings ("U");
with Interfaces.C; use Interfaces.C;
with sys_ustdint_h;
package vl53l1_types_h is
subtype FixPoint1616_t is sys_ustdint_h.uint32_t; -- ../platform/vl53l1_types.h:109
end vl53l1_types_h;
|
-- Copyright 2018-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... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-----------------------------------------------------------------------
-- AWA.Storages.Models -- AWA.Storages.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-body.xhtml
-- Ada Generator: https://ada-... |
package body Aliasing3_Pkg is
procedure Test (A : Arr) is
begin
if A(1) /= 5 then
raise Program_Error;
end if;
end;
end Aliasing3_Pkg;
|
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Real_Time;
use Ada.Real_Time;
with System_Function_Package;
use System_Function_Package;
procedure Cyclic_Scheduler is
X : Integer := 0; -- Input
Y : Integer := 0; -- Input
task Source_X;
task Source_Y;
task Scheduler;
task body Source_X is -- Generates... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/L... |
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions;
procedure Write_Float_Array is
type Float_Array is array (1..4) of Float;
procedure Write_Columns
( ... |
package body Ada.Directories.Volumes is
-- implementation
function Is_Assigned (FS : File_System) return Boolean is
N_FS : System.Native_Directories.Volumes.File_System
renames Controlled.Reference (FS).all;
begin
return System.Native_Directories.Volumes.Is_Assigned (N_FS);
end Is_As... |
with Ada.Text_IO;
with AdaBase;
with AdaBase.Logger.Facility;
with Connect;
procedure Traits_MySQL is
package TIO renames Ada.Text_IO;
package ALF renames AdaBase.Logger.Facility;
package CON renames Connect;
-- Database_Driver renames MySQL driver using subtype
procedure display_versions (driver : ... |
-------------------------------------------------------------------------------
-- --
-- Coffee Clock --
-- --
... |
with Ada.Real_Time; use Ada.Real_Time;
with Ada.Text_IO; use Ada.Text_IO;
with System; use System;
with Epoch_Support; use Epoch_Support;
with XAda.Dispatching.TTS;
with TT_Utilities;
with TT_Patterns;
package body TTS_Example_C is
Number_Of_Work_Ids : constant := 4;
Number_Of_Sync_Ids : constant := 2;
p... |
package body Lto3_Pkg1 is
function Is_Fixed return Boolean is
begin
return True;
end Is_Fixed;
function Do_Item (I : Natural) return Variable_Data_Fixed_T is
It : Variable_Data_Fixed_T;
begin
return It;
end Do_Item;
My_Db : Db.T;
procedure Run is
Kitem : Variable_Data_Fixed_T;
I ... |
with Ada.Numerics.SFMT.Generating;
with System.Formatting;
with System.Long_Long_Integer_Types;
with System.Random_Initiators;
with System.Storage_Elements;
package body Ada.Numerics.SFMT is
pragma Check_Policy (Validate => Ignore);
use type Unsigned_32;
use type Unsigned_64;
use type System.Bit_Order;
u... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Expressions;
with Program.Lexical_Elements;
package Program.Elements.Raise_Expressions is
pragma Pure (Program.Elements.Raise_Exp... |
with GNAT.Regpat; use GNAT.Regpat;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Gate3_Glib; use Gate3_Glib;
pragma Elaborate_All (GNAT.Regpat);
package body Signal_Storage is
package US renames Ada.Strings.Unbounded;
Object_Nb... |
-- Standard Ada library specification
-- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
... |
with lca;
generic
Capacite : integer ;
package google_creuse is
type Vecteur_float is array(1..Capacite) of float ;
type Vecteur_integer is array(1..Capacite) of integer ;
--- Instanciation d'un module Lca avec une clé entiere et une donnée reele .
package Lca_integer_float is
new LCA( T_Cle => in... |
with Ada.Text_Io;
package body Slots is
procedure Xaa is
begin
Ada.Text_Io.Put_Line("Xaa() called");
end;
procedure Xab is
begin
Ada.Text_Io.Put_Line("Xab() called");
end;
procedure Xac is
begin
Ada.Text_Io.Put_Line("Xac() called");
end;
end Slots;
|
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Lexical_Elements is
---------
-- "<" --
---------
function "<" (Left, Right : Location) return Boolean is
begin
... |
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Stories.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Stories.Test_Data
.Test with
nul... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Adventofcode.Day_7.Main is
begin
Put_Line ("Day-7");
end Adventofcode.Day_7.Main;
|
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.NVIC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Interrupt Set Enable Register
-- In... |
--
-- User types, the hierarchy to be passed upon lists.
-- Has to be in a package for OOP/inheritance/dispatching to work..
--
-- Copyright (C) 2019 George Shapovalov <gshapovalov@gmail.com>
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied w... |
-----------------------------------------------------------------------
-- gen-artifacts-yaml-tests -- Tests for YAML model files
-- Copyright (C) 2018, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may no... |
-- Ce module définit un type Vecteur_Creux et les opérations associés. Un
-- vecteur creux est un vecteur qui contient essentiellement des 0. Aussi pour
-- économiser l'espace de stockage et les temps de calculs, on ne conserve que
-- les valeurs non nulles.
package Vecteurs_Creux is
type T_Vecteur_Creux is private;... |
with Ada.Exceptions.Finally;
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with System;
package body Ada.Containers.Limited_Hashed_Maps is
use type Hash_Tables.Table_Access;
-- diff
function Upcast is
new Unchecked_Conversion (Cursor, Hash_Tables.Node_Access);
function Downcast is
... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with AAA.Strings;
with TOML;
private with Ada.Containers.Hashed_Maps;
private with Ada.Strings.Unbounded.Hash;
package CLIC.Config with Preelaborate is
function Is_Valid_Config_Key (Key : String) return Boolean
is ((for all C of Key => C in '0' .. '9' | 'a' .. 'z' | 'A' .. 'Z' |
... |
with
gel.Events,
ada.unchecked_Deallocation;
package body gel.Window
is
-----------
--- Utility
--
procedure free is new ada.unchecked_Deallocation (String, String_view);
pragma Unreferenced (free);
----------
--- Forge
--
procedure define (Self : in out Item; Width : in Po... |
--------------------------------------------------------------------------------
-- Copyright (c) 2019 Marek Kuziel
--
-- 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 Input is
pragma Elaborate_Body;
-- function spec for getting integer value from user
end Input;
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2013 - 2014 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.or... |
with Gtk.Button; use Gtk.Button;
with Gtk.Main;
package button_click is
Btn : Gtk_Button;
procedure button_clicked (Self : access Gtk_Button_Record'Class);
end button_click;
|
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
with
GLX;
package openGL.Surface.privvy
is
function to_GLX (Self : in Surface.item'Class) return glx.Drawable;
end openGL.Surface.privvy;
|
------------------------------------------------------------------------------
-- File : Brick.ads
-- Description : 3D model of a "brick" of a space station
-- Copyright (c) Gautier de Montmollin 2005
----------------------------------------------------------------------------... |
package Discr21_Pkg is
type Position is record
x,y,z : Float;
end record;
type Dim is (Two, Three);
type VPosition (D: Dim := Three) is record
x, y : Float;
case D is
when Two => null;
when Three => z : Float;
end case;
end record;
function To_Position (x, y, z : Float) retur... |
with Ada.Strings.Fixed;
with Ada.Strings.UTF_Encoding.Wide_Wide_Strings;
with Ada.Tags;
with Ada.Unchecked_Deallocation;
-- with GNAT.IO; use GNAT.IO;
package body Yeison_Classwide is
use Ada.Finalization;
use Ada.Strings.Unbounded;
---------------
-- Operators --
---------------
package body Op... |
package body Utils is
function I (F : Float) return Integer
is (Integer (F));
end Utils;
|
-- SPDX-FileCopyrightText: 2019-2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
package body Program.Element_Iterators is
package Internal is
function Get
(Parent : Program.Elements... |
------------------------------------------------------------------------------
-- --
-- Copyright (c) 2014-2017 Vitalij Bondarenko <vibondare@gmail.com> --
-- --
----... |
with
openGL.Model.sphere.textured,
openGL.Model.open_gl,
openGL.Palette,
physics.Forge,
mmi.physics_Model,
mmi.Forge,
float_Math.Geometry.d3.Modeller.Forge,
ada.unchecked_Deallocation,
ada.Text_IO,
ada.Streams.Stream_IO;
package body gasp.World
is
use ada.text_... |
with GF_Stress;
with Diff_Car_Stress;
with Car_Stress;
with Pack_Stress;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Exceptions; use Ada.Exceptions;
with GNAT.Traceback.Symbolic; use GNAT.Traceback.Symbolic;
procedure Stressall
is
begin
Put_Line ("GF Stress");
GF_Stress;
Put_Line ("Diff Car Stress");
Diff... |
-- This is a comment.
with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure FizzBuzz is
begin
for i in 1 .. 100 loop
if (i mod 3 = 0 and i mod 5 = 0) then
Ada.Text_IO.Put_Line("FizzBuzz");
elsif (i mod 3 = 0) then
Ada.Text_IO.Put_Line("Fizz");
elsif (i mod 5 = 0) th... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Events is
-- Place the event implementation here
X : Event;
task A;
task body A is
begin
Put_Line ("A is waiting for X");
X.Wait;
Put_Line ("A received X");
end A;
begin
delay 1.0;
Put_Line ("Signal X");
X.Signal;
end Test... |
with Ada.Assertions; use Ada.Assertions;
with Ada.Text_IO; use Ada.Text_IO;
with Langkit_Support.Text; use Langkit_Support.Text;
with Libadalang.Common; use Libadalang.Common;
with Rejuvenation; use Rejuvenation;
with Rejuvenation.Finder; use Rejuvenation.Finder;
with Rejuvenation.Utils; us... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with SPARKNaCl.Car;
package body SPARKNaCl
with SPARK_Mode => On
is
pragma Warnings (GNATProve, Off, "pragma * ignored (not yet supported)");
--===============================
-- Exported subprogram bodies
--===============================
function "+" (Left, Right : in Normal_GF) return Normal_GF
... |
-- { dg-do run { target *-*-solaris2.* } }
-- { dg-options "-ftrapping-math" }
procedure FP_Exception is
type my_fixed is digits 15;
for my_fixed'size use 64;
fixed1 : my_fixed := 1.0;
fixed2 : my_fixed := -0.0;
mask_all : constant integer := 16#1F#;
procedure fpsetmask(mask : in integer);
pragma IMP... |
package CSS.Parser.Parser_Tokens is
subtype YYSType is CSS.Parser.YYstype;
YYLVal, YYVal : YYSType;
type Token is
(END_OF_INPUT, ERROR, T_NAME, T_CLASS,
T_IDENT, T_ATKEYWORD, T_ATIMPORT,
T_ATMEDIA, T_NUMBER, T_REAL,
T_UNIT, T_STRING, T_URL,
T_URI, T_LENGTH, T_EMS,... |
with Ada.Text_IO;
procedure Pancake_Sort is
generic
type Element_Type is private;
type Index_Type is range <>;
type Array_Type is array (Index_Type range <>) of Element_Type;
with function ">" (Left, Right : Element_Type) return Boolean is <>;
procedure Pancake_Sort (Data: in out Array_Typ... |
with
aIDE.GUI,
aIDE.Editor.of_enumeration_literal,
AdaM.a_Type.enumeration_literal,
glib.Error,
gtk.Builder,
gtk.Handlers;
with Ada.Text_IO; use Ada.Text_IO;
package body aIDE.Editor.of_derived_type
is
use Gtk.Builder,
Glib,
glib.Error;
function on_subtype_name_E... |
-------------------------------------------------------------------------------
-- package body Fourier8, a fast fourier transform
-- 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 granted, provided that... |
with Ada.Calendar;
with Ada.Strings.Unbounded;
with Ada.Strings.Unbounded.Text_IO;
with Ada.Text_IO;
with Ada.Command_Line;
package body Trendy_Test.Reports is
procedure Print_Basic_Report (Results : Test_Report_Vectors.Vector) is
use Ada.Text_IO;
use Ada.Strings.Unbounded.Text_IO;
use typ... |
With
Ada.Text_IO;
Procedure INI.Print(Object : Instance) is
Procedure DEBUG_Print( Object : Value_Object ) is
Begin
Ada.Text_IO.Put_Line(if Object.Kind = vt_String
then Object.String_Value
else ABS Object );
End DEBUG_Print;
Procedure D... |
with
AdaM.Any,
ada.Streams;
limited
with
AdaM.Declaration.of_package;
package AdaM.context_Line
is
type Item is new Any.Item with private;
-- View
--
type View is access all Item'Class;
procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type'Class;
... |
pragma Ada_95;
pragma Warnings (Off);
with System;
package ada_main is
procedure adainit;
pragma Export (C, adainit, "adainit");
procedure adafinal;
pragma Export (C, adafinal, "adafinal");
type Version_32 is mod 2 ** 32;
u00001 : constant Version_32 := 16#3faa9122#;
pragma Export (C, u00001, "u... |
-----------------------------------------------------------------------
-- security-auth-oauth-facebook -- Facebook OAuth based authentication
-- Copyright (C) 2013, 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with AdaBase.Interfaces.Connection;
with AdaBase.Bindings.MySQL;
with Ada.Exceptions;
package AdaBase.Connection.Base.MySQL is
package AIC renames AdaBase.Interfaces.Connection;
package ABM renames AdaBa... |
-- Copyright 2012-2014 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.
--
-- ... |
-- 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... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with System;
with STM32_SVD; use STM32_SVD;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.ADC; use STM32_SVD.ADC;
with STM32_SVD.PWR; use STM32_SVD.PWR;
with STM32_SVD.GPIO; use STM32_SVD.GPIO;
with STM32GD.Board; use STM32GD.Board;
with STM32GD.GPIO;
package body Peripherals is
... |
with
lace.Strings.search;
package body lace.Strings.superbounded
is
use ada.Strings.Maps;
------------
-- Concat --
------------
function Concat
(Left : Super_String;
Right : Super_String) return Super_String
is
begin
return Result : Super_String (Left.Max_Length) do
... |
package body generic_dispatch_p is
function Constructor (I : not null access Integer) return DT is
R : DT;
begin
return R;
end Constructor;
end;
|
-- 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... |
-- -----------------------------------------------------------------------------
-- smk, the smart make (http://lionel.draghi.free.fr/smk/)
-- © 2018, 2019 Lionel Draghi <lionel.draghi@free.fr>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- Licen... |
-- 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 lluvia is
TYPE T_Mes IS (Enero, Febrero, Marzo, Abril, Mayo, Junio, Julio, Agosto, Septiembre,
Octubre, Noviembre, Diciembre);
subtype T_Cantidad is Integer range 0 .. integer'Last;
type T_Lluvias is array (T_Mes) of T_Cantidad;
type T_Pais is (EEUU, Mejico,Canada);
type T_Lluvias_por_Pais ... |
--
-- Jan & Uwe R. Zimmer, Australia, July 2011
--
with Vectors_xD; pragma Elaborate_All (Vectors_xD);
package Vectors_3D_LF is
type Coordinates is (x, y, z);
package Vectors_3Di is new Vectors_xD (Long_Float, Coordinates);
subtype Vector_3D_LF is Vectors_3Di.Vector_xD;
Zero_Vector_3D_LF : constant Ve... |
--
-- Raytracer implementation in Ada
-- by John Perry (github: johnperry-math)
-- 2021
--
-- specification for Bitmap, a Bitmap of Color_With_Transparency_Type,
-- along with a procedure to save the Bitmap to a BMP file
--
-- local packages
with Colors; use Colors;
with RayTracing_Constants; use RayTracing_Constant... |
with ACO.Generic_Entry_Types;
package ACO.OD_Types.Entries is
pragma Preelaborate;
use Interfaces;
-- type U8 is new Natural range 0 .. 2**8-1 with Size => 8;
subtype U8 is Interfaces.Unsigned_8;
package U8_Pack is new ACO.Generic_Entry_Types (U8);
type Entry_U8 is new U8_Pack.Entry_Type with nu... |
-- int_in.ada
--
--
-- Title: Integer Input
-- Created: Wed Apr 14 12:53:06 1993
-- Author: Eric Gustafson
-- <egustafs@play-doh>
--
with TEXT_IO;
procedure INT_IN is
package INT_IO is new TEXT_IO.INTEGER_IO( INTEGER );
use TEXT_IO;
use INT_IO;
I : INTEGER;
VALID_INPUT : BOOLEAN;
begin -- INT_IN... |
with
lace.Event,
lace.Response;
limited
with
lace.Event.Logger;
package lace.Observer
--
-- Provides an interface for an event Observer.
--
is
pragma remote_Types;
type Item is limited interface;
type View is access all Item'Class;
type Views is array (Positive range <>) of View;
ty... |
with Memory; use Memory;
with Util; use Util;
package CACTI is
CACTI_Error : exception;
function Get_Area(mem : Memory_Type'Class) return Cost_Type;
function Get_Time(mem : Memory_Type'Class) return Time_Type;
end CACTI;
|
-- { dg-do compile }
pragma Restrictions (No_Elaboration_Code);
package Aggr5 is
type R is record
C : Character;
F : Float;
end record;
for R use record
C at 0 range 0 .. 7;
F at 1 range 0 .. 31;
end record;
My_R : R := (C => 'A', F => 1.0);
end Aggr5;
|
-- Module : stack_pkg_.ada
-- Component of : common_library
-- Version : 1.2
-- Date : 11/21/86 16:33:02
-- SCCS File : disk21~/rschm/hasee/sccs/common_library/sccs/sxstack_pkg_.ada
-- $Source: /nosc/work/abstractions/stack/RCS/stack.spc,v $
-- $Revision: 1.5 $ -- $Date: 85/02/01 09:57:17 $ -- ... |
with AUnit.Reporter.Text;
with AUnit.Run;
with Unit_Tests;
with Ada.Text_IO;
procedure Test_Main is
procedure Runner is new AUnit.Run.Test_Runner (Unit_Tests.Suite);
Reporter : AUnit.Reporter.Text.Text_Reporter;
begin
Ada.Text_IO.Put_Line ("Running...");
Runner (Reporter);
end Test_Main;
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2021 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... |
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- The primary authors of ayacc were David Taback and Deepak Tolani.
-- Enhancements were made by Ronald J. Schmalz.
--
-- Send requests for ayacc information to ayacc-info@ics.uci.edu
-- Send bug reports for ayacc to ... |
-- part of ParserTools, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
package body Text.Builder is
H_Size : constant System.Storage_Elements.Storage_Offset :=
System.Storage_Elements.Storage_Offset (Header_Size);
procedure Init (Object : in out Reference... |
--
-- Jan & Uwe R. Zimmer, Australia, July 2011
--
with GL; use GL;
with GLOBE_3D;
with GLUT_2D;
with Graphics_FrameRates; use Graphics_FrameRates;
with Graphics_Structures; use Graphics_Structures;
with Rotations; use Rotations; pragma Elaborate_All (Rotations);
with Vecto... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Defining_Identifiers;
with Program.Lexical_Elements;
with Program.Elements.Loop_Parameter_Specifications;
with P... |
with Libadalang.Common; use Libadalang.Common;
package body Finder is
function Find
(Node : Ada_Node'Class;
P : Pattern)
return Match_Pattern_List.Vector is
(if P.As_Ada_Node.Kind in Ada_Ada_List
then Find_Sub_List (Node, P)
else Find_Full (Node, P));
end Finder;
|
-- PR ada/46192
-- Testcase by Rolf Ebert <rolf.ebert.gcc@gmx.de>
-- { dg-do compile }
-- { dg-options "-O2 -fdump-tree-optimized" }
with System; use System;
package body Renaming5 is
type Bits_In_Byte is array (0 .. 7) of Boolean;
pragma Pack (Bits_In_Byte);
A : Bits_In_Byte;
for A'Address use System'... |
-- SPDX-License-Identifier: MIT
--
-- Copyright (c) 2016 - 2018 Gautier de Montmollin
-- SWITZERLAND
--
-- The copyright holder is only the maintainer of the Ada version;
-- authors of the C code and those of the algorithm are cited below.
--
-- Permission is hereby granted, free of charge, to any person obtainin... |
pragma Ada_2012;
with Fakedsp.Protected_Buffers;
with Fakedsp.Background_Tasks;
with Utilities.Task_Reaper;
package body Fakedsp.Card is
use Protected_Buffers;
In_Buffer : Protected_Buffers.Sample_Buffer_Access := null;
Out_Buffer : Protected_Buffers.Sample_Buffer_Access := null;
function ADC_DMA_Si... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.