content
stringlengths
23
1.05M
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Characters.Handling; with Ada.Wide_Text_IO; package body Indented_Text is package Ach renames Ada.Characters.Handling; package Awti renames Ada.Wide_Text_IO; ----------- -- PRIVATE: ----------- procedure Trace_Put (Message : in Wide_String) is begin if Trace_On then Awti....
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
pragma Ada_2012; package body BitOperations.Search with SPARK_Mode, Pure is -------------------------- -- Most_Significant_Bit -- -------------------------- function Most_Significant_Bit (Value : Modular) return Bit_Position is begin for Idx in reverse Bit_Position'First .. Bit_Position'Last loop...
type Int_Access is access Integer; Int_Acc : Int_Access := new Integer'(5);
with Interfaces; use Interfaces; with Interfaces.C; use Interfaces.C; generic type Element is mod <>; -- ELement type, must be mod 2**8, i.e. represent a byte type Index is range <>; -- Index type type Element_Array is array (Index range <>) of aliased Element; -- An array of aliased Elements ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Create_Vector_Data(Xa,Ya,Za,Xb,Yb,Zb: in Integer; L,Vy,Vz: out Integer) is begin Put(Xa); end Create_Vector_Data;
-- { dg-do compile } procedure Atomic3 is type Unsigned_32_T is mod 2 ** 32; for Unsigned_32_T'Size use 32; type Id_T is (One, Two, Three); type Array_T is array (Id_T) of Unsigned_32_T; pragma Atomic_Components (Array_T); A : Array_T := (others => 0); function Get_Array return Array_T is ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Expressions; with Program.Lexical_Elements; with Program.Elements.Defining_Operator_Symbols; package Program.Elements.Operator_Symbol...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- awa-jobs -- AWA Jobs -- Copyright (C) 2012, 2015 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 complian...
package body Data_Type is function "<" (L, R : Record_T) return Boolean is begin return False; end "<"; function Image (Element : Record_T) return String is begin return ""; end Image; end Data_Type;
separate(Practica2) procedure Producto(X:in integer;Y:out Integer) is begin--El factorial en los bucles lo calcula bien pero si entran numeros mayores que el 12 --puede haber un fallo de overflow y:=1; if X > 0 then for i in 1..x loop y:=y*I;--Aqui realizo elproducto de los positivos end loop; else if x ...
-- { dg-do compile } -- { dg-options "-O2 -gnatws" } procedure Opt16 is generic type T (<>) is private; V, V1 : T; with function F1 (X : T) return T; package GP is R : Boolean := F1 (V) = V1; end GP; type AB is array (Boolean range <>) of Boolean; begin for I1 in Boolean loop ...
----------------------------------------------------------------------- -- EL.Contexts.TLS -- EL context and Thread Local Support -- Copyright (C) 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package body impact.d3.collision.Algorithm.activating is procedure define (Self : in out Item; ci : in AlgorithmConstructionInfo; colObj0, colObj1 : access impact.d3.Object.item'Class) is pragma Unreferenced (colObj0, colObj1); us...
---------------------------------------------------------------------- -- -- Screen Input Output Package -- -- written by -- -- Edmond Schonberg -- David Shields -- -- Ada Project -- Courant Institute -- ...
package body Encodings.Line_Endings.Generic_Add_CR is procedure Convert( This: in out Coder; Source: in String_Type; Source_Last: out Natural; Target: out String_Type; Target_Last: out Natural ) is C: Character_Type; begin Source_Last := Source'First - 1; Target_Last := Target'First - 1; if This.St...
-- { dg-do run } procedure self_aggregate_with_zeros is type Sensor is record Value : Natural; A, B, C, D, E, F, G, H, I, J, K, L, M : Natural; end record; Pressure : Sensor; begin Pressure.Value := 256; Pressure := (Pressure.Value, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); if Pressure...
with parse_tokens, parse_goto, parse_shift_reduce, text_io, scanner; with nfa, ccl, misc, misc_defs, sym, ecs, aflex_scanner; with tstring, int_io, main_body, text_io, external_file_manager; use aflex_scanner, external_file_manager; package body parser is -- build_eof_action - build the "<<EOF>>" action for th...
with CLIC.Subcommand; with Commands; with Ada.Text_IO; with CLIC.TTY; with Version; with Ada.Exceptions; use Ada.Exceptions; procedure Glad is begin Ada.Text_IO.New_Line; Commands.Execute; exception when E : others => Ada.Text_IO.Put_Line(Exception_Message (E)); end Glad;
----------------------------------------------------------------------- -- events-tests -- Unit tests for AWA events -- 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 exc...
pragma Style_Checks (Off); ------------------------------------------------------------------------- -- GL.Geometry - GL geometry primitives -- -- Copyright (c) Rod Kay 2007 -- AUSTRALIA -- Permission granted to use this software, without any warranty, -- for any purpose, provided this copyright not...
----------------------------------------------------------------------- -- akt-filesystem -- Fuse filesystem operations -- Copyright (C) 2019, 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...
procedure deref_test is type PString is access String; a,b : String (1 .. 3); res : String := "a"; PtrArr: array(1 .. 2) of PString; function "<"(x,y: in String) return PString is begin return PtrArr(1); end "<"; begin PtrArr(1) := new String'("<"); PtrArr(2) := new String'(">="); res ...
with Ada.Text_IO; procedure Hello_World is begin Ada.Text_IO.Put_Line ("Hello, world!"); end Hello_World;
with Ada.Text_IO; with Primes; procedure Main is N : Positive := 16; begin Ada.Text_IO.Put_Line (Primes.IsPrime (N)'Image); end Main;
with Ada.Strings.Unbounded; with Planet; with Rule; use Rule; package Player is type Object is tagged private; function Build (Race : String; Good_Ability : Good_Type; Bad_Ability : Bad_Type; Victory_Condition : Victory; ...
-- Abstract : -- -- See spec. -- -- Copyright (C) 2018 - 2019 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3, or (at your option) ...
with Blinker;use Blinker; with Text_IO; with Ada.Real_Time;use Ada.Real_Time; with Control; package body Bcontrol is protected body Command_Access is procedure Send( Cmd: Command_Type) is begin New_Command := False; if Command /= Cmd then New_Command := True; Co...
package body serial is procedure Initialize_UART_GPIO is begin Enable_Clock (USART_1); Enable_Clock (RX_Pin & TX_Pin); Configure_IO (RX_Pin & TX_Pin, (Mode => Mode_AF, AF => GPIO_AF_USART1_7, Resistors => Pull_Up, AF_Sp...
procedure Discriminated_Record is TYPE REC2 (I : INTEGER) IS RECORD CASE I IS WHEN 1 => null; WHEN OTHERS => A2 : integer; A3 : long_integer; END CASE; END RECORD; R2 : REC2(2); ...
-------------------------------------------------------------------------------- -- * Spec name dft.ads -- * Project name dfttest -- * -- * Version 1.0 -- * Last update 11/9/08 -- * -- * Created by Adrian Hoe on 11/9/08. -- * Copyright (c) 2008 AdaStar Informatics http://adastarinformatics.com -- * All ...
with Ada.Text_IO; use Ada.Text_IO; procedure Specifier_Et_Tester is -- Calculer le plus grand commun diviseur de deux entiers strictement -- positifs. -- Paramètres : -- A : in Entier -- B : in Entier -- Retour : Entier -- le pgcd de A et B -- Nécessite : -- A > 0 -- B ...
------------------------------------------------------------------------------- -- -- FIXED TYPES -- -- Fixed_Long & Fixed_Sat_Long definitions -- -- The MIT License (MIT) -- -- Copyright (c) 2015 Gustavo A. Hoffmann -- -- Permission is hereby granted, free of charge, to a...
-- -- 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...
with Ada.Text_IO; with Ada.Calendar.Formatting; use Ada.Calendar.Formatting; procedure Euler19 is Count : Natural := 0; begin for Year in 1901 .. 2000 loop for Month in 1 .. 12 loop if Day_Of_Week(Time_Of(Year, Month, 1)) = Sunday then Count := Count + 1; end if; end loop; end loop; Ad...
with Ada.Numerics; with Ada.Numerics.Generic_Complex_Elementary_Functions; function Generic_FFT (X : Complex_Vector) return Complex_Vector is package Complex_Elementary_Functions is new Ada.Numerics.Generic_Complex_Elementary_Functions (Complex_Arrays.Complex_Types); use Ada.Numerics; use Comp...
----------------------------------------------------------------------- -- security-controllers-roles -- Simple role base security -- Copyright (C) 2011, 2012, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -...
with EU_Projects.Projects; with Ada.Strings.Bounded; with Latex_Writer; use Latex_Writer; package Project_Processor.Processors.LaTeX is type Processor_Type is new Abstract_Processor with private; overriding function Create (Params : not null access Processor_Parameter) ...
with ZMQ.Sockets; with ZMQ.Contexts; with Ada.Text_IO; with GNAT.Sockets; procedure ZMQ.examples.prompt is ctx : aliased Contexts.Context; s : Sockets.Socket; begin ctx.Initialize (1); s.Initialize (ctx, Sockets.PUB); s.Connect ("tcp://localhost:5555"); Read_Loop : loop Ada.Text_IO.Put (">"...
with Ada.Text_IO; use Ada.Text_IO; procedure discotheque is MAX_CHANSONS : constant Natural := 30; MAX_ALBUMS : constant Natural := 200; type T_Chanson is record titre : String (1..40); duree : Natural; end record; type T_Coll_Chansons is array (1..MAX_...
with System.Storage_Pools; use System.Storage_Pools; with Ada.Finalization; use Ada.Finalization; package Opt57_Pkg is type GC_Pool is abstract new Root_Storage_Pool with null record; type Pinned (Pool : access GC_Pool'Class) is new Controlled with null record; procedure Finalize (X : in out Pinned); end...
with Ada.Text_IO; with Ada.Directories; with Ada.Containers.Vectors; with Init_Project; with Blueprint; use Blueprint; with Ada.Command_Line; with Templates_Parser.Utils; package body Commands.Create is package IO renames Ada.Text_IO; package TT renames CLIC.TTY; package Dir renames Ada.Directories; use ...
with Gtk.Button; use Gtk.Button; with Gtk.Combo_Box; use Gtk.Combo_Box; with Gtk.Handlers; with Gtk.Scale; use Gtk.Scale; with Gtk.Spin_Button; use Gtk.Spin_Button; with Gtk.Widget; use Gtk.Widget; package GA_Sine_Callbacks is package SpinHand is new Gtk.Handlers.Callback (Widget_Type => Gtk_Spin_Button_Recor...
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Safe_Element_Visitors is procedure Visit (Self : in out Safe_Element_Visitor'Class; Element : n...
package body GEL is function to_Asset (Self : in String) return asset_Name is the_Name : String (asset_Name'Range); begin the_Name (1 .. Self'Length) := Self; the_Name (Self'Length + 1 .. the_Name'Last) := (others => ' '); return asset_Name (the_Name); end to_Asset;...
package Spec is pragma Pure(Spec); function Get_Number return Integer is separate; end Spec;
----------------------------------------------------------------------- -- awa-sysadmin-modules -- Module sysadmin -- Copyright (C) 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file excep...
with Primes_IDL_File.PrimeNumberRequest_DataReader; with Primes_IDL_File.PrimeNumberReply_DataWriter; with DDS.Request_Reply.Typed_Replier_Generic; package Primes.PrimeNumberReplier is new DDS.Request_Reply.Typed_Replier_Generic (Request_DataReaders => Primes_IDL_File.PrimeNumberRequest_DataReader, Reply_DataWrite...
pragma License (Unrestricted); package Interfaces.C is pragma Pure; -- Declarations based on C's <limits.h> CHAR_BIT : constant := 8; -- typically 8 SCHAR_MIN : constant := -128; -- typically -128 SCHAR_MAX : constant := 127; -- typically 127 UCHAR_MAX : constant := 255; -- typically 255 -- Si...
-- { dg-do compile } with Ada.Finalization; with Controlled1_Pkg; use Controlled1_Pkg; package Controlled1 is type Collection is new Ada.Finalization.Controlled with null record; type Object_Kind_Type is (One, Two); type Byte_Array is array (Natural range <>) of Integer; type Bounded_Byte_Array_Type ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Directories; use Ada.Directories; package Blueprint is type Action is (Write, Delete, DryRun); function Get_Blueprint_Folder return String; procedure Process_File (Target : String; Search_Item : in Directory_Entry_Type; Todo: Action); procedure Iterate(Blueprint_Folder: String; Path: String; T...
----------------------------------------------------------------------- -- Util -- Utilities -- 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"); -- you may not use this file exc...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with League.String_Vectors; with League.Strings; with Network.Addresses; with Network.Connections; with Network.Connection_Promises; with Network.Polls; p...
with Ada.Float_Text_IO; use Ada.Float_Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Text_IO; use Ada.Text_IO; with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions; with System; with PortAudioAda; use PortAudioAda; with PaEx_Sine_Types; use PaEx_Sine_Types; with PaEx_S...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; with CUPS.cups_language_h; private package CUPS.cups_transcode_h is CUPS_MAX_USTRING : constant := 8192; -- cups/transcode.h:36 -- * "$Id: transcode.h 10996 2013-05-29 11:51:34Z msweet $" -- * -- *...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Orka.Features.Atmosphere.Earth; with Orka.Features.Atmosphere.Rendering; with Orka.Resources.Locations; with Orka.Behaviors; with Orka.Cameras; with Orka.Rendering.Programs.Modules; with Planets; package Demo.Atmospheres is type Atmosphere is tagged limited private; function Create (Planet_Model ...
----------------------------------------------------------------------- -- asf.requests -- ASF Requests -- 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"); -- you may not use th...
package App is procedure Main with Export, Convention => C, External_Name => "app_main"; end App;
with RASCAL.ToolboxQuit; use RASCAL.ToolboxQuit; with RASCAL.Toolbox; use RASCAL.Toolbox; with RASCAL.OS; use RASCAL.OS; package Controller_MainWindow is type TEL_OpenWindow_Type is new Toolbox_UserEventListener(16#14#,-1,-1) with null record; type TEL_OKButto...
-- C43004A.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...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
-- SPDX-License-Identifier: MIT -- -- Copyright (c) 2008 - 2018 Gautier de Montmollin (maintainer) -- SWITZERLAND -- -- 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 restricti...
pragma License (Unrestricted); package Ada.Text_IO.Editing is type Picture is private; function Valid ( Pic_String : String; Blank_When_Zero : Boolean := False) return Boolean; function To_Picture ( Pic_String : String; Blank_When_Zero : Boolean := False) return Picture; ...
package Problem_56 is -- A googol (10^100) is a massive number: one followed by one-hundred zeros; -- 100^100 is almost unimaginably large: one followed by two-hundred zeros. -- Despite their size, the sum of the digits in each number is only 1. -- -- Considering natural numbers of the form, a^b, where a...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
with STM32GD.USART.Peripheral; with Drivers.Text_IO; package STM32GD.Board is pragma Preelaborate; package USART is new STM32GD.USART.Peripheral (Filename => "Test"); package Text_IO is new Drivers.Text_IO (USART => STM32GD.Board.USART); procedure Init; end STM32GD.Board;
----------------------------------------------------------------------- -- util-commands-consoles-text -- Text console interface -- Copyright (C) 2014, 2015, 2017, 2018, 2020, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Li...
------------------------------------------------------------------------------ -- -- -- Copyright (c) 2014-2017 Vitalij Bondarenko <vibondare@gmail.com> -- -- -- ----...
package Incomplete3 is type Output_T; type Output_T is abstract tagged private; type Tracer_T is tagged private; function Get_Tracer (This : access Output_T'Class) return Tracer_T'class; function Get_Output (This : in Tracer_T) return access Output_T'Class; private type Output_T is abstract tagg...
with OpenGL.Thin; package OpenGL.Texture is type Index_t is new Thin.Unsigned_Integer_t; type Index_Array_t is array (Natural range <>) of aliased Index_t; type Border_Width_t is range 0 .. 1; type Internal_Format_t is (Alpha, Alpha_4, Alpha_8, Alpha_12, Alpha_16, Compressed_Alp...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32G474xx.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.CRS is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_TRIM_Field is HAL.UInt7; -- ...
select A.Z; or delay 5.0; Put("Komunikat"); end select;
-- C52104L.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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
with System.UTF_Conversions.From_8_To_16; with System.UTF_Conversions.From_8_To_32; package body System.WCh_StW is procedure String_To_Wide_String ( S : String; R : out Wide_String; L : out Natural; EM : WC_Encoding_Method) is pragma Unreferenced (EM); begin UTF_Conversions...
pragma License (Unrestricted); with Ada.Numerics.Generic_Real_Arrays; package Ada.Numerics.Long_Real_Arrays is new Generic_Real_Arrays (Long_Float); pragma Pure (Ada.Numerics.Long_Real_Arrays);
-- This package has been generated automatically by GNATtest. -- You are allowed to add your code to the bodies of test routines. -- Such changes will be kept during further regeneration of this file. -- All code placed outside of test routine bodies will be lost. The -- code intended to set up and tear down the t...
with Tkmrpc.Servers.Ike; with Tkmrpc.Results; with Tkmrpc.Request.Ike.Nc_Create.Convert; with Tkmrpc.Response.Ike.Nc_Create.Convert; package body Tkmrpc.Operation_Handlers.Ike.Nc_Create is ------------------------------------------------------------------------- procedure Handle (Req : Request.Data_Type; Res...
-- { dg-do compile } package body TF_Interface_1 is procedure Get_It (Handle : Stream_Access; It : out CF_Interface_1'class) is begin CF_Interface_1'Class'Read (Handle, It); end; end;
with Ada.Text_IO; with Ada.Integer_Text_IO; with Ada.Containers.Vectors; use Ada.Text_IO; use Ada.Integer_Text_IO; use Ada.Containers; procedure Euler is package Long_Integer_Vectors is new Vectors(Natural, Long_Integer); package Long_IO is new Ada.Text_IO.Integer_IO(Long_Integer); use Long_IO; fun...
package body Logger is task body LoggerReceiver is subtype RangeN is Natural range 1..n; subtype RangeNE is Natural range 0..(n-1); subtype RangeD is Natural range 1..d; subtype RangeK is Natural range 1..k; -- gather stats type NodeStats is array (RangeN, RangeK) ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with System.Storage_Pools.Subpools; with Ada.Containers.Vectors; with Program.Compilation_Units; with Program.Compilations; with Pro...
-- { dg-do compile } package Null_Aggr_Bug is type Rec1 is null record; type Rec2 is tagged null record; type Rec3 is new Rec2 with null record; X1 : Rec1 := (null record); Y1 : Rec1 := (others => <>); X2 : Rec2 := (null record); Y2 : Rec2 := (others => <>); X3 : Rec3 :=...
package body Loop_Optimization4_Pkg is procedure Add (Phrase : String) is begin if Debug_Buffer_Len = Max_Debug_Buffer_Len then return; end if; for I in Phrase'Range loop Debug_Buffer_Len := Debug_Buffer_Len + 1; Debug_Buffer (Debug_Buffer_Len) := Phrase (I); ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
package agar.gui.widget.separator is type type_t is (SEPARATOR_HORIZ, SEPARATOR_VERT); for type_t use (SEPARATOR_HORIZ => 0, SEPARATOR_VERT => 1); for type_t'size use c.unsigned'size; pragma convention (c, type_t); type separator_t is limited private; type separator_access_t is access all separator_t; p...
-- C85005A.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...
case Today is when Saturday | Sunday => null; -- don't do anything, if Today is Saturday or Sunday when Monday => Compute_Starting_Balance; when Friday => Compute_Ending_Balance; when Tuesday .. Thursday => Accumulate_Sales; end case;
package body ACO.Protocols.Network_Management is function Is_Allowed_Transition (Current : ACO.States.State; Next : ACO.States.State) return Boolean is use ACO.States; begin case Current is when Initializing => return Next = Pre_Operational; wh...
with Ahven.Framework; with Unknown.Api; package Test_Foreign.Read is package Skill renames Unknown.Api; use Unknown; use Unknown.Api; type Test is new Ahven.Framework.Test_Case with null record; procedure Initialize (T : in out Test); procedure Aircraft; procedure Annotation_Test; procedure...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with GBA.Display.Backgrounds.Refs; package GBA.Refs is subtype BG_Ref is GBA.Display.Backgrounds.Refs.BG_Ref; subtype Reg_BG_Ref is GBA.Display.Backgrounds.Refs.Reg_BG_Ref; subtype Aff_BG_Ref is GBA.Display.Backgrounds....
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C; use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C; procedure euler36 is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Streams.S...