content stringlengths 23 1.05M |
|---|
procedure Hello is
begin
if min = max then
null;
elsif min < max then
null;
else
null;
end if;
for Iter in 1..5 loop
null;
end loop;
return;
end Hello; |
with AWS.Response;
with AWS.Status;
package @_Project_Name_@.Callbacks is
use AWS;
function Default (Request : in Status.Data) return Response.Data;
end @_Project_Name_@.Callbacks;
|
--****p* Fakedsp/Fakedsp
-- DESCRIPTION
-- The library fakedsp allows to write code with a DSP-style on a normal PC.
-- I wrote this to help my students in doing their lab activities.
--
-- The user of the library will be most probably interested in
-- the package Fakedsp.Card that provides the interface to the
-... |
with Ada.Unchecked_Conversion;
with Ada.Command_Line;
with Ada.Finalization;
package body GLUT is
-- finalization - free Argv strings
--
-- RK 23 - Oct - 2006, to remove the memory leak in question.
--
type Argvz is array (0 .. 500) of aliased Interfaces.C.Strings.chars_ptr;
type Arg_... |
with Ada.Unchecked_Deallocation;
package body Words is
function Score(S: String) return Natural is
Total: Natural := 0;
begin
for C of S loop
Total := Total + Character'Pos(C) - Character'Pos('A') + 1;
end loop;
return Total;
end Score;
function Split(S: String; On: Chara... |
-- Ada packages
with ada.command_line;
use ada.command_line;
with ada.exceptions;
use ada.exceptions;
with ada.text_io;
use ada.text_io;
-- BoiteMaker packages
with commandline_args;
use commandline_args;
with box_info;
use box_info;
with box_parts;
use box_parts;
with svg;
use svg;
with text_file;
use text_file;
with... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
-- Example adapted from "Ada Crash Course"
with Ada.Unchecked_Deallocation;
-- Declaring access types (similar application to pointers)
-- Often times, an "out" variable will suffice
procedure Access_Types is
type Integer_Access is access all Integer;
Int_P : Integer_Access; -- initializes to null
-- P1 =... |
-- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O G A . G U I . E L... |
-- Abstract :
--
-- See spec.
--
-- Copyright (C) 2013-2015, 2017, 2018, 2019 Free Software Foundation, Inc.
--
-- This file is part of the WisiToken package.
--
-- The WisiToken package is free software; you can redistribute it
-- and/or modify it under the terms of the GNU General Public License
-- as publishe... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Ada.Text_IO;
package body Information is
package TIO renames Ada.Text_IO;
--------------------------------------------------------------------------------------------
-- display_usage
---------... |
# $OpenBSD: files.adb,v 1.2 2014/10/18 12:21:57 miod Exp $
file dev/adb/adb_subr.c adb
device akbd: wskbddev
attach akbd at adb
file dev/adb/akbd.c akbd needs-flag
device ams: wsmousedev
attach ams at adb
file dev/adb/ams.c ams
|
package body Inline8_Pkg2 is
function Calc (A : Integer) return Integer is
begin
return D - A;
end;
end Inline8_Pkg2;
|
package body Opt27_Pkg is
type Node_Rec_T is record
Element : Element_T;
Left : Node_T;
Right : Node_T;
end record;
function Is_Null (Node : in Node_T) return Boolean is
begin
return (Node = null);
end Is_Null;
function Find_Elem (Template : Template_T; List... |
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_rtsp_gstrtsp_enumtypes_h is
-- unsupported macro: GST_TYPE_RTSP_RESULT (gst_rtsp_result_get_type())
-- unsupported macro: GST_TYPE_RTSP_EVENT (... |
with Swaps; use Swaps;
with Ada.Text_IO;
with Swap_Generics;
with Sort_Generics;
procedure Main is
V1 : Integer := 42;
V2 : Integer := 43;
F1 : Float := 42.0;
F2 : Float := 43.0;
procedure Swap_Integer is new Swap_Generics.Swap_Generic (Integer);
procedure Swap_Float is new Swap_Generics.Swap_Gener... |
with Ada.Text_IO;
procedure Default is
begin
loop
exit when Ada.Text_IO.End_Of_File;
-- Ada.Text_IO.Put_Line("Echo" &Ada.Text_IO.Get_Line);
Ada.Text_IO.Put_Line(Ada.Text_IO.Get_Line);
end loop;
end default;
Default |
package Missile is
type Missile_State is
(ALIVE, TOUCHED, DEAD);
type Missile is record
State : Missile_State := DEAD;
X : Integer;
Y : Integer;
Max_Y: Integer;
Speed : Integer;
end record;
procedure appear_mis(s : in out Missile; X : Integer; Y : Integer; Max_Y : Integer)... |
with Interfaces.C.Strings; use Interfaces.C.Strings;
package QtQuick is
-- public idiomatic Ada API
procedure Qt_Main (MainQmlFile : String);
private
-- Imported C API
procedure Qt_Main_Simple (MainQmlFile : chars_ptr);
pragma Import (C, Qt_Main_Simple, "qtMainSimple");
end QtQuick;
|
package body Trendy_Test.Generics is
procedure Assert_Discrete (Op : in out Operation'Class;
Left : T;
Right : T;
Loc : Source_Location := Make_Source_Location)
is
Message : consta... |
with Ada.Numerics.Generic_Complex_Elementary_Functions;
with Ada.Text_IO; use Ada.Text_IO;
with Ada_Lapack;
package body SVD is
package Complex_Maths is new Ada.Numerics.Generic_Complex_Elementary_Functions (Complex_Types);
package Lapack is new Ada_Lapack (Real, Complex_Types,
... |
-- ----------------------------------------------------------------- --
-- AdaSDL --
-- Binding to Simple Direct Media Layer --
-- Copyright (C) 2001 A.M.F.Vargas --
-- Antonio M. F.... |
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is C... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Pragmas;
with Program.Elements.Defining_Identifiers;
with Program.Elements.Defining_Character_Literals;
with Program.Elements.Defining... |
------------------------------------------------------------------------------
-- --
-- Simple HTTP --
-- --
-- ... |
-- -----------------------------------------------------------------------------
-- 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 ... |
-- { dg-excess-errors "cannot generate code" }
generic
I : Integer;
package Noinline3_Pkg is
function F (A, B : Integer) return Integer;
end Noinline3_Pkg;
|
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
with System.Debug; -- assertions
with C.basetsd;
with C.winbase;
with C.windef;
with C.winnt;
package body System.System_Allocators is
pragma Suppress (All_Checks);
use type Storage_Elements.Storage_Offset;
use type C.windef.WINBOOL;
-- use type C.basetsd.SIZE_T;
-- use type C.windef.DWORD;
function Roun... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------------
-- Russian Peasant Multiplication --
-- By: Jason Nguyen (XXXXXXXX) --
-- XXXXXXXX --
-------... |
-- -----------------------------------------------------------------------------
-- 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... |
with
opengl.Display .privvy,
opengl.surface_Profile.privvy,
opengl.Surface .privvy,
egl.Binding,
System;
package body openGL.Context
is
use egl.Binding,
System;
procedure define (Self : in out Item; the_Display : access opengl.Display.item'Class;
... |
with Ada.Numerics.Generic_Complex_Types;
with Ada.Text_IO.Complex_IO;
procedure Complex_Operations is
-- Ada provides a pre-defined generic package for complex types
-- That package contains definitions for composition,
-- negation, addition, subtraction, multiplication, division,
-- conjugation, exponenti... |
-- C93005C.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... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Order is
type IntArray is array (Positive range <>) of Integer;
List1 : IntArray := (1, 2, 3, 4, 5);
List2 : IntArray := (1, 2, 1, 5, 2, 2);
List3 : IntArray := (1, 2, 1, 5, 2);
List4 : IntArray := (1, 2, 1, 5, 2);
type Animal is (Rat, Cat, Elephant);
... |
with System.Native_Time;
with C.winbase;
with C.windef;
package body System.Native_Execution_Time is
use type C.windef.WINBOOL;
-- implementation
function Clock return CPU_Time is
CreationTime : aliased C.windef.FILETIME;
ExitTime : aliased C.windef.FILETIME;
KernelTime : aliased C.windef.... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with TEXT_IO;
package WORD_PARAMETERS is
-- This package defines a number of parameters that areused in the program
-- The default values are set in the body, so that they may be changed easily
CHANGE_PARAMETERS_CHARACTER : CHARACTER := '#';
CHANGE_LANGUAGE_CHARACTER : CHARACTER := '~';
... |
-- BSD 2-Clause License
--
-- Copyright (c) 2017, Zack Boll
-- 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 of source code must retain the above copyright notice,
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with GNAT.String_Split;
with UxAS.Comms.Data.Addressed; use UxAS.Comms.Data.Addressed;
package body UxAS.Comms.Data is
--------------------
-- Set_Attributes --
--------------------
procedure Set_Attributes
(This : in out Message_Attributes;
Content_Type : String;
Desc... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
procedure C_Fun;
pragma Import(C, C_Fun, "i_am_c");
begin
Put_Line("Calling external C code from Ada main.");
C_Fun;
Put_Line("Exiting Ada main.");
end Main;
|
with Ada.Assertions; use Ada.Assertions;
with Ada.Text_IO; use Ada.Text_IO;
with HAL;
with Generic_Ring_Buffers;
with Checksum;
procedure Synack_Misc_Test is
begin
declare
use Checksum;
use HAL;
Sum : UInt8;
begin
Sum := CRC_8
(Data => UInt8_Array'(16#00#, 16#22#),
... |
with Ada.Text_IO; use Ada.Text_IO;
procedure IEEE is -- Non portable, bad, never do this!
Zero : Float := 0.0;
PInf : Float := 1.0 / Zero;
NInf : Float := -PInf;
PZero : Float := 1.0 / PInf;
NZero : Float := 1.0 / NInf;
NaN : Float := 0.0 / Zero;
begin
Put_Line (" -oo = " & Float'Image (NInf)... |
pragma License (Unrestricted);
with Ada.Text_IO;
package GNAT.IO is
procedure Put (Item : String)
renames Ada.Text_IO.Put;
procedure Put (Item : Integer);
procedure Put_Line (Item : String)
renames Ada.Text_IO.Put_Line;
procedure New_Line (Spacing : Ada.Text_IO.Positive_Count := 1)
renames... |
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020-2021 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
separate (Regex.Regular_Expressions) procedure Parse (Input : in String; Output : in out Regular_Expression) is
use Utilities.String_B... |
--*****************************************************************************
--*
--* PROJECT: BINGADA
--*
--* FILE: q_bingada.adb
--*
--* AUTHOR: Javier Fuica Fernandez
--*
--*****************************************************************************
with Text_Io;
with Ada.S... |
package body Interfaces.C_Streams is
function stdin return FILEs is
begin
return C.stdio.stdin;
end stdin;
function stdout return FILEs is
begin
return C.stdio.stdout;
end stdout;
function stderr return FILEs is
begin
return C.stdio.stderr;
end stderr;
end Interfaces.C_S... |
pragma License (Unrestricted);
-- extended unit
package Ada.Streams.Block_Transmission.Wide_Wide_Strings is
-- There are efficient streaming operations for Wide_Wide_String.
pragma Pure;
procedure Read is
new Block_Transmission.Read (
Positive,
Wide_Wide_Character,
Wide_Wide... |
with STM32GD.Board;
package body Blink is
Next_Release : Time := Clock;
Period_On : constant Time_Span := Milliseconds (200);
Period_Off : constant Time_Span := Milliseconds (200);
Period_Pause : constant Time_Span := Milliseconds (2500);
task Blink_Task with Storage_Size => 768;
protected b... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Statements;
with Program.Lexical_Elements;
with Program.Elements.Select_Paths;
with Program.Element_Vectors;
package Program.Elements... |
with Web.HTML;
package body Web.RSS is
procedure RSS_Start (
Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Title : in String;
Description : in String;
Link : in String) is
begin
String'Write (
Stream,
"<rss version=""2.0"">" & "<channel>"
& "<docs>http://blogs.law.harvard.edu/tech... |
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Wid_WChar;
package System.Wwd_WChar is
pragma Pure;
-- required for Wide_Character'Wide_Width by compiler (s-wwwdwch.ads)
function Wide_Width_Wide_Character (Lo, Hi : Wide_Character) return Natural
renames Wid_WChar... |
with Dispatch;
with System.Multiprocessors.Dispatching_Domains;
use System.Multiprocessors.Dispatching_Domains;
procedure Main is
begin
Set_CPU(1);
for i in 1 .. 100 loop
delay 1.0;
end loop;
end Main;
|
pragma License (Unrestricted);
-- implementation unit specialized for Linux
function System.System_Allocators.Allocated_Size (
Storage_Address : Address)
return Storage_Elements.Storage_Count;
pragma Preelaborate (System.System_Allocators.Allocated_Size);
pragma Inline (System.System_Allocators.Allocated_Size);
|
package body lace.fast_Pool
is
type Views is array (1 .. pool_Size) of View;
protected Pool
is
entry new_Item (the_Item : out View);
entry free (the_Item : in View);
private
Available : Views;
Count : Natural := 0;
end Pool;
protected body Pool
is
e... |
-----------------------------------------------------------------------
-- List_User -- Example of queries
-- Copyright (C) 2010, 2011, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file e... |
-----------------------------------------------------------------------
-- jason-projects-modules -- Module projects
-- Copyright (C) 2016, 2017, 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 t... |
--
-- Copyright (c) 2015, John Leimon <jleimon@gmail.com>
--
-- 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 ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
package body Semantica.Gci is
package Pila_Proc is new Pilas (Num_Proc);
use Pila_Proc;
Pproc : Pila_Proc.Pila;
package Pila_Param is new Pilas (T_Param);
use Pila_Param;
Pparam : Pila_Param.Pila;
procedure Genera
(instr : in Tinstruccio;
C1 : in Camp := Camp_Nul;
C2 : in ... |
-----------------------------------------------------------------------
-- keystore-containers -- Container protected keystore
-- 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 thi... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- This spec has been automatically generated from STM32F429x.svd
pragma Ada_2012;
with System;
-- STM32F427xx
package STM32_SVD is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
--------------------
-- Base addresses --
--------------------
RNG_Base : constant System.Address := Syste... |
-- 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 ... |
with UxAS.Common.Configuration_Manager;
package body UxAS.Comms.Transport.ZeroMQ_Sender.Addr_Attr_Msg_Senders is
use ZMQ.Sockets;
------------------
-- Send_Message --
------------------
procedure Send_Message
(This : in out ZeroMq_Addressed_Attributed_Message_Sender;
Address ... |
-- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O... |
with Protypo.Code_Trees.Interpreter.Names;
with Protypo.Api.Engine_Values.Handlers;
private
package Protypo.Code_Trees.Interpreter.Expressions is
-- function To_Vector (X : Engine_Value_Vectors.Vector)
-- return Engine_Value_Vectors.Vector;
--
-- function To_Array (X : Engine_Valu... |
-- 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... |
package Opt15_Pkg is
procedure Trace_Inlined;
pragma Inline (Trace_Inlined);
end Opt15_Pkg;
|
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
package Glfw.Errors is
type Kind is (Not_Initialized,
No_Current_Context,
Invalid_Enum,
Invalid_Value,
Out_Of_Memory,
... |
-- RUN: %llvmgcc -S %s
with Ada.Finalization;
package Emit_Var is
type Search_Type is new Ada.Finalization.Controlled with null record;
end;
|
------------------------------------------------------------------------------
-- meals.ads
--
-- A package containing the public data type Meal. A meal consists of an en-
-- tree, an optional soup, and an optional dessert. Three meal operations are
-- provided:
--
-- Random_Meal A random meal.
-- Pr... |
--------------------------------------------------------------------------------
-- Copyright (c) 2019 Marek Kuziel
--
-- 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, ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
--
-- package Orbit_2
--
-- Package defines a data structure for the 2-body problem.
-- The problem demonstrates the importance of error control
-- with variable step size. Integrating highly elliptical
-- orbits (near collisions between inteacting bodies) with
-- variable step size method is orders of magnitude fa... |
-- { dg-do compile }
-- { dg-options "-O -flto -g" { target lto } }
package body Lto15 is
function Proc (Data : Arr) return R is
begin
return (Data'Length, Data);
end;
end Lto15;
|
package A_Stack with
SPARK_Mode,
Abstract_State => The_Stack,
Initializes => The_Stack
is
Stack_Size : constant := 100;
subtype Item is Integer range 0 .. 20;
function Is_Empty return Boolean with
Global => The_Stack;
function Is_Full return Boolean with
Global => The_Stack;
f... |
with Ada.Numerics.Discrete_Random;
with Bitmaps.RGB;
with ImageOps;
package body Problem is
package Random_Direction is new Ada.Numerics.Discrete_Random(Direction);
package Random_Natural is new Ada.Numerics.Discrete_Random(Natural);
Random_Direction_G : Random_Direction.Generator;
Random_Natural_G : Ra... |
with Interfaces; use Interfaces;
with Interfaces.C; use Interfaces.C;
package GPIO is
function Init return Unsigned_8;
pragma Import (C, Init, "bcm2835_init");
procedure Close;
pragma Import (C, Close, "bcm2835_close");
procedure Write(Pin: Unsigned_16; Value: Unsigned_8);
pragma Import (C, Write, "bcm... |
with Extraction.Node_Edge_Types;
package body Extraction.Graph_Operations is
function Create_Graph_Context
(Graph_File : access GW.GraphML_File; Directory_Prefix : VFS.Virtual_File;
Project_Context : Utilities.Project_Context) return Graph_Context
is
begin
return Graph : Graph_Context do
... |
------------------------------------------------------------------------------
-- chopsticks.ads
--
-- This package supplies a task type for the Chosticks in the Enhanced Dining
-- Philosophers simulation and also an array of Chopsticks.
--
-- Entries:
--
-- Pick_Up call this to pick the chopstick up.
--... |
-----------------------------------------------------------------------
-- awa-images-modules -- Image management module
-- Copyright (C) 2012, 2016, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
generic
Inst_Access : in Instance_Type_Access;
with procedure CB is null;
package Apsepp.Generic_Shared_Instance.Access_Setter is
function Has_Actually_Set return Boolean;
end Apsepp.Generic_Shared_Inst... |
with Ada.Exception_Identification.From_Here;
with Ada.Exceptions.Finally;
with System.Formatting;
with System.Long_Long_Integer_Types;
with System.Synchronous_Control;
with C.errno;
with C.netinet.in_h;
with C.unistd;
package body System.Native_IO.Sockets is
use Ada.Exception_Identification.From_Here;
use type C.... |
with Ada.Calendar;
with Ada.Command_Line;
with Ada.Strings.Unbounded;
with Ada.Text_IO;
with GNATCOLL.VFS;
with Command_Line;
with Extraction;
with GraphML_Writers;
procedure Main is
package GW renames GraphML_Writers;
package SU renames Ada.Strings.Unbounded;
package VFS renames GNATCOLL.VFS;
use type ... |
pragma SPARK_Mode;
with Interfaces.C; use Interfaces.C;
with Proc_Types; use Proc_Types;
with Sparkduino; use Sparkduino;
package body Zumo_QTR is
EmitterPin : constant := 2;
SensorPins : constant array (1 .. 6) of Pin_Type :=
(4, A3, 11, A0, A2, 5);
Capacitor_Charge : constant := 5;
... |
with GL.Types;
with Glfw.Windows;
with Maths;
package Pick_Manager is
type Orientation is private;
type Orientation_Array is array (GL.Types.Int range <>) of Orientation;
procedure Init_Pick_Manager;
procedure Pick (Window : in out Glfw.Windows.Window;
Positions ... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body WebDriver.Elements is
---------------
-- Send_Keys --
---------------
procedure Send_Keys
(Self : acce... |
---------------------------------------------------------------------------------
-- Copyright 2004-2005 © Luke A. Guest
--
-- This code is to be used for tutorial purposes only.
-- You may not redistribute this code in any form without my express permission.
------------------------------------------------------------... |
-- Lumen.Image.BMP -- Load and save Microsoft BMP image data
-- This code is covered by the ISC License:
--
-- Copyright © 2010, Julian Leyh <jleyh@auroraux.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
-- ... |
-----------------------------------------------------------------------
-- Security-policies-tests - Unit tests for Security.Permissions
-- 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");
-... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
package overriding_ops_p is
subtype Name_Type is String (1 .. 30);
type Device is synchronized interface;
-- Base type of devices
procedure Set_Name (Object : in out Device; Name : Name_Type)
is abstract;
-- Set the name of the Device
end overriding_ops_p;
|
-- { dg-do compile }
package Self_Class is
type P6 is private;
private
type P6 is tagged record
Self : access P6'Class;
end record;
end Self_Class;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Dynamic is
package Abstract_Class is
type Class is limited interface;
function Boo (X : Class) return String is abstract;
end Abstract_Class;
use Abstract_Class;
package Base_Class is
type Base is new Class with null record;
overriding ... |
with Testsuite.Encode_Decode.Random;
package body Testsuite.Encode_Decode is
E_Kind : Testsuite.Encode.Encoder_Kind;
D_Kind : Testsuite.Decode.Decoder_Kind;
---------------
-- Set_Kinds --
---------------
procedure Set_Kinds (E : Testsuite.Encode.Encoder_Kind;
D : Testsuite... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.