content
stringlengths
23
1.05M
pragma Ada_2012; with Interfaces; use Interfaces; with Interfaces.C; use Interfaces.C; with fastpbkdf2_h_generic; package fastpbkdf2_h is new fastpbkdf2_h_generic (Unsigned_8, Unsigned_32, size_t);
with DOM.Core; private package Project_Processor.Parsers.XML_Parsers.Basic_Parsers is function Expect_ID (N : DOM.Core.Node; Name : String := "label") return EU_Projects.Dotted_Identifier; function Expect_Number (N : DOM.Core.Node; ...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Element_Vectors; with Program.Elements.Discrete_Simple_Expression_Ranges; with Program.Elements.Function_Calls; with Program.Elements.Identifie...
----------------------------------------------------------------------- -- Test_Bean - A simple bean for unit tests -- Copyright (C) 2009, 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 th...
with Interfaces; with kv.avm.Executables; with kv.avm.Instructions; with kv.avm.Registers; with kv.avm.Actors; with kv.avm.Processors; with kv.avm.Frames; with kv.avm.Actor_References; with kv.avm.Actor_References.Sets; with kv.avm.Messages; with kv.avm.Tuples; with kv.avm.control; with kv.avm.Memories; package kv.av...
package body String_Vectors is function Is_In(List: Vec; Word: String; Start: Positive; Stop: Natural) return Boolean is Middle: Positive; begin if Start > Stop then return False; else Middle := (Start+Stop) / 2; if List.Element(...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Iterator_Interfaces; with League.Strings; with WebIDL.Types; package WebIDL.Arguments is pragma Preelaborate; type Argument is limited in...
with Ada.Text_IO; with Dot; procedure Demo_Dot is package ATI renames Ada.Text_IO; NL : constant String := (1 => ASCII.LF); -- Support subprograms: procedure Print (Graph : in Dot.Graphs.Access_Class; Title : in String) is begin ATI.Put_Line ("// " & Title & ":"); ATI....
----------------------------------------------------------------------- -- popen -- Print the GNAT version by using a pipe -- Copyright (C) 2011, 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 System.Address_To_Constant_Access_Conversions; with System.Address_To_Named_Access_Conversions; with System.Storage_Elements; package body Interfaces.C.Generic_Strings is use type Pointers.Constant_Pointer; use type Pointers.Pointer; use type System.Storage_Elements.Storage_Offset; package libc is ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package body GDNative.Exceptions is -- Here I should probably allow the library user to specify handlers for exceptions -- (crash report dialog?) procedure Put_Warning (Message : in Wide_String) is null; procedure Put_Error (Occurrence : in Ada.Exceptions.Exception_Occurrence) is null; end;
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" package body Yaml.Destination.C_String is function As_Destination (Raw : System.Address; Size : Interfaces.C.size_t; Size_Written : access In...
-- 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...
----------------------------------------------------------------------- -- package body Extended_Real, extended precision floating point arithmetic -- Copyright (C) 2008-2018 Jonathan S. Parker -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby grant...
generic n: Integer; package Data is ---Declaration of private types type Vector is private; type Matrix is private; --Calculation function 1 function Func1 (A, B, C: in Vector; MA, ME : in Matrix) return Integer; --Calculation function 2 function Func2 (MF, MG, MH, ML: in Matrix) return Integ...
-- { dg-options "-gnatws" } package body G_Tables is function Create (L : Natural) return Table is begin return T : Table (1 .. L); end Create; end G_Tables;
with Ada.Containers.Doubly_Linked_Lists; use Ada.Containers; with Ada.Text_IO; use Ada.Text_IO; procedure Day09 is package Natural_Lists is new Doubly_Linked_Lists (Element_Type => Natural); procedure Move_Cursor (List : in Natural_Lists.List; Pos : in out Natural_Lists....
-- Entrées/Sorties sur les entiers. -- Remarque : on refait, de manière simplifiée, le Put et le Get de -- Integer_Text_IO. package Integer_IO is -- Afficher un entier naturel sur la sortie standard. procedure Afficher (N : in Integer) with Pre => N >= 0; -- Saisir un entier naturel au clavier. ...
package body Matrix_Scalar is function Func(Left: Matrix; Right: Num) return Matrix is Result: Matrix; begin for R in Rows loop for C in Cols loop Result(R,C) := F(Left(R,C), Right); end loop; end loop; return Result; end Func; function Image(M: Matrix...
----------------------------------------------------------------------- -- util-xunit - Unit tests on top of AUnit -- Copyright (C) 2009, 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 thi...
----------------------------------------------------------------------- -- components-core-views -- ASF View Components -- Copyright (C) 2009, 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may ...
-- BinToAsc_Suite.Misc_Tests -- Unit tests for BinToAsc -- Copyright (c) 2015, James Humphry - see LICENSE file for details with AUnit; use AUnit; with AUnit.Test_Cases; use AUnit.Test_Cases; package BinToAsc_Suite.Misc_Tests is type Misc_Test is new Test_Cases.Test_Case with null record; procedure Register_...
pragma License (Unrestricted); package Ada.Assertions is pragma Pure; Assertion_Error : exception with Export, Convention => Ada, External_Name => "assertion_error"; -- modified -- Assert reports the source location if it's called without a message. -- procedure Assert (Check : Boolean); -- proc...
with Web.HTML.Scripts; with Web.Window; with Web.Strings; package body Cube_Programs is function "+" (Item : Wide_Wide_String) return Web.Strings.Web_String renames Web.Strings.To_Web_String; -- GS : constant League.Strings.Universal_String := -- League.Strings.To_Universal_String ("gSampler"); -- V...
-- Shoot'n'loot -- Copyright (c) 2020 Fabien Chouteau with Game_Assets; use Game_Assets; with GESTE; package Chests is Max_Nbr_Of_Chests : constant := 3; procedure Init (Objects : Object_Array) with Pre => Objects'Length <= Max_Nbr_Of_Chests; procedure Check_Chest_Found (Pt : GESTE.Pix_Point); f...
-- { dg-do compile } -- { dg-options "-O -fdump-tree-optimized" } pragma Overflow_Mode (Minimized); package body Loop_Optimization22 is procedure Foo (X : Discrim_Type) is H : array (1 .. Integer (X.Count) + 1) of Float; begin for I in 1 .. X.Count loop H (Integer(I) + 1):= 0.0; end l...
-- Package body Julian_calendar ---------------------------------------------------------------------------- -- Copyright Miletus 2016 -- 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 witho...
-- C74211B.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 STM32GD.Board; procedure Main is begin STM32GD.Board.Init; loop null; end loop; end Main;
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 aaa_013option is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Str...
with GNAT.Sockets.Server; use GNAT.Sockets.Server; with Strings_Edit.Integers; use Strings_Edit.Integers; pragma Warnings(Off); with System.IO; -- for debugging pragma Warnings(On); package body MQTT_Clients is ------------------------- -- On_Connect_Accepted -- ------------------...
------------------------------------------------------------------------------- -- Fichier : display_shell.adb -- Auteur : MOUDDENE Hamza & CAZES Noa -- Objectif : Spécification du package Display_Shell -- Crée : Dimanche Nov 25 2019 ---------------------------------------------------------------------------...
package Benchmark.Matrix.Cholesky is type Cholesky_Type is new Matrix_Type with private; function Create_Cholesky return Benchmark_Pointer; overriding procedure Run(benchmark : in Cholesky_Type); private type Cholesky_Type is new Matrix_Type with null record; end Benchmark.Matrix.Cholesky;
-- The Beer-Ware License (revision 42) -- -- Jacob Sparre Andersen <jacob@jacob-sparre.dk> wrote this. As long as you -- retain this notice you can do whatever you want with this stuff. If we meet -- some day, and you think this stuff is worth it, you can buy me a beer in -- return. -- -- Jacob Sparre Andersen w...
with Interfaces; use Interfaces; with STM32GD; with STM32_SVD; use STM32_SVD; with STM32GD.Board; with STM32GD.Power; procedure Main is package Board renames STM32GD.Board; package Text_IO renames STM32GD.Board.Text_IO; package Radio renames STM32GD.Board.Radio; procedure Print_Registers is new Radio.Prin...
-- { dg-do compile } with Noreturn4_Pkg; use Noreturn4_Pkg; package body Noreturn4 is procedure P1 (Msg : String) is begin P1 (Msg, 0); end; procedure P1 (Msg : String; Val : Integer) is begin Fatal_Error (Value (It)); end; procedure Fatal_Error (X : Integer) is begin raise PRogram_Er...
generic type Scalar is digits <>; with function A (N : in Natural) return Natural; with function B (N : in Positive) return Natural; function Continued_Fraction_Ada95 (Steps : in Natural) return Scalar;
with NRF52_DK.Time; with NRF52_DK.IOs; with NRF52_DK.Buttons; use NRF52_DK.Buttons; package body SteeringControl is procedure Servocontrol(ServoPin : NRF52_DK.IOs.Pin_Id; Value : NRF52_DK.IOs.Analog_Value) is --Servo -- begin --Writing values to the servo motor. NRF52_DK.IOs.Write(Servo...
-- { dg-do compile } with ICE_Types; use ICE_Types; procedure ICE_Type is type Local_Float_T is new Float_View_T; LF : Local_Float_T; begin Initialize (Float_View_T (LF)); end;
with E3GA; package body Geometric_Objects is function Set_Line (L1, L2 : C3GA.Normalized_Point) return C3GA.Line is begin return C3GA.Unit_R (E3GA.Outer_Product (L1, L2)); end Set_Line; end Geometric_Objects;
with Ada.Text_IO; use Ada.Text_IO; procedure Main is type Days_Of_Week_T is (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday); type Hours_Worked is digits 6; Total_Worked : Hours_Worked := 0.0; Hours_Today : Hours_Worked; Overtime : Hours_Worked; begin -- For each day in the ...
------------------------------------------------------------------------------ -- -- -- GESTE -- -- -- -- ...
-- reference: -- http://www.unicode.org/reports/tr15/ with Ada.Characters.Conversions; with Ada.Strings.Canonical_Composites; with Ada.UCD; package body Ada.Strings.Normalization is use type UCD.UCS_4; function Standard_Equal (Left, Right : Wide_Wide_String) return Boolean; function Standard_Equal (Left, Ri...
package TLSF.Block with SPARK_Mode, Pure, Preelaborate is end TLSF.Block;
package body System.Interrupt_Numbers is function Is_Reserved (Interrupt : C.signed_int) return Boolean is begin return Interrupt not in First_Interrupt_Id .. Last_Interrupt_Id; -- SIGKILL and SIGSTOP are not declared in mingw end Is_Reserved; end System.Interrupt_Numbers;
with Ada.Text_IO; use Ada.Text_IO; procedure Demo2 is -- type Arr_Type is array(1..1000) of String; procedure proceed(Arg1: in Arr_Type) is begin -- <program body> Put_Line("second line"); end proceed; begin -- call to proceed Put_Line("second line"); end Demo2;
-- This spec has been automatically generated from STM32F103.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.SCB is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CPUID_Revision_Field is STM32_SV...
(lp1 (ccopy_reg _reconstructor p2 (cpygments.token _TokenType p3 c__builtin__ tuple p4 (S'Comment' p5 S'Single' p6 ttRp7 (dp8 S'subtypes' p9 c__builtin__ set p10 ((ltRp11 sS'parent' p12 g2 (g3 g4 (g5 ttRp13 (dp14 g12 g2 (g3 g4 (ttRp15 (dp16 g5 g13 sS'Name' p17 g2 (g3 g4 (g17 ttRp18 (dp19 S'Function' p20 g2 (g3 g4 (g17 ...
----------------------------------------------------------------------- -- wiki-streams-text_io -- Text_IO input output streams -- 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 th...
-- SPDX-FileCopyrightText: 2022 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Interfaces.C; with System; package body Bluetooth is function Raw_Data (Value : Byte_Array) return Advertising_Data is begin return Resul...
with Ada.Text_IO; with Ada.Integer_Text_IO; -- Copyright 2021 Melwyn Francis Carlo procedure A067 is use Ada.Text_IO; use Ada.Integer_Text_IO; FT : File_Type; Last_Index : Natural; File_Name : constant String := "problems/067/p067_triangle.txt"; ...
with AdaM.Factory; package body AdaM.compilation_Unit is -- Storage Pool -- record_Version : constant := 1; max_Units : constant := 5_000; package Pool is new AdaM.Factory.Pools (".adam-store", "compilation_Units", ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with agar.core.event; with agar.core.object; with agar.core.tail_queue; with agar.core; with agar.gui.style; with agar.gui.surface; with agar.gui.widget; with agar.gui.window; with interfaces.c; with sdl.keysym; with sdl.video; package agar.gui.view is package c renames interfaces.c; package window_tail_queue is ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- csv_reader -- Read CSV file -- Copyright (C) 2011, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in c...
with Interfaces; with Ada.Numerics.Float_Random; with Ada.Assertions; with Vector_Math; with Materials; with Lights; with Geometry; with Scene; with Ada.Unchecked_Deallocation; use Interfaces; use Vector_Math; use Materials; use Lights; use Ada.Assertions; use Geometry; package Ray_Tracer is width : Positive := 1...
----------------------------------------------------------------------- -- facebook - Use Facebook Graph API -- Copyright (C) 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in c...
with Ada.Numerics.Elementary_Functions; use Ada.Numerics; package body Units.Numerics with SPARK_Mode => On is function Sqrt (X : Base_Unit_Type) return Base_Unit_Type is begin return Base_Unit_Type( Elementary_Functions.Sqrt (Float (X)) ); end Sqrt; -- procedure Lemma_Log_Is_Monotonic (X, Y : ...
pragma Restrictions (No_Elaboration_Code); with System; use System; with STM32_SVD.LPTIM; use STM32_SVD.LPTIM; package STM32.LPTimers is type LPTimer is limited private; procedure Enable (This : in out LPTimer) with Post => Enabled (This); procedure Disable (This : in out LPTimer) wit...
-- This spec has been automatically generated from nrf53.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package NRF53_SVD.TAD is pragma Preelaborate; --------------- -- Registers -- --------------- -- Start all trace debug clocks ...
with Ada.Unchecked_Deallocation; with PB_Support.IO; with PB_Support.Internal; package body Protobuf_Test_Messages.Proto_3.Test_Messages_Proto_3 is package Any_IO is new PB_Support.IO.Message_IO (Google.Protobuf.Any.Any, Google.Protobuf.Any.Any_Vector, Google.Protobuf.Any.Append); package B...
package Floating_Point_Definition is type Floating_Type_1 is digits 6; type Floating_Type_2 is digits 6 range 0.0 .. 1.0; end Floating_Point_Definition;
------------------------------------------------------------------------------- -- package Disorderly, Linear Random Number Generator -- Copyright (C) 1995-2018 Jonathan S. Parker -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided t...
with MSP430_SVD; use MSP430_SVD; package MSPGD.SPI is pragma Preelaborate; type Clock_Source_Type is (UCLK, ACLK, SMCLK); type SPI_Module_Type is (USCI_A, USCI_B); type SPI_Mode is (Mode_0, Mode_1, Mode_2, Mode_3); end MSPGD.SPI;
------------------------------------------------------------------------------ -- Copyright (c) 2011, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
-- part of FreeTypeAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Interfaces.C.Strings; with FT.Faces; with FT.Errors; private package FT.API is pragma Preelaborate; type Bool is new Boolean; function FT_Reference_Library (Ptr : Library_Ptr) retur...
-- Select an enumeration value uniformly at random. generic type Enum_Type is (<>); function Random_Enum(value : Natural) return Enum_Type;
------------------------------------------------------------------------------ -- -- -- Copyright (c) 2014-2015 Vitalij Bondarenko <vibondare@gmail.com> -- -- -- ----...
WITH P_StepHandler; USE P_StepHandler; with P_StructuralTypes; use P_StructuralTypes; with Ada.Streams; use Ada.Streams; package P_StepHandler.InputHandler is type InputHandler is new T_StepHandler with private; type Ptr_InputHandler is access InputHandler; --- CONSTRUCTOR --- function Make (...
package Giza.Bitmap_Fonts.FreeMonoBoldOblique18pt7b is Font : constant Giza.Font.Ref_Const; private FreeMonoBoldOblique18pt7bBitmaps : aliased constant Font_Bitmap := ( 16#0F#, 16#07#, 16#C7#, 16#E3#, 16#F1#, 16#F0#, 16#F8#, 16#7C#, 16#7C#, 16#3E#, 16#1F#, 16#0F#, 16#07#, 16#87#, 16#C3#, 16#C1#, 16#E0#, 16#...
with Ada.Containers.Vectors; with Rewriters; use Rewriters; package Rewriters_Sequence is new Ada.Containers.Vectors (Positive, Any_Constant_Rewriter);
----------------------------------------------------------------------- -- awa-mail-module-tests -- Unit tests for Mail module -- Copyright (C) 2012, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...
with agar.gui.widget.box; package agar.gui.widget.hbox is use type agar.gui.widget.box.flags_t; use type c.unsigned; type hbox_t is record box : aliased agar.gui.widget.box.box_t; end record; type hbox_access_t is access all hbox_t; pragma convention (c, hbox_t); pragma convention (c, hbox_access_t...
package body Opt25_Pkg2 is function Default_Stack return Stack is begin return Default_Stack_Var; end Default_Stack; end Opt25_Pkg2;
with Ada.Text_IO; with Ada.Strings.UTF_Encoding.Wide_Strings; procedure Remove_Characters is use Ada.Text_IO; use Ada.Strings.UTF_Encoding; use Ada.Strings.UTF_Encoding.Wide_Strings; S : String := "upraisers"; U : Wide_String := Decode (UTF_8_String'(S)); function To_String (X : Wide_String)return ...
with Opt48_Pkg2; use Opt48_Pkg2; package Opt48_Pkg1 is function Get_Z return Rec; end Opt48_Pkg1;
----------------------------------------------------------------------- -- util-encoders-kdf-pbkdf2 -- Password-Based Key Derivation Function 2, RFC 8018. -- Copyright (C) 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Licens...
with ada.unchecked_Deallocation; with Ada.Sequential_IO; with Ada.Text_IO; package body Neural.Forge -- -- -- is type Signals_view is access all Signals; procedure free is new ada.unchecked_Deallocation (Signals, Signals_view); -- Pattern -- procedure Destroy (Self : in out Patt...
-- Copyright (c) 2020-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 req...
-- -- Copyright (C) 2019, AdaCore -- -- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- 1. Redistributions of source code mu...
package Array13 is Max : Natural := 1; type Arr is array (Natural range 0..Max) of Natural; type T is record A : Arr := (others => 0); end record; procedure Foo; end Array13;
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Streams.Stream_IO; with Ada.Text_IO; with Slim.Messages; with Slim.Messages.grfe; with Slim.Messages.grfg; with Slim.Message...
with System; with Interfaces; use Interfaces; with System.Storage_Elements; use System.Storage_Elements; with System.Machine_Code; use System.Machine_Code; with Ada.Unchecked_Conversion; package body Startup is WDTCTL : Unsigned_16 with Import, Address => System'To_Address (16#0120#); procedure Ada_Init with I...
-- Copyright (c) 2013, Nordic Semiconductor ASA -- 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 of source code must retain the above copyright notice, this -- lis...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Element_Vectors; with Program.Elements.Definitions; with Program.Lexical_Elements; package Program.Elements.Variants is ...
package Giza.Bitmap_Fonts.FreeSerifBoldItalic18pt7b is Font : constant Giza.Font.Ref_Const; private FreeSerifBoldItalic18pt7bBitmaps : aliased constant Font_Bitmap := ( 16#01#, 16#C0#, 16#7C#, 16#0F#, 16#81#, 16#F0#, 16#3E#, 16#07#, 16#80#, 16#F0#, 16#3C#, 16#07#, 16#80#, 16#E0#, 16#1C#, 16#03#, 16#00#, 16#...
------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@heisenbug.eu) -- -- 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 Hoc...
package Other_Class is type Object is new My_Class.Object with null record; overriding procedure Primitive(Self: Object); end Other_Class; package body Other_Class is procedure Primitive(Self: Object) is begin Put_Line("Hello Universe!"); end Primitive; end Other_Class;
pragma Ada_2012; with Line_Arrays; with Node_List_Parsers; with EU_Projects.Times.Time_Expressions; use EU_Projects.Times.Time_Expressions; with EU_Projects.Nodes.Action_Nodes.WPs; with EU_Projects.Nodes.Partners; with EU_Projects.Nodes.Action_Nodes.Tasks; with EU_Projects.Efforts; with EU_Projects.Nodes.Timed_Nodes...
-- Copyright (c) 2010-2011 Xiph.Org Foundation, Skype Limited -- -- Most of the documentation has been copied from opus.h and opus_defines.h -- and is licensed under the license of those files; the Simplified BSD License. -- -- Copyright (c) 2014 onox <denkpadje@gmail.com> -- -- Permission to use, copy, modify, an...
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with LSP.Messages; package LSP.Message_Handlers is pragma Preelaborate; type Request_Handler is limited interface; type Req...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; use Ada.Command_Line; procedure HelloAda is begin if Argument_Count > 0 then Put_Line("Hello, " & Argument(1) & "!"); else Put_Line("Hello World!"); end if; end HelloAda;
with Opt23_Pkg; use Opt23_Pkg; package Opt23 is procedure Proc (Driver : Rec); end Opt23;
-- -*- Mode: Ada -*- -- Filename : ether-response.ads -- Description : Interface for the response objects. -- Author : Luke A. Guest -- Created On : Sun Jul 4 19:22:48 2010 -- with Ada.Strings.Unbounded; with GNAT.Sockets; with AWS.Messages; package Ether.Re...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; use Interfaces.C.Strings; procedure Test_C_Interface is function strdup (s1 : Char_Array) return Chars_Ptr; pragma Import (C, strdup, "_strdup"); S1 : constant String := "Hello World!"; S...
with Interfaces; use Interfaces; with Ada.Unchecked_Conversion; package body Opt61_Pkg is pragma Suppress (Overflow_Check); pragma Suppress (Range_Check); subtype Uns64 is Unsigned_64; function To_Int is new Ada.Unchecked_Conversion (Uns64, Int64); subtype Uns32 is Unsigned_32; ----------------...