content stringlengths 23 1.05M |
|---|
-----------------------------------------------------------------------
-- keystore-passwords-keys -- Key provider
-- 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 excep... |
------------------------------------------------------------------------------
-- G P S --
-- --
-- Copyright (C) 2000-2016, AdaCore --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with GNAT.OS_Lib;
with System;
with Interfaces; use Interfaces;
with Interfaces.C; use Interfaces.C;
with Sf.Audio; use Sf.Audio;
with Sf.Audio.SoundStream; use Sf.Audio.SoundStream;
with Sf; use Sf;
package body PyGamer.Audio is
Stream : sfSoundStream_Ptr;
User_Callback :... |
-- The Village of Vampire by YT, このソースコードはNYSLです
package Vampire.Forms.Selecting is
function Select_Form (
Query_Strings : Web.Query_Strings;
Speeches_Per_Page : Tabula.Villages.Speech_Positive_Count'Base)
return Root_Form_Type'Class;
end Vampire.Forms.Selecting;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Print_Line is
Printer : File_Type;
begin
begin
Open (Printer, Mode => Out_File, Name => "/dev/lp0");
exception
when others =>
Put_Line ("Unable to open printer.");
return;
end;
Set_Output (Printer);
Put_Line ("Hello World!");... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package body Datastore is
-- create a global array of elements that can be referenced by 'access
-- Implement functions that return the different access types
-- based on the index into the array
end Datastore;
|
-- Copyright 2017 Georgios Migdos
--
-- 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, copy, modify, merge, publish, ... |
--::::::::::
--screen.ads
--::::::::::
PACKAGE Screen IS
-- Procedures for drawing pictures on ANSI Terminal Screen
ScreenDepth : CONSTANT Integer := 24;
ScreenWidth : CONSTANT Integer := 80;
SUBTYPE Depth IS Integer RANGE 1..ScreenDepth;
SUBTYPE Width IS Integer RANGE 1..ScreenWidth;
PROCEDURE Beep;
P... |
-- 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... |
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with Interfaces.C.Pointers;
with Interfaces.C.Strings;
with System;
package clib.Pointers is
-- time_t_Pointer
--
type time_t_Pointer is access all clib.time_t;
-- time_t_Pointers
--
type time_t_Pointers is
array
(Inte... |
with
Interfaces.C,
System,
FLTK.Text_Buffers;
use type
Interfaces.C.int,
System.Address;
package body FLTK.Widgets.Groups.Text_Displays is
procedure text_display_set_draw_hook
(W, D : in System.Address);
pragma Import (C, text_display_set_draw_hook, "text_display_set_draw... |
-----------------------------------------------------------------------
-- Util.Concurrent -- Concurrent Counters
-- Copyright (C) 2009, 2010 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 ... |
with STM32GD.GPIO; use STM32GD.GPIO;
with STM32GD.GPIO.Pin;
package STM32GD.Board is
package GPIO renames STM32GD.GPIO;
package BUTTON is new GPIO.Pin (Pin => GPIO.Pin_0, Port => GPIO.Port_A);
package LED is new GPIO.Pin (Pin => GPIO.Pin_6, Port => GPIO.Port_F, Mode => GPIO.Mode_Out);
procedure Init... |
package body iconv.Streams is
procedure Adjust_Buffer (
Buffer : in out Buffer_Type;
First : in out Ada.Streams.Stream_Element_Offset;
Last : in out Ada.Streams.Stream_Element_Offset);
procedure Adjust_Buffer (
Buffer : in out Buffer_Type;
First : in out Ada.Streams.Stream_Element_Offset;
Last : in out ... |
-- Copyright 2019 Simon Symeonidis (psyomn)
--
-- 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 la... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
-- Autogenerated by Generate, do not edit
package GL.API.Doubles is
pragma Preelaborate;
Vertex_Attrib1 : T1;
Vertex_Attrib2 : T2;
Vertex_Attrib2v : T3;
Vertex_Attrib3 : T4;
Vertex_Att... |
with Interfaces.C;
with System; use System;
package body dl_loader is
function Load_Wrapper(path: Interfaces.C.char_array) return System.Address
with Import => True,
Convention => C,
External_Name => "dp_load";
procedure Close_Wrapper(ptr: System.Address)
with Import => True,
Conventio... |
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
package xample1 is
procedure SayWelcome(x : in Integer);
end xample1;
|
with External; use External;
with Node; use Node;
with Ada.Containers.Doubly_Linked_Lists;
with Logger;
with RandInt;
procedure Main is
package LST is new Ada.Containers.Doubly_Linked_Lists(Element_Type => pNodeObj);
n: Natural;
d: Natural;
k: Natural;
maxSleep: Natural;
begin
if CMD.Argumen... |
with Ada.Numerics;
with Ada.Text_IO; use Ada.Text_IO;
with Blade;
with Blade_Types;
with E3GA;
with GA_Utilities;
package body E3GA_Utilities is
-- -------------------------------------------------------------------------
function exp (BV : Multivectors.Bivector) return Multivectors.Rotor is
V ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
private with Ada.Containers.Hashed_Maps;
private with Ada.Containers.Vectors;
private with HelperText;
package INI_File_Manager is
ini_file_nonexistent : exception;
file_operation_failed : exception;
b... |
------------------------------------------------------------------------------
-- --
-- OPEN RAVENSCAR VALIDATION TEST SUITE --
-- --
-- ... |
private
with
ada.Calendar;
package openGL.frame_Counter
--
-- A utility which reports frames per second.
--
is
type Item is tagged private;
procedure increment (Self : in out Item);
private
type Item is tagged
record
frame_Count : Natural := 0;
next_FPS_Time : ada... |
package body Logic is
-- type Ternary is (True, Unknown, False);
function Image(Value: Ternary) return Character is
begin
case Value is
when True => return 'T';
when False => return 'F';
when Unknown => return '?';
end case;
end Image;
function "and"(Left, Ri... |
with Utils.Command_Lines; use Utils.Command_Lines;
with Utils.Drivers;
with JSON_Gen.Actions;
with JSON_Gen.Command_Lines;
procedure JSON_Gen.Main is
-- Main procedure for lalstub
-- procedure Callback (Phase : Parse_Phase; Swit : Dynamically_Typed_Switch);
procedure Callback (Phase : Parse_Phase; Sw... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Compilation_Unit_Vectors;
package Program.Contexts is
pragma Pure;
type Context is limited interface;
-- The Context is a view of a... |
with Ada.Calendar;
with Ada.Text_IO.Text_Streams;
with Ada.Unchecked_Conversion;
with Interfaces.C;
with SDL;
with SDL.Log;
with SDL.Video.Palettes;
with SDL.Video.Pixel_Formats;
with SDL.Video.Pixels;
with SDL.Video.Renderers.Makers;
with SDL.Video.Textures.Makers;
with SDL.Video.Windows.Makers;
with System;
procedur... |
-- generated parser support file.
-- command line: wisitoken-bnf-generate.exe --generate LALR Ada re2c wisitoken_grammar.wy
--
-- Copyright (C) 2017 - 2019 Free Software Foundation, Inc.
--
-- Author: Stephen Leake <stephe-leake@stephe-leake.org>
--
-- This file is part of GNU Emacs.
--
-- GNU Emacs is free sof... |
package body ulog is
procedure Init is null;
procedure Serialize_Ulog (msg : in Message; len : out Natural; bytes : out HIL.Byte_Array) is null;
procedure Format (msg : in Message; bytes : out HIL.Byte_Array) is null;
procedure Get_Header_Ulog (bytes : in out HIL.Byte_Array;
le... |
with Ada.Text_IO;
package body Approximation is
package RIO is new Ada.Text_IO.Float_IO(Real);
-- create an approximation
function Approx(Value: Real; Sigma: Real) return Number is
begin
return (Value, Sigma);
end Approx;
-- unary operations and conversion Real to Number
function "+"(X:... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ memory manager for ada ported from c++ skill --
-- |___/_|\_\_|_|____| by: Timm Felden ... |
with Ada.Integer_Text_IO, Generic_Perm;
procedure Topswaps is
function Topswaps(Size: Positive) return Natural is
package Perms is new Generic_Perm(Size);
P: Perms.Permutation;
Done: Boolean;
Max: Natural;
function Swapper_Calls(P: Perms.Permutation) return Natural is
Q: Perms.Perm... |
with String_Sets; use String_Sets;
with String_Vectors; use String_Vectors;
package String_Sets_Utils is
function From_Vector (V : Vector) return Set;
function To_String (S : Set) return String;
end String_Sets_Utils;
|
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.TPI is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype TPI_ACPR_PRESCALER_Field is HAL.UInt1... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with trafficlightswitcher;
with HWIF; use HWIF;
with HWIF_Types; use HWIF_Types;
procedure EmergencyVehicleOverride (dir : in Direction) is
begin
for DirectionElement in Direction'Range loop --Itterate through Directions
if Traffic_Light(DirectionElement) /= Traffic_Light(dir) and
Traffic_Light... |
with Ada.Text_IO;
with System.Storage_Elements;
with GC.Pools;
procedure try_gc is
type Integer_Access is access Integer;
for Integer_Access'Storage_Pool use GC.Pools.Pool;
begin
loop
for I in 1 .. 1000 loop
declare
Gomi : constant Integer_Access := new Integer'(100);
begin
Gomi.all := 200;
end;
... |
with Arduino_Nano_33_Ble_Sense.IOs;
with Ada.Real_Time; use Ada.Real_Time;
procedure Main is
Time_Now : Ada.Real_Time.Time := Ada.Real_Time.Clock;
Rotate_Time : Ada.Real_Time.Time := Ada.Real_Time.Clock;
Pin_Id_PWM : Arduino_Nano_33_Ble_Sense.IOs.Pin_Id := 30;
High_Time : Integer := 2_000;
begin
loop
... |
with Utilities.Hybrid_Files;
with Utilities.Option_Lists;
use Utilities;
use Utilities.Option_Lists;
--****P* Data_Streams/Text
-- DESCRIPTION
-- This package provides a concrete implementation of interfaces
-- Data_Source and Data_Destination that do I/O in text format. Although
-- not very efficient on the sp... |
with Ada.Finalization;
use Ada;
--
-- This package provides functions that implement "discrete time finite
-- memory filters" in a general setup.
--
-- According to the model used in this package, the filter processes
-- samples of type Sample_Type and it is parameterized by coefficients
-- of type Coefficient_Type. ... |
pragma Warnings (Off);
pragma Style_Checks (Off);
package body GLOBE_3D.Culler is
procedure Viewer_is (Self : in out Culler'Class; Now : p_Window)
is
begin
self.Viewer := Now.all'Access;
end;
function Viewer (Self : in Culler'Class) return p_Window
is
begin
return self.Viewe... |
with Ada.Finalization; use Ada.Finalization;
package Controlled5_Pkg is
type Root is tagged private;
type Inner is new Ada.Finalization.Controlled with null record;
type T_Root_Class is access all Root'Class;
function Dummy (I : Integer) return Root'Class;
private
type Root is tagged record
... |
with Ada.Containers.Vectors;
with Ada.Numerics.Discrete_Random;
with Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
procedure Insertion_Sort is
------------------------------
-- Constant, types, package --
------------------------------
ARRAY_SIZE : constant Natural := ... |
-----------------------------------------------------------------------
-- util-beans-objects-time -- Helper conversion for Ada Calendar Time
-- Copyright (C) 2010, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-... |
float:
euclidean:
adb-async:
docker-tag: ann-benchmarks-adb-async
module: ann_benchmarks.algorithms.adb
constructor: AnalyticDBAsync
base-args: ["@dataset"]
run-groups:
base:
args: [["gp-bp19e1yl22d85gqgxo-master.gpdbmaster.rds.aliyuncs.com"], [1, 2, 3]]
q... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- awa-jobs -- AWA Jobs
-- Copyright (C) 2012, 2015, 2018, 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... |
package body Termbox is
function Init return Return_Value is
termbox_rv: Interfaces.C.int;
begin
termbox_rv := tb_init;
return Return_Value(termbox_rv);
end Init;
procedure Shutdown is
begin
tb_shutdown;
end Shutdown;
function Width return Integer is
begin
... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
------------------------------------------------------------------------------
-- WebDriver is a remote control interface that enable... |
with Ada.Unchecked_Deallocation;
package body pilas is
type Component is record
Cim : Tipus_Element;
Resta : Pila;
end record;
procedure Allibera_Memoria is
new Ada.Unchecked_Deallocation
(Object => Component,
Name => Pila);
procedure Pila_Buida
(P : out Pila) is
b... |
with GMP.Root_F;
generic
Precision : in GMP.Precision := Default_Precision;
package GMP.Generic_F is
pragma Preelaborate;
type MP_Float is new Root_F.MP_Float (Precision);
-- conversions
function To_MP_Float (X : Long_Float) return MP_Float;
-- function To_Long_Float (X : MP_Float) return Long_Float;
-- thi... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Strings.Maps.Constants;
-- NIGET TOM PEIP2-B2
-- IMPORTANT !
-- Si vous utilisez GNAT ou une vieille version d'Ada pas aux normes,
-- décommentez la ligne ci-dessous e... |
with AUnit.Test_Fixtures;
with AUnit.Test_Suites;
package HMAC_SHA1_Streams_Tests is
function Suite return AUnit.Test_Suites.Access_Test_Suite;
private
type Fixture is new AUnit.Test_Fixtures.Test_Fixture with null record;
procedure HMAC_SHA1_RFC2202_Test (Object : in out Fixture);
end HMAC_SHA1_Streams_Test... |
with Interfaces.C;
with GDNative.Thin;
with GDNative.Context;
package body GDNative.Console is
package IC renames Interfaces.C;
---------
-- Put --
---------
procedure Put (Item : in Wide_String) is
C_Item : IC.wchar_array := IC.To_C (Item);
Godot_Item : aliased Thin.godot_string;
begin
... |
-----------------------------------------------------------------------
-- ado-connections-postgresql -- Postgresql Database connections
-- Copyright (C) 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you... |
with AUnit.Assertions; use AUnit.Assertions;
with Ada.Text_IO;
with Ada.Containers; use Ada.Containers;
with Ada.Numerics.Float_Random;
with NeuralNet;
with MathUtils;
use MathUtils.Float_Vec;
package body NeuralNetTests is
procedure Register_Tests (T: in out TestCase) is
use AUnit.Test_Cases.Registration;... |
-- This package contains the records of messages received from the
-- server in a convenient format.
with Ada.Strings.Unbounded;
package Irc.Message is
package SU renames Ada.Strings.Unbounded;
use type SU.Unbounded_String;
-- Available automatically from Irc.Message.Message when received
-- message... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- ----------------------------------------------------------------- --
-- AdaSDL_image --
-- Binding to SDL image lib --
-- Copyright (C) 2001 A.M.F.Vargas --
-- Antonio M. F. ... |
with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Parser; use Parser;
package body X86Writer is
-- The main X86 assembly function
procedure assemble(instr_list : Instr_Vector.Vector; writer : Stream_Access) is
-- Our types
type Byte is mod 2 *... |
pragma License (Unrestricted);
-- Ada 2012
with Ada.Characters.Conversions;
with Ada.Strings.Generic_Hash_Case_Insensitive;
function Ada.Strings.Wide_Hash_Case_Insensitive is
new Generic_Hash_Case_Insensitive (
Wide_Character,
Wide_String,
Characters.Conversions.Get);
-- pragma Pure (Ada.Strings.... |
package body Input_0 is
function My_Function return Boolean is
begin
return True;
end My_Function;
procedure My_Procedure is
begin
null;
end My_Procedure;
task body My_Task is
begin
accept GET (X: in My_T) do
null;
end GET;
end My_Task;
end Input_0;
|
pragma Warnings (Off);
pragma Style_Checks (Off);
with GLOBE_3D;
package Planet is
procedure Create (
object : in out GLOBE_3D.p_Object_3D;
scale : GLOBE_3D.Real;
centre : GLOBE_3D.Point_3D;
mercator : GLOBE_3D.Image_id;
parts : Positive := 30
... |
-- Change log:
-- GdM : 26-Jul-2011 : using System.Address_To_Access_Conversions
-- GdM : 28-Nov-2005 : replaced Unrestricted_Access with Address
-- since Unrestricted_Access is GNAT-Specific
-- GdM : 27-Jan-2004 : Added Material_Float_vector and Material ( .. .) for it
-- GdM : 11-Apr-20... |
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
-------------------------------------------... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- -----------------------------------------------------------------------------
-- Copyright (C) 2003-2019 Stichting Mapcode Foundation (http://www.mapcode.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... |
-- Module : string_scanner_.ada
-- Component of : common_library
-- Version : 1.2
-- Date : 11/21/86 16:37:08
-- SCCS File : disk21~/rschm/hasee/sccs/common_library/sccs/sxstring_scanner_.ada
with String_Pkg; use String_Pkg;
package String_Scanner is
--| Functions for scanning tokens from s... |
-- C46054A.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 --
-- --
-- ... |
-----------------------------------------------------------------------
-- openapi-server-applications -- REST application
-- Copyright (C) 2017, 2019, 2022 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.Finalization;
with Ada.Streams;
with Google.Protobuf.Any;
with Google.Protobuf.Duration;
with Google.Protobuf.Field_Mask;
with Google.Protobuf.Struct;
with Google.Protobuf.Timestamp;
with Google.Protobuf.Wrappers;
with Interfaces;
with League.Stream_Element_Vectors;
with League.String_Vectors;
with League.Stri... |
------------------------------------------------------------------------------
-- Copyright (c) 2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with AUnit;
with AUnit.Simple_Test_Cases;
with kv.avm.Symbol_Tables;
package kv.avm.Vole_Tests is
type Base_Test_Case is abstract new AUnit.Simple_Test_Cases.Test_Case with
record
Symbols : aliased kv.avm.Symbol_Tables.Symbol_Table;
end record;
procedure Set_Up (T : in out Base_Test_Case);... |
with Ada.Text_IO;
-- List of objects used
with Root_Object.MicrowaveOven.MO_O;
with Root_Object;
-- package body MicrowaveOven_defineoven_service is
procedure MicrowaveOven_defineoven is
a : Integer;
begin
-- a := Root_Object.MicrowaveOven.MO_O.remaining_cooking_time;
a := 1;
Ada.Tex... |
-----------------------------------------------------------------------
-- asf-events -- ASF Events
-- Copyright (C) 2010 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 Ada.Text_IO; use Ada.Text_IO;
procedure Test is null: integer; begin Put('a'); end;
|
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with System.Storage_Pools.Subpools;
with Program.Compilation_Units;
with Program.Compilations;
with Program.Contexts;
with Program.Lexical_Elements;
with P... |
package body problem_19 is
function Solution_1 return Integer is
Start_Year : constant Integer := 1901;
End_Year : constant Integer := 2000;
Sundays : Integer := 0;
Offset : constant array (Natural range 0 .. 11) of Natural := (
0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4
... |
with Ada.Text_IO;
procedure Hello_World is
begin
Ada.Text_IO.Put_Line ("Hello ADA");
Ada.Text_IO.Put_Line("This is the worlds safest hello world program");
end Hello_World;
|
-------------------------------------------------------------------------------
-- Copyright (c) 2019, Daniel King
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
-- * Redistributions... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
package body GotoTest is
procedure P(x,y:Integer) is
begin
if x = y then
goto TheEnd;
end if;
<<TheEnd>> null;
end P;
end GotoTest;
|
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.Strings;
with League.String_Vectors;
package WebDriver.Elements is
type Element is limited interface;
type Elemen... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Serialization;
package Tabula.Calendar.Time_IO is
procedure IO (
Serializer : not null access Serialization.Serializer;
Name : in String;
Value : in out Ada.Calendar.Time);
procedure IO (
Serializer : not null access Serialization.Serializer;
Name : in... |
package body BBqueue.Buffers
with SPARK_Mode
is
function Get_Addr (This : Buffer;
Offset : Buffer_Offset)
return System.Address
with Pre => Offset in 0 .. This.Buf'Last - 1;
--------------
-- Get_Addr --
--------------
function Get_Addr (This : Buffe... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- babel-base -- Database for files
-- 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 this file except in co... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
--|---------------------------------------------------------------------------
--|
--| Unit Name: Workload
--|
--| Unit Type: Package Body
--|
--| Description:
--| See the description in the package specification and the description
--| of the Small_Whetstone procedure below.
--|
--| The Small_Whetstone procedu... |
--
-- Copyright (C) 2006-2013, AdaCore
--
with Ada.Unchecked_Conversion;
package body Memory_Copy is
subtype mem is char_array (size_t);
type memptr is access all mem;
function to_memptr is new Ada.Unchecked_Conversion (Address, memptr);
------------
-- memcpy --
------------
procedure memcpy... |
with
GL_Types,
Interfaces.C;
package GL
--
-- Provides types and constants common to all openGL profiles.
--
is
pragma Pure;
use Interfaces;
---------
-- Types
--
-- GLvoid
--
subtype GLvoid is GL_Types.GLvoid;
type GLvoid_array is array (C.size_t range <>) of aliased... |
-----------------------------------------------------------------------
-- security-oauth-file_registry -- File Based Application and Realm
-- Copyright (C) 2017, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
--===========================================================================
--
-- This package is the interface to the SH1107 transfomer
-- The transformer transforms the logical coordinates in the given
-- orientation the corresponding indices and bits.
--
--=================================================... |
with tracker.presentation;
procedure tracker.exec is
app : tracker.presentation.instance;
begin
app.Run;
end tracker.exec;
|
-- Suppose an arithmetic expression is given as a binary tree. Each leaf is an integer and each internal node is
-- one of '+', '−', '∗', or '/'.
--
-- Given the root to such a tree, write a function to evaluate it.
--
-- For example, given the following tree:
--
-- *
-- / \
-- + ... |
-----------------------------------------------------------------------
-- package body e_Jacobi_Eigen, extended precision Jacobi eigen-decomposition
-- 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 gra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.