text stringlengths 4 1.04M |
|---|
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
with Ada.Command_Line;
with Templates_Parser;
with CLIC.TTY;
with Filesystem;
with Commands;
with Ada.Characters.Handling;
with Globals;
package body Blueprint is
package IO renames Ada.Text_IO;
package TT renames CLIC.TTY;
package FS renames Filesystem;
function Get_Blueprint_Folder re... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- util-properties-tests -- Tests for properties
-- Copyright (C) 2009, 2010, 2011, 2014, 2017, 2018, 2020, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the... |
--
-- This file is part of the coreboot project.
--
-- Copyright (C) 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; version 2 of the License.
--
-- This ... |
with
any_Math.any_Algebra;
package float_Math.Algebra is new float_Math.any_Algebra;
pragma Pure (float_Math.Algebra);
|
<?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="... |
with Ada.Strings.Unbounded;
use Ada.Strings.Unbounded;
package P_StructuralTypes is
subtype T_Key is String (1..8);
type T_Bit is mod 2
with Size => 1;
type T_BinaryUnit is array (Positive range <>) of T_Bit
with Default_Component_Value => 0;
pragma Pack (T_BinaryUnit);
subtyp... |
with STM32_SVD; use STM32_SVD;
with STM32_SVD.NVIC; use STM32_SVD.NVIC;
with STM32_SVD.SCB; use STM32_SVD.SCB;
with STM32_SVD.PWR; use STM32_SVD.PWR;
with STM32_SVD.EXTI; use STM32_SVD.EXTI;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.RTC; use STM32_SVD.RTC;
package body STM32GD.RTC is
Days_Per_Month : c... |
-- Copyright 2005-2020 Free Software Foundation, Inc.
--
-- 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 3 of the License, or
-- (at your option) any later version.
--
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- ... |
with Ada.Text_IO;
with Ada.Streams;
with GNAT.Sockets;
package body Emulator_8080.Vram_Sender is
Address : GNAT.Sockets.Sock_Addr_Type;
procedure Initialize(Port : in Natural; Ip_Address : in String) is
begin
Address := GNAT.Sockets.Sock_Addr_Type'(Family => GNAT.Sockets.Family_Inet,
... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
-------------------------------------------------------------------------------
-- Copyright (C) 2020-2030, per.s.sandberg@bahnhof.se --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
... |
with Ada.Real_Time;
with ACO.CANopen;
with ACO.Messages;
with ACO.OD;
with ACO.SDO_Sessions;
private with Interfaces;
private with ACO.Log;
private with ACO.Utils.Generic_Alarms;
private with ACO.Configuration;
private with ACO.SDO_Commands;
private with ACO.OD_Types;
package ACO.Protocols.Service_Data is
SDO_S2C... |
-- Copyright 2008-2017 Free Software Foundation, Inc.
--
-- 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 3 of the License, or
-- (at your option) any later version.
--
-- ... |
with Ada.Unchecked_Conversion;
with ACO.Utils.Byte_Order;
package body ACO.Generic_Entry_Types is
use ACO.Utils.Byte_Order;
function Swap (X : Byte_Array) return Byte_Array is
(Byte_Array (Swap_Bus (Octets (X))))
with Inline;
function Read (This : Entry_Type) return Item_Type is
(This.Data);
... |
package Notch_Example is
-- This hierarchy provides an example of how to write a notch
-- filter using the library fakedsp. The main procedure is
-- Notch_Example.Main, the callback implementing the filter is in
-- Notch_Example.Filters.
end Notch_Example;
|
with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Numerics.Float_Random;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Numerics.Float_Random;
procedure exercise7 is
Count_Failed : exception; -- Exception to be raised when counting fails
Gen : Generator; -- Random number generator
protected typ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Packed_Arrays;
package System.Compare_Array_Signed_16 is
pragma Preelaborate;
-- It can not be Pure, subprograms would become __attribute__((const)).
type Integer_16 is range -(2 ** 15) .. 2 ** 15 - 1;
for Integer_1... |
-- Task sink
-- Binds PULL socket to tcp://localhost:5558
-- Collects results from workers via that socket
with Ada.Command_Line;
with Ada.Text_IO;
with GNAT.Formatted_String;
with Ada.Calendar;
with ZMQ;
procedure TaskSink2 is
use type Ada.Calendar.Time;
use type GNAT.Formatted_String.Formatted_String;
... |
-- C35504B.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 2012-2021 Free Software Foundation, Inc.
--
-- 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 3 of the License, or
-- (at your option) any later version.
--
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- mgrep -- Mail grep
-- Copyright (C) 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 file except in compliance with ... |
-- Smart_Ptrs_Tests
-- Unit tests for Auto_Counters Smart_Ptrs package
-- Copyright (c) 2016, James Humphry - see LICENSE file for details
private with Ada.Strings.Unbounded;
with AUnit; use AUnit;
with AUnit.Test_Cases; use AUnit.Test_Cases;
with Counters_Spec;
generic
with package Counters is new Counters_Spe... |
with Ada.Text_IO;
with ship;
with Planet;
with Player;
with Rule;
procedure main is
my_ship: ship.Ship_Data := ship.is_StarShip;
my_homeworld : Planet.Object := Planet.Build ("Earth", 1, 3, 1);
your_homeworld : Planet.Object := Planet.Build ("Moon", 1, 3, 1);
player1 : Player.Object := Player.Build ("h... |
-- Copyright 2017 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 = "Bing"
type = "scrape"
function start()
setratelimit(1)
end
function vertical(ctx, domain)
for i=1,201,10 do
local ok... |
-- C97203A.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 Aliasing;
procedure ATest
is
begin
Aliasing.Test;
end ATest;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Greet_5b is
I : Integer := 1; -- Variable declaration
-- ^ Type
-- ^ Initial value
begin
loop
Put_Line ("Hello, World!" & Integer'Image (I));
exit when I = 5; -- Exit statement
-- ^ Boolean condition
-- Assig... |
with Ada.Text_IO;
procedure Program is
Comment_Characters : String := "#;";
begin
loop
declare
Line : String := Ada.Text_IO.Get_Line;
begin
exit when Line'Length = 0;
Outer_Loop : for I in Line'Range loop
for J in Comment_Characters'Range loop
if Comment_Characters(J) = Line(I) then... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Ada.Environment_Variables; use Ada.Environment_Variables;
with Ada.Text_IO; use Ada.Text_IO;
with Interfaces; use Interfaces;
with Interfaces.C; use Interfaces.C;
with System; use System;
with Ada.Unchecked_Conversion;
procedure outcomes is
typ... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- Copyright (C) 2015-2021 Free Software Foundation, Inc.
--
-- 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 3 of the License, or
-- (at your option) any later version.
--... |
with GNAT.OS_Lib;
with TOML.File_IO;
with Simple_Logging;
package body CLIC.Config.Load is
package Trace renames Simple_Logging;
use TOML;
---------------
-- From_TOML --
---------------
procedure From_TOML (C : in out CLIC.Config.Instance;
Origin : String;
... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- util-processes-tests - Test for processes
-- 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 file exc... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with SDL_SDL_stdinc_h;
with Interfaces.C.Strings;
package SDL_SDL_cdrom_h is
SDL_MAX_TRACKS : constant := 99; -- ../include/SDL/SDL_cdrom.h:48
SDL_AUDIO_TRACK : constant := 16#00#; -- ../include/SDL/SDL_cdrom.h:54
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.