content
stringlengths
23
1.05M
package Bombilla is procedure Crear ( id: in String; potencia_nominal: in Float; luminosidad_nominal: in Float; es_regulable: in Boolean; bomb: out Bombilla; ); function Potencia(B: in Bombilla) return Float; function Esta_Encendida(B: in Bombilla) return Bool...
with Interfaces; use Interfaces; package body STM32.F4.GPIO.Ports is package body GPIO_Port_Boolean is procedure Set(Value: Boolean) is begin Register.BSRR := ( BR => 2**Bit, BS => 2**Bit * Boolean'Pos(Value) ); end; function Value return Boolean is begin return (Register.IDR and 2**Bit)...
----------------------------------------------------------------------- -- Util.beans.factory -- Bean Registration and Factory -- Copyright (C) 2009, 2010 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...
pragma Ada_2012; with Protypo.Api.Engine_Values.Constant_Wrappers; use Protypo.Api.Engine_Values.Constant_Wrappers; with Protypo.Api.Engine_Values.Handlers; -- with Protypo.Api.Engine_Values.Iterator_Wrappers; package body Protypo.Api.Engine_Values.List_Wrappers is -- package Wrappers is -- new Prot...
-- -- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- package body Font is function Get (Ch : Wide_Wide_Character) return UInt8_Array is begin for MC of Characters loop if MC.Code = Wide_Wide_Character'Pos (Ch) then re...
with Ada.Containers.Indefinite_Vectors; package Tokenize.Token_Vectors is package String_Vectors is new Ada.Containers.Indefinite_Vectors (Index_Type => Positive, Element_Type => String); subtype Vector is String_Vectors.Vector; function To_Vector ...
pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.PAC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype PAC_WRCTRL_PERID_Field is HAL.UInt16;...
with Ada.Calendar; package pkgrename is package AC renames Ada.Calendar; end pkgrename;
-- $Id: Position.md,v 1.2 1994/01/29 22:25:57 grosch rel $ -- $Log: Position.md,v $ -- Ich, Doktor Josef Grosch, Informatiker, Aug. 1994 with Text_Io; use Text_Io; package Position is type tPosition is record Line, Column: Integer; end record; NoPosition : constant tPosition := (0, 0); -- A default positi...
-- flyweights-untracked_ptrs.ads -- A package of generalised references which point to resources inside a -- Flyweight without tracking or releasing those resources -- Copyright (c) 2016, James Humphry -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is here...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. with Apsepp.Generic_Shared_Instance; with Apsepp.Output_Class; use Apsepp.Output_Class; package Apsepp.Output is package Shared_Instance is new Generic_Shared_Instance (Output_Interfa); subtype...
with Ada.Text_IO, Ada.Unchecked_Deallocation; use Ada.Text_IO; package body hetro_stack is procedure Free is new Ada.Unchecked_Deallocation(hetroStackElem, hetroStackElemPtr); procedure PushFront(Stack: in out hetroStack; Data: ItemPt) is Pt : hetroStackElemPtr := new hetroStackElem; begin Pt.Data := ...
with Ada.Text_IO; use Ada.Text_IO; -- Item\tQuantity\tPrice\tTaxable[\tTax] procedure Main is type Money_Type is delta 0.01 range -1_000_000_000.0 .. 1_000_000_000.0; for Money_Type'Small use 0.0001; subtype Tax_Type is Money_Type range 0.0 .. 1.0; subtype Quantity_Type is Integer range 0..1000; subtype Buffer...
with SDL; with SDL.Error; with SDL.Log; with System; use type System.Bit_Order; procedure Error is begin SDL.Log.Set (Category => SDL.Log.Application, Priority => SDL.Log.Debug); SDL.Error.Set ("No worries"); SDL.Log.Put_Debug ("Error string : " & SDL.Error.Get); SDL.Finalise; end Error;
with Ada.Calendar.Formatting; with Ada.Characters.Latin_1; with Ada.Command_Line; with Ada.IO_Exceptions; with Ada.Text_IO; procedure Notes is Notes_Filename : constant String := "notes.txt"; Notes_File : Ada.Text_IO.File_Type; Argument_Count : Natural := Ada.Command_Line.Argument_Count; begin i...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
pragma Ada_2012; with Ada.Streams; use Ada.Streams; with Fastpbkdf2_Generic; package Fastpbkdf2_Ada is new Fastpbkdf2_Generic (Stream_Element, Stream_Element_Offset, Stream_Element_Array);
-- Abstract : -- -- see spec -- -- Copyright (C) 2014, 2015, 2017 - 2019 All Rights Reserved. -- -- This program is free software; you can redistribute it and/or -- modify it under terms of the GNU General Public License as -- published by the Free Software Foundation; either version 3, or (at -- your option) a...
with System.Unsigned_Types; use System.Unsigned_Types; package body System.Img_Uns is -------------------- -- Image_Unsigned -- -------------------- procedure Image_Unsigned (V : System.Unsigned_Types.Unsigned; S : in out String; P : out Natural) is pragma Assert (S'First = 1); ...
with AWS.SMTP, AWS.SMTP.Client, AWS.SMTP.Authentication.Plain; with Ada.Text_IO; use Ada, AWS; procedure Sendmail is Status : SMTP.Status; Auth : aliased constant SMTP.Authentication.Plain.Credential := SMTP.Authentication.Plain.Initialize ("id", "password"); Isp : SMTP.Receiver; begin Isp := ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
with numbers; use numbers; with strings; use strings; package address is type pos_addr_t is tagged private; null_pos_addr : constant pos_addr_t; error_address_odd : exception; function create (value : word) return pos_addr_t; procedure set (pos_addr : in out pos_addr_t; value : word); function get (pos_a...
with League.Strings; with XML.SAX.Attributes; with XML.SAX.Content_Handlers; package Handlers is type Handler is limited new XML.SAX.Content_Handlers.SAX_Content_Handler with null record; overriding procedure Start_Element (Self : in out Handler; Namespace_URI : League.Strings.Universa...
with Asis.Compilation_Units; with Asis.Elements; with Asis.Iterator; -- -- GNAT-specific: with Asis.Set_Get; with Asis.Text; with Asis_Adapter.Element.Associations; with Asis_Adapter.Element.Clauses; with Asis_Adapter.Element.Declarations; with Asis_Adapter.Element.Defining_Names; with Asis_Adapter.Element.Definition...
----------------------------------------------------------------------- -- ado-cache-discrete -- Simple cache management for discrete types -- Copyright (C) 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ma...
-- Instantiate this package to create a sub-command parser/executor with CLIC.Config; generic Main_Command_Name : String; -- Name of the main command or program Version : String; -- Version of the program with procedure Set_Global_Switches (Config : in out CLIC.Subcommand.Switches_Configu...
with Numerics, Ada.Text_IO; use Numerics, Ada.Text_IO; procedure PE_Landscape is use Real_IO, Int_IO, Real_Functions; α : constant Real := 1.0e-2; R : constant Real := π * 0.7028; function Phi (R : in Real) return Real is begin return 0.5 * (1.0 + Tanh (50.0 * (R - 0.5))); end Phi; ...
with Interfaces.C.Strings; with System; package AMPC is package C renames Interfaces.C; -- States - mpc_state_t type States is record Position : C.long; Row : C.long; Column : C.long; Term : C.int; end record with Convention => C; type States_Ptr is access S...
package body Tkmrpc.Contexts.dh is pragma Warnings (Off, "* already use-visible through previous use type clause"); use type Types.dh_id_type; use type Types.dha_id_type; use type Types.rel_time_type; use type Types.dh_priv_type; use type Types.dh_key_type; pragma Warnings (On, "* alread...
-- -- Copyright (C) 2015 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 ...
with Ada.Exception_Identification.From_Here; with Ada.Exceptions.Finally; with Ada.Unchecked_Conversion; with System.Address_To_Named_Access_Conversions; with System.Storage_Map; with System.System_Allocators; with System.Zero_Terminated_WStrings; with C.string; with C.winternl; package body System.Native_IO.Names is ...
-- -- 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 Rules; with Rule_Lists; with Symbol_S...
separate (Numerics.Sparse_Matrices) function Triplet_To_Matrix (I : in Int_Array; J : in Int_Array; X : in Real_Vector; N_Row : in Pos := 0; N_Col : in Pos := 0; Format : in Sparse_Matrix_Format := CSC) return Sparse_Matrix is Result : Sparse_Matrix; begin Resu...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. private with Ada.Finalization; package Apsepp.Scope_Bound_Locks is type SB_Lock_CB is access procedure; generic SBLCB_Access : SB_Lock_CB; procedure SB_Lock_CB_procedure; type SB_Lock (Lock_C...
-- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ file partitioning info -- -- |___/_|\_\_|_|____| by: Timm Felden ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
private with Ada.Finalization; package MPFR.Root_FR is pragma Preelaborate; type MP_Float (Precision : MPFR.Precision) is private; function To_MP_Float ( X : Long_Long_Float; Precision : MPFR.Precision; Rounding : MPFR.Rounding) return MP_Float; function To_Long_Long_Float (X : MP_Float; Rounding : MP...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- Reference Implementation -- -- ...
with Ada.Text_IO; use Ada.Text_IO; package body Greeter is Hello_Text : constant String := "Hello "; procedure Greet (S : String) is begin Put_Line (Hello_Text & S & "!"); Put_Line (Hi_Text); end Greet; end Greeter;
with FLTK.Images; limited with FLTK.Widgets.Groups.Windows; private with System.Address_To_Access_Conversions, Ada.Unchecked_Conversion, Interfaces.C; package FLTK.Widgets is type Widget is new Wrapper with private; type Widget_Reference (Data : not null access Widget'Class) is l...
----------------------------------------------------------------------- -- html.lists -- List of items -- Copyright (C) 2009, 2010, 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...
-- $Id: scanner.ads,v 1.5 2000/09/04 11:17:27 grosch rel $ with Position, Strings; use Position, Strings; $- user import declarations $@ package @ is $E[ user export declarations type tScanAttribute is record Position: tPosition; end record; procedure ErrorAttribute (Token: Integer; Attribute: out tScanAttribute);...
------------------------------------------------------------------------------ -- -- -- WAVEFILES -- -- -- -- ...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. private with Ada.Containers.Vectors, Ada.Containers.Hashed_Maps, Ada.Containers.Multiway_Trees; with Apsepp.Tags; use Apsepp.Tags; package Apsepp.Test_Reporter_Data_Struct_Class.Impl is ...
pragma Ada_2012; with AUnit.Assertions; use AUnit.Assertions; with AUnit.Test_Caller; with Ada.Streams; use Ada.Streams; with HMAC; use HMAC.HMAC_SHA_1; package body HMAC_SHA1_Streams_Tests is package Caller is new AUnit.Test_Caller (Fixture); Test_Suite : aliased AUnit.Test_Suites.Test_Suite; func...
with Ada.Text_IO; use Ada.Text_IO; procedure Record4 is type R is record A, B: Character; end record; type S is record C: Character; D: R; E: Character; end record; V, W: R; X, Y: S; procedure PrintR(x: R) is begin Put('['); Put(x.A); Put(','); Put(x.B); Put(']'); ...
with Ada.Finalization; with Ada.Iterator_Interfaces; generic type Key_Type is private; type Element_Type is private; type Hash_Type is mod <>; type Change_Count is mod <>; with function Hash (Key : Key_Type) return Hash_Type; with function Equivalent_Keys (Left, Right : Key_Type) return Boolean; ...
with ZMQ; with Ada.Text_IO; with Ada.Directories; with Ada.Command_Line; with GNAT.Command_Line; procedure Getinfo is use GNAT.Command_Line; use Ada.Text_IO; command_Name : constant String := Ada.Directories.Base_Name (Ada.Command_Line.Command_Name); procedure Help; procedure Help ...
package body Spawn_Manager.Server is ----------- -- Spawn -- ----------- Wait_Options_Map : constant array (Wait_Options) of Integer := (8, 1, 2); function Spawn (Request : Spawn_Request) return Spawn_Response is Args : GNAT.OS_Lib.Argument_List_Access; Cursor : Integer; begin re...
-- SipHash.Entropy -- A child package that attempts to set the key from an entropy source on the -- system. -- This implementation loads bytes from /dev/urandom on Linux/Unix-like systems. -- Copyright (c) 2015, James Humphry - see LICENSE file for details with Ada.Streams, Ada.Streams.Stream_IO; use Ada.Streams; wit...
-- -- Copyright (C) 2017 Nico Huber <nico.h@gmx.de> -- -- 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 pr...
-- @(#)File: logging-appender.ads -- @(#)Last changed: Jul 21 2015 13:08:00 -- @(#)Purpose: Application and system logging -- @(#)Author: Marc Bejerano <marcbejerano@gmail.com> -- @(#)Copyright: Copyright (C) 2015, Marc Bejerano, All Rights Reserved -- @(#)Product: None -- @...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. with Apsepp.Generic_Shared_Instance; with Apsepp.Debug_Trace_Class; use Apsepp.Debug_Trace_Class; package Apsepp.Debug_Trace is package Shared_Instance is new Generic_Shared_Instance (Debug_Trace_I...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- POK header -- -- The following file is a part of the POK project. Any modification should -- be made according to the POK licence. You CANNOT use this file or a part -- of a file for your own project. -- -- For more information on the POK licence, please see our LICENCE FILE -- -- Pleas...
-- -- Copyright (C) 2021 Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- with HAL.Time; with HAL.GPIO; with HAL.SPI; with HAL; package ST7789 is type ST7789_Screen (CS : not null HAL.GPIO.Any_GPIO_Point; DC : not null HAL.GPIO.Any_GPIO_Point; RST : HAL.GPI...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with System; limited with CUPS.bits_pthreadtypes_h; with CUPS.bits_types_h; private package CUPS.bits_siginfo_h is -- unsupported macro: sigev_notify_function _sigev_un._sigev_thread._function -- unsupported macro: sigev_notify_...
-- { dg-do compile } with Ada.Characters.Handling; use Ada.Characters.Handling; with GNAT.OS_Lib; use GNAT.OS_Lib; with Text_IO; use Text_IO; package body Noreturn5 is procedure Proc (Arg_Line : Wide_String; Keep_Going : Boolean) is begin Put (To_String (Arg_Line)); if ...
with Giza.Colors; use Giza.Colors; with Giza.GUI; use Giza.GUI; with Engine_Control_Events; use Engine_Control_Events; package body Engine_Control_UI is Set_PP_Evt : aliased Set_PP_Event; ------------- -- On_Init -- ------------- procedure On_Init (This : in out Engine_Control_Window) is ...
------------------------------------------------------------------------------- -- package Disorderly.Random.Clock_Entropy, Random Number Initialization -- 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 ...
-- $Header:$ -- -- -- NOTES -- This file is added by Umass for the purpose of adding more error recovery -- power to Ayacc. -- package Error_Report_File is -- -- TITLE: package Error_Report_File -- Output the code which allows users to see what the error token was. -- -- LANGUAGE: -- Ada -- -- PERSONNEL: -...
-- This spec has been automatically generated from STM32WB55x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.COMP is pragma Preelaborate; --------------- -- Registers -- --------------- subtype COMP1_CSR_PWRMODE_Fi...
package Addr7 is type Bytes is array (1 .. 4) of Character; for Bytes'Alignment use 4; procedure Proc (B: aliased Bytes); end Addr7;
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt -- -- Some of these definitions originate from the Matresha Project -- http://forge.ada-ru.org/matreshka -- Used with permission from Vadim Godunko <vgodunko@gmail.com> with System; with Interfaces.C.Strings;...
with Ada.Streams; use Ada.Streams; with AWS.Response; with AWS.Status; with Computation_Type; with Image_Types; with Fractal; with Julia_Set; package Router_Cb is function Router (Request : AWS.Status.Data) return AWS.Response.Data; procedure Init; Server_Alive : Boolean := True; type Color is new Na...
-- { dg-do run } -- { dg-options "-fstack-check" } -- This test requires architecture- and OS-specific support code for unwinding -- through signal frames (typically located in *-unwind.h) to pass. Feel free -- to disable it if this code hasn't been implemented yet. procedure Stack_Check2 is function UB return In...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Extensions; package umingw_h is USE_u_u_UUIDOF : constant := 0; -- d:\install\gpl2018\x86_64-pc-mingw32\include\_mingw.h:79 WINVER : constant := 16#0502#; -- d:\install\gpl2018\x86_64-pc-mingw32\include\_min...
with Ada.Containers.Doubly_Linked_Lists; with Ada.Text_IO; with Ada.Calendar; with Ada.Strings; with Ada.Strings.Unbounded; with DOM.Core; package Events is type Event_Type is (None, Normal, Reserved, Deleted, Excepted); type Interval is (daily, weekly, monthly, yearly); type Month_Day is (first, second, thi...
-- -- Copyright (C) 2021, AdaCore -- pragma Style_Checks (Off); -- This spec has been automatically generated from STM32L562.svd -- This is a version for the STM32L562 MCU package Ada.Interrupts.Names is -- All identifiers in this unit are implementation defined pragma Implementation_Defined; -------...
with Extools; use Extools; package body Display_Warning is procedure Warning (Message : String; Down :Integer := 0;D : Duration := 0.0) is Display_Window : Window; Width : Column_Position := 40; Length : Line_Position := 5; c : Key_Code; Lines : Line_Position; Columns : Column_...
-- parse_args-generic_indefinite_options.ads -- A simple command line option parser -- Copyright (c) 2015, 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 notic...
with Ada.Text_IO; with Intcode; procedure Day09 is use Ada.Text_IO; use Intcode; Compiler : Intcode_Compiler := Compile ("src/main/resources/2019/day09.txt"); begin declare Instance : Intcode_Instance := Instantiate (Compiler); begin Instance.Inputs.Append (1); Instance.Run; ...
pragma Warnings (Off); pragma Style_Checks (Off); with Ada.Unchecked_Deallocation; with GLOBE_3D.Math; package body GLOBE_3D.BSP is use Ada.Strings.Unbounded; procedure Locate (P : Point_3D; tree : p_BSP_node; area : out p_Object_3D) is procedure Locate_point (tree_point : p_BSP_node) is ...
-- -- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr> -- - Ryad Benadjila -- - Arnauld Michelizza -- - Mathieu Renard -- - Philippe Thierry -- - Philippe Trebuchet -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the...
type Lower_Case is new Character range 'a' .. 'z';
with Lv.Color; with Lv.Area; private with System; package Lv.Hal.Disp is type Color_Array is array (0 .. Natural'Last) of aliased Lv.Color.Color_T with Convention => C; type Disp_Drv_T is record -- Write the internal buffer (VDB) to the display. 'lv_flush_ready()' has -- to be calle...
package vectores is type Vector_De_Enteros is array (Integer range <>) of Integer; type Vector_De_Reales is array (Integer range <>) of Float; type Vector_De_Booleanos is array (Integer range <>) of Boolean; type Vector_De_Caracteres is array (Integer range <>) of Character; end vectores;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package Non_LValue is type T (Length : Natural) is record A : String (1 .. Length); B : String (1 .. Length); end record; type T_Ptr is access all T; type U is record X : T_Ptr; end record; function A (Y : U) return String; end;
with Ada.Characters.Latin_1; with Ada.Text_IO.Unbounded_IO; with Dir_Iterators.Recursive; package body DTG is use Ada.Characters.Latin_1; use Ada.Text_IO; use Ada.Text_IO.Unbounded_IO; function Create(File_Name : String) return Report is begin return R : Report do AIO.Open(R.O...
package SomePackage is type SomeClass is record someAttribute : Integer := 1; end record; function someFunction (Self : in SomeClass) return Integer; procedure someProcedure (Self : in SomeClass); procedure someUnrelatedProcedure; end SomePackage;
----------------------------------------------------------------------- -- ADO Statements -- Database statements -- Copyright (C) 2009, 2010, 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...
----------------------------------------------------------------------- -- awa-events-configs -- Event configuration -- Copyright (C) 2012, 2013, 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not...
-- { dg-do run { target { ! "*-*-solaris2*" } } } with GNAT.Sockets; use GNAT.Sockets; procedure socket1 is X : Character; begin X := 'x'; GNAT.Sockets.Initialize; declare H : Host_Entry_Type := Get_Host_By_Address (Inet_Addr ("127.0.0.1")); begin null; end; end socket1;
-- Copyright 2020-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. local url = require("url") name = "GoogleCT" type = "cert" function start() set_rate_limit(2) end function vertical(ctx, domain) local token = "" loca...
with AUnit; use AUnit; with AUnit.Test_Cases; use AUnit.Test_Cases; package LayerModelTests is type TestCase is new AUnit.Test_Cases.Test_Case with null record; procedure Register_Tests(T: in out TestCase); function Name(T: TestCase) return Message_String; procedure testDense(T : in out Test_Cases.Test_...
generic type Elem is (<>); package Linked_List_Pkg is type Linked_List is limited private; type Vertex is private; Empty_Linked_List : exception; procedure Push( L : in out Linked_List; E : in Elem ); procedure Pop( L : in out Linked_List; E : out Elem ); --...
with ZMQ.Sockets; with ZMQ.Contexts; with ZMQ.Messages; with Ada.Text_IO; use Ada.Text_IO; procedure ZMQ.examples.Server is ctx : ZMQ.Contexts.Context; s : ZMQ.Sockets.Socket; resultset_string : constant String := "OK"; begin -- Initialise 0MQ context, requesting a single application thread -- a...
with ACO.Events; package body ACO.Slave_Monitors is function Is_Monitored (This : Slave_Monitor; Node_Id : ACO.Messages.Slave_Node_Nr) return Boolean is use type ACO.Messages.Node_Nr; begin for Alarm of This.Slaves loop if Alarm.Node_Id = Node_Id then r...
PACKAGE BODY aux IS PROCEDURE start IS BEGIN start; END start; END aux;
-- 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.TtkLabel.Ttk_Label_Options_Test_Data.Ttk_Label_Options_Tests is type Test_Ttk_Label_Options is new GNATtest_Generated....
-- [ dg-do compile } with System; package body Subp_Elim_Errors is type Acc_Proc is access procedure; procedure Proc is begin null; end Proc; procedure Pass_Proc (P : Acc_Proc) is begin P.all; end Pass_Proc; procedure Pass_Proc (P : System.Address) is begin null; en...
pragma Ada_2012; package body HMAC_Generic is function Initialize (Key : String) return Context is Result : Context; begin Initialize (Result, Key); return Result; end Initialize; function Initialize (Key : Element_Array) return Context is Result : Context; begin Initialize...
with Ada.Text_IO; use Ada.Text_IO; procedure BubbleSort is type Index is new Integer; type Elem is new Integer; type Arr is array (Index range <>) of Elem; function Max_Hely ( T: Arr ) return Index is Mh: Index := T'First; begin for I in T'Range loop if T(...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
<table> @@TABLE@@ <tr> <td>@_WEB_ESCAPE:CHAR_@</td> <td>@_WEB_ESCAPE:SPEECH_@</td> </tr> @@END_TABLE@@ </table>
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- If you comment out the Nested_Package.Comment_Out_This_Line_And_All_Ok; -- lines in Buggy_Package, all is well, or if you only comment out one of -- these lines and don't instantiate the other generic in Buggy_Package_Demo, -- then all is well. package Nested_Package is procedure Comment_Out_This_Line_And_All_Ok; ...
with System.Storage_Elements; use System.Storage_Elements; with AUnit.Assertions; use AUnit.Assertions; with AAA.Strings; with Test_Utils; use Test_Utils; package body Testsuite.Decode.Basic_Tests is pragma Style_Checks ("gnatyM120-s"); ---------------- -- Basic_Test -- ---------------- procedure B...