content stringlengths 23 1.05M |
|---|
--PRÁCTICA 2: César Borao Moratinos (chat_server)
with Ada.Text_IO;
with Chat_Messages;
with Lower_Layer_UDP;
with Ada.Command_Line;
with Client_Collections;
with Ada.Strings.Unbounded;
procedure Chat_Server is
package ATI renames Ada.Text_IO;
package CM renames Chat_Messages;
package LLU renames Lower... |
with Ada.Strings.Unbounded;
package body Geo3x3 is
function Encode (PLat: in Long_Float; PLng: in Long_Float; Level: in Integer) return String is
use Ada.Strings.Unbounded;
Res: Unbounded_String;
Lat: Long_Float;
Lng: Long_Float;
Unit: Long_Float;
begin
if Level < 1 then
... |
-----------------------------------------------------------------------
-- encodes -- Encodes strings
-- Copyright (C) 2010, 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 this file except in co... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/L... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Ada.Directories; use Ada.Directories;
with Ada.Strings.Unbounded;
with Ada.Text_IO.Unbounded_IO; use Ada.Text_IO.Unbounded_IO ;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Containers.Vectors;
use Ada.Containers;
procedure Main is
nameOk : boolean := false;
fileExists : boole... |
generic
Lower_Bound, Upper_Bound : Integer; -- bounds in which random numbers are generated
-- { Lower_Bound <= Upper_Bound }
package Alea is
-- Compute a random number in the range Lower_Bound..Upper_Bound.
--
-- Notice that Ada advocates the definition of a range type in such a case
-- to ensure that the type... |
with Ada.Strings.Unbounded;
package Iictl is
procedure Iictl;
procedure Parse_Options;
function Default_Irc_Dir return Ada.Strings.Unbounded.Unbounded_String;
end Iictl;
|
-------------------------------------------------------------------------------
-- Copyright (c) 2019, Daniel King
-- 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... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- Reference Implementation --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Mandelbrot is
-- Ada 2012
-- function Add(x, y: in Integer) return Integer is (X+Y);
-- function Sub(x, y: in Integer) return Integer is (X-Y);
-- function Mul(x, y: in Integer) return Integer is ((X * Y + 8192 / 2) / 8192);
-- function Div(x, y: in Inte... |
with iconv.Generic_Strings;
package iconv.Strings is new Generic_Strings (Character, String, "LATIN1");
-- Encoding / decoding between String and various encodings.
pragma Preelaborate (iconv.Strings);
|
--
-- Copyright (C) 2016 Nico Huber <nico.h@gmx.de>
--
-- 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.
--
-- This pr... |
with Generic_Swap;
...
type T is ...
package T_Swap is new Generic_Swap(Swap_Type => T);
A,B:T;
...
T_Swap(A,B);
|
with Inline13_Pkg;
package Inline13 is
type Arr is array (Positive range <>) of Inline13_Pkg.T;
function F (L : Arr) return String;
end Inline13;
|
with System;
package Allocator_Maxalign2 is
type Block is record
X : Integer;
end record;
for Block'Alignment use Standard'Maximum_Alignment;
Addr : System.Address;
procedure Check;
end;
|
generic
type Index_Type is (<>);
-- Array index type.
type Element_Type is private;
-- Array element type.
type Array_Type is array (Index_Type range <>) of Element_Type;
with function "<" (Left, Right : Element_Type) return Boolean is <>;
package My_Generic_Package is
-- @summary
-- Test pack... |
with Ada.Characters.Handling;
with Ada.Text_IO;
with Ada.Wide_Text_IO;
with GNAT.Traceback.Symbolic;
package body Generic_Logging is
Wide_Module_Name : constant Wide_String :=
Ada.Characters.Handling.To_Wide_String (Module_Name);
------------
-- EXPORTED:
------------
procedure Log (Messag... |
------------------------------------------------------------------------------
-- G E L A X A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with ARM_Output,
ARM_Contents;
--private -- Ada 2005
with ARM_Input,
ARM_Database,
ARM_Subindex;
package ARM_Format is
--
-- Ada reference manual formatter (ARM_Form).
--
-- This package contains the routines to parse the input files, and
-- determine what to output.
--
-- --... |
------------------------------------------------------------------------------
-- AGAR GUI LIBRARY --
-- A G A R . W I D G E T --
-- S p e c --
----... |
-- Copyright 2019 Michael Casadevall <michael@casadevall.pro>
--
-- 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, cop... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ field handling in skill --
-- |___/_|\_\_|_|____| by: Timm Felden ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with STM32.GPIO;
use STM32.GPIO;
with HAL.GPIO;
package Digital is
type Digital_Mode is (Input, Output);
-- Input or Output
type Signal_Mode is (HIGH,LOW);
-- HIGH or LOW
procedure Configure_Pin(Pin : GPIO_Point; Mode : Digital_Mode);
-- Configure a channel as Output or Input
procedure Set_Sig... |
with SDA_Exceptions; use SDA_Exceptions;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Unchecked_Deallocation;
package body ABR is
procedure Free is
new Ada.Unchecked_Deallocation (Object => T_Noeud, Name => T_ABR);
procedure Initialiser(Sda: out T... |
with Ada.Numerics.Elementary_Functions;
with SDL.Video.Windows.Makers;
with SDL.Video.Renderers.Makers;
with SDL.Video.Rectangles;
with SDL.Events.Events;
procedure Fractal_Tree is
Width : constant := 600;
Height : constant := 600;
Level : constant := 13;
Length : constant := 130.0;
X_Start : co... |
with Ada.Text_IO;
use Ada.Text_IO;
procedure CipoPor is
-- task Por
task Por is
entry labnyom;
end Por;
task body Por is
begin
for I in 1..10 loop
accept labnyom do
Put_Line("Labnyom a homokban");
end labnyom;
end loop;... |
with RTCH.Visuals.Canvases; use RTCH.Visuals.Canvases;
with RTCH.Colours; use RTCH.Colours;
package RTCH.Visuals.Canvases.Steps is
-- @given ^c ← canvas\((\d+), (\d+)\)$
procedure Given_Canvas_C (Width, Height : Positive);
-- @then ^c.width = (\d+)$
procedure Then_C_Width_Is (W : Positive);
-- @and ^c.... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with Ada.Text_Io;
procedure Max_Test isco
-- substitute any array type with a scalar element
type Flt_Array is array (Natural range <>) of Float;
-- Create an exception for the case of an empty array
Empty_Array : Exception;
function Max(Item : Flt_Array) return Float is
Max_Element : Float := F... |
--
-- Basic checks of installation of the PCRE Ada binding.
--
-- giving some details of PCRE build options.
-- test of compile/study/match
--
with Text_IO; use Text_IO;
with AdaPcre; use AdaPcre;
with Ada.Environment_Variables; use Ada.Environment_Variables;
procedure Pcre_Config i... |
-----------------------------------------------------------------------
-- util-log-loggers -- Utility Log Package
-- Copyright (C) 2001 - 2019, 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 th... |
with Rac;
use Rac;
procedure demo is
A : Raci := 5 / 4;
B : Raci := 3/2;
begin
kiir(A+B);
end demo;
|
with Ada.Text_IO;
with Ada.Exceptions;
with AWS.Server;
with AWS.Response;
with AWS.Status;
with AWS.MIME;
with AWS.Config;
with AWS.Config.Set;
with AAA.Strings;
package body Adabots_Lua_Dispatcher is
function Create_Lua_Dispatcher return Lua_Dispatcher is
Default_Port : constant := 7_112;
begin
Ad... |
with Ada.Exception_Identification.From_Here;
with Ada.Unchecked_Conversion;
with System.C_Encoding;
with System.Formatting;
with System.Long_Long_Integer_Types;
with C;
package body Interfaces.COBOL is
use Ada.Exception_Identification.From_Here;
use type System.Bit_Order;
use type System.Long_Long_Integer_Type... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- MIT License
-- Copyright (c) 2021 Stephen 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,... |
--
-- This package defines few protected objects used to communicate
--
pragma Assertion_Policy (disable);
with Fakedsp.Card; use Fakedsp.Card;
private package Fakedsp.Protected_Buffers is
type Float_Array is array (Positive range <>) of Float;
------------------
-- State_Buffer --
------------------
... |
with Ada.Text_IO;
with Matrices;
procedure Multiple_Regression is
package Float_Matrices is new Matrices (
Element_Type => Float,
Zero => 0.0,
One => 1.0);
subtype Vector is Float_Matrices.Vector;
subtype Matrix is Float_Matrices.Matrix;
use type Matrix;
procedure Output_Matrix (X : Ma... |
with Agar.Core.Thin;
with Ada.Strings.Unbounded;
package Agar.Core.Init is
--
-- Get_Version.
--
procedure Get_Version
(Major : out Natural;
Minor : out Natural;
Patch : out Natural;
Release : out Ada.Strings.Unbounded.Unbounded_String);
type Init_Flags_Select_t is
(Verbose,
... |
procedure Std_Ascii_User is
package P1 IS
private
use Ascii;
-- use Standard.Ascii;
end P1;
package body P1 IS
end P1;
begin
null;
end Std_Ascii_User;
|
package Task_Subprogram_Calls is
task type T1 is
entry E1;
end T1;
task type T2 is
entry E1;
entry E2;
end T2;
procedure Test1;
procedure Test2;
protected type PT1 is
procedure P1;
procedure P2(I : Integer);
function F1 return Integer;
function F2(I... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with Ada.Containers.Vectors;
with League.Strings;
with League.String_Vectors;
with Markdown.Link_Registers;
package Markdown.Inline_Parsers is
type... |
with SPARKNaCl.Scalar;
with SPARKNaCl.Secretbox;
package body SPARKNaCl.Cryptobox
with SPARK_Mode => On
is
procedure Keypair (Raw_SK : in Bytes_32;
PK : out Public_Key;
SK : out Secret_Key)
is
begin
SK.F := Raw_SK;
PK.F := Scalar.Mult... |
-- 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) 2013-2020, Luke A. Guest
--
-- 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 f... |
package body ship is
--------------------------------------
-- Build Ship
--------------------------------------
function is_Colony return Ship_Data is
result: Ship_Data := (Colony, 1, 2, 0, 0);
begin
return result;
end is_Colony;
--------------------------------------
function is_StarShip retu... |
-----------------------------------------------------------------------
-- wiki-render-text -- Wiki Text renderer
-- Copyright (C) 2011, 2012, 2013, 2015, 2016, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
... |
-- Copyright (c) 2017, Leo Brewin <Leo.Brewin@monash.edu>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" A... |
with Ada.Unchecked_Deallocation;
package body Ada.Containers.Hash_Tables is
procedure Free is new Unchecked_Deallocation (Table, Table_Access);
subtype Positive_Hash_Type is Hash_Type range 1 .. Hash_Type'Last;
procedure Allocate (
New_Container : out Table_Access;
Capacity : Count_Type);
pro... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- awa-storages-beans-factories -- Factories for storage beans
-- Copyright (C) 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you m... |
package body Unc_Memops is
use type System.Address;
type Addr_Array_T is array (1 .. 20) of Addr_T;
type Addr_Stack_T is record
Store : Addr_Array_T;
Size : Integer := 0;
end record;
procedure Push (Addr : Addr_T; As : access addr_stack_t) is
begin
As.Size := As.Size + 1;
... |
-- { dg-do run }
procedure Scalar_Mode_Agg_Compare is
type Point is record
Mapped : Boolean;
Tag : String (1 .. 2); -- HImode
end record;
pragma Pack (Point); -- Tag possibly at bitpos 1
function My_Point return Point is
begin
return (Mapped => True, Tag => "XX");
end... |
--
-- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the... |
pragma Ada_2012;
with Ada.Unchecked_Conversion;
with GNAT.Byte_Swapping;
with System;
package body SHA1 with
SPARK_Mode => On
is
function Initialize return Context is
((State => <>, Count => 0, Buffer => (others => 0)));
procedure Initialize (Ctx : out Context) is
begin
Ctx := Initialize;
e... |
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public --
-- License as published by the ... |
-- 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 run }
procedure Rep_Clause4 is
type U32 is mod 2 ** 32;
type Key is record
Value : U32;
Valid : Boolean;
end record;
type Key_Buffer is record
Current, Latch : Key;
end record;
type Block is record
Keys : Key_Buffer;
Stamp : U32;
end record;
for Block use record
... |
with SP.Memory;
with Trendy_Test.Assertions.Integer_Assertions;
use Trendy_Test.Assertions;
use Trendy_Test.Assertions.Integer_Assertions;
package body SP.Memory_Tests is
type Int_Access is access Integer;
package Int_Ptr is new SP.Memory (T => Integer, T_Access => Int_Access);
procedure Test_Count (Op ... |
--
-- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the... |
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2020 Zane Myers
--
-- 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 Softwar... |
package Varsize2 is
type Key_Type is
(Nul, Cntrl, Stx, Etx, Eot, Enq, Ack, Spad, Clr, Dc_1, Dc_2, Dc_3, Dc_4);
for Key_Type use
(Nul => 0,
Cntrl => 1,
Stx => 2,
Etx => 3,
Eot => 4,
Enq => 5,
Ack => 6,
Spad => 7,
Clr => 8,
... |
--
-- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Ada.Containers.Hashed_Sets;
with Ada.Containers.Vectors;
with Ada.Containers;
with GNAT.Sockets;
with Epoll;
package Server is
function Hash (Element : GNAT.Sockets.Socket_Type)
return Ada.Contain... |
-----------------------------------------------------------------------
-- mat-readers-marshaller -- Marshalling of data in communication buffer
-- Copyright (C) 2014, 2015, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Lice... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Util; use Util;
-- Package to provide an interface for types providing an "apply" function.
package Applicative is
-- Interface for types providing an "apply" function.
type Applicative_Type is limited interface;
type Applicative_Pointer is access all Applicative_Type'Class;
function Apply(app : ... |
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_audio_audio_enumtypes_h is
-- unsupported macro: GST_TYPE_AUDIO_CHANNEL_POSITION (gst_audio_channel_position_get_type())
-- unsupported macro: ... |
--------------------------------------------------------------------------------
-- FILE : cubedos-file_server-messages.adb
-- SUBJECT: Body of a package that implements the main part of the file server.
-- AUTHOR : (C) Copyright 2017 by Vermont Technical College
--
---------------------------------------------------... |
-----------------------------------------------------------------------
-- util-http-clients-web -- HTTP Clients with AWS implementation
-- Copyright (C) 2011, 2012, 2017, 2019, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "... |
with Ada.Text_IO; use Ada.Text_IO;
with Timecards;
procedure Main is
-- populate these somehow
One : Timecards.Timecard_T;
Two : Timecards.Timecard_T;
begin
Put_Line (Timecards.Image (One));
Put_Line (Timecards.Image (Two));
end Main;
--Main
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with HAL; use HAL;
with NXP.Device; use NXP.Device;
with NXP_SVD; use NXP_SVD;
with NXP_SVD.SYSCON; use NXP_SVD.SYSCON;
with NXP_SVD.INPUTMUX; use NXP_SVD.INPUTMUX;
with System; use System;
package body NXP.InputMux is
procedure Enable_InputMux
is
begin
SYSC... |
with Comm;
package Sender is
XFATAL : constant Comm.Errorcode_Type := Comm.Errorcode_Type(-2);
procedure report(err : in Comm.Errorcode_Type);
end Sender;
|
-----------------------------------------------------------------------
-- ADO Sequences -- Database sequence generator
-- Copyright (C) 2009, 2010, 2011, 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may ... |
with TH;
with LC;
with Vecteur;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Calendar; use Calendar;
package Types is
type T_Digits is digits 6;
type T_Rank is record
Rang: Integer;
Poid: T_Digits;
end record;
type T_Indice is record
... |
-- { dg-do run }
-- { dg-options "-O" }
with Opt48_Pkg1; use Opt48_Pkg1;
with Opt48_Pkg2; use Opt48_Pkg2;
procedure Opt48 is
begin
if Get_Z /= (12, "Hello world!") then
raise Program_Error;
end if;
end;
|
-- { dg-do compile }
-- { dg-options "-g" }
procedure Addr5 (Len : Integer) is
S : aliased String (1 .. Len) := (others => ' ');
C : Character;
for C'Address use S'Address;
begin
null;
end;
|
-- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
--
-- 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 above copyright notice, t... |
-------------------------------------------------------------------------------
--
-- WAVEFILES GTK APPLICATION
--
-- Main Application
--
-- The MIT License (MIT)
--
-- Copyright (c) 2017 Gustavo A. Hoffmann
--
-- Permission is hereby granted, free of charge, to any pe... |
with Ada.Text_IO; use Ada.Text_IO;
with Libadalang.Analysis; use Libadalang.Analysis;
procedure Parse_Print is
Ctx : Analysis_Context := Create_Context;
Unit : Analysis_Unit := Ctx.Get_From_File ("test.adb");
begin
Unit.Print;
Put_Line ("Done.");
end Parse_Print;
|
pragma License (Unrestricted);
private with System.Tasks;
package Ada.Task_Identification is
pragma Preelaborate;
type Task_Id is private;
pragma Preelaborable_Initialization (Task_Id);
Null_Task_Id : constant Task_Id;
-- function "=" (Left, Right : Task_Id) return Boolean;
-- predefined "=" is righ... |
with Ada.Exception_Identification.From_Here;
with System.Zero_Terminated_WStrings;
with C.winerror;
with C.winnt;
package body System.Native_Directories is
use Ada.Exception_Identification.From_Here;
use type Ada.Exception_Identification.Exception_Id;
use type C.size_t;
use type C.windef.DWORD;
use type ... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Discrete_Ranges;
with Program.Elements.Expressions;
with Program.Lexical_Elements;
package Program.Elements.Dis... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- Définition de la classe
generic
type T_Type is private;
package Vecteur is
type T_Vecteur is limited private;
-- Initialiser un vecteur. Le vecteur est vide.
procedure Initialiser(Vecteur: out T_Vecteur; Capacite: in Natural) with
Post => Est_Vide (Vecteur);
-- Copier le contenu d'un vecteur dans un... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
package Glfw.Windows.Context is
type OpenGL_Profile_Kind is (System_Default, Core_Profile, Compat_Profile);
type API_Kind is (OpenGL, OpenGL_ES);
type Robustness_Kind is (No_Robustness, No_Res... |
-- Warning: This lexical scanner is automatically generated by AFLEX.
-- It is useless to modify it. Change the ".Y" & ".L" files instead.
--# line 1 "mat-expressions-lexer.l"
--# line 2 "mat-expressions-lexer.l"
with MAT.Expressions.Parser_Tokens;
package MAT.Expressions.Lexer is
use MAT.Expressions.P... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016-2020, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Filters;
with Program.Element_Vectors;
with Program.Elements.Identifiers;
with Program.Elements.Selected_Components;
with Program.Eleme... |
with Ada.Streams;
with Ada.Streams.Stream_IO;
package Generator.Markdown is
procedure To_HTML (Filein : in out Ada.Streams.Stream_IO.File_Type);
private
end Generator.Markdown; |
with Ada.Text_IO;
use Ada.Text_IO;
with Items;
use Items;
with Ada.Strings.Unbounded;
use Ada.Strings.Unbounded;
with Gilded_Rose;
use Gilded_Rose;
procedure Program is
Things : Item_Vecs.Vector;
begin
Things.Append(New_Item =>
(Name => To_Unbounded_String("+5 Dexterity Vest"),
Sell_In => 10,
Qual... |
package point is
-- exception en cas de coordonnées invalides
invalid_pos : exception;
type point_t is
record
x, y : float := 0.0;
end record;
-- Bouge le point sur l'axe x
procedure mv_x(point : in out point_t; delta_x : float);
-- Bouge le point sur l'axe y
p... |
-----------------------------------------------------------------------
-- mat-events-tools - Profiler Events Description
-- Copyright (C) 2014, 2015, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not ... |
with Ada.Text_IO;
use Ada.Text_IO;
with GNAT.OS_Lib;
use GNAT.OS_Lib;
with Ada.Numerics.Discrete_Random;
with Ada.Strings.Fixed;
use Ada.Strings.Fixed;
procedure Launcher is
Java : constant String := "C:\Program Files\Java\jre1.8.0_191\bin\java";
Engine : constant String := "lib/engine.jar";
Ref_Name : consta... |
with Numerics, Ada.Text_IO, Chebyshev, Dense_AD, Dense_AD.Integrator;
use Numerics, Ada.Text_IO, Chebyshev;
procedure Pendulum is
use Int_IO, Real_IO, Real_Functions;
-----------------------------------------------
N : constant Nat := 1;
K : constant Nat := 7;
Num : constant Nat := 2 * N;
------... |
-----------------------------------------------------------------------
-- helios-commands-register -- Command to register the agent in hyperion
-- Copyright (C) 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.