content stringlengths 23 1.05M |
|---|
with Ada.Text_IO; use Ada.Text_IO;
procedure Program is
begin
Ada.Text_IO.Put("HelloWorld");
end Program; |
with Ada.Unchecked_Deallocation;
package body Regions.Shared_Hashed_Maps is
-- pragma Compile_Time_Warning
-- (Hash_Type'Modulus = 2 ** Hash_Type'Size, "Unexpected hash type");
procedure Free is new Ada.Unchecked_Deallocation (Node, Node_Access);
function Pop_Count (Value : Unsigned_64; Bit : Bit_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... |
With
NSO.JSON,
Ada.Finalization,
Ada.Characters.Latin_1,
Ada.Containers.Ordered_Maps,
Ada.Calendar,
Gnoga.Gui.Base,
Gnoga.Gui.Element.Form,
Gnoga.Gui.Element.Common;
Limited with
Report_Form;
Package NSO.Types.Report_Objects is
Function Debug_Action_Event return Gnoga.Gui.Base.Action_Event;
-- The base rep... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Calendar;
with Interfaces.C.Pointers;
with GL.Buffers;
with GL.Objects.Buffers;
with GL.Fixed;
with GL.Fixed.Matrix;
with GL.Immediate;
with GL.Toggles;
with GL.Types.Colors;
with GL_Test.Di... |
------------------------------------------------------------------------------
-- Copyright (c) 2014-2019, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-- Standard Ada library specification
-- 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.
-- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaRe... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Conditions is
-- Enable preconditions and postconditinos.
pragma Assertion_Policy(Check);
-- Trivial example of a post-condition
function Increment (x : Integer) return Integer
with Post => Increme... |
with Ada.Exception_Identification.From_Here;
with C.fcntl;
with C.sys.types;
with C.unistd;
package body System.Random_Initiators is
use Ada.Exception_Identification.From_Here;
use type Storage_Elements.Storage_Offset;
use type C.char_array;
use type C.signed_int; -- ssize_t is signed int or signed long
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with BBqueue;
package body Test_Utils.Abstract_Encoder.COBS_Queue is
-------------
-- Receive --
-------------
overriding
procedure Receive (This : in out Instance; Data : Storage_Element)
is
Success : Boolean;
begin
COBS.Queue.Encoder.Push (This.Encoder, Data, Success);
if not... |
-- PR ada/69219
-- Testcae by yuta tomino <demoonlit@panathenaia.halfmoon.jp> */
-- { dg-do compile }
procedure Inline12 is
procedure NI;
procedure IA;
pragma Convention (Intrinsic, IA);
pragma Inline_Always (IA);
procedure IA is
begin
NI;
end;
procedure NI is null;
begin
IA;
end;... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Ada.Containers.Vectors;
generic
type Vertex_Key is private;
package Debug4_Pkg is
type Vertex_Id is new Natural;
subtype Valid_Vertex_Id is Vertex_Id range 1 .. Vertex_Id'Last;
package VIL is new Ada.Containers.Vectors
(Index_Type => Positive,
Element_Type => Valid_Vertex_Id);
use VI... |
package semaphore is
protected type Counting_Semaphore (Start_Count : Integer := 1) is
entry Secure;
procedure Release;
function Count return Integer;
private
Current_Count : Integer := Start_Count;
end;
end semaphore;
|
--
-- Copyright (C) 2020, AdaCore
--
-- This spec has been automatically generated from STM32F0x8.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package Interfaces.STM32.RCC is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Registers --
---------------
su... |
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with System;
with C.stdlib;
with C.string;
package body YAML is
use type C.signed_int;
use type C.ptrdiff_t;
use type C.size_t;
use type C.yaml.yaml_char_t_ptr;
use type C.yaml.yaml_emitter_state_t;
use type C.yaml.yaml_event_type_t;
use type C.yaml... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
package Apsepp is
pragma Pure (Apsepp);
end Apsepp;
|
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016-2017, AdaCore --
-- --
-- ... |
generic
type Real is digits <>;
package pc_2_coeff_19 is
subtype PC_Rule_Range is Integer range 0..31;
type Integration_Rule is array(PC_Rule_Range) of Real;
Extrap_Factor: constant Real := 1.0 / 17.2;
-- bst val unknown.
Starting_Id_of_First_Deriv_of_Y : constant PC_Rule_Range := 15;
-- Ce... |
-- { dg-do run }
-- { dg-options "-O" }
with Opt35_Pkg; use Opt35_Pkg;
procedure Opt35 is
I : Integer := -1;
N : Natural := 0;
begin
begin
I := F(0);
exception
when E => N := N + 1;
end;
begin
I := I + F(0);
exception
when E => N := N + 1;
end;
if N /= 2 or I = 0 then
raise Pro... |
--------------------------------------------------------
-- E n c o d i n g s --
-- --
-- Tools for convertion strings between Unicode and --
-- national/vendor character sets. --
-- - - - - - - - - -... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Strings; use Ada.Strings;
package body Helper is
function Fichier_Ligne_Commence_Par(Nom_Fichier, Marqueur : String)
return String
is
Cible : Unbound... |
with AUnit.Assertions; use AUnit.Assertions;
package body Day1.Test is
procedure Test_Part1 (T : in out AUnit.Test_Cases.Test_Case'Class) is
pragma Unreferenced (T);
begin
Assert (fuel_required(12) = 2, "Wrong fuel 12 => 2");
Assert (fuel_required(14) = 2, "Wrong fuel 14 => 2");
Assert (... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
package body Apsepp.Abstract_Test_Suite is
overriding
function Routine (Obj : Test_Suite;
K : Test_Routine_Index) return Test_Routine
is (Null_Test_Routine'Access);
end Apsepp.A... |
with Ada.Strings.Fixed;
package body Surface.Window is
procedure Attach (Application : in out Reference) is
begin
null;
end Attach;
procedure Setup (self : in out Instance) is
begin
Background_Color (self, raylib.LIGHTGRAY);
Size (self, 1027, 768);
Title (self, "Unnamed");
e... |
--- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with CommonText;
with Ada.Calendar;
with AdaBase.Interfaces.Logger;
package AdaBase.Logger.Base is
package CT renames CommonText;
package AC renames Ada.Calendar;
package AIL renames AdaBase.Interf... |
with SPARKNaCl.Utils;
package body SPARKNaCl.Scalar
with SPARK_Mode => On
is
pragma Warnings (GNATProve, Off, "pragma * ignored (not yet supported)");
Nine : constant Bytes_32 := (9, others => 0);
GF_121665 : constant Normal_GF := (16#DB41#, 1, others => 0);
---------------------------------------------... |
-- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_SVD.MAILBOX is
pragma Preelaborate;
... |
with System; use System;
with Ada.Unchecked_Conversion;
with STM32_SVD.DMA; use STM32_SVD.DMA;
with STM32_SVD.USART; use STM32_SVD.USART;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32GD.Clock;
package body STM32GD.USART.Peripheral is
DMA_Index : Integer := 1;
type USART_Periph_Access is access all USART_Pe... |
-- 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.
local url = require("url")
name = "PKey"
type = "scrape"
function start()
set_rate_limit(1)
end
function vertical(ctx, domain)
local params = {
['zone'... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
package Replicant.Platform is
-- returns platform-specific df command
function df_command return String;
-- platform-specific version of file command
function file_type_command return String;
--... |
--------------------------------------------------------------
-------- Load_Control --------------------------------------
-- This package provides a protected object that controls
-- the servicing of calling tasks, such that they are kept
-- waiting until the system Load is less than some threshold
-- value (di... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, AdaCore --
-- --
-- ... |
-- { dg-do run }
procedure Test_Self_Ref is
type T2;
type T2_Ref is access all T2;
function F (X: T2_Ref) return Integer;
type T2 is limited record
Int1 : Integer := F (T2'Unchecked_Access);
Int2 : Integer := F (T2'Unrestricted_Access);
end record;
Counter : Integer := 2;
functio... |
-- { dg-do run }
with Ada.Directories;
with Ada.Text_IO;
procedure Compose is
Result : constant String := Ada.Directories.Compose (Name => "foo",
Extension => "txt");
pragma Unreferenced (Result);
begin
null;
end Compose;
|
package body Lto3_Pkg2 is
function Get (X : T) return Data_T is
Result : Data_T;
begin
return Result;
end;
end Lto3_Pkg2;
|
with Ada.Containers.Doubly_Linked_Lists,
Ada.Containers.Hashed_Maps,
Ada.Containers.Vectors;
with Utils; -- For Long_Long_Natural type
generic
type Node is private;
with function Hash (Coord : Node) return Ada.Containers.Hash_Type is <>;
with function Equivalent_Keys (Left, Right : Node) return ... |
------------------------------------------------------------------------------
-- Copyright (c) 2021, Lev Kujawski.
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the "Software")
-- to deal in the Software without restrictio... |
--
-- Copyright (C) 2019, AdaCore
--
-- This spec has been automatically generated from FE310.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package Interfaces.FE310.GPIO is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Registers --
---------------
-- V... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
generic
type Base_Type is mod <>;
Multiplyer, Adder: Base_Type;
Output_Divisor: Base_Type := 1;
package LCG is
procedure Initialize(Seed: Base_Type);
function Random return Base_Type;
-- changes the state and outputs the result
end LCG;
|
-----------------------------------------------------------------------
-- asf-contexts.faces -- Faces Contexts
-- 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 not use ... |
with
gel_demo_Server;
package body gel_demo_Services
is
function World return gel.remote.World.view
is
begin
return gel_demo_Server.the_server_World.all'access;
end World;
end gel_demo_Services;
|
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Task_Info is
pragma Preelaborate;
-- required for task and pragma Task_Info by compiler (s-parame.ads)
type Scope_Type is (Process_Scope, System_Scope, Default_Scope);
pragma Discard_Names (Scope_Type);
type Task... |
-- BinToAsc_Suite.Misc_Tests
-- Unit tests for BinToAsc
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
with Ada.Characters.Handling;
with AUnit.Assertions;
package body BinToAsc.Testable is
use Ada.Characters.Handling;
use AUnit.Assertions;
---------------------------------
-- Che... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Ada.Environment_Variables; use Ada.Environment_Variables;
with Ada.Text_Io; use Ada.Text_Io;
procedure Print_Path is
begin
Put_Line("Path : " & Value("PATH"));
end Print_Path;
|
-----------------------------------------------------------------------
-- akt-commands-list -- List commands to report database information for admin tool
-- Copyright (C) 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Licen... |
pragma Ada_2012;
with AUnit.Assertions; use AUnit.Assertions;
with AUnit.Test_Caller;
with Ada.Streams; use Ada.Streams;
with HMAC;
package body HMAC_SHA2_Streams_Tests is
package Caller is new AUnit.Test_Caller (Fixture);
Test_Suite : aliased AUnit.Test_Suites.Test_Suite;
function Suite return AUnit.Test... |
with Ada.Text_IO; use Ada.Text_IO;
-- le problème de Josephus, avec des listes doublement chaînées circulaires
procedure josephus is
type Node;
type List is access Node;
type Node is record
Value: Integer;
Prev, Next: List;
end record;
function Singleton(V: Integer) return List is
L: ... |
pragma License (Unrestricted);
-- implementation unit
package Ada.Strings.Naked_Maps.Case_Folding is
pragma Preelaborate;
function Case_Folding_Map return not null Character_Mapping_Access;
end Ada.Strings.Naked_Maps.Case_Folding;
|
pragma License (Unrestricted);
-- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux)
with C;
package System.Native_Interrupts is
pragma Preelaborate;
subtype Interrupt_Id is C.signed_int;
function Is_Blocked (Interrupt : Interrupt_Id) return Boolean;
procedure Block (Interrupt : Inter... |
package Instructions is
-- Type Instruction colleclt all the possible processors instructions.
-- At the present moment it is statically defined but in a future work it
-- can be
type Instruction is ( );
end Instructions;
|
with Ada.Integer_Text_IO;
procedure Euler6 is
Sum_Of_Squares, Sum_Of_Ints: Integer := 0;
begin
for I in Integer range 1 .. 100 loop
Sum_Of_Squares := Sum_Of_Squares + I * I;
Sum_Of_Ints := Sum_Of_Ints + I;
end loop;
Ada.Integer_Text_IO.Put(Sum_Of_Ints * Sum_Of_Ints - Sum_Of_Squares);
end Euler6... |
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020-2021 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with Ada.Unchecked_Deallocation;
package body Regex.Syntax_Trees is
function "<" (Left, Right : in Syntax_Tree_Node_Access) return B... |
with Interfaces;
with Bits;
-- with Bit_Vectors_Prove;
-- with BitOperations.Search.Axiom;
-- with BitOperations.Search.Axiom.Most_Significant_Bit;
-- with BitOperations.Shift.Axiom;
-- with BitOperations.Shift.Axiom.Logic_Left;
-- with BitOperations.Shift.Axiom.Logic_Right;
with TLSF;
with System.Storage_Element... |
with estado_casillero,ada.Text_IO;
use estado_casillero,ada.Text_IO;
package body mundo is
procedure inicializar_mundo (m : in out t_mundo) is
c : t_casillero ;
begin
c.set_estado(estado_casillero.Sucio);
m.casilleros := (others => c);
m.aspiradora.set_direccion(direccion.Izquierda);
... |
-------------------------------------------------------------------------------
-- Copyright (c) 2019 Daniel King
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the "Software"),
-- to deal in the Software without restriction... |
procedure Hide.Decode_generic is
use all type Posix.C_String;
Source_File :constant String:= Posix.Get_Line;
begin
Put_Line (Decode ((+Source_File)));
end;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
package I_Am_Ada_Too is
procedure Ada_Procedure_Too;
pragma Export (C, Ada_Procedure_Too, "ada_procedure_too");
end I_Am_Ada_Too;
|
-- part of OpenGLAda, (c) 2021 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Streams;
with GL.Types;
with GL.Low_Level;
package GL.Debug is
pragma Preelaborate;
use GL.Types;
type Message_Source_Restriction is
(Dont_Care, Api, Window_System, Shad... |
-- { dg-do run }
procedure Enum3 is
type Enum is (Aaa, Bbb, Ccc);
for Enum use (1,2,4);
begin
for Lo in Enum loop
for Hi in Enum loop
declare
subtype S is Enum range Lo .. Hi;
type Vector is array (S) of Integer;
Vec : Vector;
begin
for I... |
with Ada.Text_IO;
use Ada.Text_IO;
procedure Helloworld is
begin
Put_Line("Hello world!");
end HelloWorld;
|
generic
package Extended_Real.IO is
-- E_real Text translation.
function e_Real_Image
(X : in e_Real;
Aft : in Positive := Positive'Last)
return String;
-- e_Real to Text translation.
-- Minimum length of Aft is 12. If less, it gets set to 12.
-- The number of digits in ... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure TOML.Generic_Dump (Stream : in out Output_Stream; Value : TOML_Value)
is
procedure Put (Bytes : String);
-- Shortcut for Put (Stream, Bytes)
type Map_Pair is record
Key : Unbounded_UTF8_String;
Value : TOML_Value;
end record;... |
with MPU6000.Register; use MPU6000.Register;
with Ada.Unchecked_Conversion;
--with Config.Software;
package body MPU6000.Driver with SPARK_Mode,
Refined_State => (State => Is_Init)
is
READ_FLAG : constant Byte := Byte( 2#1000_0000# );
-- Public procedures and functions
------------------
--... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with Ada.Strings;
with Ada.Characters.Conversions;
with Ada.Strings.UTF_Encoding.Wide_Wide_Strings;
package body AdaBase.Results.Converters is
package AS renames Ada.Strings;
package ACC renames Ada.Cha... |
with System;
with C.string;
package body MPFR.Root_FR is
use type C.signed_int;
procedure memcpy (dst, src : System.Address; n : C.size_t)
with Import, Convention => Intrinsic, External_Name => "__builtin_memcpy";
-- implementation
function To_MP_Float (
X : Long_Long_Float;
Precision : MPFR.Precision;
... |
--
-- Copyright (C) 2015-2016 secunet Security Networks AG
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- ... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with TOML; use TOML;
with TOML.File_IO;
with GNAT.OS_Lib; use GNAT.OS_Lib;
with CLIC.User_Input; use CLIC.User_Input;
with Simple_Logging; use Simple_Logging;
with FSmaker.Target;
with FSmaker.Target.LittleFS;
with FSmaker.Source;
package body FSmaker.TOML is
... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Text_IO;
with GL.Attributes;
with GL.Blending;
with GL.Buffers;
with GL.Files;
with GL.Objects.Buffers;
with GL.Objects.Shaders;
with GL.Objects.Programs;
with GL.Objects.Textures.Targets;
wit... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
-- C95021A.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... |
--------------------------------------------------------------------------------
--Copyright 1998 Praxis Critical Systems Limited --
-- --
--The material contained herein is the subject of copyright and all rights in... |
-- This unit provides an abstract type to encode COBS byte per byte. It can
-- stream data because the full input frame is not required to start encoding.
--
-- To use this encoder, declare a tagged type that inherit from this one and
-- implement a Flush procedure that will receive the encoded data from the
-- en... |
--
-- Copyright (c) 2008-2011 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 "AS... |
-- { dg-do compile }
-- { dg-options "-O2" }
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package Opt1 is
type Ptr is access all Integer;
type R1 is record
I1 : Integer;
I2 : Integer := 0;
I3 : Integer;
end record;
type R2 is record
P : Ptr;
F1 : R1;
end reco... |
-- Auteur: MOUDDENE Hamza.
-- Gérer un stock de matériel informatique.
package Stocks_Materiel is
CAPACITE : constant Integer := 10; -- nombre maximum de matériels dans un stock
type T_Nature is (UNITE_CENTRALE, DISQUE, ECRAN, CLAVIER, IMPRIMANTE);
type T_Materiel is array(1..CAPACITE) of Integer... |
No-one has translated the taskvent example into Ada yet. Be the first to create
taskvent in Ada and get one free Internet! If you're the author of the Ada
binding, this is a great way to get people to use 0MQ in Ada.
To submit a new translation email it to zeromq-dev@lists.zeromq.org. Please:
* Stick to identical ... |
with Ada.Streams.Stream_IO;
with String_Ops;
with kv.avm.References;
with kv.avm.Instructions;
with kv.avm.Registers;
with kv.avm.Memories;
with kv.avm.Actors;
with kv.avm.Line_Parser;
package kv.avm.Assemblers is
Word_Code_Identifier_Number : constant Integer := -1348;
Word_Code_Human_Id : constant String(1.... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Check_Jolly is
Input_Length : Natural := 100;
Input_String : String (1 .. Input_Length);
begin
Get_Line (Input_String, Input_Length);
Put ("OK");
end Check_Jolly;
|
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, Maxim Reznik
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistr... |
-- 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.Culling is
procedure Set_Front_Face (Face : Orientation) renames API.Front_Face;
function Front_Face return Orientation is
Ret : aliased... |
-----------------------------------------------------------------------
-- asf-factory -- Component and tag factory
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you ma... |
-----------------------------------------------------------------------
-- mat-targets - Representation of target information
-- Copyright (C) 2014, 2015, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may ... |
-- for SjLj
pragma Check_Policy (Trace => Ignore);
with System.Address_To_Constant_Access_Conversions;
separate (System.Unwind.Backtrace)
package body Separated is
pragma Suppress (All_Checks);
-- Note: In SjLj mode, Unwind_Backtrace does not work.
procedure main
with Import, Convention => C;
typ... |
-- Copyright 2019 Michael Casadevall <michael@casadevall.pro>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to
-- deal in the Software without restriction, including without limitation the
-- rights to use, cop... |
package body openGL.Screen
is
-- function Thin (Self : in Item) return xcb.xcb_screen_t.Pointer
-- is
-- begin
-- return Self.Thin;
-- end Thin;
-- procedure Thin_is (Self : in out Item; Now : in xcb.xcb_screen_t.Pointer)
-- is
-- begin
-- Self.Thin := Now;
-- end Thin... |
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- Copyright (C) 2010, Alexander Senier
-- Copyright (C) 2010, secunet Security Networks AG
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or withou... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with
ada.Numerics.discrete_Random;
package body openGL.Palette
is
package random_Colors is new ada.Numerics.discrete_Random (Color_Value);
use random_Colors;
the_Generator : random_Colors.Generator;
function random_Color return Color
is
begin
return (random (the_Generator),
... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure fizzbuzz is
-- variable declaration
I: integer := 1;
begin
for I in 1 .. 100 loop
if I mod 3 = 0 then
Put("Fizz");
end if;
if I mod 5 = 0 then
Put("Buzz");
end if;
if I mod 3 /= 0 and I mod 5 /= ... |
-----------------------------------------------------------------------
-- css-core-properties -- Core CSS API definition
-- Copyright (C) 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 fil... |
with Zip.CRC, UnZip.Decompress.Huffman, BZip2;
with Ada.Text_IO, Interfaces;
with Ada.Streams.Stream_IO;
package body UnZip.Decompress is
procedure Decompress_data (
zip_file : Zip_Streams.Zipstream_Class;
format : PKZip_... |
-- 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.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.