content stringlengths 23 1.05M |
|---|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- Divide By Zero Detection
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Float_Text_Io; use Ada.Float_Text_Io;
with Ada.Integer_Text_Io; use Ada.Integer_Text_Io;
procedure Divide_By_Zero is
Fnum : Float := 1.0;
Fdenom : Float := 0.0;
Fresult : Float;
Inum : Integer := 1;
Idenom : Integer := 0;
Iresul... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Unchecked_Deallocation;
package body Yaml.Transformation is
procedure Adjust (Object : in out Reference) is
begin
Increase_Refcount (Object.Data);
end Adjust;
procedure Fi... |
package GESTE_Fonts.FreeMono18pt7b is
Font : constant Bitmap_Font_Ref;
private
FreeMono18pt7bBitmaps : aliased constant Font_Bitmap := (
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 1... |
with Gela.Classificators;
with Gela.Character_Class_Buffers; use Gela;
with Asis.Gela.Parser.Tokens;
package Asis.Gela.Scanner_Tables is
subtype Token is Asis.Gela.Parser.Tokens.Token;
Error : constant Token := Asis.Gela.Parser.Tokens.Error;
subtype Character_Class is Character_Class_Buffers.Character_Class
... |
--
-- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
-- Plantower Particulate Matter Sensor
-- https://www.espruino.com/datasheets/PMS7003.pdf
--
-- This driver is compatible with all of the Plantower PM2.5 sensors:
-- PMS1003
-- PMS3003
-- PMS5003
-- ... |
type Interval is record
Lower : Float;
Upper : Float;
end record;
|
-- parse_args-usage.adb
-- A simple command line option parser
-- Copyright (c) 2014 - 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 notice appear in al... |
--
-- 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 ... |
-------------------------------------------------------------------------------
-- package body LCG_Rand, Linear Congruential Generator
-- Copyright (C) 2018 Jonathan S. Parker
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that... |
--PRÁCTICA 2: César Borao Moratinos (chat_client)
with Ada.Text_IO;
with Chat_Messages;
with Lower_Layer_UDP;
with Ada.Command_Line;
with Client_Collections;
with Ada.Strings.Unbounded;
procedure Chat_Client is
package ATI renames Ada.Text_IO;
package CM renames Chat_Messages;
package LLU renames Lower_... |
with Ada.Unchecked_Deallocation;
with PB_Support.IO;
with PB_Support.Internal;
package body Google.Protobuf.Wrappers is
function Length (Self : Double_Value_Vector) return Natural is
begin
return Self.Length;
end Length;
procedure Clear (Self : in out Double_Value_Vector) is
begin
Self.Len... |
with Ada.Text_IO;
with Ada.Containers.Vectors;
package body Problem_40 is
package IO renames Ada.Text_IO;
package Natural_Vector is new Ada.Containers.Vectors(Index_Type => Natural, Element_Type => Natural);
procedure Solve is
bases : Natural_Vector.Vector;
procedure Digit_At(location: in Positive;... |
with Offmt; use Offmt;
procedure Example is
X : constant Integer := 42;
pragma Unreferenced (X);
Str : constant String := "lol";
begin
Offmt.Log ("Test X: {u32:X}");
Offmt.Log ("Test X + 1: {u32:X + 1}");
Log ("Test X * 10: {u32:X * 10}");
Log ("Test hex: 0x{xu32:X - 1}");
Log ("Test binary: ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Interfaces.C.Extensions;
with DDS.DataReader;
with Dds;
package Replier is
type RTI_Connext_ReplierParams is new Integer;
type RTI_Connext_EntityParams is new Integer;
type RTI_Connext_Replier is abstract tagged record
null;
end record;
procedure RTI_Connext_Replier_On_Data_Available (Listen... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Interfaces; use Interfaces;
generic
Register_Size : Natural := 4;
package Opcode_Helper is
type Registers is
array (Natural range 0 .. Register_Size - 1) of Unsigned_64;
function Execute_Instruction
(Op : String;
Reg : Registers;
A, B, C : Unsigned_64)
return Registe... |
-- 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;
-- Register block to control RTC
package RP_SV... |
-- { dg-do compile }
with Layered_Abstraction_P;
with layered_abstraction;
procedure layered_instance is
package s1 is new Layered_Abstraction_P (Integer, 15);
package S2 is new Layered_Abstraction_P (Integer, 20);
package Inst is new layered_abstraction (S1, S2);
begin
null;
end;
|
with Ada.Strings.Unbounded;
with Ada.Containers.Indefinite_Doubly_Linked_Lists;
with Ada.Containers.Indefinite_Hashed_Maps;
with Interfaces;
private with System.Storage_Elements;
private with Ada.Containers.Vectors;
package Offmt_Lib is
Log_Root_Pkg : constant Wide_Wide_String := "Offmt";
type Format_Kind i... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
with Slice6_Pkg; use Slice6_Pkg;
procedure Slice6 is
procedure Send (V_LENGTH : SHORT_INTEGER) is
V : Integer;
V_BLOCK : T_BLOCK (1 .. 4096);
for V_BLOCK use at V'Address;
V_MSG : T_MSG ;
begin
V_MSG := (V_LENGTH, 1, V_BLOCK (1 .. V_LENGTH)... |
-- { dg-do compile }
package body Check1 is
function FD (X : access R) return P2 is
begin
return P2 (X.Disc);
end FD;
end Check1;
|
with Protypo.Api.Interpreters;
with Protypo.Api.Consumers.File_Writer;
with Protypo.Api.Engine_Values.Basic_Array_Wrappers;
-- with User_Records;
with Integer_Arrays;
with Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Exceptions;
with Protypo.Api.Engine_Values.Table_Wrappers;
procedure Test_Tabelle i... |
-- { dg-do run }
procedure capture_value is
x : integer := 0;
begin
declare
z : integer renames x;
begin
z := 3;
x := 5;
z := z + 1;
if z /= 6 then
raise Program_Error;
end if;
end;
end;
|
with Ada.Text_IO;
with Ada.IO_Exceptions;
with GNAT.Sockets;
procedure echo_server_multi is
-- Multiple socket connections example based on Rosetta Code echo server.
Tasks_To_Create : constant := 3; -- simultaneous socket connections.
-------------------------------------------------------------------------------
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- C64104C.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 (C) 2020 by Heisenbug Ltd. (gh+si_units@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 S... |
package body Crawler.Entities is
function Make(Symbol : Standard.Character;
Row : Curses.Line_Position;
Col : Curses.Column_Position) return Character
is
begin
return (Symbol => Symbol, Row => Row, Col => Col);
end Make;
procedure Set_Position(This : out Characte... |
with Lv.Style;
with Lv.Area;
with Lv.Objx.Page;
with Lv.Objx.Btn;
with Lv.Objx.Cont;
with System;
package Lv.Objx.Win is
subtype Instance is Obj_T;
type Style_T is (Style_Bg,
Style_Content_Bg,
Style_Content_Scrl,
Style_Sb,
Style_He... |
-- { dg-do run }
procedure Sizetype4 is
type Float_Array is array (Integer range <>) of Float;
NoFloats : Float_Array (1 .. 0);
procedure Q (Results : Float_Array := NoFloats) is
type Reply_Msg is
record
Request_Id : Integer;
Status : Integer;
Data ... |
package body DFA
with SPARK_Mode => On
is
function F1 (X : in Integer) return Integer
is
Tmp : Integer;
begin
-- The most basic form of DFA bug - Tmp is definitely not initialized. We
-- call this an Unconditional Data Flow Error
return X + Tmp;
end F1;
function F2 (X : in ... |
package body Selection with SPARK_Mode is
procedure Sort (A: in out Arr) is
Tmp: Integer;
Min: Integer;
begin
for I in Integer range A'First .. A'Last loop
Min := I;
for J in Integer range I + 1 .. A'Last loop
pragma Loop_Invariant (for all K in I .. J - 1 => A (Min) <= A (K... |
with
bullet_c.Binding,
c_math_c.Vector_2,
c_math_c.Vector_3,
c_math_c.Conversion,
c_math_c.Triangle,
ada.unchecked_Deallocation,
ada.Unchecked_Conversion,
interfaces.C;
package body bullet_Physics.Shape
is
use c_math_c.Conversion,
bullet_c.Binding,
Interfaces... |
package body Benchmark.Matrix.MM is
function Create_MM return Benchmark_Pointer is
begin
return new MM_Type;
end Create_MM;
procedure Run(benchmark : in MM_Type) is
msize : constant Address_Type := Get_Size(benchmark);
srca : constant Address_Type := 0 * msize;
srcb : constant A... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with Ada.Directories;
with Ada.Environment_Variables;
with League.Application;
with League.String_Vectors;
with League.Strings;
with Ada_Kernels;
with J... |
package body Matrices is
procedure Swap_Rows (From : in out Matrix; First, Second : in Positive) is
Temporary : Element_Type;
begin
for Col in From'Range (2) loop
Temporary := From (First, Col);
From (First, Col) := From (Second, Col);
From (Second, Col) := Tempora... |
package World is
type Boolean_Matrix is array (Positive range <>, Positive range <>) of Boolean;
type World_Grid (Size : Positive) is record
Grid1 : Boolean_Matrix (1 .. Size, 1 .. Size);
Grid2 : Boolean_Matrix (1 .. Size, 1 .. Size);
Step : Natural;
end record;
function New_World (Size... |
-- { dg-do run }
with Bug_Elaboration_Code; use Bug_Elaboration_Code;
procedure Check_Elaboration_Code is
begin
if I /= J then
raise Program_Error;
end if;
end Check_Elaboration_Code;
|
with agar.core.event;
with agar.gui.widget.button;
with agar.gui.widget.tlist;
with agar.gui.window;
package agar.gui.widget.ucombo is
use type c.unsigned;
type flags_t is new c.unsigned;
UCOMBO_HFILL : constant flags_t := 16#01#;
UCOMBO_VFILL : constant flags_t := 16#02#;
UCOMBO_EXPAND : constant flags_... |
gcc -c main.c
gnatmake -c exported.adb
gnatbind -n exported.ali
gnatlink exported.ali main.o -o main
|
with datos;
use datos;
with Buscar_Posicion_De_Insercion, Desplazar_Una_Posicion_A_La_Derecha;
procedure Ordenar_Por_Insercion (L : in Lista_Enteros; L_Ordenada : out Lista_Enteros) is
-- pre:
-- post: L_ordenada contiene los valores de L en orden ascendente
pos, PosActual : Integer;
begin
L_Ordenada := L... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
package openGL.Errors
--
-- Provides utilities for displaying openGL errors.
--
is
function Current return String;
--
-- Returns a descriptive string of the last occurring openGL error.
-- Returns "", when no error exists.
-- Clears any existing error.
procedure log (Prefix : in String := "");
... |
-- SPDX-FileCopyrightText: 2019-2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Complete_Contexts.Assignment_Statements;
with Program.Complete_Contexts.Call_Statements;
with Program.Complete_Contexts.Case_Statements;
w... |
package GDNative.Console is
---------
-- Put --
---------
procedure Put (Item : in Wide_String);
end; |
--
--
--
package body Sessions is
procedure Append_State_To_Sorted (State : in States.State_Access);
Sorted_Vector : State_Vectors.Vector := State_Vectors.Empty_Vector;
procedure Append_State_To_Sorted (State : in States.State_Access)
is
begin
Sorted_Vector.Append (State);
end Append_State_To... |
with System;
package Init7 is
type Nested1 is record
C1 : Integer;
C2 : Integer;
C3 : Integer;
end record;
for Nested1'Bit_Order use System.Low_Order_First;
for Nested1'Scalar_Storage_Order use System.Low_Order_First;
for Nested1 use record
C1 at 0 range 0 .. 31;
C2 at 4 range 0 .. 31;
... |
-- This spec has been automatically generated from STM32F103.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.GPIO is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CRL_MODE0_Field is STM32_SVD.UI... |
with Ada.Numerics.Discrete_Random;
with Bitmaps.RGB;
package body ImageOps is
package Random_Luminance is new Ada.Numerics.Discrete_Random
(Bitmaps.Luminance);
Random_Luminance_G : Random_Luminance.Generator;
function Manhattan_Distance (A, B : in Bitmaps.RGB.Pixel) return Natural is
(abs (Intege... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO, Ada.Numerics.Discrete_Random;
use Ada.Text_IO;
package body tools is
protected body Output is
procedure Puts(str: String; num:Natural := 0) is
begin
Put(str);
if num > 0 then
New_Line; -- most csak 0 vagy 1 uj sor
end if;
end;
... |
-- { dg-do compile }
package body Pack15 is
procedure Transfer is
begin
O.Status_Flags := Status_Flags;
end;
end Pack15;
|
with arbre_binaire;
with Ada.Text_IO ; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure test_arbre_binaire is
procedure Afficher_Entier ( entier : Integer) is
begin
Put( entier );
end Afficher_Entier ;
package arbre_binaire_entier is
new arbre_binaire( I... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Unchecked_Deallocation;
with Ada.Unchecked_Conversion;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with Interfaces.C; use Interfaces.C;
with System; use System;
with Xlib;
with xcb; use xc... |
package IntList is
type T is limited private;
function IsInList( List: in T; Number: in Integer ) return Boolean;
procedure Insert( List: in out T; Number: in Integer );
procedure Remove( List: in out T; Number: in Integer );
procedure Print( List: in T );
private
type IntList_Node;
... |
with Message.Reader; use Message.Reader;
package body Message.Post is
procedure Quote (Msgid : Unbounded_String) is
FileName, scratch : Unbounded_String;
File : File_Type;
Sender, HeaderType,HeaderText : Unbounded_String;
begin
FileName := "messages/"& Msgid &".msg";
Text_Buffer.... |
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, Luke A. Guest
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising f... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
--
-- Many consider a "Utilities" package bad style and maybe it is true.
-- However, often you need some "odds and ends" stuff that is not
-- strictly related to the main code.
--
with Ada.Streams.Stream_IO;
use Ada;
package Utilities is
-- A generic function and a generic procedure to write "stuff" to
-- a str... |
with Deferred_Constant;
procedure Subprogram_Unit is
J : constant Integer := Deferred_Constant.I;
begin
null;
end Subprogram_Unit;
|
with Ada.Calendar; use Ada.Calendar;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Unchecked_Conversion;
with AWS.MIME;
with AWS.Messages;
with AWS.Utils; use AWS.Utils;
with Fractal;
package body Router_Cb is
procedure Init
is
begin
Float_Julia_Fractal.Init (Viewport => Viewport);
Fixed_Julia... |
with
eGL.Pointers,
eGL.NativeDisplayType,
Interfaces.C.Strings,
System;
package eGL.Binding
is
function eglGetError return eGL.EGLint;
function eglGetDisplay
(display_id : in eGL.NativeDisplayType.Item) return eGL.EGLDisplay;
function eglInitialize
... |
------------------------------------------------------------------------------
-- randoms.adb
--
-- Body for the simple random number generation package. The implementation
-- uses a single private random number generator for floats; this generator is
-- called to obtain both integers and floats by using approp... |
-----------------------------------------------------------------------
-- net-protos-Ipv4 -- IPv4 Network protocol
-- 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 fil... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Clauses;
with Program.Elements.Identifiers;
with Program.Lexical_Elements;
with Pr... |
-- Copyright © by Jeff Foley 2021-2022. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
-- SPDX-License-Identifier: Apache-2.0
local json = require("json")
name = "CommonCrawl"
type = "crawl"
local urls = {}
function start()
set_rate_limit(7... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package body Tc is
use Aunit;
function Name (Test : Test_Case) return AUnit.Message_String is
begin
return Format ("test");
end Name;
procedure Test_Routine (Tc : in out AUnit.Test_Cases.Test_Case'Class) is
begin
null;
end;
procedure Register_Tests (Test : in out Test_Case) is
beg... |
{"version_code":552023,"content":"
<p>.</p>
<li>.</li>
","url":""
}
|
-- This file is generated by SWIG. Do *not* modify by hand.
--
with llvm;
with Interfaces.C.Strings;
package LLVM_bit_Reader.Binding is
function LLVMParseBitcode
(MemBuf : in llvm.LLVMMemoryBufferRef;
OutModule : access llvm.LLVMModuleRef;
OutMessage : access Interfaces.C.Strings.chars_ptr)... |
package Libtcod.Maps.FOV is
type Algorithm_Type is
(
-- Trace multiple Bresenham lines along the perimeter
-- Based on: http://www.roguebasin.com/index.php?title=Ray_casting
Fov_Basic,
-- Cast Bresenham line shadows on a per-tile basis
-- Based on: http://www.oocities.org/temerr... |
# Turns capslock off
ifj caps turn_off
goto off_done
:turn_off
toggle caps
:off_done
# Turn light on depending on caps state
:light_off
light off
goto loop
:light_on
light on
:loop
wait 100
ifj caps light_on
goto light_off
|
with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure Bubble_Sort is
type Int_Array is array (Positive range <>) of Integer;
procedure Do_Bubble_Sort(A: in out Int_Array) is
Did_Swap: Boolean;
Tmp: Positive;
begin
loop
Did_Swap := false;
for I in Integer ran... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package SDL_SDL_keysym_h is
-- unsupported macro: KMOD_CTRL (KMOD_LCTRL|KMOD_RCTRL)
-- unsupported macro: KMOD_SHIFT (KMOD_LSHIFT|KMOD_RSHIFT)
-- unsupported macro: KMOD_ALT (KMOD_LALT|KMOD_RALT)
-- unsupported macro: KM... |
------------------------------------------------------------------------------
-- Copyright (c) 2014-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-----------------------------------------------------------------------
-- css -- Ada CSS Library
-- 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 file except in compliance w... |
-- 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.Buffers;
with GL.Files;
with GL.Fixed.Matrix;
with GL.Immediate;
with GL.Objects.Programs;
with GL.Objects.Shaders.Lists;
with GL.Types.Colors;
with GL_Test.Display_Backend;
... |
with agar.core.types;
with agar.gui.widget;
with agar.gui.rect;
package agar.gui.draw is
procedure box
(widget : agar.gui.widget.widget_access_t;
rect : agar.gui.rect.rect_t;
color : agar.core.types.uint32_t);
pragma import (c, box, "agar_draw_box");
procedure box_rounded
(widget : agar.g... |
package J_String_Pkg is
subtype J_Length is Natural range 0 .. 1024;
type J_String(size : J_Length := 20) is private;
-- functions
function Create(Str : String) return J_String;
function Value_Of(S : J_String) return String;
function Char_At(S : J_String; P : Positive) return Character;
function Compar... |
-- 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 ... |
-- Generated by a script from an "avr tools device file" (atdf)
with HAL; use HAL;
with System;
package body SAM.Main_Clock is
Base_Address : constant := 16#40000800#;
AHBMASK : UInt32
with Volatile,
Address => System'To_Address (Base_Address + 16#10#);
APBAMASK : UInt32
with Volatile,
... |
package body Logging is
task body Log is
Verbosity : Verbosity_Level := Log_Error;
begin
loop
select
accept Set_Verbosity (User_Verbosity : Verbosity_Level) do
Verbosity := User_Verbosity;
end Set_Verbosity;
or
accept Chat (Text : Wi... |
-------------------------------------------------------------------------------
-- --
-- Coffee Clock --
-- --
... |
-------------------------------------------------------------------------------
-- Copyright (c) 2017, Daniel King
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
-- * Redistributions of s... |
private with Ada.Numerics;
with GL.Types;
with Orka.Transforms.Doubles.Matrices;
with Orka.Transforms.Doubles.Quaternions;
with Orka.Transforms.Doubles.Vectors;
with Planets.Earth;
package Coordinates is
package Quaternions renames Orka.Transforms.Doubles.Quaternions;
package Vectors renames Orka.Transfo... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Ada.Strings.Fixed;
package body tracker is
procedure Percentage (Object : in out Collection) is
begin
for I in Fixed_Collection'First .. Fixed_Collection'First + Object.Items_Count - 1 loop
Object.Counter (Object.Items(I).state) := Object.Counter(Object.Items(I).state) + 1;
end loop;
e... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
package body Activity is
procedure Printf (String : in Interfaces.C.char_array);
pragma Import (C, Printf, "printf");
procedure Thr1_Job is
Ret : Return_Code_Type;
begin
loop
Printf ("beep ");
Timed_Wait (1000, Ret);
end loop;
end Thr1_Job;
end Activity;
|
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with CUPS.bits_stat_h;
with System;
with Interfaces.C.Strings;
private package CUPS.cups_dir_h is
-- * "$Id: dir.h 10996 2013-05-29 11:51:34Z msweet $"
-- *
-- * Public directory definitions for CUPS.
-- *
-- * This set of... |
package body Memory.Option is
function Create_Option return Option_Pointer is
result : constant Option_Pointer := new Option_Type;
begin
return result;
end Create_Option;
function Clone(mem : Option_Type) return Memory_Pointer is
result : constant Option_Pointer := new Option_Type'(mem)... |
with System.Storage_Elements;
package TLSF.Allocator is
package SSE renames System.Storage_Elements;
type Pool is limited private;
function Init_Pool (Addr : System.Address;
Len : SSE.Storage_Count)
return Pool;
function Memory_Allocate (Sz : SSE.Storage... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Text.Pool;
with Yaml.Events.Store;
private with Yaml.Events.Context;
private with Yaml.Transformator.Annotation;
package Yaml.Transformator.Annotation_Processor is
type Instance (<>) is limit... |
------------------------------------------------------------------------------
-- Copyright (c) 2015-2019, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with Menus; use Menus;
package AdaPhysics2DDemo is
procedure Start(This : in out Menu);
end AdaPhysics2DDemo;
|
-----------------------------------------------------------------------
-- awa-storages-modules -- Storage management module
-- Copyright (C) 2012, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may n... |
-----------------------------------------------------------------------
-- util-dates-formats -- Date Format ala strftime
-- Copyright (C) 2011, 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 th... |
with Extraction.Node_Edge_Types;
with Ada.Text_IO;
package body Extraction.File_System is
use type VFS.File_Array_Access;
use type VFS.Filesystem_String;
function All_Relevant_Files (Directory : VFS.Virtual_File) return VFS.File_Array_Access
with Pre => Directory.Is_Directory
-- Only analyse releva... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.