content
stringlengths
23
1.05M
package Brain is task Sense with Priority => 3; task Think with Priority => 1; task Act with Priority => 2; private end Brain;
-- -- 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 ...
-- -- 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...
-- C24203B.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 Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; with Text_IO; use Text_IO; procedure Overflow is function GetPositiveInteger(varName : String) return Positive is Result : Positive; HaveResult : Boolean := False; Input : String(1..1024) := (...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt -- GCC 6.0 only (skip Container_Checks until identified need arises) pragma Suppress (Tampering_Check); with Ada.Text_IO; with Ada.Calendar; with Ada.Containers.Hashed_Maps; with Ada.Containers.Ordered_Sets; with...
-- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Module: Software Configuration -- -- Authors: Martin Becker (becker@rcs.ei.tum.de) -- @summary -- Target-specific types for the devices that are exposed -- in hil-i2c et. al in Pixhawk. pac...
with Ada.Numerics.Generic_Elementary_Functions; package body Four_Body is One : constant Real := +1.0; Two : constant Real := +2.0; Min_Allowed_Real : constant Real := Two**(Real'Machine_Emin + 32); package mth is new Ada.Numerics.Generic_Elementary_Functions (Real); use mth; procedure Update_Sta...
with Ada.Environment_Variables; with Print_Variable; with Load_Environment_Variables; with Ada.Text_IO; procedure Example_3 is begin Ada.Text_IO.Put_Line ("Start main"); Ada.Environment_Variables.Iterate (Print_Variable'Access); end Example_3;
-- Copyright (c) 1990 Regents of the University of California. -- All rights reserved. -- -- The primary authors of ayacc were David Taback and Deepak Tolani. -- Enhancements were made by Ronald J. Schmalz. -- -- Send requests for ayacc information to ayacc-info@ics.uci.edu -- Send bug reports for ayacc to ...
-- 9x9 multiplication table in Ada -- CC0, Wei-Lun Chao <bluebat@member.fsf.org>, 2018. -- gnat make mt9x9.adb && ./mt9x9 with Ada.Text_IO; use Ada.Text_IO; procedure mt9x9 is package IO is new Integer_IO (Integer); use IO; V : array (1..3) of Integer := (1, 4, 7); begin for i of V loop for j in 1....
-- -- 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...
with Ada.Text_IO; use Ada.Text_IO; with Buffer_Package; use Buffer_Package; with Termbox_Package; use Termbox_Package; package body Command_Package is function Command (E : in out Editor; V : in out View; F : Cmd_Flag_Type; Func : Cmd_Func_Type; A : Arg) return Boolean is ...
-- CD5014X.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...
--=========================================================================== -- -- This is the main slave program for the ItsyBitsy for the -- use cases: -- 2: Master Pico -> Slave ItsyBitsy -- 4: Master ItsyBitsy -> Slave ItsyBitsy -- --=========================================================...
------------------------------------------------------------------------------ -- Copyright (c) 2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
-- { dg-do run } -- { dg-options "-O" } procedure string_slice is subtype Key_T is String (1 .. 3); function One_Xkey return Key_T is Key : Key_T := "XXX"; begin Key (1 .. 2) := "__"; return Key; end; Key : Key_T := One_Xkey; begin if Key (3) /= 'X' then raise Program_Erro...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.Strings; package Slim.Messages.SETD is type SETD_Message is new Message with private; -- Setting reply type Se...
-- This file is supposed to be generated from a configuration. -- For Alire we use this file with default values. package ADL_Config is Max_Mount_Points : constant := 2; Max_Mount_Name_Length : constant := 128; Max_Path_Length : constant := 1024; end ADL_Config;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with GMP.Z; with GMP.Q; with GMP.F; with GMP.FR; with GMP.C; procedure check_sig is -- numeric generic type T is private; with function Image (Value : T; Base : GMP.Number_Base) return String is <>; with function Value (Image : String; Base : GMP.Number_Base) return T is <>; pragma Unreferenced (Image); pra...
with EU_Projects.Nodes.Timed_Nodes; with EU_Projects.Nodes.Action_Nodes.Tasks; with EU_Projects.Node_Tables; package EU_Projects.Nodes.Timed_Nodes.Deliverables is subtype Deliverable_Index is Node_Index; No_Deliverable : constant Extended_Node_Index := No_Index; type Deliverable_Label is new Node_Label; ...
with Ada.Command_line; use Ada.Command_line; with Ada.Text_IO; use Ada.Text_IO; procedure johncena is begin while (True) loop Put_Line(""); end loop; end johncena;
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.Buffers; with GL.Pixels; with GL.Types; private with GL.Low_Level; package GL.Framebuffer is pragma Preelaborate; use GL.Types; type Logic_Op is (Clear, And_Op, And_Reverse, Copy, A...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.API; with GL.Enums.Getter; package body GL.Pixels is procedure Set_Pack_Swap_Bytes (Value : Boolean) is begin API.Pixel_Store (Enums.Pack_Swap_Bytes, Low_Level.Bool (Value)); ...
with Ada.Unchecked_Deallocation; package body Ada.Containers.Forward_Iterators is pragma Check_Policy (Validate => Ignore); procedure Free is new Unchecked_Deallocation (Element_Type, Element_Access); procedure Free is new Unchecked_Deallocation (Node, Node_Access); procedure Retain (Node : not null Node_...
package body Test_Container.Read is procedure Initialize (T : in out Test) is begin Set_Name (T, "Test_Container.Read"); Ahven.Framework.Add_Test_Routine (T, Constant_Length_Array'Access, "constant length array: 0, 0, 0"); Ahven.Framework.Add_Test_Routine (T, Variable_Length_Array'Access, "vari...
-- -- Copyright 2021 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause -- package body Edc_Client.LED is subtype LED_String_Block is String (1 .. 2); BLOCK : constant LED_String_Block := "L0"; subtype LED_String_Specifier is String (1 .. 2); procedure Transmit (Specifier : LED_String_Spe...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; -- Afficher la table de multiplication de 7 procedure Table_7 is begin for J in 1 .. 9 loop Put(J, 1); Put(" x 7 = "); Put(7*J, 1); New_Line; end loop; end Table_7;
with Ada.Text_IO; use Ada.Text_IO; with Yeison_Single; procedure Demo_Single is package Yeison renames Yeison_Single; use Yeison.Operators; A1 : constant Yeison.Any := 1; -- An integer atom; A2 : constant Yeison.Any := "string"; -- A string atom A3 : constant Yeison.Any := Yeison.True; -...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2019 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...
-- This file was generated automatically: DO NOT MODIFY IT ! with System.IO; use System.IO; with Ada.Unchecked_Conversion; with Ada.Numerics.Generic_Elementary_Functions; with Base_Types; use Base_Types; with TASTE_ExtendedTypes; use TASTE_ExtendedTypes; with TASTE_BasicTypes; use TASTE_BasicTypes; with UserDefs_Bas...
with config.applications; package config.tasks with spark_mode => off is procedure zeroify_bss (id : in config.applications.t_real_task_id) with global => (input => (config.applications.list)); procedure copy_data_to_ram (id : in config.applications.t_real_task_id) with ...
with System.Machine_Code; use System.Machine_Code; with STM32_SVD.Flash; use STM32_SVD.Flash; with STM32_SVD; use STM32_SVD; with System; package body Flash is procedure Init is begin null; end Init; procedure Unlock is begin Flash_Periph.KEYR := 16#4567_0123#; Flash_Periph.KEYR := 1...
----------------------------------------------------------------------- -- events.tests -- Unit tests for event channels -- 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 u...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
package Swaps is procedure Swap (Value_1 : in out Integer; Value_2 : in out Integer); end Swaps;
with avtas.lmcp.object; use avtas.lmcp.object; with avtas.lmcp.types; use avtas.lmcp.types; with afrl.cmasi.enumerations; use afrl.cmasi.enumerations; package afrl.cmasi.object is type Object is abstract new avtas.lmcp.object.Object with private; type Object_Acc is access all Object; type Object_Class_Acc...
------------------------------------------------------------------------------- -- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file) -- 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 Lic...
-- { dg-do compile } procedure loop_bound is package P is type Base is new Integer; Limit : constant Base := 10; type Index is private; generic package Gen is end; private type Index is new Base range 0 .. Limit; end P; package body P is package body Gen is t...
-- -- -- package Copyright (c) Dmitry A. Kazakov -- -- Generic_Unbounded_Ptr_Array Luebeck -- -- Interface Spring, 2002 -- -- ...
----------------------------------------------------------------------- -- helios-monitor-agent -- Helios monitor agent -- Copyright (C) 2017, 2019 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...
pragma License (Unrestricted); with Ada.Numerics.Generic_Complex_Elementary_Functions; with Ada.Numerics.Long_Long_Complex_Types; package Ada.Numerics.Long_Long_Complex_Elementary_Functions is new Generic_Complex_Elementary_Functions (Long_Long_Complex_Types); pragma Pure (Ada.Numerics.Long_Long_Complex_Elementary_F...
-- -- -- package Copyright (c) Dmitry A. Kazakov -- -- Parsers.Generic_Source.XPM Luebeck -- -- Implementation Summer, 2006 -- -- ...
package MSPGD.Clock is pragma Preelaborate; type Source_Type is (ACLK, MCLK, SMCLK); type Input_Type is (DCO, VLO, LFXT1, XT2); end MSPGD.Clock;
-- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- -- Authors: Emanuel Regnath (emanuel.regnath@tum.de) -- -- Description: Driver for the HMC5883L with Interfaces; use Interfaces; package HMC5883L.Driver with SPARK_Mode, Abstract_State => Stat...
------------------------------------------------------------------------------ -- C O D E P E E R / S P A R K -- -- -- -- Copyright (C) 2015-2020, AdaCore -- -- ...
pragma License (Unrestricted); -- implementation unit required by compiler with System.Unsigned_Types; package System.Val_Uns is pragma Pure; -- required for Modular'Value by compiler (s-valuns.ads) function Value_Unsigned (Str : String) return Unsigned_Types.Unsigned; end System.Val_Uns;
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements; package Program.Nodes is pragma Preelaborate; type Node is abstract limited new Program.Elements.Element with private; priv...
with Lv.Style; with Lv.Area; with Lv.Objx.Cont; package Lv.Objx.Page is subtype Instance is Obj_T; -- Scrollbar modes: shows when should the scrollbars be visible type Mode_T is (Sb_Mode_Off, -- Never show scrollbars Sb_Mode_On, -- Always show scrollbars Sb_Mode_Drag, -- Sh...
with Ada.Text_IO, Ada.Strings.Fixed; use Ada.Text_IO, Ada.Strings, Ada.Strings.Fixed; function "+" (S : String) return String is Item : constant Character := S (S'First); begin for Index in S'First + 1..S'Last loop if Item /= S (Index) then return Trim (Integer'Image (Index - S'First), Both) & It...
package ItsyBitsy_UART_Interrupt_Handlers is UART0_Data_Received : Boolean := False; private procedure UART0_IRQ_Handler with Export => True, Convention => C, External_Name => "isr_irq20"; end ItsyBitsy_UART_Interrupt_Handlers;
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.SDHC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype SDHC_BSR_BLOCKSIZE_Field is HAL.UInt...
with SDL.video; with SDL; with agar.core.types; with agar.core; package agar.gui.pixelformat is type pixel_format_t is new SDL.video.pixel_format_t; type pixel_format_access_t is access all pixel_format_t; function rgb (bits_per_pixel : agar.core.types.uint8_t; rmask : agar.core.types.uint32_...
-- -- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- -- nRF24L01+ 2.4 GHz GFSK modem -- -- This driver disables the Enhanced ShockBurst™ acknowledgement and checksum -- features and just acts like a dumb GFSK modem. You will need to add your -- own checksum, er...
----------------------------------------------------------------------- -- net-dns -- DNS Network utilities -- Copyright (C) 2016, 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...
with System; package Pkg is type Generic_Interface is interface; function "=" (x, y: Generic_Interface) return Boolean is abstract; function Type_Name (x: Generic_Interface) return String is abstract; function Cast (x: Generic_Interface; iface: String) return System.Address is abstract; type Sequence is abstract int...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Signe_Entier is -- La procédure TODO affiche un message. procedure TODO is begin Put_Line ("Il faut remplacer TODO; par les instructions qui vont bien"); end; N1, N2: Integer; -- Entier lu au clavier ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with TLSF.Config; with TLSF.Mem_Block_Size; use TLSF.Mem_Block_Size; use TLSF.Config; package body TLSF.Bitmaps with SPARK_Mode is procedure Mapping_Insert (V : Size; FL : out First_Level_Index; SL : out Second_Level_Index) is First_Bit : Bit_Pos; Second_Level_Bits : Size; ...
-- //////////////////////////////////////////////////////////// -- // -- // SFML - Simple and Fast Multimedia Library -- // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com) -- // -- // This software is provided 'as-is', without any express or implied warranty. -- // In no event will the authors be held li...
with Rejuvenation.Simple_Factory; use Rejuvenation.Simple_Factory; package body Generators is function Generate_Pattern (G : Generator) return Analysis_Unit is Str : constant String := G.SG (String_Vectors.To_Vector (To_String (G.Name), 1)); begin return Analyze_Fragment (Str, G.Rule); en...
----------------------------------------------------------------------- -- Util.Beans.Objects.To_Access -- Conversion utility -- Copyright (C) 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...
with DDS.ReadCondition; with DDS.DataReader; with DDS.DataWriter; with DDS.Request_Reply; package DDS.Request_Reply.Requester is type Ref is limited interface and DDS.Request_Reply.Ref; type Ref_Access is access all Ref'Class; function Get_Request_Data_Writer (Self : not null access Ref) return DD...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt package body AdaBase.Statement.Base.PostgreSQL is ------------------------ -- reformat_markers -- ------------------------ function reformat_markers (parameterized_sql : String) return String i...
------------------------------------------------------------------------------ -- 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...
type Queue is limited interface; procedure Enqueue (Lounge : in out Queue; Item : in out Element) is abstract; procedure Dequeue (Lounge : in out Queue; Item : in out Element) is abstract;
with Histogram; with PixelArray; with ImageRegions; package HistogramDescriptor is pragma Assertion_Policy (Pre => Check, Post => Check, Type_Invariant => Check); BinCount: Positive := 20; type Divergence is (JensenShannon, KullbackLeibler); type D...
-- C97115A.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...
-- { dg-do compile } -- { dg-options "-O2" } with Unchecked_Conversion; procedure Warn4 is type POSIX_Character is new Standard.Character; type POSIX_String is array (Positive range <>) of aliased POSIX_Character; type String_Ptr is access all String; type POSIX_String_Ptr is access all POSIX_String; ...
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. ...
with ada.text_io, es_impar_montana; use Ada.Text_Io; procedure Prueba_Es_Impar_Montana is n1:integer:=0; begin -- caso de prueba 1: n1:=165; Put_line(" 165 --> TRUE"); put("Y tu programa dice que:"); Put_line("--> "& Boolean'Image(es_impar_montana(n1))); new_line; -- caso de prueba 2: n1...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. package GBA.Audio is type Sweep_Shift_Type is range 0 .. 7; type Frequency_Direction is ( Increasing , Decreasing ); for Frequency_Direction use ( Increasing => 0 , Decreasing => 1 ); type Sweep_Duration_Ty...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- { dg-do compile } -- { dg-options "-gnatws" } procedure Conv_Integer is S : constant := Integer'Size; type Regoff_T is range -1 .. 2 ** (S-1); for Regoff_T'Size use S; B : Integer; C : Regoff_T; begin B := Integer (C); end;
-- FastAPI -- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -- -- The version of the OpenAPI document: 0.1.0 -- -- -- NOTE: This package is auto generated by OpenAPI-Generator 4.0.0. -- https://openapi-generator.tech -- Do not edit the class manually....
with Ada.Text_Io; use Ada.Text_Io; procedure main is type vector is array (Integer range <>) of Integer; type vector_ptr is access vector; task type sort_split is entry PutArrayRange(vec_ptr: in vector_ptr; l, r : in Integer); entry GetResult(ok_ret : out boolean); end sort_split; type sor...
package Sort is SIZE : constant Integer := 40; SubType v_range is Integer Range -500..500; type m_array is array(1..SIZE) of v_range; procedure MergeSort(A : in out m_array); -- Internal functions procedure MergeSort(A : in out m_array; startIndex : Integer; endIndex : Integer); proc...
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_021if is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Streams...
with Ada.Text_IO; use Ada.Text_IO; package body Greetings is procedure Swear (Greeting : String; Speaker_Age : Person.Age := Person.Age'First) is begin if Speaker_Age >= Person.Adult_Age then Put_Line ((if Greeting = Hello then Swear_Hello elsif Greet...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
pragma License (Unrestricted); -- implementation unit specialized for Darwin (or Linux, or Windows) package System.Long_Long_Elementary_Functions is pragma Pure; function logl (x : Long_Long_Float) return Long_Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_logl"; function ...
-- AOC 2020, Day 1 with Ada.Containers.Vectors; package Day is type Expense is new Natural; function part1(filename : in String) return Expense; function part2(filename : in String) return Expense; private package Expense_Vector is new Ada.Containers.Vectors (Index_Type => Natural, Element_Typ...
with Ada.Text_Io; procedure CompileTimeCalculation is function Factorial (Int : in Integer) return Integer is begin if Int > 1 then return Int * Factorial(Int-1); else return 1; end if; end; Fact10 : Integer := Factorial(10); begin Ada.Text_Io.Put(Integer'Image(Fac...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with openGL.Geometry.lit_colored, openGL.Primitive.indexed; package body openGL.Model.polygon.lit_colored is function new_Polygon (Vertices : in Vector_2_array; Color : in lucid_Color) return View is Self : constant View := new Item; begin Self.Color := Color...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with SDL; with SDL.Clipboard; with SDL.Log; with SDL.Video.Windows; with SDL.Video.Windows.Makers; procedure Clipboard is W : SDL.Video.Windows.Window; begin SDL.Log.Set (Category => SDL.Log.Application, Priority => SDL.Log.Debug); if SDL.Initialise = True then SDL.Video.Windows.Makers.Create (Win ...
let num = 0; if num < 100 { reassign num = num + 1; print_expr_ln num; jump 10; jump 3; } jump 23; if num%15 == 0 { print_str_ln FIZZBUZZ; jump 3; } if num%3 == 0 { print_str_ln FIZZ; jump 3; } if num%5 == 0 { print_str_ln BUZZ; jump 3; } jump 3; print_str_...
-- -- Copyright (C) 2017, AdaCore -- -- This spec has been automatically generated from M2Sxxx.svd pragma Ada_2012; pragma Style_Checks (Off); with System; -- Microcontroller Subsystem (MSS) -- - Hard 166 MHz 32-Bit ARM Cortex-M3 Processor (r2p1) -- Embedded Trace Macrocell (ETM) -- Memory Protection U...
----------------------------------------------------------------------- -- security-oauth-servers -- OAuth Server Authentication Support -- Copyright (C) 2016, 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -...
-- -- Jan & Uwe R. Zimmer, Australia, 2013 -- with Ada.Task_Identification; use Ada.Task_Identification; with Barrier_Type; use Barrier_Type; with Real_Type; use Real_Type; with Swarm_Configuration; use Swarm_Configuration; with Swarm_Structures; use Swarm_Structures; with Swar...
with RASCAL.Utility; use RASCAL.Utility; with RASCAL.WimpTask; use RASCAL.WimpTask; with RASCAL.ToolboxWindow; use RASCAL.ToolboxWindow; with RASCAL.Toolbox; use RASCAL.Toolbox; with RASCAL.FileInternal; use RASCAL.FileInternal; with RAS...
with Tkmrpc.Request; with Tkmrpc.Response; package Tkmrpc.Dispatchers.Ees is procedure Dispatch (Req : Request.Data_Type; Res : out Response.Data_Type); -- Dispatch EES request to concrete operation handler. end Tkmrpc.Dispatchers.Ees;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, Universidad Politécnica de Madrid -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- css-core-styles -- Core CSS API definition -- Copyright (C) 2017, 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 f...
-- { dg-do compile } -- { dg-options "-O -gnatws" } package body Opt1 is function De_Linear_Index (Index : Natural; D : Natural; Ind_Lengths : Dimention_Length) return Dimension_Indexes is Len : Natural := 1; Tmp_Ind : Natural := Index; Tmp_Res...
with OpenGL.Thin; package body OpenGL.Light is function Enum_Value (Index : in Light_Index_t) return Thin.Enumeration_t is begin case Index is when Light_0 => return Thin.GL_LIGHT0; when Light_1 => return Thin.GL_LIGHT1; when Light_2 => return Thin.GL_LIGHT2; when Light_3 => return Thi...
package body Centro_Mensajeria is LEnvios: Lista_Envios.Lista; Nombre: String(1..4); Ubicacion: String(1..4); procedure Localizar_Envios_Cercanos(Geo: in GeoLoc.Geo; out LCer: Lista_Envios.Lista) is LAux: Lista_Envios.Lista; EnvAux: Envios.Envio; GeoAux: GeoLoc.Geo; begin Listas...