content stringlengths 23 1.05M |
|---|
private
with
eGL;
package openGL.Display
--
-- Models an openGL display.
--
is
type Item is tagged private;
function Default return Item;
private
type Item is tagged
record
Thin : eGL.EGLDisplay;
Version_major,
Version_minor : aliased eGL.EGLint;
... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
Put_Line ("Hello, World!");
end Hello; |
-------------------------------------------------------------------------------
-- LSE -- L-System Editor
-- Author: Heziode
--
-- License:
-- MIT License
--
-- Copyright (c) 2018 Quentin Dauprat (Heziode) <Heziode@protonmail.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- c... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Check_Positive2 is
N : Integer;
begin
Put ("Enter an integer value: "); -- Put a String
Get (N); -- Reads in an integer value
Put (N); -- Put an Integer
declare
S : String :=
(if N > 0 then " is... |
with HAL; use HAL;
with HAL.Time;
package PyGamer.Time is
subtype Time_Ms is UInt64;
function Clock return Time_Ms;
procedure Delay_Ms (Milliseconds : UInt64);
procedure Delay_Until (Wakeup_Time : Time_Ms);
procedure Sleep (Milliseconds : UInt64) renames Delay_Ms;
function Tick_Period retu... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Ada.Integer_Text_IO;
with Ada.Text_IO;
package body Problem_17 is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
procedure Solve is
type Length_Array is Array(Positive range <>) of Positive;
first_twenty_length : constant Length_Array := (3, 3, 5, 4, 4, 3, 5, 5, 4, 3... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
-- To enable ncurses support, use sed to change Options_Dialog_Console => Options_Dialog
-- Also change Display.Console => Display.Curses
with Unix;
with Signals;
with Replicant;
with Ada.Exceptions;
with Ada.Di... |
package body Node is
procedure SleepForSomeTime (maxSleep: Natural) is
gen: RAF.Generator;
fraction: Float;
begin
RAF.Reset(gen);
fraction := 1.0 / Float(maxSleep);
delay Duration(fraction * RAF.Random(gen));
end SleepForSomeTime;
task body NodeTask is
targe... |
-- { dg-do run }
-- { dg-options "-O2 -fno-inline" }
procedure Opt2 is
function Get return String is
begin
return "[]";
end Get;
Message : String := Get;
F, L : Integer;
begin
for J in Message'Range loop
if Message (J) = '[' then
F := J;
elsif Message (J) = ']' then
... |
with Ada.Containers; use Ada.Containers;
with Ada.Directories; use Ada.Directories;
with Blueprint; use Blueprint;
with AAA.Strings; use AAA.Strings;
with Ada.Text_IO;
with Ada.Command_Line;
with Templates_Parser;
with CLIC.TTY;
with Filesystem;
with Commands;
package body Commands.Generate is
package IO... |
with datos; use datos;
procedure actualizar (
L : in out Lista;
i : in Integer;
Cantidad : in Integer ) is
begin
end actualizar;
|
with Ada.Text_IO;
-- reuse Is_Prime from [[Primality by Trial Division]]
with Is_Prime;
procedure Mersenne is
function Is_Set (Number : Natural; Bit : Positive) return Boolean is
begin
return Number / 2 ** (Bit - 1) mod 2 = 1;
end Is_Set;
function Get_Max_Bit (Number : Natural) return Natural is
... |
-----------------------------------------------------------------------
-- html-pages -- HTML Page Components
-- Copyright (C) 2011, 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 exce... |
package FLTK.Widgets.Groups.Spinners is
type Spinner is new Group with private;
type Spinner_Reference (Data : not null access Spinner'Class) is limited null record
with Implicit_Dereference => Data;
type Spinner_Kind is (Float_Spin, Int_Spin);
package Forge is
function Create... |
with Swaps; use Swaps;
with Ada.Text_IO;
with Sorts; use Sorts;
procedure Main is
V1 : Integer := 42;
V2 : Integer := 43;
T : Integer_List := (2, 7, 1, 9, 40, -1);
begin
Display_List (T);
Sort(T);
Display_List (T);
Ada.Text_IO.Put_Line ("V1 :=" & Integer'Image (V1) &
" ... |
with Predictor_2;
with Text_IO; use Text_IO;
with Orbit_2;
procedure predictor_2_demo_2 is
type Real is digits 15;
package One_Electron_Atom is new Orbit_2 (Real);
use One_Electron_Atom;
package Orb_Integrate is new
Predictor_2 (Real, Dyn_Index, Dynamical_Variable, F, "*", "+", "-");
use Orb_... |
with Ada.Calendar.Arithmetic;
with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Strings.Unbounded;
with Ada.Strings.Unbounded.Text_IO;
with Ada.Command_Line;
procedure Discordian is
use Ada.Calendar;
use Ada.Strings.Unbounded;
use Ada.Command_Line;
package UStr_IO renames Ada.Strings.Unbounded.Text_IO;
... |
with Test1; use Test1;
package Test2 is
Str: string(Ask_Twice'range) := Ask_Twice;
end Test2;
|
-----------------------------------------------------------------------
-- html -- ASF HTML Components
-- Copyright (C) 2009, 2010, 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 file... |
-- BinToAsc.Base16
-- Binary data to ASCII codecs - Base16 codec as in RFC4648
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
with Ada.Characters.Handling;
package body BinToAsc.Base16 is
use Ada.Characters.Handling;
Reverse_Alphabet : constant Reverse_Alphabet_Lookup
:= Make_Revers... |
------------------------------------------------------------------------------
-- AGAR GUI LIBRARY --
-- A G A R . K E Y B O A R D --
-- S p e c --
----... |
with Ada.Task_Identification; use Ada.Task_Identification;
with Ada.Containers.Hashed_Sets; use Ada.Containers;
-- Author : Wenjun Yang
-- u_id : u6251843
package Vehicle_Task_Type is
task type Vehicle_Task is
entry Identify (Set_Vehicle_No : Positive; Local_Task_Id : out Task_Id);
end Vehicle_Task;
... |
-----------------------------------------------------------------------
-- applications.messages -- Application Messages
-- 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... |
package calc with SPARK_Mode is
procedure Forgetful_Assert (X, Y : out Integer);
end calc;
|
with RASCAL.ToolboxQuit; use RASCAL.ToolboxQuit;
with RASCAL.Toolbox; use RASCAL.Toolbox;
with RASCAL.OS; use RASCAL.OS;
package Controller_DataMenu is
type TEL_DataMenuOpen_Type is new Toolbox_UserEventListener(16#34#,-1,-1) with null record;
type TEL_DataEntry... |
pragma restrictions (no_secondary_stack);
pragma restrictions (no_elaboration_code);
pragma restrictions (no_finalization);
pragma restrictions (no_exception_handlers);
-- These types are not SPARK compliant
package types.unsafe
with spark_mode => off
is
type string_access is access all string;
end types.unsa... |
with Interfaces;
with Ada.Streams.Stream_IO;
use Interfaces;
use Ada.Streams.Stream_IO;
package body Bitmap is
procedure Init(im : out Image; w : Integer; h : Integer) is
begin
im.width := w;
im.height := h;
im.data := new PixelData(0 .. w*h-1);
end Init;
procedure Delete(im : in out Image) ... |
with Ada.Unchecked_Conversion;
pragma Warnings (Off);
with System.Finalization_Root;
pragma Warnings (On);
with C.gc.gc;
with C.gc.gc_typed;
package body GC.Pools is
use type System.Address;
use type System.Storage_Elements.Storage_Count;
use type C.size_t;
package Finalization is
Initialized : Boolean := Fa... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Statements;
with Program.Elements.Defining_Identifiers;
with Program.Lexical_Elements;
with Program.Element_Vectors;
with Program.Elem... |
with Lto19_Pkg2;
package Lto19_Pkg1 is
type Arr is array (1 .. Lto19_Pkg2.UB) of Integer;
type Rec is record
A : Arr;
I : Integer;
end record;
procedure Proc (R : Rec);
end Lto19_Pkg1;
|
separate (Numerics.Sparse_Matrices)
procedure Print (Mat : in Sparse_Matrix) is
use Ada.Text_IO, Sparse_Matrix_Format_IO, Int_IO, Real_IO;
begin
Put (" (");
Put (Mat.N_Row, Width => 0); Put (" x ");
Put (Mat.N_Col, Width => 0);
Put (") matrix in "); Put (Mat.Format); Put (" format.");
Ne... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with AUnit.Test_Suites;
package Regex_Test_Suite is
-- Creates the Regex library test suite:
function Test_Suite return AUnit.Test_Su... |
package FSmaker.TOML is
procedure Build_From_TOML (Path_To_TOML, Path_To_Output : String);
end FSmaker.TOML;
|
with Ada.Text_IO;
procedure Test is
My_Type : Boolean := True;
procedure Tagged_Procedure is
function Boolean_As_String return String is
(case My_Type is
when True => "True Value",
when False => "False Value");
function Another_Boolean_As_String return String is
(case M... |
with Ada.Integer_Text_IO;
procedure Sum is
N : Integer;
Sum : Integer := 1;
begin
Ada.Integer_Text_IO.Get( N );
for I in 1..N loop
Sum := Sum + I;
end loop;
Ada.Integer_Text_IO.Put( Sum );
end Sum;
|
-- Abstract:
--
-- see spec
--
-- Copyright (C) 1998, 2003, 2009, 2015, 2017 - 2019 Free Software Foundation, Inc.
--
-- SAL is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public License as published by the
-- Free Software Foundation; either version 3, or (at your op... |
-- 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... |
generic
type Element is mod <>;
type Index is range <>;
type Element_Array is array (Index range <>) of Element;
Digest_Length : Index;
Block_Length : Index;
type Hash_Context is private;
with function Hash_Initialize return Hash_Context;
with procedure Hash_Update
(Ctx : in out Hash_Cont... |
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
with Ada.Text_IO.Text_Streams;
use Ada.Text_IO.Text_Streams;
with Ada.Text_IO.Unbounded_IO;
use Ada.Text_IO.Unbounded_IO;
with Ada.Real_Time;
use Ada.Real_Time;
procedure CommsTime is
-- Parameters for the experimental run.
-- Exper... |
<ADSWorkspace Revision="1" Version="100">
<Workspace Name="">
<LibraryDefs Name="lib.defs" />
<ConfigFile Name="de_sim.cfg" />
<Library Name="ads_standard_layers" />
<Library Name="ads_schematic_layers" />
<Library Name="empro_standard_layers" />
<Library Name="ads_bu... |
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with GNATtest_Generated;
package Tk.TopLevel.Toplevel_Options_Test_Data.Toplevel_Options_Tests is
type Test_Toplevel_Options is new GNATtest_Generated.GNA... |
with Ada.Text_IO, Numerics, Numerics.Sparse_Matrices, Chebyshev;
use Ada.Text_IO, Numerics, Numerics.Sparse_Matrices, Chebyshev;
procedure Forward_AD.Test is
use Real_Functions;
function Lagrangian (Pos, Vel : in Real_Array; T : in Real) return AD_Type;
function Lagrangian (Pos, Vel : in Real_Array; ... |
package body iconv.Generic_Strings is
use type Ada.Streams.Stream_Element_Offset;
pragma Compile_Time_Error (
String_Type'Component_Size /= Character_Type'Size,
"String_Type is not packed");
pragma Compile_Time_Error (
Character_Type'Size rem Ada.Streams.Stream_Element'Size /= 0,
"String_Type could not be ... |
with AVTAS.LMCP.Types;
with LMCP_Message_Conversions; use LMCP_Message_Conversions;
package body Assignment_Tree_Branch_Bound_Communication is
----------------
-- Initialize --
----------------
procedure Initialize
(This : out Assignment_Tree_Branch_Bound_Mailbox;
Sour... |
with Text_Io;
with Ccl;
with Nfa;
with Parse_Shift_Reduce;
with Parse_Goto;
with Misc_Defs;
use Misc_Defs;
with External_File_Manager;
use External_File_Manager;
package Parse_Tokens is
subtype YYSType is Integer;
YYLVal, YYVal : YYSType;
type Token is
(End_Of_Input, Error, Char, Numbe... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- { dg-do compile }
with Unchecked_Conversion;
procedure warn2 is
type R1 is record X : Integer; end record;
type R2 is record X, Y : Integer; end record;
pragma Warnings
(Off, "types for unchecked conversion have different sizes");
function F is new Unchecked_Conversion (R1, R2);
pragma Warnings... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with kv.avm.Actor_References;
with kv.avm.Control;
package kv.avm.Services is
-- Machines have a collection of services that will send messages
-- to their destination when the time is right. The messages are
-- service dependent, as is the timing.
--
-- Since services may monitor asynchronous events,... |
-- BinToAsc.Base16
-- Binary data to ASCII codecs - Base16 codec as in RFC4648
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
generic
Alphabet : Alphabet_16;
Case_Sensitive : Boolean;
package BinToAsc.Base16 is
type Base16_To_String is new Codec_To_String with null record;
overridin... |
-- Copyright (c) 2011, Felix Krause <flyx@isobeef.org>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS"... |
package CSV is
type Row(<>) is tagged private;
function Line(S: String; Separator: Character := ',') return Row;
function Next(R: in out Row) return Boolean;
-- if there is still an item in R, Next advances to it and returns True
function Item(R: Row) return String;
-- after calling R.Next i tim... |
with Ada.Text_IO, Random_57;
procedure R57 is
use Random_57;
type Fun is access function return Mod_7;
function Rand return Mod_7 renames Random_57.Random7;
-- change this to "... renames Random_57.Simple_Random;" if you like
procedure Test(Sample_Size: Positive; Rand: Fun; Precision: Float := 0.3) ... |
--
-- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Ada.Unchecked_Conversion;
package body PMS is
function Name
(F : Field)
return String
is
begin
case F is
when Start => return "(start)";
when Length ... |
with Ada.Assertions; use Ada.Assertions;
with Memory.Container; use Memory.Container;
package body Memory.Join is
function Create_Join(parent : access Wrapper_Type'Class;
index : Natural) return Join_Pointer is
result : constant Join_Pointer := new Join_Type;
begin
... |
with Numerics;
use Numerics;
package Numerics.Dense_Matrices is
Error : exception;
function Outer (X, Y : in Real_Vector) return Real_Matrix;
function "*" (X, Y : in Real_Vector) return Real_Matrix renames Outer;
function "*" (X : in Real;
A : in Real_Matrix) return Real_Matrix;
function ... |
-----------------------------------------------------------------------
-- ado-schemas-entities -- Entity types cache
-- Copyright (C) 2011, 2012, 2017, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may no... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- awa-permissions-services -- Permissions controller
-- Copyright (C) 2011, 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may ... |
with Ada.Text_IO;
use Ada.Text_IO;
procedure Main is
begin
Put_Line ("Hello, World!");
end Main; |
------------------------------------------------------------------------------
-- AGAR GUI LIBRARY --
-- A G A R . S U R F A C E --
-- B o d y --
-- ... |
with Ada.Assertions; use Ada.Assertions;
with Device; use Device;
with Memory.Join; use Memory.Join;
with Memory.Container; use Memory.Container;
package body Memory.Split is
function Create_Split return Split_Pointer is
result : constant Split_Pointer := new Split_Type;
begin
... |
package Prot3_Pkg is
type Rec is record
V1 : Short_Integer;
V2 : Short_Integer;
end record with Volatile_Full_Access;
protected type Prot is
procedure Foo (J : Short_Integer);
private
Val : Rec;
end Prot;
P : Prot;
end Prot3_Pkg;
|
package body agar.gui.widget.menu is
use type c.int;
package cbinds is
procedure expand
(menu : menu_access_t;
item : item_access_t;
x : c.int;
y : c.int);
pragma import (c, expand, "AG_MenuExpand");
procedure set_padding
(menu : menu_access_t;
left ... |
with Ada.Text_IO;
with Bubble;
procedure Main is
A : Bubble.Arr := (2, 1, 3, 7);
begin
Bubble.Sort(A);
for I in A'Range loop
Ada.Text_IO.Put_Line(A(I)'Image);
end loop;
end Main;
|
-- Lua.Util
-- Utility routines to go with the Ada 2012 Lua interface
-- Copyright (c) 2015, James Humphry - see LICENSE for terms
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Long_Float_Text_IO; use Ada.Long_Float_Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
package body Lua.Util is
procedure Prin... |
with System;
with Ada.Unchecked_Conversion;
with Interfaces; use Interfaces;
package Unchecked_Convert9 is
type R is record
H : Unsigned_16;
L : Unsigned_16;
end record;
Var : R;
pragma Volatile (Var);
function Conv is new
Ada.Unchecked_Conversion (Source => Unsigned_32, Target => R);
... |
with PixelArray;
package Morphology is
function erode(image: PixelArray.ImagePlane; size: Positive) return PixelArray.ImagePlane
with Pre => size mod 2 /= 0;
function dilate(image: PixelArray.ImagePlane; size: Positive) return PixelArray.ImagePlane
with Pre => size mod 2 /= 0;
end Morphology;
|
pragma Ada_2012;
with Ada.Strings.Fixed;
use Ada;
with Ada.Text_IO;
package body Fakedsp.Data_Streams.Text is
Sampling_Frequency_Key : constant String := "Fs";
function Get_Format (Options : Option_List) return Data_Format
is
use Option_Lists.Option_Maps;
Pos : constant Cursor := Find (Options,... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/L... |
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- The primary authors of ayacc were David Taback and Deepak Tolani.
-- Enhancements were made by Ronald J. Schmalz.
--
-- Send requests for ayacc information to ayacc-info@ics.uci.edu
-- Send bug reports for ayacc to ... |
-----------------------------------------------------------------------
-- elf -- ELF information
-- Copyright (C) 2015 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 w... |
package Benchmark.Tree is
type Tree_Type is new Benchmark_Type with private;
function Create_Tree return Benchmark_Pointer;
overriding
procedure Set_Argument(benchmark : in out Tree_Type;
arg : in String);
overriding
procedure Run(benchmark : in Tree_Type);
... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Streams;
with Ada.Streams.Stream_IO;
with Ada.Unchecked_Deallocation;
with Ada.Wide_Wide_Text_IO;
with Interfaces;
with Syste... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
package body Ada.Colors is
function modff (value : Float; iptr : access Float) return Float
with Import, Convention => Intrinsic, External_Name => "__builtin_modff";
function sinf (X : Float) return Float
with Import, Convention => Intrinsic, External_Name => "__builtin_sinf";
function cosf (X : ... |
with STM32GD.USB.Peripheral;
with STM32GD.Drivers.CDC;
package Peripherals is
package USB is new STM32GD.USB.Peripheral (
EP0_Reset_Callback => STM32GD.Drivers.CDC.EP0_Reset,
EP0_Handler_Callback => STM32GD.Drivers.CDC.EP0_Handler);
end Peripherals;
|
with Ada.Numerics.Generic_Real_Arrays;
with Ada.Numerics.Generic_Elementary_Functions;
generic
type Real_Type is digits <>;
package Math_2D.Types is
package Functions is new Ada.Numerics.Generic_Elementary_Functions (Real_Type);
package Arrays is new Ada.Numerics.Generic_Real_Arrays (Real_Type);
type Poi... |
generic
package gene is
end gene;
with text_io;
package body gene is
-- Different error message with/without line below commented out
--package flt_io is new text_io.float_io(float);
procedure test is
begin
text_io.new_line;
end;
end gene;
with gene;
procedure bug1 is
package my_pkg is new ge... |
pragma License (Unrestricted);
-- specialized for Darwin
private with System.Interrupt_Numbers;
private with C.signal;
package Ada.Interrupts.Names is
-- This package is system-specific.
SIGHUP : constant Interrupt_Id;
SIGINT : constant Interrupt_Id;
SIGQUIT : constant Interrupt_Id;
SIGILL : constant ... |
-----------------------------------------------------------------------
-- awa-images-services -- Image service
-- Copyright (C) 2012, 2013 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 f... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
----------------------------------------------------------------------------
-- Generic Command Line Parser (gclp)
--
-- Copyright (C) 2012, Riccardo Bernardini
--
-- This file is part of gclp.
--
-- gclp is free software: you can redistribute it and/or modify
-- it under the ter... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- extended unit
with Ada.Environment_Encoding.Generic_Strings;
package Ada.Environment_Encoding.Strings is
new Generic_Strings (
Character,
String);
-- Encoding / decoding between String and various encodings.
pragma Preelaborate (Ada.Environment_Encoding.Strings);
|
with Ada.Text_IO;
package body Ada_Code is
package ATI renames Ada.Text_Io;
procedure Ada_Proc is
begin
ATI.Put_Line ("Ada_Proc: Begin");
ATI.Put_Line ("Ada_Proc: End");
end Ada_Proc;
procedure Ada_C_Caller is
procedure C_Func;
pragma Import (C, C_Func);
begin
ATI.... |
-- 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.PMC is
pragma Preelaborate;
... |
with
ADA.Containers.Vectors;
package Constraint_Engine is
type Type_Problem is
tagged private;
type Enum_Relational is
(IS_EQUAL, -- =
IS_LESS_EQUAL, -- <=
IS_LESS, -- <
IS_MORE_EQUAL, -- >=
IS_MORE, -- >
IS_INEQUAL); -- /=
type Type_Var... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with System;
with Interfaces.C.Strings;
package x86_64_linux_gnu_bits_types_h is
-- bits/types.h -- definitions of __*_t types underlying *_t types.
-- Copyright (C) 2002-2018 Free Software Foundation, Inc.
-- This file is par... |
with
Interfaces.C,
System;
use type
Interfaces.C.int,
System.Address;
package body FLTK.Widgets.Groups.Color_Choosers is
procedure color_chooser_set_draw_hook
(W, D : in System.Address);
pragma Import (C, color_chooser_set_draw_hook, "color_chooser_set_draw_hook");
pragma... |
procedure main IS
package pack is
function func return integer;
end pack;
package body pack is
function func return integer is
begin
return 1;
end func;
end pack;
begin
null;
exception
when pack.func.error =>
null;
end main;
|
--
-- Copyright (C) 2021 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Picosystem.LED;
with RP.Clock;
with Console;
with Graphics;
with Sound;
with Game;
with MIDI;
with Ada.Text_IO;
procedure Main is
package PS renames Picosystem;
use type PS.LED.Brightness;
begin
RP... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Low_Level;
with GL.Types.Colors;
with GL.Culling;
package GL.Buffers is
pragma Preelaborate;
use GL.Types;
type Buffer_Bits is record
Depth : Boolean := False;
Accum ... |
with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Core; use SPARKNaCl.Core;
with SPARKNaCl.Debug; use SPARKNaCl.Debug;
with SPARKNaCl.Secretbox; use SPARKNaCl.Secretbox;
with SPARKNaCl.Stream;
with Ada.Text_IO; use Ada.Text_IO;
procedure Secretbox
is
Firstkey : constant Core.Salsa20_Key :=
... |
------------------------------------------------------------------------------
-- AGAR GUI LIBRARY --
-- A G A R . M O U S E --
-- S p e c --
----... |
with Ada.Wide_Wide_Text_IO;
with Ada.Characters.Wide_Wide_Latin_1;
package body Servlets.File is
function "+"
(Text : Wide_Wide_String) return League.Strings.Universal_String
renames League.Strings.To_Universal_String;
----------------------
-- Get_Servlet_Info --
----------------------
ov... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.