content stringlengths 23 1.05M |
|---|
-- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O G... |
package body ENGLISH_SUPPORT_PACKAGE is
--use EWDS_DIRECT_IO;
use TEXT_IO;
package body EWDS_RECORD_IO is
package INTEGER_IO is new TEXT_IO.INTEGER_IO(INTEGER);
use PART_OF_SPEECH_TYPE_IO;
use FREQUENCY_TYPE_IO;
use TEXT_IO;
use INTEGER_IO;
SPACER : CHARACTER := ' ';
NWIDTH : co... |
with Gtk.Window; use Gtk.Window;
with Gtk.Widget; use Gtk.Widget;
with Gtk.Handlers;
with Gtk.Main;
procedure Windowed_Application is
Window : Gtk_Window;
package Handlers is new Gtk.Handlers.Callback (Gtk_Widget_Record);
package Return_Handlers is
new Gtk.Handlers.Return_Callback (Gtk_Widget_Record... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- --
-- ... |
package HIL.Devices is
type Device_Type_SPI is (NONE);
type Device_Type_GPIO is (NONE);
type Device_Type_I2C is (NONE);
type Device_Type_UART is (NONE);
end HIL.Devices;
|
with AUnit.Test_Cases;
with AUnit.Test_Fixtures;
with AUnit.Test_Suites;
with GNAT.Source_Info;
private with Ada.Finalization;
private with Ada.Strings.Unbounded;
generic
type Fixture is new AUnit.Test_Fixtures.Test_Fixture with private;
package AUnit.Suite_Builders_Generic is
type Builder is tagged limited pri... |
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org)
-- This software is provided 'as-is', without any express or implied warranty.
-- In no event will the authors be held liable for any damages arising from the use of this software.
-- Permission is granted to a... |
with Globals_Example1;
package Md_Example3 is
type Record_With_Integer_Rtype is record
Attribute : Globals_Example1.Itype;
end record;
function Unrelated (The_I : Globals_Example1.Itype)
return Globals_Example1.Itype;
end Md_Example3;
|
with GNAT.Regexp; use GNAT.Regexp;
with Ada.Directories;
with Ada.Characters.Conversions;
with Ada.Text_IO;
with GNATCOLL.Mmap;
with Templates_Parser;
with GNAT.Strings;
with Ada.Strings.Fixed;
with Globals;
with Ada.Exceptions; use Ada.Exceptions;
with Linereader;
with Ada.Strings;
with Ada.Strings.Maps;
with Ad... |
-- { dg-do run }
with System.Storage_Elements; use System.Storage_Elements;
procedure Discr39 is
type Rec (Has_Src : Boolean) is record
case Has_Src is
when True => Src : aliased Integer;
when False => null;
end case;
end record;
pragma Pack(Rec);
for Rec'Alignment use Integer'Alig... |
with
lace.Any;
private
with
lace.make_Subject,
lace.make_Observer,
ada.Strings.unbounded;
package chat.Client.local
--
-- Provides a local client.
-- Names must be unique.
--
is
type Item is limited new lace.Any.limited_item
and chat.Client .item with private;
ty... |
with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure Day_01 is
function Fuel(Mass: Natural) return Natural is
Result: constant Integer := Mass / 3 - 2;
begin
if Result <= 0 then
return 0;
else
return Result + Fuel(Result);
end if;
end Fuel;
Total_Fuel: Natural :=... |
with MPFR.Root_FR;
package body MPC.Generic_C is
use type Imaginary_FR.MP_Float;
function Rounding return MPC.Rounding is
begin
return Compose (
Real_FR.Rounding,
Imaginary_FR.Rounding);
end Rounding;
function i return MP_Imaginary is
begin
return To_MP_Float (1.0);
end i;
function Re (X : MP_Co... |
-- package pc_1_coeff_18
--
-- Predictor_Rule : Integration_Rule renames Predictor_32_18;
--
-- Corrector_Rule : Integration_Rule renames Corrector_33_18;
--
-- Final_Step_Corrector : Real renames Final_Step_Corrector_33_18;
generic
type Real is digits <>;
package pc_1_coeff_18 is
subtype ... |
with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada;
procedure math_test is
num1 : Integer;
num2 : Integer;
sum : Integer;
begin
num1 := 3;
num2 := 5;
sum := num1 + num2;
Integer_Text_IO.put(sum);
end math_test;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- 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... |
-----------------------------------------------------------------------
-- are-testsuite -- Testsuite for are
-- Copyright (C) 2021 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 ... |
with Ada.Streams;
package YAML.Streams is
pragma Preelaborate;
function Create (
Stream : not null access Ada.Streams.Root_Stream_Type'Class)
return Parser;
function Create (
Stream : not null access Ada.Streams.Root_Stream_Type'Class)
return Emitter;
end YAML.Streams;
|
package access3 is
type IT is limited interface;
type T is limited new IT with null record;
type T2 is tagged limited null record;
procedure Op
(Obj_T2 : in out T2;
Obj_IT : not null access IT'Class);
end access3;
|
package body dpila is
procedure pvacia(p: out pila) is
top: pnodo renames p.top;
begin
top := null;
end pvacia;
function estavacia(p: in pila) return boolean is
top: pnodo renames p.top;
begin
return top = null;
end estavacia;
function cima(p: in pila) return elem is
... |
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
with GNATCOLL.Readline;
with Setup;
with ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Definitions; use Definitions;
private with Ada.Text_IO;
package Port_Specification.Makefile is
-- This generates a makefile from the specification based on given parameters
-- The variant must be "s... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ skills vector container implementation --
-- |___/_|\_\_|_|____| by: Dennis Przytarski, Timm Felden ... |
with p4;
with Assume_Call;
procedure Main with SPARK_Mode is
begin
--Assume_Call.Caller;
p4.foo;
end Main;
|
with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions;
with Ada.Unchecked_Conversion;
with Interfaces.C.Pointers;
with PaTest_TooManySines_Types; use PaTest_TooManySines_Types;
package body PaTest_TooManySines_Callbacks is
package Float_Ptrs is
new Interfaces.C.Pointers (Index ... |
-- General Profiler
-- Author: Emanuel Regnath (emanuel.regnath@tum.de)
--
-- Description: measures execution time between 'start' and 'stop'.
-- Stores maximum execution time.
--
-- Usage: enter loop, call 'start', execute code, call 'stop'.
-- call 'get_Max' outside of loop to retrieve... |
with
GL.lean,
Interfaces.C.Strings,
System;
package GL.Pointers
--
-- Provides pointer conversions.
--
is
use Interfaces;
function to_GLvoid_access (From : in system.Address) return access GLvoid;
function to_GLvoid_access (From : access C.unsigned_char) return access GLvoid;
... |
-- C45331A.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.Integer_Text_IO;
with Ada.Text_IO;
package body Problem_09 is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
procedure Solve is
Squares : Array (1 .. 1000) of Positive;
begin
for index in Squares'Range loop
Squares(index) := index * index;
end l... |
--*****************************************************************************
--*
--* PROJECT: BingAda
--*
--* FILE: q_csv-q_read_file.adb
--*
--* AUTHOR: Javier Fuica Fernandez
--*
--*****************************************************************************
with Ada.Exception... |
private with STM32.GPIO, STM32.Device;
package TTS_Example2 is
procedure Main;
private
use STM32.GPIO, STM32.Device;
Probe_TT_Point : GPIO_Point := PD2;
Probe_ET_Point : GPIO_Point := PD6;
end TTS_Example2;
|
with Ada.Text_IO;
procedure Box_The_Compass is
type Degrees is digits 5 range 0.00 .. 359.99;
type Index_Type is mod 32;
function Long_Name(Short: String) return String is
function Char_To_Name(Char: Character) return String is
begin
case Char is
when 'N' | 'n' => return Ch... |
-- with Blade_Types;
with C3GA;
with C3GA_Draw;
with GA_Maths;
-- with GA_Utilities;
with Metric;
with Multivector_Utilities;
package body Draw_1_1 is
-- ---------------------------------------------------------------------
function Draw_Circle (Render_Program : GL.Objects.Programs.Program;
... |
with
AdaM.a_Type.ordinary_fixed_point_type,
gtk.Widget;
private
with
gtk.gEntry,
gtk.Box,
gtk.Label,
gtk.Spin_Button,
gtk.Button;
package aIDE.Editor.of_fixed_type
is
type Item is new Editor.item with private;
type View is access all Item'Class;
package Forge
is
... |
-----------------------------------------------------------------------
-- city_mapping -- Example of serialization mapping for city CSV records
-- Copyright (C) 2011 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- y... |
-- { dg-do run }
-- { dg-options "-O2" }
with Nested_Subtype_Byref;
procedure Test_Nested_Subtype_Byref is
begin
Nested_Subtype_Byref.Check;
end;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Decls.Dgenerals,
Decls.Dtnode,
Decls.D_Taula_De_Noms,
Decls.D_Atribut,
Decls.dtsimbols,
Ada.Text_Io,
Decls.dtdesc;
use Decls.Dgenerals,
Decls.Dtnode,
Decls.D_Taula_De_Noms,
Decls.D_Atribut,
Decls.dtsimbols,
Ada.Text_Io,
Decls.dtdesc;
package Semantica is
--Definicions basiques
type... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2020, AdaCore --
-- --
-- ... |
--
-- Jan & Uwe R. Zimmer, Australia, July 2011
--
package body Timing is
Time_Keeper : Time := Clock;
function Timer return Time_Span is
Timed : constant Time_Span := Clock - Time_Keeper;
begin
Time_Keeper := Time_Keeper + Timed;
return Timed;
end Timer;
end Timing;
|
-- C25001A.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... |
package Pig is
type Dice_Score is range 1 .. 6;
type Player is tagged private;
function Recent(P: Player) return Natural;
function All_Recent(P: Player) return Natural;
function Score(P: Player) return Natural;
type Actor is abstract tagged null record;
function Roll_More(A: Actor; Self, Opponen... |
-----------------------------------------------------------------------
-- util-events-timers-tests -- Unit tests for timers
-- Copyright (C) 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... |
with Ada.Text_IO;
package body RCP.Control is
protected body Controller is
entry Demand
(Res : out Resource_T;
Req : Request_T) when Free > 0 is
-- we accept the request if we have spare resources to offer
begin
-- but we satisfy it ONLY if have enough for it
... |
--
-- This library is free software; you can redistribute it and/or modify
-- it under the terms of the GNU Library General Public License as
-- published by the Free Software Foundation; either version 3 of the
-- License; or (at your option) any later version.
package body Unbounded_Sequential_Queues is
... |
------------------------------------------------------------------------
-- Copyright (C) 2004-2020 by <ada.rocks@jlfencey.com> --
-- --
-- This work is free. You can redistribute it and/or modify it under --
-- the terms of the Do What... |
with C.gc.gc;
package body GC is
use type C.unsigned_int;
-- the version variable is not declared in header files
GC_version : C.unsigned_int
with Import, Convention => C, External_Name => "GC_version";
-- implementation
function Version return String is
Major : constant C.unsigned_int := C.Shift_Right (... |
with Ada.Numerics.Generic_Elementary_Functions;
with Ada.Unchecked_Conversion;
use Ada.Numerics;
--use Ada.Numerics.Aux;
package body Generic_Vector_Math is
package Float_Functions is new Generic_Elementary_Functions (float);
use Float_Functions;
function BitCopyToTypeT is new Ada.Unchecked_Conversion(float, ... |
-----------------------------------------------------------------------
-- security-policies -- Security Policies
-- Copyright (C) 2010, 2011, 2012, 2015, 2018 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 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Text_IO;
with Slim.Messages.cont;
package body Slim.Players.Play_Files_Visiters is
----------
-- BUTN --
--------... |
pragma Ada_2012;
package body BitOperations.Search.Axiom.Most_Significant_Bit with SPARK_Mode => Off is
-----------------------
-- Result_Is_Correct --
-----------------------
procedure Result_Is_Correct (Value : Modular; Index : Bit_Position) is
null;
procedure Order_Preservation_Value_To_Index(Va... |
with Ada.Numerics.Generic_Elementary_Functions;
package body goertzel with
SPARK_Mode => On
is
package Ef is new Ada.Numerics.Generic_Elementary_Functions(Value);
use Ef;
function Calc_Koef(F, Fs: Value) return Value is (2.0 * Cos(2.0 * Ada.Numerics.Pi * F / Fs))
with
Pre => (Fs < 100_000.0) ... |
package body BSSNBase.Coords is
function x_coord (i : Integer) return Real is
begin
return Real(i-1)*dx;
end x_coord;
function y_coord (j : Integer) return Real is
begin
return Real(j-1)*dy;
end y_coord;
function z_coord (k : Integer) return Real is
begin
return Real(k-1)*dz... |
with Ada.Text_IO; use Ada.Text_IO;
package body I_Am_Ada_Too is
procedure Ada_Procedure_Too is
begin
Put_Line(" Hello, I am Ada code too.");
end Ada_Procedure_Too;
end I_Am_Ada_Too;
|
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
package body Apsepp.Test_Node_Class.Private_Test_Reporter is
----------------------------------------------------------------------------
procedure Run_Instance_Process_Primitive is
begin
Shared... |
------------------------------------------------------------------------------
-- --
-- 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... |
pragma Style_Checks (Off);
--
-- Copyright (c) 2009, 2012 Tero Koskinen <tero.koskinen@iki.fi>
--
-- Permission to use, copy, modify, and 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.
--
-- ... |
-- 程序名稱必須跟檔案名稱相同
procedure Basic is -- 這個區塊是一個叫做 basic 的程序
begin -- 由此開始
null;
end Basic; -- 由此結束
|
------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
--
-- Trivial implementation compilation unit base class
with Ada.Strings.Wide_Wide_Unbounded;
with Program.Compilation_Units;
with ... |
package freetype_c.FT_BBox
is
type Item is
record
xMin : aliased FT_Pos;
yMin : aliased FT_Pos;
xMax : aliased FT_Pos;
yMax : aliased FT_Pos;
end record;
type Item_array is array (C.Size_t range <>) of aliased FT_BBox.Item;
type Pointer is access all FT... |
with Ada.Text_IO;
use Ada.Text_IO;
generic
N, H : in Natural;
package Data is
type Vector is array(Integer range <>) of Integer;
Subtype VectorN is Vector(1..N);
Subtype Vector4H is Vector(1..4 * H);
Subtype Vector3H is Vector(1..3 * H);
Subtype Vector2H is... |
with
openGL.Visual,
openGL.Model.Billboard. textured,
openGL.Model.Billboard.colored_textured,
openGL.Palette,
openGL.Demo;
procedure launch_render_Billboards
--
-- Exercise the render of billboard models.
--
is
use openGL,
openGL.Model,
openGL.Math,
openGL.line... |
-----------------------------------------------------------------------
-- util-encoders-base16 -- Encode/Decode a stream in hexadecimal
-- Copyright (C) 2009, 2010, 2011, 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Licens... |
with PixelArray; use PixelArray;
package body Morphology is
function maxPixel(image: PixelArray.ImagePlane; x, y: Natural; size: Positive) return PixelArray.Pixel is
result: PixelArray.Pixel;
begin
result := image.get(x, y);
for py in y - size / 2 .. y + size / 2 loop
for px in x - siz... |
with Ada.Real_Time; use Ada.Real_Time;
package mylog with SPARK_Mode is
type msgtype is (NONE, TEXT, GPS);
type logmsg (typ : msgtype := NONE) is record
t : Time := Time_First;
case typ is
when NONE => null;
when TEXT =>
txt : String (1 .. 128) := (others => Character'Val (0));... |
with decls.dgenerals,
Ada.Text_IO;
use decls.dgenerals,
Ada.Text_IO;
package Semantica.Missatges is
type Terror is
(paramsPprincipal,
id_existent,
idProgDiferents,
tipusParam,
paramRepetit,
enregArg,
tipusInexistent,
tipusSubIncorrecte,
rang_sobrepassat,
... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Simple_Blockchain.Block;
with Simple_Blockchain.Blockchain;
use Simple_Blockchain;
function Simple_Blockchain_Demo return Integer is
The_Blockchain : Blockchain.Object := Blockchain.Make (Difficulty => 6);
begin
Put_Line ("Simple blockchain demo");
New_Line;
Put_L... |
With
NSO.Helpers,
Ada.Text_IO,
Config, INI,
GNAT.Sockets.Server,
GNAT.Sockets.SMTP.Client.Synchronous;
Procedure Send_Report(Text : String:= ""; Params : INI.Instance:= INI.Empty) is
use all type GNAT.Sockets.SMTP.Client.Mail;
Use GNAT.Sockets.SMTP.Client, GNAT.Sockets.Server;
DEBUG : Constant Boolean:=... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Fat_Flt is
pragma Pure;
package Attr_Float is
-- required for Float'Adjacent by compiler (s-fatgen.ads)
function Adjacent (X, Towards : Float) return Float
with Import,
Convention => Intr... |
with Ada.Text_IO;
use Ada.Text_IO;
procedure OwO is
begin
Put_Line ("OwO");
end OwO;
|
-- C97301A.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... |
-- { dg-do run }
-- { dg-options "-O2" }
procedure Derived_Aggregate is
type Int is range 1 .. 10;
type Str is array (Int range <>) of Character;
type Parent (D1, D2 : Int; B : Boolean) is
record
S : Str (D1 .. D2);
case B is
when False => C1 : Integer;
when True => C2 : Float;
... |
-- Abstract :
--
-- Parser for Wisi grammar files, producing Ada source
-- files for a parser.
--
-- Copyright (C) 2012 - 2015, 2017 - 2019 Free Software Foundation, Inc.
--
-- The WisiToken package is free software; you can redistribute it
-- and/or modify it under terms of the GNU General Public License as
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Greet_5b is
I : Integer := 1; -- Variable declaration
-- ^ Type
-- ^ Initial value
begin
loop
Put_Line ("Hello, World!" & Integer'Image (I));
exit when I = 5; -- Exit statement
-- ^ Boolean condition
-- Assig... |
with Ada.Text_IO;
with GNATCOLL.JSON;
procedure JSON_Test is
use Ada.Text_IO;
use GNATCOLL.JSON;
JSON_String : constant String := "{""name"":""Pingu"",""born"":1986}";
Penguin : JSON_Value := Create_Object;
Parents : JSON_Array;
begin
Penguin.Set_Field (Field_Name => "name",
F... |
with Pointer_Discr1_Pkg2;
package Pointer_Discr1_Pkg1 is
type Arr is array (1..4) of Pointer_Discr1_Pkg2.T_WINDOW;
Window : Arr;
end Pointer_Discr1_Pkg1;
|
pragma License (Unrestricted);
with Ada.Characters.Handling;
package GNAT.Case_Util is
pragma Preelaborate; -- Ada.Characters.Handling is not pure.
function To_Lower (A : Character) return Character
renames Ada.Characters.Handling.To_Lower;
procedure To_Lower (A : in out String);
end GNAT.Case_Util;
|
package Array26_Pkg is
subtype Outer_Type is String (1 .. 4);
subtype Inner_Type is String (1 .. 3);
function F return Inner_Type;
end Array26_Pkg;
|
-----------------------------------------------------------------------
-- tool-main -- Main tool program
-- Copyright (C) 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 except in comp... |
pragma License (Unrestricted);
-- extended unit
with Ada.Environment_Encoding.Generic_Strings;
package Ada.Environment_Encoding.Wide_Strings is
new Generic_Strings (
Wide_Character,
Wide_String);
-- Encoding / decoding between Wide_String and various encodings.
pragma Preelaborate (Ada.Environment_Enco... |
-----------------------------------------------------------------------
-- asf-converters-sizes -- Size converter
-- Copyright (C) 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 ... |
with AVTAS.LMCP.Types; use AVTAS.LMCP.Types;
package String_Utils is
function To_String (Input : Int32) return String;
function To_String (Input : Int64) return String;
function To_String (Input : UInt32) return String;
end String_Utils;
|
package Subtypes is
subtype small is Integer range -10 .. 10;
end Subtypes;
|
with Ada.Text_IO;
package body AOC.AOC_2019.Day01 is
function Create return Day.Access_Day is
begin
return new Day_01' (others => <>);
end Create;
procedure Init (D : in out Day_01; Root : String) is
use Ada.Text_IO;
File : File_Type;
begin
Open (File => File,
Mode =... |
------------------------------------------------------------------------------
-- Copyright (c) 2015, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-- generated parser support file.
-- command line: wisitoken-bnf-generate.exe --generate LR1 Ada_Emacs re2c PROCESS gpr.wy
--
-- Copyright (C) 2013 - 2020 Free Software Foundation, Inc.
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public Licens... |
-----------------------------------------------------------------------
-- nodes-facelets -- Facelets composition nodes
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- yo... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Cross_Reference_Updaters;
with Program.Elements.Identifiers;
with Program.Simple_Resolvers;
with Program.Symbol_Lists;
with Program.Error_Liste... |
with Ada.Real_Time; use type Ada.Real_Time.Time; use Ada;
with AdaCar.Organizador_Movimiento;
with AdaCar.Sensor_Proximidad;
package body AdaCar.Seguimiento_Sensor is
----------------------
-- Seguimiento_Task --
----------------------
task body Seguimiento_Task is
Tseg: constant Duration:= Paramet... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
-----------------------------------------------------------------------
-- awa_command - Tests for AWA command
-- 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 except in... |
-- { dg-do compile }
-- { dg-options "-O -gnatws" }
-- PR middle-end/35136
pragma Extend_System(AUX_DEC);
with System;
procedure Loop_Address is
function Y(E : Integer) return String is
begin
return "";
end Y;
function X(C : in System.Address) return String is
D : Integer;
for D use a... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.