content
stringlengths
23
1.05M
pragma License (Unrestricted); -- implementation unit package Ada.Streams.Naked_Stream_IO.Standard_Files is pragma Elaborate_Body; Standard_Input : aliased constant Non_Controlled_File_Type; Standard_Output : aliased constant Non_Controlled_File_Type; Standard_Error : aliased constant Non_Controlled_File_...
with lace.Environ.OS_Commands, posix.user_Database, posix.process_Identification; package body lace.Environ.Users is function "+" (Source : in unbounded_String) return String renames to_String; function to_User (Name : in String) return User is begin return (Name =...
with Scape; use Scape; with Ada.Characters.Conversions; use Ada.Characters.Conversions; with Ada.Strings.Wide_Wide_Unbounded; use Ada.Strings.Wide_Wide_Unbounded; with AWS.Client; use AWS.Client; with GNAT.Regpat; use Gnat.Regpat; with AWS.Response...
with Entities; use Entities; with Materials; use Materials; with Vectors2D; use Vectors2D; package Rectangles is type Rectangle is new Entities.Entity with record Dim : Vec2D; -- (x => width, y => height) end record; pragma Pack (Rectangle); type RectangleAcc is access all Rectangle; -- Create ...
with Ada.Text_IO; use Ada.Text_IO; package body Aids.Env is function Index_Of(Line: in String; X: in Character; Result: out Integer) return Boolean is begin for Index in Line'Range loop if Line(Index) = X then Result := Index; return True; end if;...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is function F return character is begin return 'a' end F; begin Put(F); end;
----------------------------------------------------------------------- -- awa-services -- Services -- Copyright (C) 2011, 2012, 2013, 2014 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 System.Storage_Elements; use System.Storage_Elements; with Ada.Containers.Vectors; with Ada.Unchecked_Deallocation; with AAA.Strings; private with Ada.Containers.Indefinite_Vectors; package Test_Utils is package Data_Frame_Package is new Ada.Containers.Vectors (Storage_Count, Storage_Element); type ...
function Multiply (A, B : Number) return Number is begin return A * B; end Multiply;
with PixelArray; with Ada.Text_IO; use PixelArray; package body HistogramGenerator is function verticalProjection(image: PixelArray.ImagePlane; r: ImageRegions.Rect) return Histogram.Data is result: Histogram.Data(r.height); begin for h in 0 .. r.height - 1 loop declare total: ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- net-protos-arp -- ARP Network protocol -- Copyright (C) 2016 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- { dg-do compile } -- { dg-final { scan-assembler-not "elabs" } } package body OCONST5 is procedure Check (Arg : R; Bit : U1) is begin if Arg.Bit /= Bit or else Arg.Agg.A /= 3 or else Arg.Agg.B /= 7 then raise Program_Error; end if; end; end;
with Ada.Finalization; with kv.avm.Control; limited with kv.avm.Instances; package kv.avm.Warrants is type Warrant_Type is new Ada.Finalization.Controlled with private; overriding procedure Initialize (Self : in out Warrant_Type); overriding procedure Adjust (Self : in out Warrant_Type); overriding ...
------------------------------------------------------------------------------ -- Copyright (c) 2015-2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
----------------------------------------------------------------------- -- util-serialize-io-json -- JSON Serialization Driver -- Copyright (C) 2010, 2011, 2012, 2016, 2017, 2020, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the...
with C.crt_externs; function System.Environment_Block return C.char_ptr_ptr is begin return C.crt_externs.NSGetEnviron.all; end System.Environment_Block;
-- -- -- package Copyright (c) Dmitry A. Kazakov -- -- GNAT.Sockets.Connection_State_Machine Luebeck -- -- Interface Winter, 2012 -- -- ...
-- This spec has been automatically generated from STM32L0x1.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.RTC is pragma Preelaborate; --------------- -- Registers -- --------------- -- RTC time register type TR_Registe...
------------------------------------------------------------------------------ -- Copyright (c) 2006-2013, Maxim Reznik -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistr...
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 sumDiv is type stringptr is access all char_array; procedure PInt(i : in Integer) is begin String'Write (Text_Streams.Stre...
package ParameterDefaultValue is function someFunction (SomeInteger : in Integer := 2) return Integer; function someOtherFunction (SomeInteger : in Integer) return Integer; end ParameterDefaultValue;
----------------------------------------------------------------------- -- Add_User -- Example to add an object in the database -- 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 ...
----------------------------------------------------------------------- -- util-system-os -- Windows system operations -- Copyright (C) 2011, 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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Version 01 is derived from ExcelOut by Frank Schoonjans in Modula-2 - thanks! -- Modula-2 code has been translated with Mod2Pas and P2Ada. -- -- References to documentation are to: http://www.openoffice.org/sc/excelfileformat.pdf -- -- To do: -- ===== -- - Unicode (for binary Excel: requires BIFF8, but BIFF8...
package Count_Subprogram is procedure P2A (x, y : Integer); procedure P2B (x : Integer; y : Integer); procedure P4A (k, l, m, n : Integer); procedure P4B (k : Integer; l : Integer; m : Integer; n : Integer); procedure P3A (x, y, z : Integer); procedure P3B (x, y : Integer; z : Integer); procedur...
package body Ada.Streams.Stream_IO.Naked is procedure Open ( File : in out File_Type; Mode : File_Mode; Handle : System.Native_IO.Handle_Type; Name : String := ""; Form : System.Native_IO.Packed_Form := Naked_Stream_IO.Default_Form; To_Close : Boolean := False) is NC_Fil...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
----------------------------------------------------------------------- -- wiki-filters-autolink -- Autolink filter to identify links in wiki -- Copyright (C) 2016, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); --...
package Card_Dir is type Cardinal_Direction is (N, NE, E, SE, S, SW, W, NW); end Card_Dir;
-- { dg-do run } with Controlled5_Pkg; use Controlled5_Pkg; procedure Controlled5 is V : Root'Class := Dummy (300); begin null; end;
-- This spec has been automatically generated from STM32L4x6.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.Flash is pragma Preelaborate; --------------- -- Registers -- --------------- subtype ACR_LATENCY_Field is...
with Ada.Exception_Identification.From_Here; with System.Formatting; with System.Long_Long_Integer_Types; with System.Native_Calendar; with System.Native_Time; package body Ada.Calendar.Formatting is use Exception_Identification.From_Here; use type Time_Zones.Time_Offset; use type System.Long_Long_Integer_Type...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- 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.I2S is pragma Preelaborate; ...
package Ada_Code is procedure Ada_Proc; pragma Export (C, Ada_Proc, "Ada_Proc"); procedure Ada_C_Caller; pragma Export (C, Ada_C_Caller, "Ada_C_Caller"); end Ada_Code;
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 euler05 is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Streams.S...
with RP.Device; with RP.I2C_Master; with RP.GPIO; with Pico; package body BB_Pico_Bsp.I2C is I2C_Port : RP.I2C_Master.I2C_Master_Port renames RP.Device.I2C_0; I2C_SDA : RP.GPIO.GPIO_Point renames Pico.GP4; I2C_SCL : RP.GPIO.GPIO_Point renames Pico.GP5; procedure Initialize; ---------------- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2020 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; with CryptAda.Digests.Message_Digests.MD4; with CryptAda.Digests.Hashes; with CryptAda.Pragmatics; with CryptAda.Utils.Format; procedure RC_MD4 is use CryptAda.Digests.Message_Digests; use CryptAda.Digests; use CryptAda.Pragmatics; function To_Byte_Array (Item : String) return Byte_Arra...
-- RUN: %llvmgcc -c %s with System; procedure Negative_Field_Offset (N : Integer) is type String_Pointer is access String; -- Force use of a thin pointer. for String_Pointer'Size use System.Word_Size; P : String_Pointer; procedure Q (P : String_Pointer) is begin P (1) := 'Z'; end; begin ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2012 Felix Krause <contact@flyx.org> -- -- 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/licen...
-- -- Copyright (C) 2015-2016 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. -- -- ...
with Ada.Calendar; private with Ada.Finalization; package taglib is type File (<>) is tagged limited private; type Tag (<>) is tagged limited private; type AudioProperties (<>) is tagged limited private; procedure set_strings_unicode (unicode : Boolean); procedure set_string_management_enabled (mana...
with Ada.Text_IO; use Ada.Text_IO; procedure Calc is procedure Add (X, Y : Integer) is Sum : Integer; begin Sum := X + Y; Put_Line (Integer'Image (Sum)); end Add; procedure Sub (X, Y : Integer) is Diff : Integer; begin Diff := X - Y; Put_Line (Integer'Image (Diff)); end Sub; pro...
pragma License (Unrestricted); -- implementation unit specialized for Windows with Ada.IO_Exceptions; with Ada.IO_Modes; with Ada.Streams; with System.Native_IO; with C.wincon; with C.windef; package System.Native_Text_IO is pragma Preelaborate; subtype Handle_Type is Native_IO.Handle_Type; -- file managem...
with Interfaces; use Interfaces; package Flash is pragma Preelaborate; procedure Init with Inline_Always; procedure Unlock with Inline_Always; procedure Lock with Inline_Always; procedure Enable_Erase with Inline_Always; procedure Enable_Write with Inline_Always; pr...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT INTERFACE COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Taken from https://en.wikibooks.org/wiki/Ada_Programming/Object_Orientation#Overriding_indicators package Input_3 is type Object is tagged null record; function Primitive return access Object; -- new in Ada 2005 type Derived_Object is new Object with null record; not overriding -- new optional keyw...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Gtk; use Gtk; with Gtk.Main; with Gtk.Widget; use Gtk.Widget; with Life_Pkg; use Life_Pkg; with World; use World; procedure Main is WG : World_Grid (16); B : Boolean; begin WG := New_World (16); B := Get_Spot (WG, 1, 1); Put_Line ("World Size: " ...
with Ada.Text_IO; procedure Stooge is type Integer_Array is array (Positive range <>) of Integer; procedure Swap (Left, Right : in out Integer) is Temp : Integer := Left; begin Left := Right; Right := Temp; end Swap; procedure Stooge_Sort (List : in out Integer_Array) is T : Natu...
-- -- Copyright (C) 2017, AdaCore -- -- This spec has been automatically generated from ATSAM4SD32C.svd -- This is a version for the Atmel ATSAM4SD32C device: Cortex-M4 -- Microcontroller with 2MB dual-bank Flash, 160KB SRAM, USB, 100 Pins (refer -- to http://www.atmel.com/devices/SAM4SD32C.aspx for more) MCU pa...
generic type Component is private; type List_Index is range <>; type List is array (List_Index range <>) of Component; Default_Value : Component; with function "=" (Left, Right : List) return Boolean is <>; package Bounded_Dynamic_Arrays is pragma Pure; Maximum_Length : constant List_Index := List...
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with Ada.Wide_Wide_Text_IO; with Jupyter.Kernels; procedure Magics.Write_File (IO_Pub : not null Jupyter.Kernels.IO_Pub_Access; Name : League.St...
with Ada.Integer_Text_IO; procedure Euler2 is A, B: Integer := 1; Sum : Integer := 0; Tmp: Integer; begin while A < 4_000_000 loop if A mod 2 = 0 then Sum := Sum + A; end if; Tmp := A; A := A + B; B := Tmp; end loop; Ada.Integer_Text_IO.Put(Sum); end Euler2;
with Ada.Finalization; generic type T is private; package Controlled6_Pkg is type Node_Type is record Item : T; end record; type Node_Access_Type is access Node_Type; end Controlled6_Pkg;
with STM32_SVD; use STM32_SVD; with HAL; generic with package Chip_Select is new HAL.Pin (<>); with package IRQ is new HAL.Pin (<>); with package SPI is new HAL.SPI (<>); package Drivers.CC1101 is type Raw_Register_Array is array (0 .. 16#3D#) of Byte; type Packet_Type is array (Positive range <>) of...
-- This spec has been automatically generated from STM32F0xx.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.SYSCFG is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CFGR1_MEM_MODE_Field is STM32...
------------------------------------------------------------------------------- -- Copyright (c) 2019 Daniel King -- -- 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...
package body Loop_Optimization17_Pkg is function F (V : Vector) return Vector is begin return V; end; end Loop_Optimization17_Pkg;
package Set_Puzzle is type Three is range 1..3; type Card is array(1 .. 4) of Three; type Cards is array(Positive range <>) of Card; type Set is array(Three) of Positive; procedure Deal_Cards(Dealt: out Cards); -- ouputs an array with disjoint cards function To_String(C: Card) return String; ...
generic type Real is digits <>; with function Sqrt(X: Real) return Real; with function "**"(X: Real; Y: Real) return Real; package Approximation is type Number is private; -- create an approximation function Approx(Value: Real; Sigma: Real) return Number; -- unary operations and conversion Real ...
----------------------------------------------------------------------- -- servlet-servlets -- Servlet.Core -- Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016, 2017, 2018, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Licen...
------------------------------------------------------------------------------ -- -- -- J E W L . C A N V A S _ I M P L E M E N T A T I O N -- -- -- ...
----------------------------------------------------------------------- -- awa-jobs-modules -- Job module -- 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 use this file except i...
-- EE3204A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
package impact.d2.orbs.Joint.prismatic -- -- -- is -- -- #include <Box2D/Dynamics/Joints/b2Joint.h> -- -- /// Prismatic joint definition. This requires defining a line of -- /// motion using an axis and an anchor point. The definition uses local -- /// anchor points and a local axis so that the initial configurat...
with Ada.Calendar.Time_Zones; with Ada.Calendar.Formatting; with Fmt.Integer_Argument; package body Fmt.Time_Argument is Default_Time_Edit : aliased constant String := "%Y-%m-%d %H:%M:%S"; overriding function Get_Placeholder_Width ( Self : in out Time_Argument_Type; Name : Character) return...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Statements; with Program.Lexical_Elements; package Program.Elements.Null_Statements is pragma Pure (Program.Elements.Null_Stateme...
with Ada.Text_IO; with Ada.Exceptions; use Ada.Exceptions; package body kv.avm.File_Reader is procedure Parse_Input_File (Self : in out Reader; File_In : in String) is File : Ada.Text_IO.File_Type; Buffer : String(1..1024); Length : Natural := 0; Line : Natural := 0;...
package body afrl.impact.ImpactAutomationRequest.SPARK_Boundary with SPARK_Mode => Off is -------------------------------------- -- Get_EntityList_From_TrialRequest -- -------------------------------------- function Get_EntityList_From_TrialRequest (Request : ImpactAutomationRequest) return Int64_Vec...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
pragma License (Unrestricted); -- implementation unit required by compiler with Ada.Assertions; package System.Assertions is pragma Pure; -- called from Ada.Assertions -- required by compiler ??? (s-assert.ads) Assert_Failure : exception renames Ada.Assertions.Assertion_Error; -- required for pra...
-- This file is freely given to the Public Domain. -- with Ada.Command_Line; use Ada.Command_Line; with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; with Vole_Tokens; with kv.avm.Vole_Lex; with Vole_Lex_IO; with kv.avm.vole_parser; with kv.avm.vole_tree; with kv.avm.Tree_Dots; with kv.avm.Tree_Rewrite; wi...
----------------------------------------------------------------------- -- util-http-clients-curl -- HTTP Clients with CURL -- Copyright (C) 2012, 2017, 2018, 2020, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); --...
-- Lumen.Shader -- Helper routines to fetch shader source, load it, and compile -- -- Chip Richards, NiEstu, Phoenix AZ, Winter 2013 -- This code is covered by the ISC License: -- -- Copyright © 2010, NiEstu -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee ...
-- { dg-do compile } -- { dg-options "-O2" } function slice1 (Offset : Integer) return String is Convert : constant String := "0123456789abcdef"; Buffer : String (1 .. 32); Pos : Natural := Buffer'Last; Value : Long_Long_Integer := Long_Long_Integer (Offset); begin while Value > 0 loop ...
-- -- Copyright (C) 2021 Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- with RP.GPIO; with RP.PWM; with RP; package Piezo is type Beeper (Point_A : access RP.GPIO.GPIO_Point; Point_B : access RP.GPIO.GPIO_Point) is tagged record Slice : RP.PWM.PWM_Slice := ...
package datos is Max_Elem : constant Integer := 10; type Vector_De_Enteros is array (Integer range <>) of Integer; type Lista_Enteros is record Numeros : Vector_De_Enteros (1 .. Max_Elem); Cont : Integer; end record; type Vector_De_Reales is array (Integer ra...
-- { dg-do compile } -- { dg-skip-if "No dwarf-2 support" { hppa*-*-hpux* } "*" "" } -- { dg-options "-cargs -gdwarf-2 -gstrict-dwarf -dA -margs" } -- { dg-final { scan-assembler "DW_TAG_imported_decl" } } package body Debug7 is function Next (I : Integer) return Integer is begin return I + 1; end Next;...
with Ada.Directories; use Ada.Directories; with Ada.Text_IO; use Ada.Text_IO; with Ada.Characters.Handling; use Ada.Characters.Handling; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Exceptions; use Ada.Exceptions; with Glib.Xml_Int; use Glib.Xml_Int; with Templates_Pa...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
with Ada.Numerics.Generic_Elementary_Functions; package body Ada_Voxel is package Float_Functions is new Ada.Numerics.Generic_Elementary_Functions (Float); ------------ -- Render -- ------------ procedure Render (Cam_X : Float; Cam_Y : Float; ...
-- { dg-do run } -- { dg-options "-O" } procedure Opt30 is function Id_I (I : Integer) return Integer is begin return I; end; A : array (Integer range -4..4) of Integer; begin A := (-ID_I(4), -ID_I(3), -ID_I(2), -ID_I(1), ID_I(100), ID_I(1), ID_I(2), ID_I(3), ID_I(4)); A(-4..0) := ...
-- { dg-do compile } -- { dg-options "-O" } with Renaming7_Pkg; use Renaming7_Pkg; with System; procedure Renaming7 is C : constant System.Address := A'Address; D : System.Address renames C; begin null; end;
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2012 Felix Krause <contact@flyx.org> -- -- 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/licen...
-- { dg-do run { target i?86-*-* x86_64-*-* alpha*-*-* ia64-*-* } } with Unchecked_Conversion; procedure Unchecked_Convert6b is subtype c_5 is string(1..5); function int2c5 is -- { dg-warning "different sizes" } new unchecked_conversion (source => integer, target => c_5); c5 : c_5; begin c5 := int2c...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
----------------------------------------------------------------------- -- AWA.Users.Models -- AWA.Users.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-body.xhtml -- Ada Generator: https://ada-gen.go...
package body impact.d2.Joint.mouse is procedure dummy is begin null; end dummy; -- #include <Box2D/Dynamics/Joints/b2MouseJoint.h> -- #include <Box2D/Dynamics/b2Body.h> -- #include <Box2D/Dynamics/b2TimeStep.h> -- -- // p = attached point, m = mouse point -- // C = p - m -- // Cdot = v -- // = v + c...
package body World is --------------- -- New_World -- --------------- function New_World (Size : Positive) return World_Grid is begin return World_Grid'(Size => Size, Grid1 => (others => (others => False)), Grid2 => (others => (others => False)), ...
with Ada.Text_Io, Ada.Integer_Text_Io; use Ada.Text_Io, Ada.Integer_Text_Io; with vectores; use vectores; procedure escribir_vector (V : in Vector_De_Enteros) is --Pre: --Post: se han escrito en pantalla todos los valores de V -- begin for pos in V'First..V'Last loop put(V(pos), width => 3); end...
-- -- 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 Ada.Text_IO; with Ada.Strings.Fixed; ...