content stringlengths 23 1.05M |
|---|
pragma License (Unrestricted);
-- extended unit
package Ada.Strings.East_Asian_Width is
-- Unicode property "east asian width".
pragma Pure;
type Width_Kind is (
Neutral,
Narrow,
Half_Width,
Ambiguous,
Wide,
Full_Width);
function Kind (C : Wide_Wide_Character) return ... |
with Asis.Elements;
with Asis.Statements;
with Ada.Text_IO;
package body Asis_Adapter.Element.Statements is
------------
-- EXPORTED:
------------
procedure Do_Pre_Child_Processing
(Element : in Asis.Element; State : in out Class)
is
Parent_Name : constant String := Module_Name;
Module... |
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with System.Machine_Code; use System.Machine_Code;
package body Pkg is
procedure func_gamma (x: in out Gamma) is
begin
asm ("# func_gamma");
x.data_gamma := 1;
end func_gamma;
procedure func_beta (x: in out Gamma) is
begin
asm ("# func_beta");
end func_beta;
procedure func_alpha (x: in out Gamma) is
begin
asm (... |
pragma Check_Policy (Trace => Disable);
with Ada.Exception_Identification.From_Here;
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with System.Address_To_Named_Access_Conversions;
with System.Formatting.Address;
with System.Long_Long_Integer_Types;
with System.Native_Time;
with System.Runtime_Context;... |
with Ada.Containers.Formal_Doubly_Linked_Lists;
package wrap with SPARK_Mode is
type Element_Type is (ONE, TWO);
function My_Eq (Left : Element_Type; Right : Element_Type) return Boolean is (Left = Right);
package My_Lists is new Ada.Containers.Formal_Doubly_Linked_Lists (Element_Type, My_Eq);
use My_Lis... |
package body COBS.Stream.Encoder is
subtype Dispatch is Instance'Class;
procedure Do_Flush (This : in out Instance);
procedure Do_Flush (This : in out Instance) is
begin
Dispatch (This).Flush
(This.Buffer (This.Buffer'First .. This.Encode_Pointer - 1));
This.Code_Pointer := This.Buff... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2012 Felix Krause <contact@flyx.org>
--
-- 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/licen... |
with Tkmrpc.Transport.Client;
with Tkmrpc.Request.Ike.Tkm_Version.Convert;
with Tkmrpc.Request.Ike.Tkm_Limits.Convert;
with Tkmrpc.Request.Ike.Tkm_Reset.Convert;
with Tkmrpc.Request.Ike.Nc_Reset.Convert;
with Tkmrpc.Request.Ike.Nc_Create.Convert;
with Tkmrpc.Request.Ike.Dh_Reset.Convert;
with Tkmrpc.Request.Ike.Dh_Crea... |
pragma License (Unrestricted);
package Ada.Strings.Unbounded.Aux is
pragma Preelaborate;
subtype Big_String is String (1 .. Positive'Last);
type Big_String_Access is access all Big_String;
for Big_String_Access'Storage_Size use 0;
procedure Get_String (
U : Unbounded_String;
S : out Big_St... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Unicode Utilities --
-- --
-- ... |
with Dds.Topic;
with DDS.Entity_Params;
package DDS.Request_Reply.Replier is
type Ref is limited interface;
type Ref_Access is access all Ref;
function Create_Writer_Topic
(Self : not null access Ref;
Params : DDS.Entity_Params.EntityParams;
Name : DDS.String) return DDS.Topic.Ref_Access... |
with System;
with TLSF.Block.Types;
package TLSF.Context with SPARK_Mode, Pure, Preelaborate is
package BT renames TLSF.Block.Types;
type Memory_Context is
record
Base : System.Address;
Region : BT.Address_Space;
end record;
type Context is
record
... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- Reference Implementation --
-- ... |
-------------------------------------------------------------------------------
-- package Chi_Gaussian_CDF, CDF of Normal and Chi-square distributions
-- Copyright (C) 1995-2018 Jonathan S. Parker
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby g... |
with Ada.Text_IO;
----------------------------
-- Agar(Object) -> Animal --
----------------------------
--
-- Ada implementation of the Agar object class "Animal".
--
package body Animal is
package C_obj is new System.Address_To_Access_Conversions (Animal);
package T_IO renames Ada.Text_IO;
function Create_C... |
-- The Cupcake GUI Toolkit
-- (c) Kristian Klomsten Skordal 2012 <kristian.skordal@gmail.com>
-- Report bugs and issues on <http://github.com/skordal/cupcake/issues>
-- vim:ts=3:sw=3:et:si:sta
with Ada.Numerics;
with System;
with Cupcake.Colors;
with Cupcake.Primitives;
package Cupcake.Backends is
use Ada.Num... |
with Ada.Text_IO; use Ada.Text_IO;
with Sf.Config; use Sf.Config;
with Sf.System.Thread; use Sf.System.Thread;
with Sf.System.Sleep; use Sf.System.Sleep;
with Sf.System.Types; use Sf.System.Types;
procedure Main is
procedure Thread_Func (Arg : sfVoid_Ptr) is
begin
for I in 1 .. 10 loop
... |
-- Copyright (c) 2017-2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with WebDriver.Sessions;
with League.JSON.Values;
package WebDriver.Drivers is
type Driver is limited interface;
not over... |
-- NORX_Check_Padding
-- Ensure that headers and trailers of different lengths are accepted
-- and messages of different lengths correctly decrypted (to check padding)
-- Copyright (c) 2016, James Humphry - see LICENSE file for details
with Ada.Text_IO;
use Ada.Text_IO;
with Test_Input_Lengths;
with NORX0841;
with... |
with Ada.Numerics.Generic_Elementary_Functions;
package body Vectors2D is
function "=" (Left, Right : Vec2D) return Boolean is
begin
return (Left.x = Right.x) and (Left.y = Right.y);
end "=";
function "+" (Left, Right : Vec2D) return Vec2D is
begin
return Vec2D'(x => Left.x + Right.x, y =>... |
with Ada.Real_Time; use Ada.Real_Time;
package Tasks is
protected Protect is
procedure Go;
entry Wait;
private
Active : Boolean := False;
end Protect;
task T with Storage_Size => 512;
end Tasks;
|
-- { dg-do compile }
with Ada.Finalization; use Ada;
package ai_116 is
pragma Preelaborate;
type Buffer_Type is limited interface;
type Handle is new Finalization.Limited_Controlled and Buffer_Type with
private;
pragma Preelaborable_Initialization(Handle);
type Ptr is access all String;
Null_... |
package body STM32GD.SPI.Peripheral is
procedure Init is
begin
null;
end Init;
procedure Send (Data : in Byte) is
begin
null;
end Send;
procedure Send (Data : in SPI_Data_8b) is
begin
null;
end Send;
procedure Receive (Data : out Byte) is
begin
null;
end R... |
pragma License (Unrestricted);
with Ada.Numerics.MT19937;
generic
type Result_Subtype is (<>);
package Ada.Numerics.Discrete_Random is
-- Basic facilities
-- type Generator is limited private;
type Generator is new MT19937.Generator;
function Random (Gen : Generator) return Result_Subtype;
function... |
-- Copyright 2017-2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "Chaos"
type = "api"
function start()
set_rate_limit(10)
end
function check()
local c
local cfg = datasrc_config()... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Containers.Indefinite_Vectors;
package Yaml.Dom.Vectors is new Ada.Containers.Indefinite_Vectors
(Positive, Document_Reference);
|
-- NORX_Test_Vectors
-- Copyright (c) 2016, James Humphry - see LICENSE file for details
with Ada.Text_IO;
use Ada.Text_IO;
with Display_NORX_Traces;
with NORX0841;
with NORX1641;
with NORX3241;
with NORX3261;
with NORX6441;
with NORX6461;
procedure NORX_Test_Vectors is
procedure NORX0841_Display is
new D... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Short_Circuit is
function A (Value : Boolean) return Boolean is
begin
Put (" A=" & Boolean'Image (Value));
return Value;
end A;
function B (Value : Boolean) return Boolean is
begin
Put (" B=" & Boolean'Image (Value));
return Valu... |
with Ada.Text_IO;
procedure hello is
begin
Ada.Text_IO.Put_Line ("hello, world");
end hello;
|
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with fann_c.Pointers;
with interfaces.C;
package fann_c.pointer_Pointers is
-- FILE_Pointer_Pointer
--
type FILE_Pointer_Pointer is access all fann_c.Pointers.FILE_Pointer;
-- fann_type_Pointer_Pointer
--
type fann_type_P... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Ada.Strings.Fixed;
package body Apsepp.Debug_Trace_Class.Stub is
----------------------------------------------------------------------------
overriding
function Clock_String
(Obj :... |
PROCEDURE test1 IS
BEGIN
-- missing declaration of n causes this program to crash
FOR i IN 1..n LOOP
NULL;
END LOOP;
END test1;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- SPDX-License-Identifier: BSD-3-Clause
--
-- Copyright (c) 2017 Eric Bruneton
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions
-- are met:
-- 1. Redistributions of source code must retain the a... |
with AVR; use AVR;
with AVR.MCU;
with Interfaces;
package Hardware.Beacon is
-- Tick_Size indicates how many ticks in a 100ms beacon cycle
-- there are.
procedure Init (Tick_Size : in Interfaces.Unsigned_8);
procedure Trigger;
private
LED1_Bit : Bit_Number := 4;
LED2_Bit : Bit_Number := 5;
... |
with Text_IO,ada.Text_IO;
use Text_IO,ada.Text_IO;
procedure Adadocker is
begin
Put_line("******************************");
New_Line(2);
Put_line("Ada running inside docker.");
New_Line(2);
Put_line("******************************");
end Adadocker; |
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: Software Configuration
--
-- Authors: Martin Becker (becker@rcs.ei.tum.de)
with FM25v0x;
-- @summary
-- Target-specific types for the NVRAM in Pixracer V1.
package HIL.Devices.NVRAM ... |
with Ada.Unchecked_Conversion;
with bcm2835_h; use bcm2835_h;
package body Raspio.GPIO is
function Get_Pin_Number
(Pin_ID : Pin_ID_Type)
return x86_64_linux_gnu_bits_stdint_uintn_h.uint8_t;
function Get_Mode_Number is new Ada.Unchecked_Conversion
(Source => Mode_Type,
Target => x86_64_li... |
-- reqrep_task_pool.ads
-- A task pool system for simple request-response activity
-- 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... |
-----------------------------------------------------------------------
-- awa-images-servlets -- Serve files saved in the storage service
-- Copyright (C) 2016 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Ada.Command_Line;
with Ada.Strings.Fixed;
with PortScan.Ops;
with PortScan.Packages;
with PortScan.Buildcycle.Ports;
with PortScan.Buildcycle.Pkgsrc;
with Signals;
with Unix;
package body PortScan.Pilot is
... |
package body Program is
procedure Run is
begin
loop
null;
end loop;
end Run;
end Program;
|
-----------------------------------------------------------------------
-- mat-testsuite - MAT Testsuite
-- Copyright (C) 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compl... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
package Rejuvenation.Nested is
function Remove_Nested_Flags (Source : String;
On_Flag : String;
Off_Flag : String;
Depth : Natural := 0
)
return Stri... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- 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... |
-- openapi_ipify
-- OpenAPI client for ipify, a simple public IP address API
-- ------------ EDIT NOTE ------------
-- This file was generated with openapi-generator. You can modify it to implement
-- the server. After you modify this file, you should add the following line
-- to the .openapi-generator-ignore f... |
with Case_Optimization_Pkg1; use Case_Optimization_Pkg1;
package Case_Optimization1 is
function Len (E : Element) return Integer;
end Case_Optimization1;
|
with AUnit; use AUnit;
with AUnit.Test_Cases; use AUnit.Test_Cases;
package Test_Navigation is
type Navigation_Test_Case is
new Test_Case with null record;
overriding procedure Register_Tests
(T : in out Navigation_Test_Case);
-- Register routines to be run
overriding function Nam... |
-----------------------------------------------------------------------
-- awa-mail-components-messages -- Mail UI Message
-- Copyright (C) 2012, 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 t... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with Ada.Finalization;
with Ada.Streams;
with Interfaces;
package Google.Protobuf.Duration is
type Duration_Vector is tagged private
with Variable_Indexing => Get_Duration_Variable_Reference,
Constant_Indexing => Get_Duration_Constant_Reference;
type Duration is
record
Seconds : Interfac... |
with
AdaM.Factory;
package body AdaM.a_Type.task_type
is
-- Storage Pool
--
record_Version : constant := 1;
pool_Size : constant := 5_000;
package Pool is new AdaM.Factory.Pools (storage_Folder => ".adam-store",
pool_... |
with Ada.Text_IO;
procedure HelloWorld is
begin
Ada.Text_IO.Put_Line("Hello, world!");
end HelloWorld;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
type R is record A: Integer; end record;
procedure P(X: in R) is begin X.A := 0; end;
v: R;
begin
P(v);
end;
|
package agar.gui.widget.box is
use type c.unsigned;
type type_t is (BOX_HORIZ, BOX_VERT);
for type_t use (BOX_HORIZ => 0, BOX_VERT => 1);
for type_t'size use c.unsigned'size;
pragma convention (c, type_t);
type flags_t is new c.unsigned;
BOX_HOMOGENOUS : constant flags_t := 16#01#;
BOX_HFILL :... |
-----------------------------------------------------------------------
-- util-processes -- Process creation and control
-- Copyright (C) 2011 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use th... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
package PortScan.Buildcycle.Pkgsrc is
function build_package (id : builders;
sequence_id : port_id;
interactive : Boolean := False;
... |
package openGL.surface_Profile.privvy
is
-- function to_glx (Self : in Item'Class) return glx.GLXFBConfig;
procedure dummy;
end openGL.surface_Profile.privvy;
|
with
Ada.Strings.unbounded,
Ada.Strings.fixed;
package body AdaM.Assist
is
function identifier_Suffix (Id : in Identifier; Count : in Positive) return Identifier
is
use Ada.Strings,
Ada.Strings.fixed,
Ada.Strings.Unbounded;
the_Id : constant String := String (Id);
... |
-- Test LU decomposition on a real valued square matrix.
with Ada.Numerics.Generic_elementary_functions;
with Crout_LU;
with Text_IO; use Text_IO;
with Test_Matrices;
procedure crout_lu_tst_2 is
type Real is digits 15;
subtype Index is Integer range 0..50;
Starting_Index : constant Index := Index'First +... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
with Ada.Characters;
with Ada.Characters.Latin_1;
with GNAT.Calendar;
with GNAT.Calendar.Time_IO;
with Ada.Calendar.Time_Zones;
package body Utils is
function Clean_Text (Source : String) return String is
use Ada.Characters.Latin_1;
Result : String (1 .. 2 * Source'Length);
K : ... |
generic
package BitOperations.Shift.Axiom.Logic_Left
with SPARK_Mode, Pure, Ghost is
pragma Warnings (GNAT, Off, "postcondition does not check the outcome of calling");
procedure Equal_Mult_By_Power_2
(Value : Modular; Amount : Natural)
with Pre => Amount in 0 .. Modular'Size,
Post => (BitOperati... |
-- Copyright 2016-2021 Bartek thindil Jasicki
--
-- This file is part of Steam Sky.
--
-- Steam Sky 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 3 of the License, or
-- (a... |
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
-- --
-- package Copyright (c) Dmitry A. Kazakov --
-- Object.Handle.Unbounded_Array Luebeck --
-- Implementation Spring, 2003 --
-- ... |
-----------------------------------------------------------------------
-- Ada Labs --
-- --
-- Copyright (C) 2008-2009, AdaCore --
-- ... |
package Renaming4 is
type Big_Array is array (Natural range <>) of Integer;
subtype Index is Natural range 1..4;
subtype My_Array is Big_Array(Index);
A : constant My_Array := (1, 2, 3, 4);
subtype Small is Index range 1..2;
subtype Small_Array is Big_Array(Small);
B : Small_Array renames A(In... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ skills vector container implementation --
-- |___/_|\_\_|_|____| by: Dennis Przytarski, Timm Felden ... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
package body volatile2 is
procedure Copy is
R : Result;
M : Integer;
subtype Get_Data is Command_Data (Get, R.Data'Last);
begin
declare
G : Get_Data;
for G'Address use M'Ad... |
-----------------------------------------------------------------------
-- babel-strategies-workers -- Tasks that perform strategy work
-- Copyright (C) 2014 Stephane.Carrez
-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may no... |
with
openGL.Palette,
openGL.Primitive.non_indexed;
package body openGL.Model.grid
is
function Line_Count (Extent : in Positive) return Positive
is
begin
if Extent mod 2 /= 0
then
return Extent;
else
return Extent + 1;
end if;
end Line_Count;
----... |
-- This spec has been automatically generated from STM32WL5x_CM0P.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.RCC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_MSIRANGE_Field... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Tkmrpc.Request;
with Tkmrpc.Response;
package Tkmrpc.Operation_Handlers.Ees.Esa_Acquire is
procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type);
-- Handler for the esa_acquire operation.
end Tkmrpc.Operation_Handlers.Ees.Esa_Acquire;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Cellular_Automata is
type Petri_Dish is array (Positive range <>) of Boolean;
procedure Step (Culture : in out Petri_Dish) is
Left : Boolean := False;
This : Boolean;
Right : Boolean;
begin
for Index in Culture'First..Culture'Last - 1 lo... |
-- { dg-do run }
-- { dg-options "-gnatws" }
procedure alignment1 is
type My_Integer is record
Element : Integer;
end record;
F : My_Integer;
begin
if F'Alignment /= F.Element'Alignment then
raise Program_Error;
end if;
end;
|
with
openGL.Renderer.lean,
openGL.Camera,
openGL.Visual,
openGL.Palette,
openGL.Model.box.colored,
openGL.Demo;
procedure launch_Camera_Demo
--
-- Exercise the camera.
--
is
use openGL,
openGL.Model,
openGL.Model.box,
openGL.Palette,
openGL.Math,
ope... |
with Ada.Text_IO;
with GNAT.Sockets;
with Interfaces;
with Kafka;
with Kafka.Config;
with Kafka.Topic;
with System;
--
-- Basic Kafka producer
--
procedure Simple_Producer is
Config : Kafka.Config_Type;
Handle : Kafka.Handle_Type;
Topic : Kafka.Topic_Type;
begin
Ada.Text_IO.Put_Line("Kafka version: " ... |
with
gel.Window.sdl,
gel.Applet.gui_world,
gel.Forge,
gel.Sprite,
openGL.Palette,
openGL.Model.text.lit_colored,
Physics;
pragma unreferenced (gel.Window.sdl);
procedure launch_text_sprite_Demo
--
-- Shows a few text sprites.
--
is
use gel.Math,
openGL.Palette;
the... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, Universidad Politécnica de Madrid --
-- --
-- T... |
-- This unit provides a COBS encoder using lock-free BipBuffer (BBqueue).
with BBqueue;
package COBS.Queue.Encoder
with Preelaborate
is
Min_Buf_Size : constant := 255;
subtype Buffer_Size
is BBqueue.Buffer_Size range 2 * Min_Buf_Size ..
BBqueue.Buffer_Size'Last;
-- The idea behind "2 * Min_Bu... |
-- 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
eGL;
package opengl.Surface.privvy
is
function to_eGL (Self : in Surface.item'Class) return egl.EGLSurface;
end opengl.Surface.privvy;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is begin if true or 'a' then new_line; end if; end;
|
-- { dg-excess-errors "cannot generate code" }
package Concat1_Pkg is
function Id_For (Name : String) return Natural;
function Image_Of return String;
end Concat1_Pkg;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public --
-- License as published by... |
-- BinToAsc_Example
-- Binary data to/from ASCII codecs example
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
with Ada.Text_IO;
use Ada.Text_IO;
with String_To_Storage_Array;
with Storage_Array_To_String;
with Storage_Array_To_Hex_String;
with RFC4648, ASCII85;
use RFC4648, ASCII85;
with Syste... |
with System.Address_To_Constant_Access_Conversions;
with System.Wide_Startup; -- force to be an unicode application
with System.Zero_Terminated_WStrings;
with C.winnt;
package body System.Native_Command_Line is
function Argument_Count return Natural is
begin
return Wide_Startup.wargc - 1;
end Argument_C... |
pragma Warnings (Off);
pragma Ada_95;
with System;
with System.Parameters;
with System.Secondary_Stack;
package ada_main is
gnat_argc : Integer;
gnat_argv : System.Address;
gnat_envp : System.Address;
pragma Import (C, gnat_argc);
pragma Import (C, gnat_argv);
pragma Import (C, gnat_envp);
gnat_... |
with
gel_demo_Services,
gel.Window.lumen,
gel.Applet.gui_World,
gel.World,
gel.Forge,
gel.Camera,
gel.Sprite,
float_Math,
ada.Text_IO,
ada.Exceptions;
package body gel_demo_Client
is
use ada.Text_IO;
package Math renames float_Math;
task body Item
i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.