content stringlengths 23 1.05M |
|---|
-- *************************************************************************************
-- The recipient is warned that this code should be handled in accordance
-- with the HM Government Security Classification indicated throughout.
--
-- This code and its contents shall not be used for other than UK Government
-- pu... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Ada.Text_Io; use Ada.Text_Io;
procedure Doors is
type Door_State is (Closed, Open);
type Door_List is array(Positive range 1..100) of Door_State;
The_Doors : Door_List := (others => Closed);
begin
for I in 1..100 loop
for J in The_Doors'range loop
if J mod I = 0 then
... |
with Types;
use Types;
package Mathutil with SPARK_Mode => On is
function ArcTan(Y : FloatingNumber; X : FloatingNumber) return FloatingNumber
with
Global => null,
Pre => X /= 0.0 and then Y /= 0.0,
Post => ArcTan'Result <= 180.0 and then ArcTan'Result >= (-180.0);
function Sin(X : FloatingNumber) retu... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. The
-- code intended to set up and tear down the t... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Datos;
use Datos;
procedure crear_lista_vacia( L : in out Lista) is
-- pre:
-- post: se ha creado una lista vacia
begin
L := null;
end crear_lista_vacia;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Greet_5c is
I : Integer := 1;
begin
-- Condition must be a Boolean value (no Integers)
-- Operator "<=" returns a Boolean
while I <= 5 loop
Put_Line ("Hello, World!" & Integer'Image(I));
I := I + 1;
end loop;
end Greet_5c; |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Numerics.Discrete_Random;
procedure Bulls_And_Cows is
package Random_Natural is new Ada.Numerics.Discrete_Random (Natural);
Number : String (1..4);
begin
declare -- Generation of number
use Random_Natural;
Digit : String := "123456789";
Size ... |
------------------------------------------------------------------------------
-- --
-- Unicode Utilities --
-- UTF-8 Stream Decoder --
-- ... |
with Display.Basic.Utils; use Display.Basic.Utils;
with SDL_SDL_stdinc_h; use SDL_SDL_stdinc_h;
with SDL_SDL_video_h; use SDL_SDL_video_h;
package Display.Basic.Fonts is
type BMP_Font is (Font8x8, Font12x12, Font16x24);
procedure Draw_Char
(S : access SDL_Surface;
P : Screen_Point;
Char : Cha... |
with Ada.Text_IO;
with Ada.Integer_Text_IO;
package body Problem_30 is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
subtype digit is Integer range 0 .. 9;
fifth_power : constant Array (0 .. 9) of Integer := (0**5, 1**5, 2**5, 3**5,
... |
------------------------------------------------------------------------------
-- Copyright (c) 2015, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-----------------------------------------------------------------------
-- security-filters -- Security filter
-- Copyright (C) 2011, 2012, 2013 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 fi... |
type T is limited private; -- inner structure is hidden
X, Y: T;
B: Boolean;
-- The following operations do not exist:
X := Y; -- illegal (cannot be compiled
B := X = Y; -- illegal
|
-- Parallel and Distributed Computing
-- Laboratory work #4. Ada Randeveuz
-- Task: MA = (B*C)*MZ + min(Z)*(MX*MC)
-- Koval Rostyslav IO-71
with Ada.Text_IO, Ada.Integer_text_iO, Ada.Synchronous_Task_Control, Data;
use Ada.Text_IO, Ada.Integer_text_iO, Ada.Synchronous_Task_Control;
procedure main is
Va... |
-----------------------------------------------------------------------
-- jason-projects-modules -- Module projects
-- Copyright (C) 2016, 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 fi... |
-- This spec has been automatically generated from STM32F7x9.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.PWR is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR1_PLS_Field is HAL.U... |
with
Gtk.Container,
Gtk.Style_Provider,
Gtk.Style_Context,
Gtk.Css_Provider,
Glib.Error,
Glib,
Ada.Text_IO;
package body aIDE.Style
is
use Gtk.Style_Provider,
Gtk.Style_Context,
Gtk.Css_Provider,
Ada.Text_IO,
Gtk.Container;
Provider : Gtk_Css_Prov... |
-- 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... |
-----------------------------------------------------------------------
-- util-encoders-quoted_printable -- Encode/Decode a stream in quoted-printable
-- Copyright (C) 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
-----------------------------------------------------------------------
-- helios-reports-files -- Write reports in files
-- 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 th... |
package def_monitor is
protected type Monitor is
entry cadiraLock;
procedure cadiraUnlock;
entry menjarLock;
procedure menjarUnlock;
function ferMenjar return Boolean;
private
contCadires : Integer := 0;
potsMenjar : Boolean := False;
end Monitor;
end def_monitor;
|
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
with Interfaces;
with kv.avm.Actor_References;
with kv.avm.Actor_References.Sets;
with kv.avm.Tuples;
with kv.avm.Registers;
with kv.avm.Memories;
with kv.avm.Executables;
with kv.avm.Processors;
with kv.avm.Control;
with kv.avm.Messages;
with kv.avm.Executable_Lists;
with kv.avm.Capabilities;
with kv.avm.Routers;
pa... |
-----------------------------------------------------------------------
-- asf.filters.dump -- Filter to dump the request information
-- Copyright (C) 2010 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not ... |
with agar.core.event;
with agar.core.slist;
with agar.core.timeout;
with agar.gui.surface;
with agar.gui.widget.menu;
with agar.gui.widget.scrollbar;
with agar.gui.window;
package agar.gui.widget.table is
use type c.unsigned;
type popup_t is limited private;
type popup_access_t is access all popup_t;
pragma ... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Strings.Fixed;
with Ada.Finalization;
with Ada.Containers.Indefinite_Ordered_Maps;
with Ada.Containers.Vectors;
with EU_Projects.Times.Time_Expressions.Parsing;
-- Most of the entities in a project (WPs, tasks, deliverables, ...) share
-- many charact... |
-- Lumen.Binary.Endian.Words -- Byte re-ordering routines for "word"
-- (32-bit) values
--
--
-- Chip Richards, NiEstu, Phoenix AZ, Summer 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this software... |
-- Copyright 2018-2021 Bartek thindil Jasicki
--
-- This file is part of Steam Sky.
--
-- Steam Sky is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (a... |
with Ada.Characters.Handling;
with Ada.Text_IO;
with Ada.Command_Line;
with Ada.Containers.Indefinite_Vectors;
procedure Generate is
use Ada.Characters.Handling;
use Ada.Text_IO;
package String_Vectors is new Ada.Containers.Indefinite_Vectors
(Element_Type => String,
Index_Type => Positive);
... |
with Ada.Integer_Text_IO;
-- Copyright 2021 Melwyn Francis Carlo
procedure A006 is
use Ada.Integer_Text_IO;
N, Sum, Square_Of_Sum, Sum_Of_Square : Integer;
begin
N := 100;
Sum := Integer ((N * (N + 1)) / 2);
Square_Of_Sum := Sum * Sum;
Sum_Of_Square := (N * (N + 1) * ((2 *... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package Racionalisok is
type Racionalis is private;
function Szamlalo ( R: Racionalis ) return Integer;
function Nevezo ( R: Racionalis ) return Positive;
function "/" ( Szamlalo: Integer; Nevezo: Positive ) return Racionalis;
function "/" ( X, Y: Racionalis ) return Racionalis;
func... |
package dispatch2_p is
type Object is tagged null record;
type Object_Ptr is access all Object'CLASS;
--
function Impl_Of (Self : access Object) return Object_Ptr;
function Get_Ptr (Self : access Object) return Object_Ptr
renames Impl_Of;
end;
|
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
with Ada.Text_IO; use Ada.Text_IO;
with Strings_Edit; use Strings_Edit;
procedure Column_Aligner is
Text : constant String :=
"Given$a$text$file$of$many$lines,$where$fields$within$a$line$" & NUL &
"are$delineated$by$a$singl... |
procedure prueba is
function Minimo2 (a, b: Integer) return Integer is
X : Integer := 0;
begin
if a < b then return a;
else return b;
end if;
end Minimo2;
begin
put(Minimo2(1, 2));
end prueba; |
with Ada.Strings.Fixed;
package Project_Processor is
-- The result of function 'Image associated to discrete types has
-- a space at the beginning. That space is quite annoying and needs
-- to be trimmed. This function is here so that everyone can use it
function Chop (X : String) return String
is (A... |
-----------------------------------------------------------------------
-- net-dhcp -- DHCP client
-- 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");
-- you may not use this file except in... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Finalization;
with Yaml.Destination;
with Yaml.Stream_Concept;
with Yaml.Stacks;
package Yaml.Presenter is
type Instance is tagged limited private;
type Buffer_Type is access all Strin... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Ahven.Text_Runner;
with Ahven.Framework;
with Gilded_Rose_Tests;
procedure Gilded_Rose_Tester is
S : Ahven.Framework.Test_Suite := Ahven.Framework.Create_Suite("All");
begin
Ahven.Framework.Add_Test(S, new Gilded_Rose_Tests.Test);
Ahven.Text_Runner.Run(S);
end Gilded_Rose_Tester;
|
-----------------------------------------------------------------------
-- AWA.Countries.Models -- AWA.Countries.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-spec.xhtml
-- Ada Generator: https://ad... |
with Semaphores;
with Ada.Text_Io; use Ada.Text_Io;
procedure Semaphores_Main is
-- Create an instance of a Counting_Semaphore with Max set to 3
Lock : Semaphores.Counting_Semaphore(3);
-- Define a task type to interact with the Lock object declared above
task type Worker is
entry Start (Sleep : in ... |
pragma Ada_2012;
package body Protypo.Api.Callback_Utilities is
---------------------
-- Match_Signature --
---------------------
function Match_Signature (Parameters : Engine_Value_Vectors.Vector;
Signature : Class_Array)
return Boolean
is
... |
with Ada.Strings.Unbounded;
with Ahven.Framework;
with Aircraft.Api;
package Test_Aircraft.Read is
use Aircraft;
use Aircraft.Api;
type Test is new Ahven.Framework.Test_Case with null record;
procedure Initialize (T : in out Test);
procedure Airplane_1;
procedure Airplane_2;
procedure Helicop... |
-- Ada_GUI version of Random_Int
--
-- Copyright (C) 2021 by PragmAda Software Engineering
--
-- Released under the terms of the 3-Clause BSD License. See https://opensource.org/licenses/BSD-3-Clause
--
-- The (application-specific) user interface
package Random_Int.UI is
type Event_ID is (Generate, Quit);
func... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/L... |
package a_nodes_h.Support is
-- Records written in good Ada style should already have default values for
-- their components. a_nodes_h.ads is generated from C, so this package
-- supplies constant records for safe initialization.
package ICE renames Interfaces.C.Extensions;
package ICS renames Interfac... |
with
lace.Subject.local;
package gel.Keyboard.local
--
-- Provides a concrete keyboard.
--
is
type Item is limited new lace.Subject.local.item
and gel.Keyboard.item with private;
type View is access all Item'class;
package Forge
is
function to_Keyboard (of_Name : in... |
with Types; use Types;
package Partial_Product_Impl_2 with
SPARK_Mode,
Ghost
is
function Partial_Product_Rec
(X, Y : Integer_255;
J : Product_Index_Type;
K : Index_Type)
return Long_Long_Integer
is
(if K = Extended_Index_Type'Max(J - 9, 0)
then
(if J mod 2 = 0 ... |
with STM32_SVD; use STM32_SVD;
with Interfaces; use Interfaces;
generic
type Buffer_Size_Type is range <>;
type Buffer_Type is array (Buffer_Size_Type) of Byte;
type Tag_Type is (<>);
package TLV is
-- type Data_Types is (False, True, Byte, Short, Long, Float, Double,
-- String, Timestamp, Durat... |
-----------------------------------------------------------------------
-- Util.Beans.Objects.Datasets -- Datasets
-- Copyright (C) 2013, 2018 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... |
-- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O G A ... |
with Piles;
-- Programme de test du module Pile.
procedure Test_Piles is
package Pile_Caractere is
new Piles (Capacite => 3, T_Element => Character);
use Pile_Caractere;
-- Initialiser une pile avec 'O' puis 'K' empilés dans la pile vide.
procedure Initialiser_Avec_OK (Pile : out T_Pile) is
... |
------------------------------------------------------------------------------
-- Copyright (c) 2013-2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with STM32_SVD; use STM32_SVD;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32GD.Startup;
with STM32GD.Vectors;
package body STM32GD.Board is
procedure Init is
begin
Clocks.Init;
RCC_Periph.AHBENR.IOPAEN := 1;
RCC_Periph.AHBENR.IOPBEN := 1;
RCC_Periph.AHBENR.IOPCEN := 1;
RCC_Peri... |
package Version with Preelaborate is
Current : constant String := "0.0.1";
private
end Version; |
-- SPDX-License-Identifier: MIT
--
-- Copyright (c) 2000 - 2018 Gautier de Montmollin
-- SWITZERLAND
--
-- 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... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Ada.Calendar; use Ada.Calendar;
with Ada.Calendar.Time_Zones; use Ada.Calendar.Time_Zones;
package Apsepp.Calendar is
Time_First : constant Time := Time_Of (Year => Year_Number'First,
... |
pragma Style_Checks (Off);
pragma Warnings (Off);
-------------------------------------------------------------------------
-- GLOBE_3D - GL - based, real - time, 3D engine
--
-- Copyright (c) Gautier de Montmollin/Rod Kay 2007
-- CH - 8810 Horgen
-- SWITZERLAND
-- Permission granted to use this so... |
package body Multidimensional_Array is
procedure test(f: FullTime; p : PartTime; a : Afternoons) is
x : Fulltime := (others => (others => false));
y : Afternoons := ((false, false, false, false), (false, false, false, true), (false, false, true, false), (false, true, false, false));
z : Integer :=... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with ZMQ.Sockets;
with ZMQ.Contexts;
with ZMQ.Messages;
with Ada.Text_IO; use Ada.Text_IO;
with AVTAS.LMCP.Types; use AVTAS.LMCP.Types;
with AVTAS.LMCP.ByteBuffers; use AVTAS.LMCP.ByteBuffers;
with Avtas.Lmcp.Factory;
procedure Test_Msg_Decode is
Ctx : ZMQ.Contexts.Context;
Sub : ZMQ.Sockets.So... |
procedure package_instantiation is
begin
begin
declare
generic package pkg is
x : integer := 0;
end pkg;
begin
declare
package p is new pkg;
begin
null;
end;
end;
end;
end package_instantiation;
|
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
--
-- SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from rp2040.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
-- Testbench manager. Allows the programmer to... |
with Interfaces.C;
package SDL_Ada_Sizes is
package C renames Interfaces.C;
-- SDL_Types.h
function Uint8_Size return C.int;
pragma Import (C, Uint8_Size, "Uint8_Size");
function Uint16_Size return C.int;
pragma Import (C, Uint16_Size, "Uint16_Size");
-- SDL_Events.h
function SDL_Act... |
-----------------------------------------------------------------------
-- net-utils -- Network utilities
-- 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 this file except in comp... |
-- Taken from #2925 submitted by @koenmeersman
package My_Package is
generic
type Num is digits <>;
package Conversions is
function From_Big_Real (Arg : Integer) return Num;
end Conversions;
type Missing_Tag is record
Num : Integer;
end record;
end My_Package;
|
-- 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 must retain the above copyright notice, t... |
with Tracks_Display; use Tracks_Display;
with Screen_Interface; use Screen_Interface;
with Drawing; use Drawing;
with Trains; use Trains;
with Fonts; use Fonts;
package body Railroad is
Block_Size : constant := 40; -- Pixels
-- Touch Areas
subtype Spawn_X is Screen_Interface.Width range
Width (Block_S... |
package body Global_Singleton is
--------------
-- Set_Data --
--------------
procedure Set_Data (Value : Integer) is
begin
Instance.Data := Value;
end Set_Data;
--------------
-- Get_Data --
--------------
function Get_Data return Integer is
begin
return Instance.Data;
... |
------------------------------------------------------------------------------
-- 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... |
with
openGL.conversions;
package body openGL.Light.directional
is
procedure inverse_view_Transform_is (Self : in out Item; Now : in Matrix_3x3)
is
use linear_Algebra;
begin
Self.Direction := Now * Normalised (Self.Site);
Self.halfplane_Vector := Normalised ( Normalised (Self.... |
with System;
with Interfaces.C.Extensions;
package Lv.Anim is
type Path_T is access function (Arg1 : System.Address) return Int32_T;
pragma Convention (C, Path_T);
type Fp_T is access procedure (Arg1 : System.Address; Arg2 : Int32_T);
pragma Convention (C, Fp_T);
type Cb_T is access procedure (Arg1 :... |
pragma License (Unrestricted);
-- extended unit
package Ada.Formatting is
-- Generic formatting functions more powerful than Ada.Text_IO.*_IO.
-- Also, the root type of Type_Set is declared in here.
pragma Pure;
type Form_Type is (Simple, Ada);
type Sign_Marks is array (-1 .. 1) of Character;
typ... |
-- Copyright (c) 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 required... |
with
any_Math.any_Computational;
package float_Math.Computational is new float_Math.any_Computational;
pragma Pure (float_Math.Computational);
|
with GNAT.Source_Info;
package Missing.AUnit.Assertions is
-- See https://github.com/AdaCore/aunit/issues/31
generic
type Element_T is (<>);
procedure Generic_Assert
(Actual, Expected : Element_T; Message : String;
Source : String := GNAT.Source_Info.File;
Line ... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ runtime field restriction handling --
-- |___/_|\_\_|_|____| by: Timm Felden ... |
-- { dg-do compile }
package body Discr20 is
function Get (X : Wrapper) return Def is
begin
return X.It;
end Get;
end Discr20;
|
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Generic_Array_Sort;
procedure Demo_Array_Sort is
function "+" (S : String) return Unbounded_String renames To_Unbounded_String;
type A_Composite is
record
Name : Unbounded_St... |
--===========================================================================
--
-- This package is the interface to the demo package showing examples
-- for the SH1107 OLED controller
--
--===========================================================================
--
-- Copyright 2022 (C) Holger Rodriguez
--
-- SP... |
with OpenAL.Buffer;
with OpenAL.Types;
package OpenAL.Context.Capture is
--
-- API
--
type Buffer_Size_t is range 2 .. 65536;
-- proc_map : alcCaptureOpenDevice
function Open_Device
(Name : in String;
Frequency : in Types.Frequency_t;
Format : in OpenAL.Context.Request_Format... |
package Modular3_Pkg is
type Int16_T is range -32768 .. 32767;
for Int16_T'Size use 16;
for Int16_T'Alignment use 1;
type Mod16_T is mod 2 ** 16;
for Mod16_T'Size use 16;
for Mod16_T'Alignment use 1;
end Modular3_Pkg;
|
-----------------------------------------------------------------------
-- AWA.Jobs.Models -- AWA.Jobs.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-spec.xhtml
-- Ada Generator: https://ada-gen.goog... |
package body agar.gui.widget.label is
package cbinds is
function allocate_polled
(parent : widget_access_t;
flags : flags_t;
fmt : cs.chars_ptr;
text : cs.chars_ptr) return label_access_t;
pragma import (c, allocate_polled, "AG_LabelNewPolled");
function allocate_polled_... |
with Ada.Characters.Handling;
with Ada.Strings.Fixed;
with Ada.Directories;
package body Dot is
------------
-- EXPORTED
------------
function To_ID_Type (Item : in Wide_String) return ID_Type is
begin
return To_ID_Type (Ada.Characters.Handling.To_String(Item));
end To_ID_Type;
-- NOT TASK... |
--
-- 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 Ada.Containers.Ordered_Maps;
package... |
with Ada.Text_IO;
procedure Hello is
package IO renames Ada.Text_IO;
digit: Integer := 4;
begin
if digit > 3 or else digit = 3 then
if digit < 5 then
IO.Put_Line("Hello, world!");
end if;
elsif digit < 2 then
IO.Put_Line("Hello, world!");
else
IO.Put_Line("Hello, world!");
end if;
end Hello;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
package types is
type Percent is delta 10.0 ** (-2) digits 5;
type Index is range 1 .. 100;
type Rod_Array is array (Index) of Percent;
type Kilojoule is delta 10.0 ** (-4) digits 8;
end types;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
--- libsrc/posix-unsafe_process_primitives.adb.orig 2017-05-16 10:40:58 UTC
+++ libsrc/posix-unsafe_process_primitives.adb
@@ -40,6 +40,7 @@ with POSIX.C,
POSIX.Implementation,
System,
System.Soft_Links,
+ System.Secondary_Stack,
Unchecked_Conversion;
package body POSIX.Unsafe_Process_Pri... |
-- { dg-do run }
-- { dg-options "-O2" }
procedure Opt14 is
type Rec is record
I1, I2, I3 : Integer;
end record;
type Ptr is access Rec;
P : Ptr := new Rec'(0,0,0);
procedure Sub (R : In Out Rec) is
begin
R.I3 := R.I3 - 1;
end;
begin
P.all := (1,2,3);
Sub (P.all);
if P.all /= (1,2,2) t... |
--===========================================================================
--
-- This package is the interface to the SH1107 OLED controller
--
--===========================================================================
--
-- Copyright 2022 (C) Holger Rodriguez
--
-- SPDX-License-Identifier: BSD-3-Clause
--
wi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.