content
stringlengths
23
1.05M
with FLTK.Widgets.Groups.Windows; private with Ada.Containers.Vectors, System.Address_To_Access_Conversions; package FLTK.Event is type Event_Handler is access function (Event : in Event_Kind) return Event_Outcome; -- type Event_Dispatch is access function -- ...
with agar.core.event; with agar.core.object; with agar.core.slist; with agar.core.types; with agar.gui.surface; with interfaces.c.strings; package agar.gui.text is package cs renames interfaces.c.strings; type glyph_t; type glyph_access_t is access all glyph_t; pragma convention (c, glyph_access_t); type f...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Text_IO.Unbounded_IO; use Ada.Text_IO.Unbounded_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Solve is function Get_Line_Integer (File : File_Type) return Integer; end Solve;
-- 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...
-- SPDX-FileCopyrightText: 2019-2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Element_Iterators; with Program.Elements.Defining_Identifiers; with Program.Interpretations; with Program.Node_Symbols; with Program.Type_...
with Ada.Finalization; use Ada.Finalization; package body EU_Projects.Nodes.Action_Nodes.Tasks is ------------ -- Create -- ------------ function Create (Label : Task_Label; Name : String; Short_Name : String; Leader : Partners.Partner_Label; Parent_WP ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- Copyright (c) 2015, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
generic type elem is (<>); -- you can choose from these 3 options: -- (<>) -> discret type, 'Image, 'Range, 'Succ, 'Pred -- private -> no one above 4 -- limited private with procedure kiirok(A : elem); package sor is type sora(max : positive := 10) is private; procedure push(s : in out sora; e : el...
with System; package Loop_Optimization2 is type Prim_Ptr is access procedure; type Address_Array is array (Positive range <>) of Prim_Ptr; subtype Dispatch_Table is Address_Array (1 .. 1); type Tag is access all Dispatch_Table; type Tag_Array is array (Positive range <>) of Tag; function Interfa...
----------------------------------------------------------------------- -- keystore-io-headers -- Keystore file header 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 no...
-- Auto_Counters_Suite.Refcounted_KVFlyweights_Tests -- Unit tests for Auto_Counters Refcounted KVFlyweights packages -- Copyright (c) 2016, James Humphry - see LICENSE file for details with Ada.Containers, Ada.Finalization; with AUnit.Assertions; with Basic_Refcounted_KVFlyweights; with Protected_Refcounted_KVFlyw...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
package BSSNBase.Initial is procedure create_data; procedure create_grid; end BSSNBase.Initial;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- wiki-plugins-conditions -- Condition Plugin -- Copyright (C) 2016, 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 ...
with Ada.Characters.Conversions; with Ada.Exception_Identification.From_Here; package body Ada.Strings.Naked_Maps is use Exception_Identification.From_Here; type Long_Boolean is new Boolean; for Long_Boolean'Size use Long_Integer'Size; function expect (exp, c : Long_Boolean) return Long_Boolean with...
----------------------------------------------------------------------- -- el-objects-tests - Generic simple test for discrete object types -- Copyright (C) 2009, 2010 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
package body Generator is -------------- -- Identity -- -------------- function Identity (X : Natural) return Natural is begin return X; end Identity; ---------- -- Skip -- ---------- procedure Skip (Gen : access Generator'Class; Count : Positive := 1) is Val : Natural; ...
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
------------------------------------------------------------------------------ -- -- -- Giza -- -- -- -- ...
with fov_h, Interfaces.C.Strings, Interfaces.C.Extensions, Ada.Unchecked_Conversion, error_h; package body Libtcod.Maps.FOV is use fov_types_h, fov_h, Interfaces.C, Interfaces.C.Extensions; function Algorithm_Type_To_TCOD_Algorithm is new Ada.Unchecked_Conversion (Source => Algorithm_Type, Target => T...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- util-refs -- Reference Counting -- Copyright (C) 2010, 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except ...
package Noinline2 is function F (A, B : Integer) return Integer; end Noinline2;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright 2021 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. name = "AbuseIPDB" type = "scrape" function start() set_rate_limit(1) end function vertical(ctx, domain) local ip = get_ip(ctx, domain) if (ip == nil or ip ...
with gel.remote.World, gel.Mouse, lace.Event; package gel.Events with remote_Types -- -- Provides events for GEL. -- is type window_Enter is new lace.Event.item with null record; type window_Leave is new lace.Event.item with null record; type window_Focus_In ...
-- -- This module contains interfaces implementing algorithms, but no data storage. -- -- Copyright (c) 2019, George Shapovalov <gshapovalov@gmail.com> -- -- 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 FO...
with lace_demo_Events, ada.real_Time; package body lace_demo_Keyboard is use lace_demo_Events, Lace, ada.real_Time; --- Simulated Keyboard -- the_event_Subject : constant Subject.local.view := Subject.local.forge.new_Subject ("demo.Subject"); task type simulated_Keyboard i...
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with Ada.Tags.Generic_Dispatching_Constructor; with League.Regexps; with Markdown.Link_Reference_Definitions; with Markdown.List_Items; with Markdown.Li...
------------------------------------------------------------------------------ -- -- -- Ada binding for OpenGL/WebGL -- -- -- -- ...
----------------------------------------------------------------------- -- awa-questions-modules-tests -- Unit tests for storage service -- Copyright (C) 2013, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
--------------------------------- -- GID - Generic Image Decoder -- --------------------------------- -- -- Private child of GID, with helpers for identifying -- image formats and reading header informations. -- with GID.Buffering, GID.Color_tables, GID.Decoding_JPG, GID.Decoding_PNG; with...
-- Copyright 2020-2021 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 License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- ...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
-- -- Copyright (c) 2007, 2008 Tero Koskinen <tero.koskinen@iki.fi> -- -- Permission to use, copy, modify, and distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "A...
-- { dg-do run } with Ada.Unchecked_Deallocation; with Unc_Memops; procedure Unc_Memfree is type List is array (Natural range <>) of Integer; for List'Alignment use Standard'Maximum_Alignment; type Fat_List_Access is access all List; type Thin_List_Access is access all List; for Thin_List_Access'Si...
with SDL.Events; use SDL.Events; with SDL.Events.Events; use SDL.Events.Events; with SDL.Events.Keyboards; use SDL.Events.Keyboards; package body Keyboard is Is_Pressed : array (Key_Kind) of Boolean := (others => False); ------------ -- Update -- ------------ procedure Update is Ev...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Element_Iterators; with Program.Elements.Pragmas; with Program.Elements.Defining_Names; with Program.Elements.Defining_Identifiers; with Progra...
--- tools/configure/configure-tests-sqlite3.adb.orig 2015-05-13 12:17:27 UTC +++ tools/configure/configure-tests-sqlite3.adb @@ -87,7 +87,7 @@ package body Configure.Tests.SQLite3 is (SQLite3_Library_Options, +"""-L" & Self.Switches.Libdir - & """, ""-lsqli...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Unchecked_Deallocation; with Yaml.Dom.Node; with Yaml.Dom.Sequence_Data; with Yaml.Dom.Mapping_Data; with Yaml.Dom.Node_Memory; package body Yaml.Dom is use type Text.Reference; use ty...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- are-generator -- Advanced Resource Embedder Generator -- Copyright (C) 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use t...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Plugin; use Plugin; package Config is Channels : Plugin.Vectors.Vector; Port : Integer; Prefix : Character; Server, Nick, Password, Owner : Unbounded_String; procedure Parse (File_Name : String); end Config;
package Boolean_Expr1 is function S (V : in Long_Float) return String; end Boolean_Expr1;
with ada.text_io; use ada.text_io; procedure euler7 is function is_prime(n : integer) return boolean is i : integer := 2; begin while i * i <= n loop if n mod i = 0 then return false; end if; i := i + 1; end loop; return true; end; count : integer := 0; i : integer := 2; begi...
-- { dg-do compile } -- { dg-options "-gnatws" } package body Case_Null is procedure P1 (X : T) is begin case X is when S1 => -- { dg-error "not.*static" } null; when e => null; when others => null; end case; end P1; end Case_Null;
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Euler is sum:Integer := 0; begin for I in Integer range 1 .. 999 loop if I mod 5 = 0 or I mod 3 = 0 then sum := sum + I; end if; end loop; Put(sum); New_Line; end Euler;
-------------------------------------------------------------------------------- -- Copyright (c) 2013, Felix Krause <contact@flyx.org> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this pe...
with Ada.Integer_Text_IO; with Intcode; with Memory; procedure Day_07 is use type Memory.Value; Mem: constant Memory.Block := Memory.Read_Comma_Separated; type Amp_Range is range 1 .. 5; type Phase is mod 5; type Phases is array (Amp_Range) of Phase; procedure Increment(X: in out Phases) is beg...
procedure Insert (Anchor : Link_Access; New_Link : Link_Access) is begin if Anchor /= Null and New_Link /= Null then New_Link.Next := Anchor.Next; New_Link.Prev := Anchor; if New_Link.Next /= Null then New_Link.Next.Prev := New_Link; end if; Anchor.Next := New_Link; end if; ...
-- flyweight_example.adb -- An example of using the Flyweight package -- Copyright (c) 2016, James Humphry -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in al...
with ACO.States; with ACO.Messages; with ACO.Events; with ACO.OD_Types; with ACO.SDO_Sessions; package ACO.OD is use ACO.OD_Types; subtype Comm_Profile_Index is Object_Index range 16#1000# .. 16#1FFF#; Comm_Cycle_Period_Index : constant := 16#1006#; Heartbeat_Producer_Index : constant := 16#1017#...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Test_Solution; use Test_Solution; with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions; package Problem_9 is type Int64 is range -2**63 .. 2**63 - 1; function Solution_1 return Int64; procedure Test_Solution_1; function Get_Solutions return Solution_Case; end Problem_...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Text_IO; procedure Print_Variable (Name, Value : String) is begin Ada.Text_IO.Put_Line (Name & ": " & Value); end Print_Variable;
-- 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.EXTI is pragma Preelaborate; --------------- -- Registers -- --------------- -- IMR_IM array type IMR_IM_Field_A...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 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...
--# inherit PolyPaver.Exact, PolyPaver.Floats; package Example is function Sqrt (X : in Float) return Float; --# pre 1.0 <= X and X <= 2.0; --# return R => --# R <= (1.0+4.0*PolyPaver.Floats.Eps_Rel)*PolyPaver.Exact.Sqrt(X); end Example;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- search-indexers -- Search engine indexer -- 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 file exce...
------------------------------------------------------------------------------ -- Copyright (c) 2014-2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with Zstandard.Functions; use Zstandard.Functions; with Ada.Command_line; use Ada.Command_Line; with Ada.Directories; use Ada.Directories; with Ada.Text_IO; use Ada.Text_IO; procedure Demo_Ada is begin if Argument_Count /= 1 then Put_Line ("Zstandard version: " & Zstd_Version); Put_Line ("usage:"); ...
-- Generated at 2015-02-03 21:39:53 +0000 by Natools.Static_Hash_Maps -- from src/natools-web-error_pages-maps.sx with Natools.Static_Maps.Web.Error_Pages.Commands; with Natools.Static_Maps.Web.Error_Pages.Messages; package body Natools.Static_Maps.Web.Error_Pages is function To_Command (Key : String) return Co...
Src : String := "Rosetta Stone"; Dest : String := Src(1..7); -- Assigns "Rosetta" to Dest Dest2 : String := Src(9..13); -- Assigns "Stone" to Dest2
-- CC1311B.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...
-- From https://www.youtube.com/watch?v=xC8CGv1CyFk with Ada.Text_IO; use Ada.Text_IO; -- In the C++ above, the coins are at coords: -- (1, 0), (1, 3), (0, 3), (5, 5) -- Map is 0 based. -- distance ( (2, 1) => (1, 3) => 3 (1 left + 2 down)) -- distance ( (2, 1) => (4, 2) => 5 (2 right + 1 down)) -- distance...
---------------------------------------------------------------- -- ZLib for Ada thick binding. -- -- -- -- Copyright (C) 2002-2003 Dmitriy Anisimkov -- -- ...
--# inherit PolyPaver.Exact; package PolyPaver.Long_Floats is --# function Is_Range(Variable : Long_Float; Min : Long_Float; Max : Long_Float) return Boolean; function Eps_Abs return Long_Float; function Eps_Rel return Long_Float; --# function Plus_Minus_Eps_Abs return Long_Float; --# function...
package URI with Preelaborate is -- Helper functions to identify URLs and their components. -- -- See https://tools.ietf.org/html/rfc3986 for full details. -- -- http://user:pass@www.here.com:80/dir1/dir2/xyz.html?p=8&x=doh#anchor -- | | | | | | | ...
-- This package has been generated automatically by GNATtest. -- Do not edit any part of it, see GNATtest documentation for more details. -- begin read only with GNATtest_Generated; package Tk.TtkButton.Ttk_Button_Options_Test_Data.Ttk_Button_Options_Tests is type Test_Ttk_Button_Options is new GNATtest_Genera...
----------------------------------------------------------------------- -- asf-applications-tests - ASF Application tests using ASFUnit -- Copyright (C) 2011, 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Iterator_Interfaces; with League.Strings; package WebIDL.Types is pragma Preelaborate; type Type_Definition is limited interface; func...
with System.Zero_Terminated_WStrings; with C.winbase; with C.windef; with C.winnt; package body System.Native_Credentials is use type C.size_t; use type C.windef.WINBOOL; function User_Name return String is Result : aliased C.winnt.WCHAR_array (0 .. C.windef.MAX_PATH - 1); Length : aliased C.winde...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
pragma License (Unrestricted); -- implementation unit package Ada.Strings.Naked_Maps.Basic is pragma Preelaborate; -- not-decomposable letters. function Basic_Set return not null Character_Set_Access; end Ada.Strings.Naked_Maps.Basic;
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 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...
package body My_Custom_Int is function Image (E : in My_Custom_Int) return String is begin return "My_Custom_Int { Int_Val = " & Integer'Image (E.Int_Val) & " }"; end Image; function "=" (L, R : in My_Custom_Int) return Boolean is begin return L.Int_Val = R.Int_Val; end "="; function ...
with Memory.Wrapper; use Memory.Wrapper; package Memory.Join is type Join_Type is new Memory_Type with private; type Join_Pointer is access all Join_Type'Class; function Create_Join(parent : access Wrapper_Type'Class; index : Natural) return Join_Pointer; overriding fun...
-------------------------------------------------------------------------- -- Arbitrary Precision Math Library: Trigonometric Functions -- Joe Wingbermuehe 20020320 <> 20020327 -------------------------------------------------------------------------- package Arbitrary.Trig is function Sin(a : Arbitrary_Type) retur...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; use Ada.Command_Line; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Stone is I: Integer; C: Character; begin --kollar om 2 argument finns if Argument_Count = 2 then --Tar in tecknet C := Argument(1)(1); --Omvandl...
pragma License (Unrestricted); -- implementation unit required by compiler package System.Tasking.Async_Delays is -- required for select delay then abort by compiler (s-parame.ads) type Delay_Block is null record; -- required for select delay then abort by compiler (s-parame.ads) function Enqueue_Durat...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
with aIDE.Palette.of_pragmas, aIDE.GUI, Glib, glib.Error, gtk.Builder, gtk.Handlers, Ada.Containers; with Ada.Text_IO; use Ada.Text_IO; package body aIDE.Editor.of_pragma is use gtk.Builder, Glib, glib.Error; function on_name_Entry_leave (the_Entry : access...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- limited with Program.Scanners; with Program.Scanner_Destinations; with Program.Scanner_States; package Program.Scanned_Rule_Handlers is pragma Pure; ...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with Ada.Unchecked_Conversion; package body GBA.Numerics is -- -- Helpers for extracting upper and lower 32 bits -- of signed and unsigned 64-bit integer types. -- type LL_Parts is record Lower, Upper : Integer; en...
package ACO.States is pragma Preelaborate; type State is (Initializing, Pre_Operational, Operational, Stopped, Unknown_State); type State_Transition is record Previous : State := Unknown_State; Current : State := Unknown_State; end record; end ACO.States;
with Ada.Exceptions; with Ada.Strings.Equal_Case_Insensitive; with Ada.Text_IO; with Extraction.Bodies_For_Decls; with Extraction.Bodies_For_Entries; with Extraction.Decls; with Extraction.Deferred_Constants; with Extraction.Derived_Type_Defs; with Extraction.Direct_Calls; with Extraction.File_System; with Extraction.G...
with Zip.Headers, UnZip.Decompress; with Ada.Strings.Unbounded; with Ada.Unchecked_Deallocation; with Interfaces; use Interfaces; package body UnZip.Streams is procedure Dispose is new Ada.Unchecked_Deallocation (String, p_String); procedure Dispose is new Ada.Unchecked_Deallo...
with Interfaces; use Interfaces; package p2 with SPARK_Mode -- Abstract_State => (State with External) is some_register : Unsigned_8 with Volatile, Async_Readers, Effective_Writes; some_constant : constant Unsigned_16 := 22_027; procedure foo; end p2;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package body Types is -- Implement divide operators defined in spec -- Implement conversion functions defined in spec end Types;
package Side_Effects with SPARK_Mode => On is function F (X : Integer) return Integer; procedure Test; end Side_Effects;
----------------------------------------------------------------------- -- html.messages -- Faces messages -- 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 this file except ...
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org) -- 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...
------------------------------------------------------------------------------- -- Copyright (c) 2019, Daniel King -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions...
with Ada.Text_IO; with Ada.Strings.Unbounded; procedure Knapsack_Continuous is package US renames Ada.Strings.Unbounded; type Item is record Name : US.Unbounded_String; Weight : Float; Value : Positive; Taken : Float; end record; function "<" (Left, Right : Item) return Boolea...
-- Copyright 2017-2021 Bartek thindil Jasicki -- -- This file is part of Steam Sky. -- -- Steam Sky 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 -- (a...