content stringlengths 23 1.05M |
|---|
-- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_SVD.MRT is
pragma Preelaborate;
... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with League.JSON.Documents;
with League.JSON.Objects;
with League.JSON.Values;
with Jupyter.Kernels;
procedure Magics.Output
(IO_Pub : not null Jupyt... |
-- { dg-do run }
with Wide_Boolean_Pkg; use Wide_Boolean_Pkg;
procedure Wide_Boolean is
R : TREC;
LB_TEST_BOOL : TBOOL;
begin
R.B := FALSE;
LB_TEST_BOOL := FALSE;
Modify (R.H, R.B);
if (R.B /= TRUE) then
raise Program_Error;
end if;
Modify (R.H, LB_TEST_BOOL);
R.B := LB_TEST_BOOL;... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
-- Trivial implementation of library declarations
with Program.Library_Unit_Bodies;
with Program.Library_Unit_Declarations;
with Prog... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
procedure Comb_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 <>;
with function "+" (Left : Index_Type; Right : ... |
------------------------------------------------------------------------------
-- Copyright (c) 2014-2015, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
pragma Ada_2012;
package body TLSF.Proof.Relation is
function Relate(Container : R;
From, To : Element_Type)
return R
is
Len : constant Count_Type := Length(Container);
A : constant Arrow := (From, To);
begin
if Contains(Container, A) then
retu... |
pragma License (Unrestricted);
-- extended unit
package Ada.Float is
-- Ada.Decimal-like (and more) utilities for float types.
pragma Pure;
generic
type Float_Type is digits <>;
function Infinity return Float_Type;
pragma Inline (Infinity);
generic
type Float_Type is digits <>;
func... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with AUnit; use AUnit;
with AUnit.Test_Cases; use AUnit.Test_Cases;
package Yaml.Lexer.Tokenization_Test is
type TC is new Test_Cases.Test_Case with record
Pool : Text.Pool.Reference;
end... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Finalization;
package Adabots_Lua_Dispatcher is
type Lua_Dispatcher is new Ada.Finalization.Limited_Controlled with private;
function Create_Lua_Dispatcher return Lua_Dispatcher;
function Create_Lua_Dispatcher (Port : Integer) return Lua_Dispat... |
-- 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... |
package Types.Strings is
Exponent_Digits : Natural := 2;
Digits_After_Decimal : Natural := 3;
function To_String
(Value : Miles_T)
return String;
function To_String
(Value : Hours_T)
return String;
-- Create functions to convert your types to strings
end Types.Strings;
|
with Ada.Exceptions;
with GNAT.OS_Lib;
with Ada.Text_IO; use Ada.Text_IO;
with Sf.Window.VideoMode; use Sf.Window.VideoMode;
with Sf.Graphics; use Sf.Graphics;
with Sf.Graphics.Sprite; use Sf.Graphics.Sprite;
with Sf.Graphics.Texture; use Sf.Graphics.Texture;
with Sf.Graphics.RenderTexture; use Sf.Graphics.RenderTextur... |
with Ada.Text_IO; use Ada.Text_IO;
with Registre;
procedure Test_Registre is
package Registre_Test is new Registre (100, Integer);
use Registre_Test;
procedure Test_Initialiser is
Registre : T_Registre;
begin
Initialiser (Registre);
pragma Assert (Est_Vide (Registre));
Detruire (R... |
-----------------------------------------------------------------------
-- upnp-ssdp -- UPnP SSDP operations
-- Copyright (C) 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in c... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
generic
with function Decode (File_Name : Posix.C_String) return String is <>;
procedure Hide.Decode_generic;
|
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
private package CUPS.wchar_h is
-- Copyright (C) 1995-2016 Free Software Foundation, Inc.
-- This file is part of the GNU C Library.
-- The GNU C Library is free software; you can redistribute it and/or
-- modify it under ... |
pragma Ada_2012;
package Base64 with
Pure,
Preelaborate
is
end Base64;
|
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
separate (Program.Scanners)
procedure On_Accept
(Self : not null access Program.Scanned_Rule_Handlers.Handler'Class;
Scanner :... |
with STM32GD.GPIO.Pin;
generic
with package Input is new STM32GD.GPIO.Pin (<>);
with package Output is new STM32GD.GPIO.Pin (<>);
package Peripherals is
procedure Init;
procedure Run;
end Peripherals;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- --
-- ... |
pragma Warnings (Off);
pragma Ada_95;
pragma Restrictions (No_Exception_Propagation);
with System;
with System.Parameters;
with System.Secondary_Stack;
package ada_main is
GNAT_Version : constant String :=
"GNAT Version: Community 2018 (20180524-73)" & ASCII.NUL;
pragma Export (C, GNAT_Versi... |
-- -*- Mode: Ada -*-
-- Filename : memory.adb
-- Description : Memory routines.
-- Author : Luke A. Guest
-- Created On : Thur Nov 17 15:07:32 2016
-- Licence : See LICENCE in the root directory.
with Interfaces;
-- with System.Address_To_Access_Conver... |
-- { dg-do compile }
-- { dg-options "-O -gnatws" }
package body Array15 is
type Arr is array (Natural range <>) of Integer;
Table : Arr (1 .. 4);
N : Natural := 1;
procedure Zero is
begin
N := 0;
end;
function F (I : Integer) return Integer is
A1 : Arr := (1 => I);
A2 : Arr... |
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Text_IO; use Ada.Text_IO;
procedure String_Multiplication is
begin
Put_Line (5 * "ha");
end String_Multiplication;
|
------------------------------------------------------------------------------
-- --
-- SPARK LIBRARY COMPONENTS --
-- --
-- ... |
with Ada.Characters.Handling;
with GNATCOLL.VFS_Utils;
with Langkit_Support.Slocs;
with Langkit_Support.Text;
package body Extraction.Node_Edge_Types is
use type LALCO.Ada_Node_Kind_Type;
use type VFS.Filesystem_String;
use type VFS.Virtual_File;
Decl_Name_Prefix : constant String := "decl:";
Dir_Name... |
with Ada.Text_IO; use Ada.Text_IO;
with My_Class;
procedure Test is
T : My_Class.Object;
begin
T.Write;
end Test;
|
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.AC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Control A
type AC_CTRLA_Register is rec... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Errors;
separate (GL)
procedure Raise_Exception_On_OpenGL_Error is
begin
case Errors.Error_Flag is
when Errors.Invalid_Operation => raise Errors.Invalid_Operation_Error;
when Err... |
with mylog; use mylog;
package LogQueue with SPARK_Mode is
protected type queue is
procedure Put (msg : mylog.logmsg) with
Pre => msg.typ in mylog.msgtype'Range;
-- SPARK does not know that
entry Get (msg : out mylog.logmsg);
private
buf : mylog.logmsg; -- unconstrained var... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- { dg-do run }
-- { dg-options "-gnato -O" }
procedure Overflow_Fixed is
type Unsigned_8_Bit is mod 2**8;
procedure Fixed_To_Eight (Value : Duration) is
Item : Unsigned_8_Bit;
begin
Item := Unsigned_8_Bit(Value);
raise Program_Error;
exception
when Constraint_Error => null; -- expected case... |
with
freetype_c.Pointers;
package freetype_c.FT_GlyphSlot
is
subtype Item is freetype_c.Pointers.FT_GlyphSlotRec_Pointer;
type Item_array is array (C.Size_t range <>) of aliased freetype_c.FT_GlyphSlot.Item;
type Pointer is access all freetype_c.FT_GlyphSlot.Item;
type Pointer_array ... |
with STM32_SVD.PWR; use STM32_SVD.PWR;
with Ada.Real_Time; use Ada.Real_Time;
package body STM32.SubGhzRF is
-- procedure SubGhzRF_RegRead (Addr : UInt16; Value : out UInt8)
-- is
-- begin
-- null;
-- end SubGhzRF_RegRead;
Pa_Power_Choice : PaSel_Choice := LP_PA;
GX : UInt8;
procedure NSS_Asser... |
--Constants
package Constants is
-- constants for use by other packages
end Constants;
|
-- 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/LICENSE-2.0
--
-- Unless required by applic... |
with Ada.Text_IO; use Ada.Text_IO;
with Test_Directories; use Test_Directories;
with File_Block_Drivers; use File_Block_Drivers;
with File_IO; use File_IO;
with Filesystem.FAT; use Filesystem.FAT;
with HAL.Filesystem;
with GNAT.MD5; use GNAT.MD5;
with Ada.Streams;
with Compare_Files;... |
with Interfaces.C;
package ZMQ_Constants is
-- Errors
ENOTSUP : constant Interfaces.C.int := 45;
EPROTONOSUPPORT : constant Interfaces.C.int := 43;
ENOBUFS : constant Interfaces.C.int := 55;
ENETDOWN : constant Interfaces.C.int := 50;
EADDRINUSE : constant Interfaces.C.int := 48;
EADDRNOTAVAIL :... |
package body Opt48_Pkg1 is
function G return Rec is
begin
return (32, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
end G;
X : Rec := F;
Y : Rec := G;
Z : Rec := F;
function Get_Z return Rec is
begin
return Z;
end;
end Opt48_Pkg1;
|
with Ada.Text_IO; use Ada.Text_IO;
package body xample1 is
procedure SayWelcome (x : in Integer) is
begin
for i in 1 .. x loop
Put ("We say welcome to you!!!");
-- put(i);
Put_Line (" Number " & Integer'Image (i));
-- new_line;
end loop;
end SayWelcome;
end xample1;
|
With Ada.Text_IO; Use Ada.Text_IO;
Procedure BubbleSort is
numeros: array(1..15) of Integer;
I : Integer;
buffer: Integer;
-- Leitura String
function Get_String return String is
Line : String (1 .. 1_000);
Last : Natural;
begin
Get_Line (Line, Last);
return Line (1 .. Last);
end Get_String;
-- Leitur... |
with Actors, Game_Maps, GUIs;
with Libtcod, Libtcod.Console, Libtcod.Maps, Libtcod.Input;
use Actors, Game_Maps, Libtcod;
package Engines is
type Game_Status is
(Status_Idle, Status_New_Turn, Status_Victory, Status_Defeat);
subtype Endgame_Status is Game_Status range Status_Victory .. Status_Defeat;
s... |
with
collada.Document;
procedure launch_parse_Box
--
-- Loads an xml file, parses it into a collada document.
--
is
the_Asset : collada.Document.item := collada.document.to_Document ("./box.dae")
with unreferenced;
begin
null;
end launch_parse_Box;
|
with Ada.Numerics.Elementary_Functions;
use Ada.Numerics.Elementary_Functions;
with Ada.Numerics.Big_Numbers.Big_Integers;
use Ada.Numerics.Big_Numbers.Big_Integers;
package body Primes is
function Is_Prime (N : Natural) return Boolean is
Limit : constant Natural := Natural (Sqrt (Float (N)));
begin
... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
package BSSNBase.ADM_BSSN is
function adm_gab (gBar : MetricPointArray;
phi : Real)
return MetricPointArray;
function adm_Kab (ABar : ExtcurvPointArray;
gBar : MetricPointArray;
phi : Real;
t... |
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- This software was developed by John Self of the Arcadia project
-- at the University of California, Irvine.
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the above copyright notice and t... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with System;
with GDNative.Objects; use GDNative.Objects;
package Adventure is
type Player is new Node with record
Health : Integer;
end record;
for Player'External_Tag use "Player";
overriding function Initialize return Player is (Player'(Health => 100));
overriding procedure Process (Self : in out Pla... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Vectors;
with Program.Symbols.Tables;
package Program.Symbol_Lists is
pragma Preelaborate;
typ... |
-- { dg-do run }
procedure interface2 is
package Types is
type Iface is synchronized interface;
type Any_Iface is access all Iface'Class;
--
protected type T_PO (S : Integer) is new Iface with end;
task type T_Task (R : Any_Iface);
--
Obj_1 : aliased T_PO (0);
Obj_2 : T_Task (Obj_1'... |
pragma License (Unrestricted);
-- extended unit
package Ada.References.Wide_Wide_Strings is
-- Returning access values to sliced Wide_Wide_String from functions.
pragma Pure;
type Constant_Reference_Type (
Element : not null access constant Wide_Wide_String) is null record
with Implicit_Derefere... |
-- { dg-do compile }
-- { dg-options "-fdump-tree-gimple" }
with Atomic6_Pkg; use Atomic6_Pkg;
procedure Atomic6_6 is
Temp : Integer;
begin
Counter(1) := Counter(2);
Timer(1) := Timer(2);
Counter(1) := Int(Timer(1));
Timer(1) := Integer(Counter(1));
Temp := Integer(Counter(1));
Counter(1) := Int(Tem... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Debug_Trace_Class.Stub.Create;
function Apsepp.Debug_Trace_Class.Output.Create return Debug_Trace_Output is
begin
return (Stub.Create with null record);
end Apsepp.Debug_Trace_Class.Output.Creat... |
package body I2C_Interface with SPARK_Mode
--,Refined_State => (State => (G_Data))
is
G_Data : Data_Type(1 .. 2);
procedure configure(Port : I2C_Type; Config : Configuration_Type) is
begin
-- Port.pin = 0;
null;
end configure;
procedure write (Port : I2C_Type; Address : Address_Ty... |
package Complex is
type Complex is private;
i, zero : constant Complex;
-- arithmetic plus operator on complex values
function "+" ( lhs, -- left hand side
rhs : in Complex -- right hand side
) return Complex; -- returns a Compelx
-- extracts imagi... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Streams; use Ada.Streams;
with PBKDF2_Generic;
with HMAC; use HMAC;
with SHA1;
with SHA2;
package PBKDF2 with
Pure,
Preelaborate
is
package PBKDF2_HMAC_SHA_1_Package is new PBKDF2_Generic
(Element => Stream_Element, Index => Stream_Element_Offset,
Element_Array => Stream_Element_... |
-----------------------------------------------------------------------
-- GtkAda - Ada95 binding for the Gimp Toolkit --
-- --
-- Copyright (C) 1998-1999 --
-- Emmanuel Briot, Joel B... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ Iterators for SKilL API --
-- |___/_|\_\_|_|____| by: Timm Felden ... |
pragma License (Unrestricted);
-- implementation unit specialized for Windows
package System.Native_Credentials is
pragma Preelaborate;
function User_Name return String;
end System.Native_Credentials;
|
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Text_Io; use Ada.Text_Io;
procedure Parse_Commas is
Source_String : String := "Hello,How,Are,You,Today";
Index_List : array(Source_String'Range) of Natural;
Next_Index : Natural := Index_List'First;
begin
Index_List(Next_Index) := Source_String'First;... |
------------------------------------------------------------------------------
-- --
-- Simple HTTP --
-- --
-- ... |
package body Regression_Library is
function LibraryFun (Input : Boolean) return Boolean is
begin
return False;
end;
end Regression_Library;
|
-- { dg-excess-errors "no code generated" }
generic
type Element_Type is private;
type Index_Type is (<>);
type Constrained_Array_Type is array (Index_Type) of Element_Type;
package Loop_Optimization1_Pkg is
procedure Proc (CA : in out Constrained_Array_Type);
end Loop_Optimization1_Pkg;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with CSV;
with Config.software;
with Simulation;
with Ada.Text_IO; use Ada.Text_IO;
with Units; use Units;
package body ms5611.driver with
SPARK_Mode => Off,
Refined_State => (State => ( cur_temp, cur_press), Coefficients => null) is
G_CELSIUS_0 : constant := 273.15;
cur_temp : Temperature_Type := 300.0... |
-- same as simple_select_accept, with two select cases decorated with
-- when conditions in the task body.
procedure Simple_Select_Accept_Guarded(Ch : Character) is
task Callee is
entry Do_This;
entry Do_That;
entry Do_Nothing;
end Callee;
task body Callee is
begin
delay 5.0;
select ... |
with Ada.Unchecked_Deallocation;
with Ada.Streams;
with kv.avm.Control;
package kv.avm.Transactions is
type Obligatory_Parameter_Type is null record;
-- Responsibility: represent an abstract inter-VM transaction
--
type Transactions_Interface is interface;
type Transactions_Access is access all Tran... |
--Ada Standard Libraries
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
--TJa Libraries
with TJa.Window.Text; use TJa.Window.Text;
with TJa.Keyboard; ... |
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 abstest is
type stringptr is access all char_array;
procedure PInt(i : in Integer) is
begin
String'Write (Text_Streams.Str... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with Ada.Strings;
with Interfaces.C;
with System;
package dl_loader is
pragma Assertion_Policy (Pre => Check,
Post => Check,
Type_Invariant => Check);
type Handle is limited private;
function Open(path: in String; h: in out Handle) return Boolean;
f... |
with GMP.Z;
with GMP.Q;
with GMP.F;
with GMP.FR;
with GMP.C;
with Ada.Text_IO;
procedure test_image is
package Default_F is new GMP.F;
package Default_FR is new GMP.FR;
package Default_C is new GMP.C (Default_FR, Default_FR);
use GMP.Z;
use GMP.Q;
use Default_F;
use Default_FR;
use Default_C;
Z : MP_Integer;
... |
with Interfaces.C, Interfaces.C.Extensions, Ada.Unchecked_Conversion;
package body Libtcod.Maps.Lines is
use bresenham_h, Interfaces.C, Interfaces.C.Extensions;
type Int_Ptr is access all int;
type X_Pos_Ptr is access all X_Pos;
type Y_Pos_Ptr is access all Y_Pos;
function X_Ptr_To_Int_Ptr is new... |
separate (Formatter)
function Get (Format : in String;
Value : in Values ) return String is
-- ++
--
-- FUNCTIONAL DESCRIPTION:
--
-- Returns a formatted string given a FORMAT string and a
-- variable number of data values.
--
-- FORMAL P... |
package Stack_Usage1_Pkg is
function Ident_Int (X : Integer) return Integer;
type R is
record
C0, C1, C2, C3, C4, C5, C6, C7, C8, C9 : Integer;
end record;
procedure My_Proc (X : R);
end Stack_Usage1_Pkg;
|
with Ada.Numerics.Generic_Elementary_Functions;
package body Pendulums is
package Math is new Ada.Numerics.Generic_Elementary_Functions (Float_Type);
function New_Pendulum (Length : Float_Type;
Theta0 : Float_Type) return Pendulum is
Result : Pendulum;
begin
Result.Length... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package SDL_blendmode_h is
-- Simple DirectMedia Layer
-- Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the auth... |
pragma License (Unrestricted);
with System.File_Control_Block;
package System.File_IO is
pragma Preelaborate;
procedure Check_File_Open (File : File_Control_Block.AFCB_Ptr);
end System.File_IO;
|
package Opt59_Pkg is
type Boolean_Vector is array (1 .. 8) of Boolean;
function Get_BV1 return Boolean_Vector;
function Get_BV2 return Boolean_Vector;
procedure Test (B : Boolean);
end Opt59_Pkg;
|
package body COBS.Stream.Decoder is
subtype Dispatch is Instance'Class;
--------------
-- Do_Flush --
--------------
procedure Do_Flush (This : in out Instance) is
begin
if This.Out_Index > This.Buffer'First then
Dispatch (This).Flush
(This.Buffer (This.Buffer'First .. Thi... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018-2021, AdaCore --
-- --
-- ... |
with Ada.Text_IO;
procedure Vignere_Cryptanalysis is
subtype Letter is Character range 'A' .. 'Z';
function "+"(X, Y: Letter) return Letter is
begin
return Character'Val( ( (Character'Pos(X)-Character'Pos('A'))
+ (Character'Pos(Y)-Character'Pos('A')) ) mod 26
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with System;
package Ada.Exceptions is
pragma Preelaborate (Exceptions);
type Exception_Id is private;
pragma Preelaborable_Initialization (Exception_Id);
Null_Id : constant Exception_Id;
procedure Raise_Exception
(E : Exception_Id;
Message : String := "");
pragma No_Return (Raise... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Internet Protocol Suite Package --
-- --
-- -... |
package body Tkmrpc.Servers.Ees
is
--------------------------------
-- charon callback signatures --
--------------------------------
procedure Charon_Esa_Acquire
(Result : out Results.Result_Type;
Sp_Id : Types.Sp_Id_Type);
pragma Import (C, Charon_Esa_Acquire, "charon_esa_acquire");
... |
with
Ada.Iterator_Interfaces;
private with
System.Address_To_Access_Conversions;
package FLTK.Widgets.Groups is
type Group is new Widget with private
with Default_Iterator => Iterate,
Iterator_Element => Widget_Reference,
Variable_Indexing => Child;
type Gro... |
package GESTE_Fonts.FreeSerifItalic8pt7b is
Font : constant Bitmap_Font_Ref;
private
FreeSerifItalic8pt7bBitmaps : aliased constant Font_Bitmap := (
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#20#, 16#01#, 16#80#, 16#04#, 16#00#, 16#10#, 16#00#, 16#40#, 16#02#,
16#00#, 16#08... |
with Ada.Text_IO;
use Ada.Text_IO;
procedure UglyForm is
begin
Put("Good form ");
Put("can aid in ");
Put ("understanding a program,");
New_Line;
Put("and bad form ");
Put("can make a program ");
Put("unreadable.");
New_Line;
end UglyForm;
-- Result of exec... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
-- The Village of Vampire by YT, このソースコードはNYSLです
procedure Vampire.Villages.Save (
Name : in String;
Village : in out Villages.Village_Type);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.