content stringlengths 23 1.05M |
|---|
-- -----------------------------------------------------------------------------
-- smk, the smart make
-- © 2018 Lionel Draghi <lionel.draghi@free.fr>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- Licensed under the Apache License, Version 2.0 ... |
package Private2_Pkg is
type Rec2 (D : Natural) is private;
private
type Rec1 (D : Natural) is null record;
type Rec2 (D : Natural) is new Rec1 (D);
end Private2_Pkg;
|
-----------------------------------------------------------------------
-- are-generator-c -- Generator for C/C++
-- Copyright (C) 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... |
-----------------------------------------------------------------------
-- monitor - A simple monitor API
-- Copyright (C) 2016, 2018, 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 ex... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- ... |
-----------------------------------------------------------------------
-- util-concurrent-tests -- Unit tests for concurrency package
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version ... |
with Disorderly.Random; use Disorderly.Random;
with Disorderly.Random.Clock_Entropy;
with Chi_Gaussian_CDF;
with text_io; use text_io;
-- translated from Marsaglia, Tsang diehard suite.
procedure gcd_8bytes_1 is
Bits_per_Random_Word : constant := 61;
-- Must set this correctly here. There's no wa... |
package body Peak is
function Max (X,Y : Float) return Float is
R : Float;
begin
if X >= Y then
R := X;
else
R := Y;
end if;
return R;
end Max;
procedure Coeffs (Y1,Y2,Y3 : in Float; A,B,C : out Float) is
begin
A := -- 0.5*(Y1-2*Y2+Y3)
PolyPaver.Floats.Multiply(
0.5,
PolyPaver.Fl... |
package body Intcode.Op is
use type Memory.Value;
function Instruction_Size(Instruction: Code) return Natural is
(case Instruction is
when Add|Mul => 3,
when Get|Put|Mrb => 1,
when Jnz|Jz => 2,
when Lt|Eq => 3,
when Halt => 1);
function Get_Code(V: Memory.V... |
with Interfaces;
use Interfaces;
package STM32.F4.GPIO is
pragma Pure;
subtype Port_Bit_Number is Natural range 0 .. 15;
-- MODER
type Port_Mode is (
Input_Mode,
Output_Mode,
Alternate_Mode,
Analog_mode
) with Size => 2;
for Port_Mode use (
Input_Mode => 2#00#,
Output_Mode => 2#01#,
Alternate_M... |
with AWS.Response;
with AWS.Server;
with AWS.Services.Dispatchers.Linker;
with AWS.Services.Dispatchers.URI;
with AWS.Status;
with AWS.Config;
with AWS.Resources.Streams;
with Ada.Streams;
with AWS.Resources.Streams.Memory;
package Download_Manager is
use AWS;
use Ada.Streams;
function CB (Request : Status.D... |
with
-- AdaM.Source,
AdaM.Entity,
gtk.Widget;
package aIDE.Editor
is
type Item is abstract tagged private;
type View is access all Item'Class;
-- function to_Editor (Target : in AdaM.Source.Entity_view) return Editor.view;
function to_Editor (Target : in AdaM.Entity.view) return Ed... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
package Generator is
type Generator is tagged private;
procedure Reset (Gen : in out Generator);
function Get_Next (Gen : access Generator) return Natural;
type Generator_Function is access function (X : Natural) return Natural;
procedure Set_Generator_Function (Gen : in out Generator;
... |
with Ada.Strings.Bounded;
package Randomise is
package R_String is new Ada.Strings.Bounded.Generic_Bounded_Length(80);
procedure Randomise_String(S : in out R_String.Bounded_String);
end Randomise;
|
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2020 Zane Myers
--
-- 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 witho... |
-- This spec has been automatically generated from STM32L0x3.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.DMA is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- interrupt status register
... |
with Ada.Text_IO;
procedure Ada_Main is
procedure C_Func;
pragma Import (C, C_Func);
package ATI renames Ada.Text_Io;
begin
ATI.Put_Line ("Ada_Main: Calling C_Func");
C_Func;
ATI.Put_Line ("Ada_Main: Returned from C_Func");
end Ada_Main;
|
with
Interfaces.C.Strings,
System;
use type
System.Address;
package body FLTK.Widgets.Valuators is
procedure valuator_set_draw_hook
(W, D : in System.Address);
pragma Import (C, valuator_set_draw_hook, "valuator_set_draw_hook");
pragma Inline (valuator_set_draw_hook);
pr... |
with Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
with Blade;
with Blade_Types;
with GA_Maths;
with GA_Utilities;
with Multivectors; use Multivectors;
with Multivector_Type;
procedure Test_MV is
no_bv : Multivector := Basis_Vector (Blade_Types.C3_no);
e1_bv : Multivector := Basis_Vector (Blad... |
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- extended unit
with Ada.Directories.Volumes;
function Ada.Directories.Equal_File_Names (
FS : Volumes.File_System;
Left, Right : String)
return Boolean;
-- This function compare two file names by the method of the file system.
-- For example, it uses NFD and case-insensitive... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with swig;
with interfaces.C;
package speech_tools_c
is
-- EST_Wave
--
subtype EST_Wave is swig.incomplete_class;
type EST_Wave_array is array (interfaces.C.Size_t range <>) of aliased speech_tools_c.EST_Wave;
-- EST_String
-... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with Ada.Containers.Hashed_Maps;
with League.JSON.Objects;
with League.Strings;
with Jupyter.Kernels;
package Hello_World is
type Kernel is limite... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 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.Unchecked_Deallocation,
Ada.Strings.Fixed;
package body ARM_Syntax is
--
-- Ada reference manual formatter (ARM_Form).
--
-- This package contains the database to collect the syntax summary and
-- cross-reference.
--
-- ---------------------------------------
--... |
-- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "CommonCrawl"
type = "api"
local urls = {}
function start()
setratelimit(2)
end
function vertical(ctx, domain)
-- Check th... |
-- 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... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Numerics.MT19937;
procedure Vampire.Villages.Advance (
Village : in out Village_Type;
Now : in Ada.Calendar.Time;
Generator : aliased in out Ada.Numerics.MT19937.Generator;
Changed : out Boolean;
List_Changed : out Boolean);
|
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Low_Level.Enums;
package GL.Objects.Queries is
pragma Preelaborate;
type Query_Object is new GL_Object with private;
Default_Query : constant Query_Object;
procedure Begin_Query ... |
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, Luke A. Guest
--
-- 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 f... |
with swap, ada.text_io;
use ada.text_io;
procedure demo is
a:integer:=3;
b:integer:=5;
begin
put_line("A:"&integer'image(a)&", B:"&integer'image(b));
swap(a,b);
put_line("A:"&integer'image(a)&", B:"&integer'image(b));
end demo; |
with Support; use Support;
package body BSSNBase.Runge is
-- increments in data
delta_gBar_ptr : MetricGridArray_ptr := new MetricGridArray (1..max_num_x, 1..max_num_y, 1..max_num_z);
delta_ABar_ptr : ExtcurvGridArray_ptr := new ExtcurvGridArray (1..max_num_x, 1..max_num_y, 1..max_num_z);
delta_N_ptr ... |
--------------------------------------------------------------------------------
-- --
-- B A L L _ O N _ B E A M _ A D C --
-- ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with CommonText;
with AdaBase.Interfaces.Connection;
package AdaBase.Connection.Base is
package CT renames CommonText;
package AIC renames AdaBase.Interfaces.Connection;
type Base_Connection is abst... |
-----------------------------------------------------------------------
-- mat-expressions -- Expressions for event and memory slot selection
-- Copyright (C) 2014, 2015 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
--... |
-- { dg-do compile }
-- { dg-options "-fdump-tree-original" }
package body Renaming6 is
function Get_I return Integer is
begin
return I;
end;
procedure Set_I (Val : Integer) is
begin
I := Val;
end;
function Get_J return Integer is
begin
return J;
end;
procedure Set_J (Val : Integer)... |
pragma SPARK_Mode;
package body Geo_Filter is
procedure FilterState (State : in out LineState;
Thresh : out Boolean)
is
Current_Point : constant Point_Type := State2PointLookup (State);
X_Sum, Y_Sum : Integer := 0;
X_Avg, Y_Avg : Integer;
begin
case Stat... |
with Constants; use constants;
with Interfaces; use Interfaces;
with Ada.Real_Time; use Ada.Real_Time;
procedure main with SPARK_Mode is
begin
Do_Something;
end main;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- C52104Y.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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux)
package System.Native_Command_Line is
pragma Preelaborate;
function Argument_Count return Natural;
pragma Pure_Function (Argument_Count);
pragma Inline (Argument_Count);
function Argument (Number : ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
with GNATCOLL.Mmap;
generic
Separator_Sequence : in String;
package Linereader is
use GNATCOLL.Mmap;
End_Of_Input_Exception : Exception;
type Reader (Str : Str_Access;
Len : Natural) is tagged private;
-- Read a line of text
function Get_Line (Self : in out Reader) return String;
... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Command_Line;
with Ada.Containers.Indefinite_Vectors;
with Ada.Directories; use Ada.Directories;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Text_IO;
with Specs;
procedure Generate is
... |
package body afrl.impact.AngledAreaSearchTask.SPARK_Boundary with SPARK_Mode => Off is
function Get_SearchAreaID (X : AngledAreaSearchTask) return Int64 renames
getSearchAreaID;
end afrl.impact.AngledAreaSearchTask.SPARK_Boundary;
|
-- { dg-do run }
-- { dg-options "-gnatN" }
with Text_IO; use Text_IO;
with system; use system;
procedure inline_tagged is
package Pkg is
type T_Inner is tagged record
Value : Integer;
end record;
type T_Inner_access is access all T_Inner;
procedure P2 (This : in T_Inner; Ptr : ad... |
with
lace.Event.Logger,
lace.Event.utility,
system.RPC,
ada.unchecked_Deallocation;
package body lace.make_Subject
is
procedure destroy (Self : in out Item)
is
begin
Self.safe_Observers.destruct;
end destroy;
-- Attributes
--
overriding
function Observers (Self : i... |
with STM32_SVD.GPIO; use STM32_SVD.GPIO;
with STM32_SVD.SYSCFG; use STM32_SVD.SYSCFG;
with STM32GD.EXTI;
with STM32GD.EXTI.IRQ;
with STM32GD.GPIO.Port;
package body STM32GD.GPIO.IRQ is
Index : constant Natural := GPIO_Pin'Pos (Pin.Pin);
Pin_Mask : constant UInt16 := GPIO_Pin'Enum_Rep (Pin.Pin);
procedure Co... |
-- 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... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Plain_Lexical_Elements is
type Lexical_Element_Access is access Lexical_Element;
------------
-- Append --
------------
... |
-- SaxonSOC GPIO mapping
-- The structure is mostly based on https://github.com/AdaCore/bb-runtimes/
-- blob/community-2020/riscv/sifive/fe310/svd/i-fe310-gpio.ads
with System;
-- TODO do more than just the LEDS
package Interfaces.SaxonSOC.GPIO is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
-... |
with AUnit;
with AUnit.Test_Fixtures;
with Brackelib.Stacks;
package Stacks_Tests is
package State_Stacks is new Brackelib.Stacks (Integer);
use State_Stacks;
type Test is new AUnit.Test_Fixtures.Test_Fixture with null record;
procedure Set_Up (T : in out Test);
procedure Test_Push (T : in out Test... |
--
-- Copyright (C) 2021, AdaCore
--
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32L562.svd
with System;
package Interfaces.STM32.SYSCFG is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Registers --
---------------
-- SYSCFG secu... |
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
with Ada.Text_IO;
use Ada.Text_IO;
with Mat; -- use Mat;
procedure factorial is
N : Natural;
begin
Get( N );
Put( Mat.factorial(N) );
end factorial;
|
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
with System;
package body gnatcoll.dl is
package dlfcn_h is
function dlopen (arg1 : System.Address; arg2 : Flag) return System.Address; -- dlfcn.h:57:14
pragma Import (C, dlopen, "dlopen");
function dlclose (arg1 : System.Address) ... |
--------------------------------------------------------------------------
-- Maze 19991109 <> 20020509 by Joe Wingbermuehle
-- This is a random maze generator
--------------------------------------------------------------------------
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO... |
package body Tkmrpc.Contexts.cc
is
pragma Warnings
(Off, "* already use-visible through previous use type clause");
use type Types.cc_id_type;
use type Types.certificate_type;
use type Types.certificate_type;
use type Types.ca_id_type;
use type Types.ri_id_type;
use type Types.authag_id_type;... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
with Orka;
package body Integrators.RK4 is
use Vectors;
use GL.Types;
use type Orka.Float_64;
package Linear_Integrator is
procedure Integrate
(Current : in out Linear_State;
Force : not null access function
(State : Linear_State; Time : Double) return Vectors.Vector4;... |
------------------------------------------------------------------------------
-- Copyright (c) 2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-- The Beer-Ware License (revision 42)
--
-- Jacob Sparre Andersen <jacob@jacob-sparre.dk> wrote this. As long as you
-- retain this notice you can do whatever you want with this stuff. If we meet
-- some day, and you think this stuff is worth it, you can buy me a beer in
-- return.
--
-- Jacob Sparre Andersen
w... |
with Ada.Integer_Text_IO;
procedure Sum_Digits is
-- sums the digits of an integer (in whatever base)
-- outputs the sum (in base 10)
function Sum_Of_Digits(N: Natural; Base: Natural := 10) return Natural is
Sum: Natural := 0;
Val: Natural := N;
begin
while Val > 0 loop
Sum := S... |
with Test_Solution; use Test_Solution;
package problem_15 is
type Int128 is range -2**127 .. 2**127 - 1;
function Solution_1 return Int128;
procedure Test_Solution_1;
function Get_Solutions return Solution_Case;
end problem_15;
|
package FRUnaligned1 is
type r is array (1 .. 72) of Boolean;
pragma Pack (r);
type s is record
x : Boolean;
y : r;
end record;
for s use record
x at 0 range 0 .. 0;
y at 0 range 1 .. 72;
end record;
end FRUnaligned1;
|
-- convert UCD/CaseFolding.txt
-- bin/ucd_casefolding $UCD/CaseFolding.txt > ../source/strings/a-uccafo.ads
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Containers.Ordered_Maps;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
... |
-----------------------------------------------------------------------
-- servlet-servlets-rest -- REST servlet
-- Copyright (C) 2016, 2017, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Cross_Reference_Updaters;
with Program.Elements.Call_Statements;
with Program.Interpretations;
package Program.Complete_Contexts.Call_Statemen... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
-- 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... |
-----------------------------------------------------------------------
-- mat-readers-sockets -- Reader for TCP/IP sockets
-- Copyright (C) 2014, 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 ... |
-- { dg-do run }
with Init7; use Init7;
with Text_IO; use Text_IO;
with Dump;
procedure R7 is
function Get_Elem (R : R1) return Integer is
Tmp : R1 := R;
begin
return Tmp.N.C1;
end;
procedure Set_Elem (R : access R1; I : Integer) is
Tmp : R1 := R.all;
begin
Tmp.N.C1 := I;
R.all := Tmp;... |
with Ada.Unchecked_Deallocation;
with PB_Support.IO;
with PB_Support.Internal;
package body Google.Protobuf.Descriptor is
package Descriptor_Proto_IO is
new PB_Support.IO.Message_IO
(Google.Protobuf.Descriptor.Descriptor_Proto,
Google.Protobuf.Descriptor.Descriptor_Proto_Vector,
Google.... |
package Loop_Optimization5_Pkg is
type String_Access is access all String;
function Init return String;
function Locate (S : String) return String_Access;
end Loop_Optimization5_Pkg;
|
-----------------------------------------------------------------------
-- util-encoders-sha1 -- Compute SHA-1 hash
-- Copyright (C) 2011, 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this fil... |
with
openGL.Light,
openGL.Visual,
openGL.Model.Box.lit_textured,
openGL.Palette,
openGL.Demo;
procedure launch_diffuse_Light
--
-- Exercise the rendering of models with a diffuse light.
--
is
use openGL,
openGL.Model,
openGL.Math,
openGL.linear_Algebra_3d;
the_Tex... |
with interfaces; use interfaces;
with types; use types;
with config.memlayout;
with ewok.debug;
package body config.tasks
with spark_mode => off
is
package CFGAPP renames config.applications;
package CFGMEM renames config.memlayout;
procedure zeroify_bss
(id : in config.applicati... |
package GLOBE_3D.Textures is
-- The textures are stored by GL in that way:
--
-- an image < - > a number (Image_ID)
--
-- To complete this, and facilitate things, GLOBE_3D adds the
-- following associations:
--
-- a number (Image_ID) - >
-- a record (Texture_info) with an image nam... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- @author Alexander Senier
-- @date 2019-02-21
--
-- Copyright (C) 2018 Componolit GmbH
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without... |
with Interfaces; use Interfaces;
with STM32GD.Board;
procedure Main is
begin
STM32GD.Board.Init;
STM32GD.Board.Text_IO.Put_Line ("Hello, World!");
STM32GD.Board.Text_IO.Put_Integer (Integer'Last); STM32GD.Board.Text_IO.New_Line;
STM32GD.Board.Text_IO.Put_Integer (Integer'First + 1); STM32GD.Board.Text_IO.New_Li... |
-- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com)
-- //
-- // This software is provided 'as-is', without any express or implied warranty.
-- // In no event will the authors be held li... |
-- Generated at 2014-07-02 17:53:59 +0000 by Natools.Static_Hash_Maps
-- from src/simple_webapps-upload_servers-commands.sx
package Simple_Webapps.Commands.Upload_Servers is
pragma Pure;
type Config_Command is
(Config_Error,
Set_Storage_File,
Set_Directory,
Set_Error_Template,
Set... |
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 aaa_08tuple is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Strea... |
with C.signal;
package body System.Native_Interrupts is
use type C.signed_int;
procedure Mask (How : C.signed_int; Interrupt : Interrupt_Id);
procedure Mask (How : C.signed_int; Interrupt : Interrupt_Id) is
Mask : aliased C.signal.sigset_t;
Dummy : C.signed_int;
R : C.signed_int;
begin
... |
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
--
-- SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from rp2040.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package RP_SVD.WATCHDOG is
pragma Preelabora... |
pragma Ada_2012;
package body GStreamer.rtsp.message is
--------------
-- Get_Type --
--------------
function Get_Type
(Msg : access GstRTSPMessage_Record)
return GstRTSPMsgType
is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "G... |
pragma License (Unrestricted);
with Ada.Wide_Characters.Handling;
package Ada.Wide_Characters.Unicode is
pragma Preelaborate; -- Ada.Wide_Characters.Handling is not Pure.
function To_Lower_Case (U : Wide_Character) return Wide_Character
renames Handling.To_Lower;
end Ada.Wide_Characters.Unicode;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
generic
type T is private;
with function Image (Item : T) return String;
with function "=" (First_Item, Second_Item : T) return Boolean;
with function "+" (First_Item, Second_Item : T) return T;
with function "-" (First_Item, Second_Item : T) return T;
with function "*" (First_Item, Second_Item : T) r... |
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Strings.Equal_Case_Insensitive;
with Langkit_Support.Text; use Langkit_Support.Text;
package body Rejuvenation.Utils is
-- Raw signature --------
function Raw_Signature
(Node : Ada_Node'C... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Euler11 is
type Int_Mat is array(Positive range <>, Positive range <>) of Integer;
N : constant Int_Mat :=
((08,02,22,97,38,15,00,40,00,75,04,05,07,78,52,12,50,77,91,08),
(49,49,99,40,17,81,18,57,60,87,17,40,98,43,69,48,04,56,62,00),
(81,49,31,73,... |
-- Teapot -- Produces a Newell teapot, also known as a Utah teapot, an iconic
-- object in computer graphics history
--
-- Chip Richards, NiEstu, Phoenix AZ, Spring 2012
-- This code is covered by the ISC License:
--
-- Copyright © 2012, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this s... |
-- DAT2TXT.ADA Ver. 4.01 2001-SEP-10 Copyright 1988-2001 John J. Herro
--
-- SOFTWARE INNOVATIONS TECHNOLOGY www.adatutor.com
-- 1083 MANDARIN DR NE
-- PALM BAY FL 32905-4706 john@adatutor.com
--
-- (321) 951-0233
--
-- Run this program on a PC before installing AdaTutor on anot... |
with Ada.Text_IO; use Ada.Text_IO;
with GNATCOLL.GMP; use GNATCOLL.GMP;
with GNATCOLL.GMP.Integers; use GNATCOLL.GMP.Integers;
procedure ArbitraryInt is
type stracc is access String;
BigInt : Big_Integer;
len : Natural;
str : stracc;
begin
Set (BigInt, 5);
Raise_To_N (BigInt, Unsigned_Long (4**(3**2))... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.