content stringlengths 23 1.05M |
|---|
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with Ada.Characters.Handling;
package body AdaBase.Results.Sets is
package ACH renames Ada.Characters.Handling;
--------------
-- column --
--------------
function column (row : Datarow; inde... |
package Asis.Gela.Parser.Shift_Reduce is
type Small_Integer is range -32_000 .. 32_000;
type Shift_Reduce_Entry is record
T : Small_Integer;
Act : Small_Integer;
end record;
pragma Pack(Shift_Reduce_Entry);
subtype Row is Integer range -1 .. Integer'Last;
--pragma suppress(in... |
with Ada.Integer_Text_IO;
procedure nAlattK is
N, K : Positive;
Result : Positive := 1;
begin
Ada.Integer_Text_IO.Get( N ); -- Constraint_Error!
Ada.Integer_Text_IO.Get( K );
for I in 1..K loop
Result := Result * (N - I + 1) / I;
end loop;
Ada.Integer_Text_IO.Put( Result );
end nAlattK;
|
pragma Warnings (Off);
with Interfaces; use Interfaces;
with HAL; use HAL;
pragma Warnings (On);
package RP is
end RP;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- AUDIO / RIFF / WAV --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com)
-- //
-- // This software is provided 'as-is', without any express or implied warranty.
-- // In no event will the authors be held li... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma Ada_2012;
with AUnit.Assertions; use AUnit.Assertions;
with AUnit.Test_Caller;
with Ada.Streams; use Ada.Streams;
with SHA1; use SHA1;
package body SHA1_Streams_Tests is
package Caller is new AUnit.Test_Caller (Fixture);
Test_Suite : aliased AUnit.Test_Suites.Test_Suite;
function Suite retur... |
-- pragma SPARK_Mode;
with Wire; use Wire;
with Interfaces; use Interfaces;
package body Zumo_LSM303 is
LM_Addr : constant := 2#0001_1101#; -- 16#1D# 10#29#
LM_ID : constant := 2#0100_1001#; -- 16#49# 10#73#
procedure Check_WHOAMI
is
ID : Byte;
begin
ID := Wire.Read_Byte (Addr => L... |
pragma Ada_2012;
-- with Ada.Text_IO; use Ada.Text_IO;
package body Fakedsp.Background_Tasks is
use Fakedsp.Card;
-------------
-- Adc_Dac --
-------------
task body Adc_Dac is
use Data_Streams;
task Reader is
entry Read_From (Source : in Data_Source_Access);
entry Get ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- POK header
--
-- The following file is a part of the POK project. Any modification should
-- be made according to the POK licence. You CANNOT use this file or a part
-- of a file for your own project.
--
-- For more information on the POK licence, please see our LICENCE FILE
--
-- Pleas... |
package Rejuvenation.Parameters is
function Param_Expressions
(Nm : Libadalang.Analysis.Name) return Param_Actual_Array with
Pre => not Nm.Is_Null and then Nm.P_Is_Call;
-- Returns the list of Param Expressions of a function call
-- including the default expressions for unspecified paramete... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Streams; use Ada.Streams;
package RT1 is
pragma Remote_Types;
type Ptr is private;
procedure Read (X : access Root_Stream_Type'Class; V : out Ptr) is null;
procedure Write (X : access Root_Stream_Type'Class; V : Ptr) is null;
for Ptr'Read use Read;
for Ptr'Write use Write;
procedure P... |
------------------------------------------------------------------------------
-- --
-- Copyright (c) 2014-2015 Vitalij Bondarenko <vibondare@gmail.com> --
-- --
----... |
package AOC.AOC_2019 is
type Runner_2019 is new Runner.Runner with null record;
overriding function Get_Day (R : Runner_2019; Day_Number : Natural) return Day.Access_Day;
end AOC.AOC_2019;
|
with NeuralNet;
package NeuralNet.IO is
procedure save(nn: in NeuralNet.Net; path: in String);
function load(path: in String; status: out Boolean) return NeuralNet.Net;
end NeuralNet.IO;
|
package Console is
procedure Initialize;
procedure Put
(C : Character)
with Export,
Convention => C,
External_Name => "putchar";
end Console;
|
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
-- 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... |
with Ada.Containers.Doubly_Linked_Lists;
generic
type Element_Type is private;
package Generic_Fifo is
type Fifo_Type is tagged private;
procedure Push(The_Fifo : in out Fifo_Type; Item : in Element_Type);
procedure Pop(The_Fifo : in out Fifo_Type; Item : out Element_Type);
Empty_Error : Exceptio... |
with Ada.Text_IO;
procedure Firstclass is
generic
n1, n2 : Float;
function Multiplier (m : Float) return Float;
function Multiplier (m : Float) return Float is begin
return n1 * n2 * m;
end Multiplier;
num, inv : array (1 .. 3) of Float;
begin
num := (2.0, 4.0, 6.0);
inv := (1.0/2.0, 1... |
pragma Ada_2012;
package body GStreamer.rtsp.connection is
------------
-- create --
------------
function create
(url : access constant GStreamer.rtsp.url.GstRTSPUrl)
return GstRTSPConnection
is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (St... |
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@heisenbug.eu)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hoc... |
package body physics.Motor.spring is
-- child packages are based on 'open physics abstraction layer' spring motors.
procedure dummy is begin null; end;
end physics.Motor.spring;
|
with Ada.Containers.Formal_Ordered_Maps;
with Ada.Containers;
use Ada.Containers;
with MyString;
package PasswordDatabase with SPARK_Mode is
Max_Password_Length : constant Natural := 100;
Max_URL_Length : constant Natural := 1024;
Max_Entries : constant Ada.Containers.Count_Type := 1000;
package Password... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Exceptions;
with Yaml.Events.Queue;
with Yaml.Parser;
With GNAT.Strings;
procedure Yaml.Inspect (Input : String) is
use GNAT.Strings;
type Error_Kind is (None, From_Lexer, From_Parser);... |
package body Vermek is
procedure Push( V: in out Verem; E: in Elem ) is
begin
V.Veremtető := new Csúcs'(E,V.Veremtető);
V.Méret := V.Méret + 1;
end;
procedure Pop( V: in out Verem; E: out Elem ) is
begin
E := Top(V);
V.Veremtető := V.Ver... |
with Text_IO; use Text_IO;
procedure Add is
package My_Int_IO is new Integer_IO(Integer); use My_Int_IO;
begin
Put(2 + 2);
New_Line;
end Add;
|
with OpenGL.Thin;
package body OpenGL.State is
function Capability_To_Constant (Capability : in Capability_t)
return Thin.Enumeration_t is
begin
case Capability is
when Alpha_Test => return Thin.GL_ALPHA_TEST;
when Auto_Normal => return Thin.GL_AUTO_NOR... |
-- { dg-do compile }
-- { dg-options "-O" }
with Ada.Unchecked_Conversion;
package UC2 is
subtype Word_Type is Integer range 0 .. 0;
type Arr is array (1 .. Word_Type'Size) of Boolean;
pragma Pack(Arr);
function Conv is
new Ada.Unchecked_Conversion (Source => Arr, Target => Word_Type);
A : Arr;
W ... |
procedure Hello is
C, D: INTEGER := 0;
begin
C := 1;
D := 4 / 2;
put(D);
end Hello; |
-- { dg-do run }
with System.Storage_Elements; use System.Storage_Elements;
with Oalign1, Oalign2; use Oalign1, Oalign2;
procedure Test_Oalign is
begin
if Klunk1'Address mod Klunk1'Alignment /= 0 then
raise Program_Error;
end if;
if Klunk2'Address mod Klunk2'Alignment /= 0 then
raise Program_Erro... |
pragma License (Unrestricted);
package System.WCh_Con is
pragma Pure;
type WC_Encoding_Method is (
WCEM_Hex,
WCEM_Upper,
WCEM_Shift_JIS,
WCEM_EUC,
WCEM_UTF8,
WCEM_Brackets);
end System.WCh_Con;
|
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;
procedure Lab0 is
I: Integer;
F: Float;
C: Character;
S: String(1..5);
begin
Put("Skriv in ett heltal: "); Get(I);
Put("Du skrev in talet: "); Put(I,2);
New_Lin... |
Unsorted list:
this
is
a
set
of
strings
to
sort
This
Is
A
Set
Of
Strings
To
Sort
Sorted list:
strings
Strings
sort
Sort
this
This
Set
set
is
Is
Of
of
to
To
a
A
|
--
-- Copyright (C) 2015-2016 secunet Security Networks AG
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- ... |
-- --
-- package Stack_Storage Copyright (c) Dmitry A. Kazakov --
-- Implementation Luebeck --
-- Winter, 2003 --
-- ... |
with
Interfaces.C,
System;
use type
Interfaces.C.int,
System.Address;
package body FLTK.Widgets.Charts is
procedure chart_set_draw_hook
(W, D : in System.Address);
pragma Import (C, chart_set_draw_hook, "chart_set_draw_hook");
pragma Inline (chart_set_draw_hook);
pro... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
--
-- SHOWIMAGE: Port to the Ada programming language of a test application for the
-- the SDL image library.
--
-- The original code was written in C by Sam Lantinga http://www.libsdl.org.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU Gener... |
-- Copyright 2016 Steven Stewart-Gallus
--
-- 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 law or agr... |
-------------------------------------------------------------------------------
-- --
-- Copyright (C) 2020-2030, per.s.sandberg@bahnhof.se --
-- --
... |
with Ada.Text_Io;
package body Derived_Objects is
procedure My_Slot (This : in Derived_Object) is
begin
Ada.Text_Io.Put_Line ("My_Slot called for object with id = " & Natural'Image(This.Id));
end My_Slot;
procedure My_Slot (This : in not null Aof.Core.Root_Objects.Access_Object) is
begin
... |
-- 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... |
-- { dg-do compile }
package limited1 is
pragma Pure;
type Buffer is limited interface;
type Synchronous_Buffer_Type is synchronized interface and Buffer;
private
end limited1;
|
package body DDS.Request_Reply.requester is
-- DDS_ReturnCode_t RTI_Connext_Requester_delete(RTI_Connext_Requester * self)
-- {
-- DDS_ReturnCode_t retCode = DDS_RETCODE_OK;
--
-- if(self == NULL) {
-- DDSLog_exception(&DDS_LOG_BAD_PARAMETER_s,
-- ... |
package STM32GD.Drivers.CDC is
function EP0_Reset (BTable_Offset : Integer) return Integer;
procedure EP0_Handler (Out_Transaction : Boolean);
end STM32GD.Drivers.CDC;
|
-- 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 Tcl.Variables.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Tcl.Variables
.Test_Data
... |
-- 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... |
package body raise_from_pure is
function Raise_CE_If_0 (P : Integer) return Integer is
begin
if P = 0 then
raise Constraint_error;
end if;
return 1;
end;
end;
|
with System.Native_Real_Time;
package body Ada.Real_Time.Delays is
procedure Delay_Until (T : Time) is
begin
System.Native_Real_Time.Delay_Until (
System.Native_Real_Time.To_Native_Time (Duration (T)));
end Delay_Until;
function To_Duration (T : Time) return Duration is
begin
retur... |
with Ada.Interrupts.Names;
package Signal is
protected type Handler is
function Triggered return Boolean;
private
Signal_Received : Boolean := False;
pragma Unreserve_All_Interrupts;
procedure Handle_Int with Attach_Handler => Ada.Interrupts.Names.SIGINT;
procedure Handle_Quit wi... |
package body impact.d3.manifold_Point
is
function to_manifold_Point return Item
is
Self : Item;
begin
Self.m_userPersistentData := null;
Self.m_appliedImpulse := 0.0;
Self.m_lateralFrictionInitialized := False;
Self.m_appliedImpulseLateral1 := 0.0;
... |
package Giza.Bitmap_Fonts.FreeSerif8pt7b is
Font : constant Giza.Font.Ref_Const;
private
FreeSerif8pt7bBitmaps : aliased constant Font_Bitmap := (
16#FF#, 16#E8#, 16#0C#, 16#DE#, 16#F7#, 16#20#, 16#12#, 16#12#, 16#22#,
16#24#, 16#FF#, 16#24#, 16#24#, 16#FE#, 16#24#, 16#44#, 16#48#, 16#10#,
16#F3#, 16#56#,... |
-- simple_example.adb
-- A simple example of using the Reqrep_Task_Pool
-- Copyright (c) 2015, James Humphry
--
-- 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... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
---------------------------------------------------------------------------
-- package body Hypot
-- Copyright (C) 2018 Jonathan S. Parker.
--
-- 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 th... |
-----------------------------------------------------------------------
-- ADO Drivers -- Database Drivers
-- Copyright (C) 2010, 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 not use this ... |
-----------------------------------------------------------------------
-- time -- NTP example
-- 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 compliance with... |
with Ada.Wide_Wide_Text_IO;
with League.Strings;
with Documentation_Generator.Database;
package body Documentation_Generator.Wiki is
use Documentation_Generator.Database;
use type League.Strings.Universal_String;
procedure Generate_Main_Page;
procedure Generate_Type_Page (The_Type : not null Type_Acce... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package Person2 is
subtype Age_Type is Natural range 0 .. 140;
type Person is private;
procedure Set_Name (A_Person : out Person;
Name : in Unbounded_String);
procedure Set_Age (A_Person : out Person;
... |
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
with HAL; use HAL;
with STM32.GPIO; use STM32.GPIO;
with STM32.ADC; use STM32.ADC;
with STM_Board; use STM_Board;
package Inverter_ADC is
-- Performs analog to digital conversions in a timed manner.
-- The timer starts ADC conversions and, at the end of conversion, it
-- produces an inter... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- DEMONSTRATION PROGRAM:
--
-- Producer Consumer Tasking example
--
with text_io; use text_io;
procedure tasker is
task buffer is
entry read (c: out integer);
entry write (c: in integer);
end;
task producer;
task consumer;
task body buffer is separate;
task body producer is separate;
task body consume... |
with Numerics;
use Numerics;
package Numerics.Sparse_Matrices is
-------- Define Enumeration types --------------------------------
type Permute_By_Type is (Row, Column);
type Sparse_Matrix_Format is (CSR, CSC, Triplet);
package Sparse_Matrix_Format_IO is new Ada.Text_IO.Enumeration_IO (Sparse_Ma... |
-- AOC 2020, Day 25
package Day is
function encryption_key(card_pk : in Long_Integer; door_pk : in Long_Integer) return Long_Integer;
end Day;
|
package body Nested_Subtype_Byref is
type Data (Stamped : Boolean) is record
case Stamped is
when True => Valid : Boolean;
when others => null;
end case;
end record;
type Message is record
F : Integer := 1;
D : Data (Stamped => True);
end record;
procedure ... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with SDL_stdinc_h;
package SDL_endian_h is
SDL_LIL_ENDIAN : constant := 1234; -- ..\SDL2_tmp\SDL_endian.h:37
SDL_BIG_ENDIAN : constant := 4321; -- ..\SDL2_tmp\SDL_endian.h:38
-- unsupported macro: SDL_BYTEORDER SDL_LIL_END... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
-- This is the console version of Options_Dialog
-- In effect, options selection is not possible without ncurses
with Port_Specification;
package Options_Dialog_Console is
package PSP renames Port_Specifica... |
with Ada.Text_IO, Ada.Integer_Text_IO, es_impar_montana;
use Ada.Text_IO, Ada.Integer_Text_IO;
procedure Suma_Impar_Montana is
n_entrante, acumulador : Integer;
begin
put("Tu programa dice:"); new_line;
acumulador := 0;
get(n_entrante);
while n_entrante /= 0 loop -- 0 es el valor final de la entrada
if es_imp... |
-- C35A05N.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... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with League.Strings;
with League.String_Vectors;
package Markdown.Link_Registers is
type Link_Register is limited interface;
not overriding proc... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- This spec has been automatically generated from STM32L5x2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.DFSDM is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CH0CFGR1_SITP_Field ... |
pragma Check_Policy (Trace => Ignore);
with Ada.Exception_Identification.From_Here;
with System.Address_To_Named_Access_Conversions;
with System.Formatting.Address;
with System.Shared_Locking;
with System.UTF_Conversions.From_8_To_16;
with System.UTF_Conversions.From_8_To_32;
package body Ada.Tags is
pragma Suppress... |
package body STM32GD.I2C.Peripheral is
procedure Init is
begin
null;
end Init;
function Master_Transmit (Address : I2C_Address; Data : Byte;
Restart : Boolean := False) return Boolean is
begin
return False;
end Master_Transmit;
function Master_Receive (Address : I2C_Address; Da... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
package body openGL.Surface.privvy
is
-- function to_glx (Self : in Surface.item'Class) return glx.GLXDrawable
-- is
-- begin
-- return Self.glx_Surface;
-- end to_glx;
procedure dummy is begin null; end;
end openGL.Surface.privvy;
|
with ZMQ.Sockets;
with ZMQ.Contexts;
with ZMQ.devices;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure ZMQ.examples.Multi_Thread_Server is
task type server_task (ctx : not null access ZMQ.Contexts.Context;
id : Integer) is
end server_task;
task body server_task is
... |
with Ada.Text_IO;
procedure Remove_Characters is
S: String := "upraisers";
use Ada.Text_IO;
begin
Put_Line("Full String: """ & S & """");
Put_Line("Without_First: """ & S(S'First+1 .. S'Last) & """");
Put_Line("Without_Last: """ & S(S'First .. S'Last-1) & """");
Put_Line("Without_Both: """ & S(... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, Fabien Chouteau --
-- --
-- ... |
-- Copyright (C) 2021,2022 Steve Merrony
-- 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, publi... |
-----------------------------------------------------------------------
-- mail-headers -- Operations on mail headers
-- Copyright (C) 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 ex... |
with Ada.Text_IO;
procedure Fractan is
type Fraction is record Nom: Natural; Denom: Positive; end record;
type Frac_Arr is array(Positive range <>) of Fraction;
function "/" (N: Natural; D: Positive) return Fraction is
Frac: Fraction := (Nom => N, Denom => D);
begin
return Frac;
end "/";
... |
-- 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... |
with Freetype;
with Render.Fonts;
package Render.Text is
---------------------------------------------------------------------------
-- Render a string to the current OpenGL context
-- @param x X location of the text
-- @param y
-- @param windowW Width of the X window in pixels
-- @param windo... |
-- CE3906C.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 Saying_Hello is
begin
Put ("What is your name? ");
declare
Name : String := Get_Line;
begin
Put ("Hello, ");
Put (Name);
Put (", nice to meet you!");
end;
end Saying_Hello; |
-- Motherlode
-- Copyright (c) 2020 Fabien Chouteau
with HAL; use HAL;
with PyGamer; use PyGamer;
with PyGamer.Screen;
with World;
package Render is
subtype Frame_Buffer
is HAL.UInt16_Array (0 .. (Screen.Width * Screen.Height) - 1);
procedure Draw_Cell (FB : in out Frame_Buffer;
... |
------------------------------------------------------------------------------
-- Copyright (c) 2014-2019, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with League.Strings;
package body WebIDL.Token_Handlers is
-------------
-- Integer --
-------------
overriding procedure Integer
(Self ... |
-- Copyright (c) 2015-2019 Marcel Schneider
-- for details see License.txt
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Containers.Hashed_Maps; use Ada.Containers;
with Tokens; use Tokens;
package body Punctuation is
procedure Initialize (O : in out Object) is
begin
-- Punctuators
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.