content
stringlengths
23
1.05M
-- This test shows the usage of various alinment and size clauses. -- It was taken from an online example, but heavily modified. with System; procedure Alignment_Component_Clause is Word : constant := 4; -- storage element is byte, 4 bytes per word type State is (A,M,W,P); type Mode is (Fi...
----------------------------------------------------------- -- -- -- IRIS -- -- -- -- Copyright (c) 2017, John Leimon -- -- ...
with RASCAL.Toolbox; use RASCAL.Toolbox; with RASCAL.OS; use RASCAL.OS; with RASCAL.Error; use RASCAL.Error; with RASCAL.MessageTrans; use RASCAL.MessageTrans; with RASCAL.WimpTask; use RASCAL.WimpTask; with Interfaces.C; use Interfaces.C; with Main; ...
--- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt with AdaBase.Results.Generic_Converters; package AdaBase.Results.Converters is package GEN renames AdaBase.Results.Generic_Converters; ------------- -- NByte 0 -- ------------- function conver...
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.ADC is pragma Preelaborate; --------------- -- Registers -- --------------- -- ISR_AWD array type ISR_AWD_Field_Arra...
-- Spécification du module Piles. generic type T_Element is private; -- Type des éléments de la pile package Piles is type T_Pile is limited private; -- Initilaiser une pile. La pile est vide. procedure Initialiser (Pile : out T_Pile) with Post => Est_Vide (Pile); -- Est-ce que la pile est vide ? funct...
pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Ada.Streams; with Lzma.Base; package Lzma.Vli is -- unsupported macro: LZMA_VLI_MAX (UINT64_MAX / 2) -- unsupported macro: LZMA_VLI_UNKNOWN UINT64_MAX LZMA_VLI_BYTES_MAX : constant := 9; -- /usr/include/lzma/vli.h:44 -- arg-macro:...
package body Animals is function Legs (A : Animal) return Natural is (A.Number_Of_Legs); function Wings (A : Animal) return Natural is (A.Number_Of_Wings); procedure Add_Wings (A : in out Animal; N : Positive) is begin A.Number_Of_Wings := A.Wings + 2 * N; end Add_Win...
with Ada.Finalization; package Controlled_Record is type Point_T is limited private; procedure Assert_Invariants (PA : Point_T); private type Coords_T is array (1 .. 2) of Natural; type Point_T is new Ada.Finalization.Controlled with record Pos : Coords_T := (0, 0); end record; end Controlled...
-- { dg-do compile } procedure Constant1 is Def_Const : constant Integer; pragma Import (Ada, Def_Const); begin null; end;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Définition d'une exception commune à toutes les SDA. package SDA_Exceptions is Cle_Absente_Exception : Exception; -- une clé est absente d'un SDA end SDA_Exceptions;
----------------------------------------------------------------------- -- security-oauth-jwt -- OAuth Java Web Token -- Copyright (C) 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 ex...
with Ada.Text_Io; use Ada.Text_Io; with Ada.Integer_Text_Io; use Ada.Integer_Text_Io; procedure Lucas_Lehmer_Test is type Ull is mod 2**64; function Mersenne(Item : Integer) return Boolean is S : Ull := 4; MP : Ull := 2**Item - 1; begin if Item = 2 then return True; else ...
-- generated parser support file. -- command line: wisitoken-bnf-generate.exe --generate LR1 Ada_Emacs re2c PROCESS gpr.wy -- -- Copyright (C) 2013 - 2019 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...
procedure Extension_Aggregate is Str : String := "tmp"; begin Str := String'("A String"); null; end;
------------------------------------------------------------------------------ -- edp.adb -- -- A compact Ada 95 simulation of the Enhanced Dining Philosophers Problem. -- By "compact" it is meant that tasks representing simulation objects are -- actually made visible to the simulation program as a whole rather th...
-- -- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: Apache-2.0 -- package Tests is procedure Test_Version; procedure Test_Hello_World; procedure Test_Colors; procedure Test_Palette; procedure Test_Dimensions; procedure Test_Input; procedure Test_Plane_Split; ...
-- 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...
package Tareas is task type Tarea_1; task type Tarea_2; task type Tarea_3; end Tareas;
----------------------------------------------------------------------- -- util-encoders-hmac-sha1 -- Compute HMAC-SHA1 authentication code -- Copyright (C) 2011, 2012, 2017, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Lic...
with Ada.Numerics.Generic_Complex_Arrays; generic with package Complex_Arrays is new Ada.Numerics.Generic_Complex_Arrays (<>); use Complex_Arrays; function Generic_FFT (X : Complex_Vector) return Complex_Vector;
package body Foo is procedure P is begin loop if cond1() then if cond2() then Label1 : while cond3() loop doIt(); end loop Label1; end if; end if; end loop; end P; end Foo;
-- { dg-do run } with Init1; use Init1; with Text_IO; use Text_IO; with Dump; procedure T1 is Local_R1 : R1; Local_R2 : R2; begin Local_R1.I := My_R1.I + 1; Put ("Local_R1 :"); Dump (Local_R1'Address, R1'Max_Size_In_Storage_Elements); New_Line; -- { dg-output "Local_R1 : 79 56 34 12.*\n" } Local_R...
with RP.SPI; use RP.SPI; with RP.Device; with RP.GPIO; with Pico; package body BB_Pico_Bsp.SPI is SPI_Port : RP.SPI.SPI_Port renames RP.Device.SPI_0; DMA_TX_Trigger : constant RP.DMA.DMA_Request_Trigger := RP.DMA.SPI0_TX; SPI_CLK : RP.GPIO.GPIO_Point renames Pico.GP18; SPI_DO : RP.GPIO.GPIO_Point re...
-- -- Copyright (C) 2017 secunet Security Networks AG -- -- 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 ...
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Calendar.Formatting; with Ada.Exceptions; with Ada.Text_IO; with GNAT.Sockets; with Torrent.Logs; package body Torrent.Man...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
with Ada.Integer_Text_IO; procedure Eukl is A, B : Natural; Tmp: Natural; begin Ada.Integer_Text_IO.Get( A ); Ada.Integer_Text_IO.Get( B ); while B /= 0 loop Tmp := A mod B; A := B; B := Tmp; end loop; Ada.Integer_Text_IO.Put( A ); end Eukl;
------------------------------------------------------------------------------ -- Copyright (c) 2013, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with Ada.Unchecked_Deallocation; with kv.avm.Log; use kv.avm.Log; with kv.avm.Actor_Pool; package body kv.avm.Test.Runners is use Interfaces; ----------------------------------------------------------------------------- procedure Execute (Self : in out Base_Behavior_Type; Runner : in out Run...
package Problem_50 is -- The prime 41, can be written as the sum of six consecutive primes: -- 41 = 2 + 3 + 5 + 7 + 11 + 13 -- This is the longest sum of consecutive primes that adds to a prime below -- one-hundred. The longest sum of consecutive primes below one-thousand that -- adds to a prime, contain...
pragma License (Unrestricted); with Ada.Calendar; with Ada.Directories.Information; with Ada.Hierarchical_File_Names; with System; with GNAT.Calendar; with GNAT.Strings; private with System.Native_IO; -- implementation unit package GNAT.OS_Lib is -- Note: Ada.Directories is not preelaborate. -- String Operatio...
with Render; with Game_Assets; with Game_Assets.Tileset; with Game_Assets.Tileset_Collisions; with Game_Assets.outside; with Game_Assets.inside; with Game_Assets.cave; with GESTE; use GESTE; with GESTE.Tile_Bank; with GESTE.Grid; with GESTE.Text; with Player; package body Levels is Debug_Collisions : constant ...
with AWS.URL; with Ada.Text_IO; use Ada.Text_IO; procedure Encode is Normal : constant String := "http://foo bar/"; begin Put_Line (AWS.URL.Encode (Normal)); end Encode;
package body ACO.Protocols.Error_Control.Masters is procedure Periodic_Actions (This : in out Master; T_Now : in Ada.Real_Time.Time) is begin This.Timers.Process (T_Now); This.Monitor.Update_Alarms (T_Now); end Periodic_Actions; function Create_Heartbeat (State : A...
-- Copyright (c) 2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- 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...
-- { dg-do run } -- { dg-options "-gnatVa" } with Constant2_Pkg1; use Constant2_Pkg1; procedure Constant2 is begin if Val then raise Program_Error; end if; end;
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Formal_Type_Definitions; with Program.Lexical_Elements; package Program.Elements.Formal_Signed_Integer_Type_Def...
-- Copyright ©2022 Steve Merrony -- This file is a part of DasherA. -- 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...
pragma License (Unrestricted); -- implementation unit required by compiler package System.Val_LLD is pragma Pure; -- required for Fixed'Value by compiler (s-valdec.ads) function Value_Long_Long_Decimal (Str : String; Scale : Integer) return Long_Long_Integer; end System.Val_LLD;
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- 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 3 of the License, or -- (at your option) any later vers...
----------------------------------------------------------------------------- -- Legal licensing note : !!! Edit the file gate3_license.txt !!! -- -- Copyright (c) F. J. FABIEN - 2013 -- Berry -- FRANCE -- Send bug reports or feedback to : francois_fabien@hotmail.com -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOU...
with Ada.Containers; with Ada.Iterator_Interfaces; with Ada.Strings.Unbounded; package Serialization is pragma Preelaborate; type Stream_Element_Kind is ( Value, Enter_Mapping, Leave_Mapping, Enter_Sequence, Leave_Sequence, End_Of_Stream); type Direction is (Reading, Writing); type Serializer (Dir...
with Gtkada.Builder; with Gtk.List_Store; with Gtk.Status_Bar; with Gtk.Text_Buffer; with Gtk.Widget; package gui is builder : Gtkada.Builder.Gtkada_Builder; topLevelWindow : Gtk.Widget.Gtk_Widget; textbuf : Gtk.Text_Buffer.Gtk_Text_Buffer; statusBar : Gtk.Status_Bar.Gtk_Status_Bar; --statusBarCon...
with Ada.Text_IO; with Ada.Integer_Text_IO; with Ada.Strings.Unbounded; with Ada.Strings.Fixed; with Ada.Command_Line; procedure Main is generator: Natural; prime : Natural; alicePrivateKey : Natural; bobPrivateKey : Natural; --------------------- -- DecimalToBinary -- --------------------- ...
----------------------------------------------------------------------- -- ado-queries-loaders -- Loader for Database Queries -- Copyright (C) 2011, 2012, 2013, 2014, 2017, 2018, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0...
-- A lexical scanner generated by aflex with text_io; use text_io; with ascan_dfa; use ascan_dfa; with ascan_io; use ascan_io; --# line 1 "ascan.l" -- Copyright (c) 1990 Regents of the University of California. -- All rights reserved. -- -- This software was developed by John Self of the Arcadia project -- at the Uni...
with Ada.Text_IO; use Ada.Text_IO; with Virtual_File_System; use Virtual_File_System; with Helpers; use Helpers; procedure TC_Empty_VFS is VFS : Virtual_File_System.VFS; begin Put_Line ("Dumping the root directory of an empty VFS:"); Dump (VFS, "/"); Put_Line ("Done."); end TC_Empty_VFS;
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Handlers; with Program.Scanner_Destinations; with Program.Scanners; with Program.Symbols; package body Program.P...
with Ada.Text_IO; procedure Hello is package IO renames Ada.Text_IO; begin IO.Put_Line("Hello, world!"); exception when End_Error => IO.Put_Line("break"); when others => IO.Put_Line("others"); end Hello;
with System; with Interfaces.C; with Interfaces.C.Strings; with System.Storage_Elements; use System.Storage_Elements; with QOI; package Reference_QOI is type Ref_Desc is record width : Interfaces.C.unsigned; height : Interfaces.C.unsigned; channels : Interfaces.C.char; colorspace...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma SPARK_Mode; with System; package body Sparkduino is procedure Arduino_Serial_Print (Msg : System.Address); pragma Import (C, Arduino_Serial_Print, "Serial_Print"); procedure Arduino_Serial_Print_Byte (Msg : System.Address; Val : Byte); pragma Import (C, Ard...
package discr1 is type R is (One, Two); type C_Type (Kind : R) is record case Kind is when One => Name : Integer; when Two => Designator : String (1 .. 40); end case; end record; for C_Type use record Name at 0 range 0.. 31; Designator at 0 ra...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Excepciones_4 is I, J : Integer; begin I := 0; while I < 50 loop begin J := 40 / I; exception when Constraint_Error => Put_Line("Intento de dividir por 0"); end; Put_Line("Resultado: " & Integer'Image(J)); ...
with Tkmrpc.Servers.Cfg; with Tkmrpc.Response.Cfg.Tkm_Reset.Convert; package body Tkmrpc.Operation_Handlers.Cfg.Tkm_Reset is ------------------------------------------------------------------------- procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type) is pragma Unreferenced (Req); ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- Atlas-server -- Application server -- Copyright (C) 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 fil...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- awa-mail-components-recipients -- Mail UI Recipients -- Copyright (C) 2012, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not ...
package LV_Conf is LV_DPI : constant := 100; LV_HOR_RES : constant := 800; LV_VER_RES : constant := 480; end LV_Conf;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma License (Unrestricted); -- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux) with Ada.IO_Exceptions; with Ada.IO_Modes; with Ada.Streams; with System.Native_IO; with C.termios; package System.Native_Text_IO is pragma Preelaborate; subtype Handle_Type is Native_IO.Handle_Type; -- ...
-- The Village of Vampire by YT, このソースコードはNYSLです package body Tabula.Casts.Cast_IO is procedure IO_Partial ( Serializer : not null access Serialization.Serializer; Item : in out Person'Class) is use Serialization; use Person_Sex_IO; begin IO (Serializer, "name", Item.Name); IO (Serializer, "work", Item...
pragma License (Unrestricted); -- implementation unit specialized for Darwin (or Linux, or Windows) with System.Long_Long_Complex_Types; package System.Long_Long_Complex_Elementary_Functions is pragma Pure; -- Complex subtype Imaginary is Long_Long_Complex_Types.Imaginary; subtype Complex is Long_Long_C...
package Generator.Filtered is type Filtered_Generator is new Generator with private; procedure Reset (Gen : in out Filtered_Generator); function Get_Next (Gen : access Filtered_Generator) return Natural; procedure Set_Source (Gen : in out Filtered_Generator; Source : access Gen...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with Ada.Characters.Wide_Wide_Latin_1; with Ada.Wide_Wide_Text_IO; with League.Strings; with League.String_Vectors; with XML.SAX.Attributes; -- with XM...
with Ada.Text_IO; use Ada.Text_IO; with ZMQ.Sockets; with ZMQ.Contexts; with ZMQ.Messages; procedure LMCP.Client is Ctx : ZMQ.Contexts.Context; Sub : ZMQ.Sockets.Socket; begin Ctx.Set_number_of_IO_threads (1); Sub.Initialize (Ctx, ZMQ.Sockets.SUB); -- LmcpObjectNetworkPublishPullBridge -- 'Addres...
package body Hailstones is function Create_Sequence (N : Positive) return Integer_Sequence is begin if N = 1 then -- terminate return (1 => N); elsif N mod 2 = 0 then -- even return (1 => N) & Create_Sequence (N / 2); else -- odd return (1 =>...
with Ada.Real_Time; use Ada.Real_Time; with STM32_SVD; use STM32_SVD; with STM32_SVD.TIM; use STM32_SVD.TIM; with STM32_SVD.RCC; use STM32_SVD.RCC; package body STM32GD.Timer.Peripheral is Timer_Callback : Timer_Callback_Type := null; Frequency : constant Natural := 1_000; CK_INT : constant Natural := 8_000_...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- generated parser support file. -- command line: wisitoken-bnf-generate.exe --generate LALR Ada re2c wisitoken_grammar.wy -- -- Copyright (C) 2017 - 2019 Free Software Foundation, Inc. -- -- Author: Stephen Leake <stephe-leake@stephe-leake.org> -- -- This file is part of GNU Emacs. -- -- GNU Emacs is free sof...
----------------------------------------------------------------------- -- util-encoders -- Encode/Decode streams and strings from one format to another -- Copyright (C) 2009, 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version ...
type T is array (Positive range <>) of Integer; X : T := (1, 2, 3); Y : T := X & (4, 5, 6); -- Concatenate X and (4, 5, 6)
------------------------------------------------------------------------------ -- Copyright (C) 2012-2020 by Heisenbug Ltd. -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Hocevar. See the LICE...
----------------------------------------------------------------------- -- awa-storages-stores-files -- File system store -- 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 fil...
-- auto generated, do not edit with GNAT.Compiler_Version; with GNAT.Regpat; with Ada.Text_IO; with Ada.Strings.Fixed; with Ada.Strings; procedure Ver_GNAT is -- -- gnatver.ads -- type Variant_t is (GNAT_UNKNOWN, GNAT_FSF, GNAT_GPL, GNAT_PRO, GNAT_GAP); type Version_t is record Var...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- 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...
with S_Expr.Parser, Ada.Text_IO; procedure Test_S_Expr is procedure Put_Line(Indention: Natural; Line: String) is begin for I in 1 .. 3*Indention loop Ada.Text_IO.Put(" "); end loop; Ada.Text_IO.Put_Line(Line); end Put_Line; package S_Exp is new S_Expr(Put_Line); package S_P...
with ada.Tags; package body lace.Response is function Name (Self : in Item) return String is begin return ada.Tags.expanded_Name (Item'Class (Self)'Tag); end Name; end lace.Response;
-- part of OpenGLAda, (c) 2020 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.Buffers; with GL.Types.Colors; with GL.Fixed.Matrix; with GL.Images; with GL.Immediate; with GL.Objects.Textures.Targets; with GL.Pixels; with GL.Toggles; with GL.Types; with GL_Test.Display_Ba...
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 pathfindList is type stringptr is access all char_array; procedure PInt(i : in Integer) is begin String'Write (Text_Stream...
-- RUN: %llvmgcc -c %s procedure Array_Size is subtype S is String (1 .. 2); type R is record A : S; end record; X : R; begin null; end;
-- { dg-do compile } package double_record_extension1 is type T1(n: natural) is tagged record s1: string (1..n); end record; type T2(j,k: natural) is new T1(j) with record s2: string (1..k); end record; type T3 is new T2 (10, 10) with null record; end double_record_extension1;
with EU_Projects.Nodes.Timed_Nodes.Milestones; with EU_Projects.Nodes.Action_Nodes.WPs; with EU_Projects.Nodes.Timed_Nodes.Deliverables; with EU_Projects.Nodes.Action_Nodes.Tasks; with EU_Projects.Identifiers; package EU_Projects.Event_Names is use EU_Projects.Nodes.Timed_Nodes; use EU_Projects.Nodes.Action_Nod...
-- Abstract : -- -- Type and operations for building a grammar directly in Ada source. -- -- Copyright (C) 2003, 2013 - 2015, 2017, 2018 Free Software Foundation, Inc. -- -- This file is part of the WisiToken package. -- -- The WisiToken package is free software; you can redistribute it -- and/or modify it under ...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with GBA.Memory.IO_Registers; package GBA.Input is type Key is ( A_Button , B_Button , Select_Button , Start_Button , Right_Direction , Left_Direction , Up_Direction , Down_Direction , Left_Shoulder ...
with Glib; use Glib; with Gdk.Event; use Gdk.Event; with Gtk.Widget, Gtk.Handlers; use Gtk.Widget, Gtk.Handlers; package GA_Sine_Package is package Handlers is new Gtk.Handlers.Callback (Widget_Type => Gtk_Widget_Record); package Return_Handlers is new Gtk.Handlers.Return_Callback (Widget_Type => Gt...
with Ada.Characters.Conversions; package body Lal_Adapter is package Acc renames Ada.Characters.Conversions; ----------- -- PRIVATE: ----------- function To_String (Item : in Wide_String) return String is (Acc.To_String (Item, Substitute => ' ')); ----------- -- PRIVATE: ----------- ...
-- { dg-do compile } with Discr12_Pkg; use Discr12_Pkg; procedure Discr12 is subtype Small_Int is Integer range 1..10; package P is type PT_W_Disc (D : Small_Int) is private; type Rec_W_Private (D1 : Integer) is record C : PT_W_Disc (D1); end record; type Rec_01 (D3 : Integer) is ...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
with interfaces.c.strings; package body agar.gui.window is package cs renames interfaces.c.strings; use type c.int; function allocate_named (flags : flags_t := 0; name : cs.chars_ptr) return window_access_t; pragma import (c, allocate_named, "AG_WindowNewNamedS"); function allocate_named (fl...
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Strings.Wide_Wide_Fixed; package body Program.Symbol_Lists is ----------------------- -- Empty_Symbol_List -- ----------------------- ...
with Ada.Text_IO; procedure Cursor_Pos is begin Ada.Text_IO.Set_Line(6); Ada.Text_IO.Set_Col(3); Ada.Text_IO.Put("Hello"); end Cursor_Pos;
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt with Ada.Containers; with AdaBase.Connection.Base.PostgreSQL; with AdaBase.Bindings.PostgreSQL; package AdaBase.Statement.Base.PostgreSQL is package BND renames AdaBase.Bindings.PostgreSQL; package CON r...