content
stringlengths
23
1.05M
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2018 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 fr...
package body problem_15 is function Solution_1 return Int128 is Solutions : array( Natural range 0 .. 20, Natural range 0 .. 20 ) of Int128; begin for I in Solutions'Range(1) loop Solutions(I, 0) := 1; end loop; for I in Solutions'Range(2) loop ...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
-- Abstract : -- -- Implement [McKenzie] error recovery, extended to parallel parsers. -- -- References: -- -- [McKenzie] McKenzie, Bruce J., Yeatman, Corey, and De Vere, -- Lorraine. Error repair in shift reduce parsers. ACM Trans. Prog. -- Lang. Syst., 17(4):672-689, July 1995. Described in [Grune 2008] ref 32...
package body Ada.Containers.Binary_Trees.Simple is procedure Insert ( Container : in out Node_Access; Length : in out Count_Type; Before : Node_Access; New_Item : not null Node_Access) is begin Length := Length + 1; if Container = null then New_Item.Parent := null; ...
-- This spec has been automatically generated from STM32WB55x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.AES is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_DATATYPE_Field is ...
with System;use System; package Blinker is -- type Cmd_Type is (START, STOP, QUIT); type Cmd_Type is (STOP, START); type Id_Type is ( R, L, E); type Command_To_Type is record Cmd : Cmd_Type; Receiver : Id_Type; end record; Id : Id_Type; -- type Cmd_Ptr_Type is access all Cmd_Type; -- Cm...
-- { dg-do compile } -- { dg-options "-gnatp -O1" } procedure Fatp_Sra is function X return String is begin return "X"; end; function Letter return String is begin return X; end; begin null; end;
with Ada.Text_IO; use Ada.Text_IO; with GESTE_Config; with GESTE; generic Width : Natural; Height : Natural; Buffer_Size : Positive; Init_Char : Character; package Console_Char_Screen is Screen_Rect : constant GESTE.Pix_Rect := ((0, 0), (Width - 1, Height - 1)); Buffer : GESTE.Output_Buffer (...
----------------------------------------------------------------------- -- awa-tags-components -- Tags component -- Copyright (C) 2013, 2014, 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 ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Characters.Conversions; with Ada.Command_Line; with Ada.Wide_Wide_Text_IO; with Program.Compilation_Unit_Vectors; with Progr...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; procedure Narcissistic is function Is_Narcissistic(N: Natural) return Boolean is Decimals: Natural := 1; M: Natural := N; Sum: Natural := 0; begin while M >= 10 loop M := M / 10; Decimals := Decimals + 1; end loop; M := N; while M >= 1 loop Sum :...
with gel.Window.sdl, gel.Applet.gui_world, gel.Forge, gel.Sprite, gel.hinge_Joint, physics.Model, openGL.Model.box.colored, openGL.Palette, float_math.Algebra.linear.d3, ada.Text_IO, ada.Exceptions; pragma unreferenced (gel.Window.sdl); procedure launch_hinge...
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with League.Strings; with League.String_Vectors; package Processes is type Environment is record Names : League.String_Vectors.Universal_Stri...
package STM32GD.Startup is pragma Preelaborate; procedure Reset_Handler with Export => True, External_Name => "_start_rom"; pragma Machine_Attribute (Reset_Handler, "naked"); pragma Weak_External (Reset_Handler); end STM32GD.Startup;
-- AoC 2020, Day 10 with Ada.Text_IO; with Ada.Containers.Ordered_Maps; package body Day is package TIO renames Ada.Text_IO; function load_file(filename : in String) return Adaptors.Vector is package Natural_Text_IO is new Ada.Text_IO.Integer_IO(Natural); package Adaptor_Sorter is new Adaptors.Generic_Sor...
package display is --IMPORTANT: This function must be called before any other functions --This Initializes the package for use procedure Initialize(width, height : Integer); --The color type consists of 4 ANSI codes in series [ 0 ; 27 ; 37 ; 40 m --A code or string of codes must always begin with the ESC charact...
with OpenGL.Thin; with OpenGL.Types; package OpenGL.Buffer is type Buffer_Mask_t is new Thin.Bitfield_t; Color_Buffer : constant Buffer_Mask_t := Thin.GL_COLOR_BUFFER_BIT; Depth_Buffer : constant Buffer_Mask_t := Thin.GL_DEPTH_BUFFER_BIT; Accumulation_Buffer : constant Buffer_Mask_t := Thin.GL_...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Containers.Indefinite_Ordered_Maps; with Ada.Containers.Vectors; package Plugins is type Dummy_Type is null record; type No_Parameters is access Dummy_Type; -- This type is handy for those plugins that require no parameter...
-- Internal package -- A placeholder is a hole / wild card for AST matching. -- A placeholder can also act as backreference: -- * when a placeholder occurs multiple times within a single find pattern, -- these parts should be identical to match -- * when a placeholder occurs within a replace pattern, -- ...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Finalization; package Yaml.Transformator is type Instance is abstract tagged limited private; type Pointer is access Instance'Class; procedure Put (Object : in out Instance; E : Ev...
-- ============================================================================= -- Package body AVR.IMAGE -- ============================================================================= package body IMAGE is procedure U8_Img_Right (Data : Unsigned_8; Target : out AVR.USART.String_U8) is D : Unsigned_8 := Da...
function IsDivisible(x, y: IN Integer) return Integer is Result : Integer; begin Result := 0; if y = 0 or else x = 0 then Result := 0; else Result := x / y; end if; if y = 0 and then x = 0 then Result := 0; else Result := x * (x / y ); end if; return Result; end IsDivi...
with Ada.Text_IO; use Ada.Text_IO; procedure P is type t; begin put('a'); end;
with Widgets; with Aof.Core.Properties; package Labels is type Label is new Widgets.Widget with record -- Properties: Label_Text : Aof.Core.Properties.Unbounded_Strings.Property; end record; type Label_Ptr is access all Label'Class; -- Slots: procedure Paint_Event (This : in out ...
-- Copyright 2016-2019 NXP -- All rights reserved.SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from LPC55S6x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package NXP_SVD.GINT is pragma Preelaborate; ...
----------------------------------------------------------------------- -- util-streams-aes -- AES encoding and decoding streams -- 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 t...
package body agar.gui.widget.hbox is package cbinds is procedure set_homogenous (box : hbox_access_t; homogenous : c.int); pragma import (c, set_homogenous, "agar_gui_widget_hbox_set_homogenous"); procedure set_padding (box : hbox_access_t; padding : c.int); pragma i...
with Extraction.Node_Edge_Types; with Extraction.Utilities; package body Extraction.Decls is use type LALCO.Ada_Node_Kind_Type; function Is_Standard_Package_Decl(Node : LAL.Ada_Node'Class) return Boolean is Standard_Unit : constant LAL.Compilation_Unit := Node.P_Standard_Unit.Root.As_Compilation_Unit...
------------------------------------------------------------ -- -- ADA REAL-TIME TIME-TRIGGERED SCHEDULING SUPPORT -- -- @file time_triggered_scheduling.ads -- -- @package Time_Triggered_Scheduling (SPEC) -- -- @brief -- Ada Real-Time Time Triggered Scheduling support: Time Triggered Scheduling -- -- Ravenscar ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2021 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...
-- { dg-do run } -- { dg-options "-O -fstack-check" } procedure Opt49 is function Ident (I : Integer) return Integer; pragma No_Inline (Ident); function Ident (I : Integer) return Integer is begin return I; end; Int_0 : Integer := Ident (0); Int_4 : Integer := Ident (4); A : array (-4 ...
----------------------------------------------------------------------- -- wi2wic -- Wiki 2 Wiki Converter server startup -- 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 fil...
pragma Assertion_Policy (Check); with Atomic; with Atomic.Unsigned; with Atomic.Signed; with Ada.Text_IO; with Interfaces; procedure Main is generic type T is mod <>; procedure Test_Unsigned; generic type T is range <>; procedure Test_Signed; ------------------- -- Test_Unsigned -- ...
-- FILE: oedipus.adb -- LICENSE: MIT © 2021 Mae Morella package body Oedipus is function Create_Complex (A, B : in Float) return Complex is C : Complex; begin C.Real := A; C.Imaginary := B; return C; end Create_Complex; function Get_Real (C : in Complex) return Float is be...
with OpenAL.Types; package OpenAL.Global is -- -- Distance_Model -- type Distance_Model_t is (None, Inverse_Distance, Inverse_Distance_Clamped, Linear_Distance, Linear_Distance_Clamped, Exponent_Distance, Exponent_Distance_Clamped, Unknown_Distance_Model); subtype Va...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- Shoot'n'loot -- Copyright (c) 2020 Fabien Chouteau package Sound is procedure Tick; procedure Play_Coin; procedure Play_Monster_Dead; procedure Play_Gun; procedure Play_Jump; procedure Play_Exit_Open; procedure Play_Exit_Taken; procedure Play_Gameover; procedure Play_Victory; pro...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
with Aof.Core.Objects; with Widgets; with Labels; package My_Objects is Top : aliased Widgets.Widget; Form : aliased Widgets.Widget; Label : aliased Labels.Label; Row_Column_Layout : aliased Widgets.Widget; Ok : aliased Widgets.Widget; Cancel ...
---------------------------------------------------------------- -- ZLib for Ada thick binding. -- -- -- -- Copyright (C) 2002-2004 Dmitriy Anisimkov -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Steps_6 is task Step_By_Step is entry Step_One; entry Step_Two; end Step_By_Step; task body Step_By_Step is Waiting_Count : Natural := 1; begin loop select accept Step_One do Put_Line ("1"); ...
package body Mult with SPARK_Mode is function Mult (A: Natural; B: Natural) return Natural is AB: Natural := 0; AA: Natural := A; B1: Natural := B; begin while B1 > 0 loop if B1 mod 2 = 1 then AB := AB + AA; end if; AA := 2 * AA; B1 := B1 / 2; pragma Loo...
with STM32.Device; use STM32.Device; with HAL; use HAL; with STM32.ADC; use STM32.ADC; with STM32.GPIO; use STM32.GPIO; package analog is Converter : Analog_To_Digital_Converter renames ADC_1; Successful : Boolean; procedure Configure_Analog_Input (Input : GPIO_Point); procedu...
package Bootloader is pragma Preelaborate; procedure Erase; procedure Start; pragma Machine_Attribute (Start, "naked"); end Bootloader;
-- 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...
package body UxAS.Common.Sentinel_Serial_Buffers is ----------------------------- -- Get_Next_Payload_String -- ----------------------------- procedure Get_Next_Payload_String (This : in out Sentinel_Serial_Buffer; New_Data_Chunk : String; Result : out String) is b...
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. ...
with AdaCar.Parametros; package body AdaCar.Entrada_Salida is ----------------------- -- Entrada_Salida_PO -- ----------------------- protected Entrada_Salida_PO with Priority => Parametros.Techo_Entrada_Salida_PO is procedure Init_System; function Lectura_Digital(Canal: Canal_DI) ret...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
Counter: Natural; begin -- initialize array Prime; Prime(I) must be true if and only if I is a prime ... Counter := 0; -- count p. numbers below 2**32 for Y in Num(2) .. 2**32 loop if Prime(Pop_Count(Y)) then Counter := Counter + 1; end if; end loop; Ada.Text_IO.Put_Line(Natural'I...
package Keyboard is type Key_Kind is (Up, Down, Left, Right, Forward, Backward, Esc); procedure Update; function Pressed (Key : Key_Kind) return Boolean; end Keyboard;
-- { dg-do run } with Ada.Text_IO; use Ada.Text_IO; procedure test_fixed_io is type FX is delta 0.0001 range -3.0 .. 250.0; for FX'Small use 0.0001; package FXIO is new Fixed_IO (FX); use FXIO; ST : String (1 .. 11) := (others => ' '); ST2 : String (1 .. 12) := (others => ' '); N : constant FX...
with Ada.Text_IO; with Ada.Exceptions; package body SoE is -- slow down factor for the activity of process Odd Slow_Down_Factor : constant Duration := 1.0; -- each process instance gets an own Id Assigned_Id : Natural := 0; -- function specification ---------------------------------...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Wide_Text_IO; use Ada.Wide_Text_IO; with Interfaces; use Interfaces; with System; with Ada.Unchecked_Conversion; use Ada; -- Play with UTF8 pragma Wide_Character_Encoding (UTF8); procedure represent2 is type Action_Type is (Load, Store, Copy, ...
-- -- Copyright (C) 2019, AdaCore -- -- This spec has been automatically generated from PolarFire.svd pragma Ada_2012; pragma Style_Checks (Off); with System; -- serial communication controller with a flexible serial data -- interface -- package Interfaces.Microsemi.CoreUARTapb is pragma Preelaborate; ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- { dg-do compile } -- { dg-options "-O -Wall" } function uninit_func (A, B : Boolean) return Boolean is C : Boolean; begin if A then C := False; elsif B then C := True; end if; return C; -- { dg-warning "may be used uninitialized" } end;
with Ada.Containers.Multiway_Trees; package Improved_Trie is type Element_Type is record A : Character; B : Integer; end record; function "=" (Left, Right : Element_Type) return Boolean is (Left.A = Right.A); --the Ada Multiway tree package backend to be used package Trie is new Ada.Containers.Multiway_T...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with CUPS.bits_types_h; with CUPS.wchar_h; private package CUPS.uG_config_h is -- This file is needed by libio to define various configuration parameters. -- These are always the same in the GNU C library. -- Define types fo...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. ...
with Ada.Text_IO; use Ada.Text_IO; with AVTAS.LMCP.Types; use AVTAS.LMCP.Types; with UxAS.Comms.Data; use UxAS.Comms.Data; with UxAS.Comms.Transport.Receiver; use UxAS.Comms.Transport.Receiver; with UxAS.Comms.LMCP_Object_Message_Receiver_Pipe...
package body agar.gui.widget.combo is package cbinds is function allocate (parent : widget_access_t; flags : flags_t; label : cs.chars_ptr) return combo_access_t; pragma import (c, allocate, "AG_ComboNewS"); procedure size_hint (combo : combo_access_t; text : cs.c...
-- { dg-do compile } package body Discr46 is function F (Id : Enum) return Integer is Node : Integer := 0; begin if A (Id).R.D = True then Node := A (Id).R.T; end if; return Node; end; end Discr46;
package FLTK.Widgets.Valuators.Sliders is type Slider is new Valuator with private; type Slider_Reference (Data : not null access Slider'Class) is limited null record with Implicit_Dereference => Data; type Slider_Kind is (Vertical_Kind, Horizontal_Kind, Vert_Fill_Kind, Hor_Fill...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-------------------------------------------------------------------------------------- -- -- Copyright (c) 2016 Reinert Korsnes -- 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...
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
-- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- with root.child; procedure run_gb_01 is package R is new R...
with openGL.surface_Profile; private with Glx; limited private with openGL.Context; package openGL.Surface -- -- Models an openGL surface. -- is type Item is tagged private; type Items is array (Positive range <>) of aliased Item; type View is access all Item'Class; type Views is array...
with Ada.Text_IO; with Ada.Strings; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package body CSV is function open(path: in String; separator: in Character := ',') return Reader is begin return result: Reader do Ada.Text_IO.Open(File => result.handle, Mode => A...
-- 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...
-- -- 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 GNAT.Strings; package Options is ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- -- ABench2020 Benchmark Suite -- -- Softmax Program -- -- Licensed under the MIT License. See LICENSE file in the ABench root -- directory for license information. -- -- Uncomment the lines below to print the result. -- with Ada.Text_IO; use Ada.Text_IO; procedure Softmax is type Vector is array (1..15) of...
----------------------------------------------------------------------- -- util-executors -- Execute work that is queued -- 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...
-- Ada_GUI implementation based on Gnoga. Adapted 2021 -- -- -- GNOGA - The GNU Omnificent GUI for Ada -- -- -- -- G N O G A ...
-- CE3806C.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 Decls.Dgenerals, Semantica, Decls.Dtdesc, Ada.Sequential_Io, Ada.Text_Io, Decls.D_Taula_De_Noms, Semantica.Ctipus, Ada.Strings, Ada.Strings.Fixed, Ada.Strings.Maps; use Decls.Dgenerals, Semantica, Decls.Dtdesc, Decls.D_Taula_De_Noms, Semantica.Ctipus, Ada.Strings, Ada.Strings.Fixed, ...
package body MPFR.Generic_FR is function To_MP_Float (X : Long_Long_Float) return MP_Float is begin return To_MP_Float (X, Precision, Rounding); end To_MP_Float; function To_Long_Long_Float (X : MP_Float) return Long_Long_Float is begin return To_Long_Long_Float (X, Rounding); end To_Long_Long_Float; f...
package body LogQueue with SPARK_Mode is protected body queue is procedure Put (msg : mylog.logmsg) is buf_int : mylog.logmsg; begin buf := msg; buf_int := msg; Not_Empty := True; end Put; entry Get (msg : out mylog.logmsg) when Not_Empty is msg_...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
with Ada.Text_IO; procedure Hello is begin Ada.Text_IO.Put_Line ("Hello, World!"); end Hello;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- awa-workspaces-module -- Module workspaces -- Copyright (C) 2011, 2012, 2013, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may no...
package GESTE_Fonts.FreeSerifItalic6pt7b is Font : constant Bitmap_Font_Ref; private FreeSerifItalic6pt7bBitmaps : aliased constant Font_Bitmap := ( 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#20#, 16#08#, 16#01#, 16#00#, 16#20#, 16#08#, 16#01#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#00...
-- 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.Text_IO; with Ada.Unchecked_Deallocation; package body Cupcake.Windows is -- Creates a new window: funct...
with Irc.Bot; with Irc.Commands; with Irc.Message; with Ada.Strings.Unbounded; -- Some custom commands (commands.ads) with Commands; procedure Host_Bot is Bot : Irc.Bot.Connection; begin Bot := Irc.Bot.Create ("irc.tenthbit.net", 6667, Nick => "hostbot"); -- Set some bot administrators. The '!' is just...
-- 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...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is type t is record a, a: integer; end record; begin new_line; end;
-- ---------------------------------------------------------------------------- -- Note this is an implementation package and is subject to change att any time. -- ---------------------------------------------------------------------------- with DDS.ReadCondition; with DDS.Request_Reply.Impl; private package DDS.Re...
with PathPackage; use PathPackage; with StrategyPackage; use StrategyPackage; package PositionPackage is type Position is new Path with record omega : IntArrayPtr := null; end record; --type PositionPtr is access all Position; ROOT : access Position := null; -----------------------------------------...
with Interfaces.C.Strings, Ada.Strings.Unbounded, Ada.Containers, System; use Ada.Strings.Unbounded; use type System.Address, Interfaces.C.int, Interfaces.C.Strings.chars_ptr, Ada.Containers.Count_Type; package body FLTK.Text_Buffers is function new_fl_text_buffer ...
with ada.Containers.Vectors, ada.Unchecked_Deallocation, interfaces.c.Pointers; -- for debug package body impact.d2.dynamic_Tree is use type int32; ------- -- Node -- procedure free is new ada.Unchecked_Deallocation (b2DynamicTreeNodes, ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2021 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...