content stringlengths 23 1.05M |
|---|
with Interfaces; use Interfaces;
with STM32GD.Board; use STM32GD.Board;
package Host_Message is
type Packet_Type is array (Unsigned_8 range <>) of Unsigned_8;
procedure Send_Hello;
procedure Send_Packet (Packet: Packet_Type; Length: Unsigned_8);
procedure Send_Heartbeat;
procedure Send_Error_Message (... |
with avtas.lmcp.types; use avtas.lmcp.types;
package avtas.lmcp.object is
type Object is tagged null record;
type Object_Acc is access Object;
type Object_Class_Acc is access Object'Class;
function clone(this, that: Object_Acc) return Object_Acc is abstract;
function "="(this, that: Object) ... |
-- -----------------------------------------------------------------------------
-- 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 (c) 2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Text_IO;
package body Torrent.Logs is
Output : Ada.Text_IO.File_Type;
----------------
-- Initialize --
------... |
------------------------------------------------------------------------------
-- Copyright (c) 2015-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
package body Benchmark.Matrix.LU is
function Create_LU return Benchmark_Pointer is
begin
return new LU_Type;
end Create_LU;
procedure Run(benchmark : in LU_Type) is
addr : constant Address_Type := 0;
begin
for k in 0 .. benchmark.size - 1 loop
for j in k + 1 .. benchmark.siz... |
with Ada.Containers;
with Ada.Containers.Functional_Vectors;
with TLSF.Block.Types;
with TLSF.Config; use TLSF.Config;
package TLSF.Proof.Model.Block with SPARK_Mode, Ghost is
package BT renames TLSF.Block.Types;
type Block is record
Address : BT.Aligned_Address;
Prev_Block_Address : BT.Aligned... |
-- CLI AURA Configuration Manifest
package CLI.AURA is
package Build is
package Ada is
package Compiler_Options is
Ignore_Unknown_Pragmas: constant String := "-gnatwG";
-- Disable warnings from GNAT for the use of pragma External_With
end Compiler_Op... |
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, Maxim Reznik
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistr... |
with Ada.Text_IO; use Ada.Text_IO;
package body Memory.Stats is
Max_Stride : constant := Integer'Last;
function Create_Stats(mem : access Memory_Type'Class)
return Stats_Pointer is
result : constant Stats_Pointer := new Stats_Type;
begin
Set_Memory(result.all, mem);
... |
with Interfaces;
with Ada.Text_IO;
with Ada.Unchecked_Deallocation;
package body UnZip.Decompress.Huffman is
-- Note from Pascal source:
-- C code by info - zip group, translated to pascal by Christian Ghisler
-- based on unz51g.zip
-- Free huffman tables starting with table where t points to
... |
-----------------------------------------------------------------------
-- gen-model-tables -- Database table model representation
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (... |
--
-- Copyright (C) 2015-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.
--
-- ... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/L... |
with Ada.Numerics;
with PortAudioAda; use PortAudioAda;
package Ctestc_Types is
Pi : constant := Ada.Numerics.Pi;
Two_Pi : constant := Pi * 2.0;
Default_Buffer_Size : constant := 32;
type Float_Array
is array (Natural range <>) of aliased Float;
pragma Convention (C... |
package body Equilibrium is
function Get_Indices (From : Array_Type) return Index_Vectors.Vector is
Result : Index_Vectors.Vector;
Right_Sum, Left_Sum : Element_Type := Zero;
begin
for Index in Index_Type'Range loop
Right_Sum := Right_Sum + Element (From, Index);
end loop;
... |
with Ada.Wide_Wide_Text_IO;
with League.Strings;
with XML.SAX.Attributes;
with XML.SAX.Pretty_Writers;
procedure Main is
function "+"
(Item : Wide_Wide_String) return League.Strings.Universal_String
renames League.Strings.To_Universal_String;
type Remarks is record
Name : League.Strings.Uni... |
package discriminant_specification is
type Buffer(Size : Integer := 100) is
record
Pos : Integer := 0;
Value : String(1 .. Size);
end record;
procedure append_ch(b : in out Buffer; ch : in character);
procedure remove_ch(b : in out Buffer; ch : out character);
function make_buf(si... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
-- with GNAT.Exception_Traces; -- For debugging.
with Apsepp_Test_Harness;
procedure Apsepp_Test is
-- use GNAT.Exception_Traces; -- For debugging.
begin
-- Trace_On (Every_Raise); -- For debugging.
... |
with GID.Buffering; use GID.Buffering;
with GID.Color_tables;
package body GID.Decoding_TGA is
----------
-- Load --
----------
procedure Load (image: in out Image_descriptor) is
procedure Row_start(y: Natural) is
begin
if image.flag_1 then -- top first
... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.API;
with GL.Enums.Getter;
package body GL.Window is
procedure Set_Viewport (X, Y : Int; Width, Height : Size) is
begin
GL.API.Viewport (X, Y, Width, Height);
Raise_Exception... |
package body Options is
SCCS_ID : constant String := "@(#) options.ada, Version 1.2";
Rcs_ID : constant String := "$Header: options.a,v 0.1 86/04/01 15:08:15 ada Exp $";
Verbose_Option : Boolean := False;
Verbose_Conflict_Option : Boolean := False;
Debug_Option : Boolean := Fal... |
type Container is array (Positive range <>) of Element;
for I in Container'Range loop
declare
Item : Element renames Container (I);
begin
Do_Something(Item); -- Here Item is a reference to Container (I)
end;
end loop;
|
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
package body Greetings is
procedure Hello is
begin
Put_Line ("Hello WORLD!");
end Hello;
procedure Goodbye is
begin
Put_Line ("Goodbye WORLD!");
end Goodbye;
end Greetings;
|
-----------------------------------------------------------------------
-- asf-beans-flash -- Bean giving access to the flash context
-- 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 ... |
with Ada.Unchecked_Conversion;
with C.winbase;
with C.winnt;
with C.winternl;
package body System.Storage_Map is
pragma Suppress (All_Checks);
use type C.char_array;
use type C.size_t;
use type C.windef.ULONG;
NTDLL_DLL : aliased constant C.winnt.WCHAR_array (0 .. 9) := (
C.winnt.WCHAR'Val (Wide_C... |
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 fibo is
type stringptr is access all char_array;
procedure PInt(i : in Integer) is
begin
String'Write (Text_Streams.Stream... |
pragma License (Unrestricted);
with Ada.Containers;
with Ada.Strings.Wide_Hash;
function Ada.Strings.Wide_Fixed.Wide_Hash (Key : Wide_String)
return Containers.Hash_Type
renames Strings.Wide_Hash;
pragma Pure (Ada.Strings.Wide_Fixed.Wide_Hash);
|
package Standard_Subtypes is
subtype Double_Type is Standard.Long_Float;
subtype Scalar is Double_Type;
end Standard_Subtypes;
|
pragma Warnings (Off);
pragma Ada_95;
with System;
package ada_main is
gnat_argc : Integer;
gnat_argv : System.Address;
gnat_envp : System.Address;
pragma Import (C, gnat_argc);
pragma Import (C, gnat_argv);
pragma Import (C, gnat_envp);
gnat_exit_status : Integer;
pragma Import (C, gnat_exit... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with System;
with Utils; use Utils;
package body Drivers.CC1101 is
type Register_Type is (
IOCFG2,
IOCFG1,
IOCFG0,
FIFOTHR,
SYNC1,
SYNC0,
PKTLEN,
PKTCTRL1,
PKTCTRL0,
ADDR,
CHANNR,
FSCTRL1,
FSCTRL0,
FREQ2,
FREQ1,
FREQ0,
... |
package body agar.gui.widget.toolbar is
package cbinds is
function allocate
(parent : widget_access_t;
bar_type : type_t;
num_rows : c.int;
flags : flags_t) return toolbar_access_t;
pragma import (c, allocate, "AG_ToolbarNew");
procedure row
(toolb... |
F1, F2 : File_Type;
begin
Open (F1, In_File, "city.ppm");
declare
X : Image := Get_PPM (F1);
begin
Close (F1);
Create (F2, Out_File, "city_sharpen.ppm");
Filter (X, ((-1.0, -1.0, -1.0), (-1.0, 9.0, -1.0), (-1.0, -1.0, -1.0)));
Put_PPM (F2, X);
end;
Close (F2);
|
-----------------------------------------------------------------------
-- security-random-tests - Tests for random package
-- Copyright (C) 2017, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use ... |
with
Ada.Unchecked_Deallocation,
Interfaces.C.Strings,
System;
use type
Interfaces.C.int,
Interfaces.C.Strings.chars_ptr,
System.Address;
package body FLTK.Widgets.Groups.Input_Choices is
procedure input_choice_set_draw_hook
(W, D : in System.Address);
pragma Import (... |
package YAML.Abstract_Object is
type Instance is abstract tagged null record;
subtype Class is Instance'Class;
function Get (Item : in Instance;
Name : in String) return Class is abstract;
function Get (Item : in Instance;
Index : in Positive) return Class is ... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Scope_Bound_Locks.Private_Handler;
package body Apsepp.Scope_Bound_Locks is
----------------------------------------------------------------------------
procedure SB_Lock_CB_procedure is
b... |
with
gel.Joint,
gel.Sprite,
physics.Joint.hinge,
physics.Space;
package gel.hinge_Joint
--
-- Allows sprites to be connected via a hinge joint.
--
is
type Item is new gel.Joint.item with private;
type View is access all Item'Class;
type Views is array (math.Index range <>) of View;
... |
------------------------------------------------------------------------------
-- host.ads
--
-- This package defines the task for the host. The host allows the philoso-
-- phers to enter and leave the restaurant. It also keeps track of how many
-- philosophers have died. The host is called Norman_... |
generic
type Element_Type is private;
type List_Type is array (Integer range <>) of Element_Type;
with function Compare (Left : Element_Type; Right : Element_Type) return Boolean;
with function To_String (E : Element_Type) return String;
package Sort_Generics is
procedure Sort_Generic (List : in ou... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Test_Node_Class.Generic_Assert; use Apsepp.Test_Node_Class;
with Apsepp.Abstract_Test_Case; use Apsepp.Abstract_Test_Case;
private with Apsepp_Scope_Debug_Test_Fixture;
package Apsepp_Scop... |
pragma No_Run_Time;
with Interfaces.C;
package Compute is
procedure Compute;
pragma Export (C, Compute, "compute");
end Compute;
|
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Unchecked_Conversion;
package Torrent.Handshakes is
use type Ada.Streams.Stream_Element_Count;
Header : constant Str... |
package Levels is
type Level_Id is (Outside, Inside, Cave);
procedure Update;
procedure Enter (Id : Level_Id);
procedure Leave (Id : Level_Id);
end Levels;
|
package body Semantica is
procedure Abuit
(P : out Pnode) is
begin
P := null;
end Abuit;
procedure Creanode_Programa
(P : out Atribut;
A : in Atribut) is
begin
P := A;
Arbre := P.A;
end Creanode_Programa;
procedure Creanode
(P : out Atribut;
Fe, Fd ... |
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is C... |
-- { dg-do compile }
with System.Storage_Elements; use System.Storage_Elements;
procedure Address_Conv is
subtype My_Address is System.Address;
type Rec is record
A : My_Address;
end record;
Addr : constant My_Address := To_Address (16#FACEFACE#);
R : constant Rec := (A => Addr);
begin
null;
end... |
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 euler34 is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Streams.S... |
with hauntedhouse, tools;
use hauntedhouse;
procedure Demo is
-- Princess
task princess is
entry scare(ghostPos: Position);
end princess;
task body princess is
pos : Position := (1,3);
hp : Natural := 3;
begin
while hp > 0 loop
select
when IsCorridor(pos) => a... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, AdaCore --
-- --
-- Redis... |
package body Math_2D.Points is
use type Types.Real_Type;
use type Types.Point_t;
function Distance
(Point_A : in Types.Point_t;
Point_B : in Types.Point_t) return Types.Real_Type'Base is
begin
return Vectors.Magnitude (Types.Vector_t (Point_A - Point_B));
end Distance;
end Math_2D.Points;
|
-- Note: This test does not yet work due to problems with
-- declaring tasks. We can't abort without a task
--with Ada.Text_IO;
procedure Task_With_Abort is
task AbortMe is
entry Go;
end AbortMe;
task body AbortMe is
begin
accept Go;
loop
delay 1.0;
--Ada.Text_IO.Put_Line("I'm not... |
with Ada.Strings.Unbounded;
with A_Nodes;
with Dot;
with Indented_Text;
private with Ada.Exceptions;
private with Ada.Text_IO;
private with Ada.Wide_Text_IO;
private with Asis;
private with Asis.Set_Get;
private with Interfaces.C.Extensions;
private with Interfaces.C.Strings;
private with Unchecked_Conversion;
-- GN... |
-- Lumen.Binary.IO -- Read and write streams of binary data from external
-- files.
--
-- Chip Richards, NiEstu, Phoenix AZ, Summer 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpo... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Dummy_Subpools;
package Program.Storage_Pools is
pragma Preelaborate;
subtype Storage_Pool is Program.Dummy_Subpo... |
pragma Warnings (Off);
pragma Style_Checks (Off);
with GL;
with GLOBE_3D.Math;
with Ada.Numerics; use Ada.Numerics;
package body Planet is
procedure Create (
object : in out GLOBE_3D.p_Object_3D;
scale : GLOBE_3D.Real;
centre : GLOBE_3D.Point_3D;
... |
package body Generic_Fifo is
----------
-- Push --
----------
procedure Push (The_Fifo : in out Fifo_Type; Item : in Element_Type) is
begin
The_Fifo.Prepend(Item);
end Push;
---------
-- Pop --
---------
procedure Pop (The_Fifo : in out Fifo_Type; Item : out Element_T... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Containers.Hashed_Maps;
with League.Strings.Hash;
with League.JSON.Objects;
with Slim.Players;
with Slim.Menu_Models.Play_Li... |
--
-- Jan & Uwe R. Zimmer, Australia, July 2011
--
with Real_Type; use Real_Type;
with GLOBE_3D;
with Graphics_Data; use Graphics_Data;
with Graphics_Structures; use Graphics_Structures;
with Rotations; use Rotations;
with Vectors_3D; use Vectors_3D;
package Graphics_OpenGL... |
package Debug7 is
function Next (I : Integer) return Integer;
function Renamed_Next (I : Integer) return Integer renames Next;
end Debug7;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
pragma License (Unrestricted);
-- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux)
with Ada.Exception_Identification;
with Ada.IO_Exceptions;
with Ada.Streams;
with System.Native_Calendar;
with C.sys.stat;
with C.sys.types;
package System.Native_Directories is
pragma Preelaborate;
-- direc... |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package freetype_config_integer_types is
-- unsupported macro: FT_SIZEOF_INT ( 32 / FT_CHAR_BIT )
-- unsupported macro: FT_SIZEOF_LONG ( 64 / FT_CHAR_BIT )
-- unsupported macro: FT_INT64 long
-- unsupported macro: FT_UIN... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
--
-- 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... |
-- { dg-do compile }
with Pack1;
package body limited_with is
procedure Print_2 (Obj : access Pack1.Nested.Rec_Typ) is
begin
null;
end;
end limited_with;
|
with Ada.Integer_Text_IO;
with Is_Palindrome;
procedure Euler4 is
function String_Palindrome is new Is_Palindrome(Character, Positive, String);
Prod, Max: Integer := 0;
begin
for I in Integer range 100 .. 999 loop
for J in Integer range I .. 999 loop
Prod := I * J;
if Prod > Max and S... |
procedure TEST is
COLUMN_MAX : constant := 10;
ROW_MAX : constant := COLUMN_MAX;
type COLUMN_INDEX is range 1..COLUMN_MAX;
type ROW_INDEX is range 1..ROW_MAX;
type MATRIX is array(COLUMN_INDEX, ROW_INDEX) of INTEGER;
A : MATRIX;
I : INTEGER;
procedure INIT_MATRIX(X : in INTEGER; Y : out MATRIX) is
I, J ... |
-- IntCode Interpreter
with Ada.Strings.Unbounded;
with Ada.Strings.Maps;
with Ada.Strings.Hash;
with Ada.Strings.Fixed;
with Ada.Text_IO;
package body IntCode is
package TIO renames Ada.Text_IO;
procedure append_input(val : Integer) is
begin
input_vector.append(val);
end append_input;
function take_ou... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
package Opt35_Pkg is
pragma Pure;
E : Exception;
function F (I : Integer) return Integer;
end Opt35_Pkg;
|
pragma License (Unrestricted);
-- extended unit
with Interfaces.C.Pointers;
package Interfaces.C.Char_Pointers is
new Pointers (
Index => size_t,
Element => char,
Element_Array => char_array,
Default_Terminator => char'Val (0));
-- The instance of Interfaces.C.Pointers for char.
pragma Pure... |
---------------------------------------------------------------------------------
-- Copyright 2004-2005 © Luke A. Guest
--
-- This code is to be used for tutorial purposes only.
-- You may not redistribute this code in any form without my express permission.
------------------------------------------------------------... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
package Markdown is
pragma Pure;
subtype Can_Interrupt_Paragraph is Boolean;
end Markdown;
|
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
private with Yaml.Events.Store;
private with Yaml.Events.Queue;
package Yaml.Transformator.Annotation.Vars is
type Instance is limited new Transformator.Instance with private;
overriding proce... |
-- 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 System.Formatting;
with System.Long_Long_Integer_Types;
with System.Random_Initiators;
with System.Storage_Elements;
package body Ada.Numerics.MT19937 is
use type Interfaces.Unsigned_32;
use type System.Storage_Elements.Storage_Count;
subtype Word_Unsigned is System.Long_Long_Integer_Types.Word_Unsigned;... |
-----------------------------------------------------------------------
-- AWA.Audits.Models -- AWA.Audits.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-body.xhtml
-- Ada Generator: https://ada-gen.... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
----------------------------------------------------------------------
-- package body Peters_Eigen, eigendecomposition
-- Copyright (C) 2008-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 the above... |
-- A PNG stream is made of several "chunks" (see type PNG_Chunk_tag).
-- The image itself is contained in the IDAT chunk(s).
--
-- Steps for decoding an image (step numbers are from the ISO standard):
--
-- 10: Inflate deflated data; at each output buffer (slide),
-- process with step 9.
-- 9: Read filter... |
with
gel.Sprite,
gel.World;
package gel.Terrain
--
-- Provides a constructor for heightmap terrain.
--
is
function new_Terrain (World : in gel.World.view;
heights_File : in String;
texture_File : in String := "";
Sc... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
procedure Discr22 is
subtype Precision is Integer range 1 .. 5;
type Rec(D1 : Precision; D2 : Integer) is record
case D1 is
when 1 => I : Integer;
when others => null;
end case;
end record;
for Rec use record
D1 at 0 ran... |
with Memory.DRAM; use type Memory.DRAM.DRAM_Pointer;
with Util; use Util;
separate (Parser)
procedure Parse_DRAM(parser : in out Parser_Type;
result : out Memory_Pointer) is
ptr : DRAM.DRAM_Pointer := null;
cas_cycles : Time_Type := 5;
rcd_cycles : Time_Type := 5;... |
-- -----------------------------------------------------------------------------
-- Copyright 2018 Lionel Draghi
--
-- 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.apach... |
with Actors, Engines, Components.Destructibles, Libtcod.Color;
package body Components.Attackers is
use Destructibles;
------------
-- attack --
------------
procedure attack(self : in out Attacker; owner : in out Actors.Actor;
target : in out Actors.Actor; engine : in out Engines... |
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: LED Driver
--
-- Authors: Emanuel Regnath (emanuel.regnath@tum.de)
--
-- Description: Control a single LED
--
-- ToDo: Support several LEDs
package LED
with SPARK_Mode
is
procedure init wit... |
-- 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... |
with Ada.Numerics.Generic_Complex_Arrays;
with Ada.Numerics.Generic_Complex_Types;
with Ada.Numerics.Generic_Real_Arrays;
with GA_Maths;
package SVD is
type Real is digits 18;
package Real_Arrays is new Ada.Numerics.Generic_Real_Arrays (Real);
package Complex_Types is new Ada.Numerics.Generic_Comp... |
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: Emanuel Regnath (emanuel.regnath@tum.de)
--
-- Description: Generic signal package
--
-- ToDo:
-- [ ] Implementation
with Units; use Units;
generic
type Data_Type is private;
-... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Strings.Fixed;
with Ada.Integer_Text_IO;
-- Copyright 2021 Melwyn Francis Carlo
procedure A040 is
use Ada.Strings.Fixed;
use Ada.Integer_Text_IO;
Max_E : constant Integer := 7; -- 1E+x
N : constant array (Integer range 1 .. Max_E) of Integer :=
(1, 10, 100, 10... |
pragma Check_Policy (Trace => Ignore);
with Ada.Unchecked_Conversion;
with System.Address_To_Named_Access_Conversions;
with System.Address_To_Constant_Access_Conversions;
with System.Storage_Elements;
with System.Unwind.Mapping;
with System.Unwind.Representation;
with C.basetsd;
with C.unwind_pe;
package body System.Un... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
--with Ada.Text_IO;
with Ada.Command_Line; use Ada.Command_Line;
separate (Command_Line_Interface)
procedure Read_Command_Line (Command_Args : out Command_Line_Type) is
-- mytest
--Maximum_Command_Length : constant := 1024;
--subtype Command_Line_Type is String (1 .. Maximum_Command_Length);
--Command_... |
package defining_operator_symbol is
function "*"(Left, Right : Integer) return Integer;
end defining_operator_symbol;
|
with
openGL.Primitive.indexed,
openGL.IO;
package body openGL.Model.billboard.colored_textured
is
type Geometry_view is access all Geometry.colored_textured.item'Class;
---------
--- Forge
--
function new_Billboard (Size : in Size_t := default_Size;
Pla... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.