content stringlengths 23 1.05M |
|---|
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package fterrdef is
--***************************************************************************
-- *
-- * fterrdef.h
-- *
-- * FreeType error codes (specification).
-- *
-- * Copyright (C) 2002-2020 by
-- * David Tur... |
with Ada.Containers.Vectors,
Ada.Execution_Time,
Ada.Exceptions,
Ada.Integer_Text_IO,
Ada.Real_Time,
Ada.Text_IO;
with Utils;
procedure Main is
use Ada.Containers,
Ada.Execution_Time,
Ada.Real_Time,
Ada.Text_IO;
use Utils;
type Coordinate_2D is record
Line... |
-- { dg-do compile }
procedure test_ai254 is
function Func
(Obj : not null access protected function (X : Float) return Float)
return not null access protected function (X : Float) return Float is
begin
return null;
end;
begin
null;
end;
|
with Ada.Text_IO;
use Ada.Text_IO;
package body def_monitor is
protected body Monitor is
entry menjar when (assegut = true and servit = true) is
begin
Put_Line("--------------> {Nombre Enano} Menjant!!!");
assegut := false;
servit := false;
end menjar;
entry put_honey when (jar < MAX) is
begin
... |
pragma License (Unrestricted);
-- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux)
package System.Native_Environment_Variables is
pragma Preelaborate;
subtype Cursor is Address;
function Value (Name : String) return String;
function Value (Name : String; Default : String) return Stri... |
package Discr29 is
type Rec1 is record
I1 : Integer;
I2 : Integer;
I3 : Integer;
end record;
type Rec2 is tagged record
I1 : Integer;
I2 : Integer;
end record;
type Rec3 (D : Boolean) is record
case D is
when True => A : Rec1;
when False => B : Re... |
package body Stack is
procedure Push_Stack(Stack : in out Stack_Record; Element : Address) is
begin
Stack.Arr(Stack.Size) := Element;
Stack.Size := Stack.Size + 1;
end Push_Stack;
function Pop_Stack(Stack : in out Stack_Record) return Address is
begin
Stack.Size := Stack.Size - 1;
... |
-- C36204B.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 C.winnls;
with C.winnt;
package body System.Native_Locales is
use type C.signed_int;
use type C.winnt.WCHAR;
-- implementation
function Language return ISO_639_Alpha_2 is
Buffer : C.winnt.WCHAR_array (0 .. 15);
R : C.signed_int;
begin
R := C.winnls.GetLocaleInfo (
C.win... |
with Radar_Internals; use Radar_Internals;
procedure Main is
-- You are in charge of developping a rotating radar for the new T-1000
-- Some of the radar code is already in place, it is just missing the
-- high-level interface to handle incoming objects.
--
-- In this lab, you are provided with a richer... |
with System; use System;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Calendar; use Ada.Calendar;
with Ada.Unchecked_Deallocation; use Ada;
with Interfaces;
procedure Rate_Counter is
pragma Priority (Max_Priority);
package Duration_IO is new Fixed_IO (Duration);
... |
WITH TEXT_IO; USE TEXT_IO;
PROCEDURE UseGenericInstance IS
PACKAGE INT IS NEW INTEGER_IO(INTEGER);
USE INT;
FILE : FILE_TYPE;
ITEM : INTEGER := 0;
BEGIN
GET (ITEM => ITEM, WIDTH => 0);
PUT (FILE => FILE, ITEM => ITEM, WIDTH => 4, BASE => 4);
END UseGenericInstance;
|
package Impact.D3
--
-- Provides 3D physics simulations.
--
is
pragma Pure;
type Vector_3_array is array (Positive range <>) of aliased math.Vector_3;
type Flags is mod 2**64;
-- C-ish types
--
-- (These may be removed during completion of Ada port).
type Real_array is ar... |
-- Copyright 2016 Steven Stewart-Gallus
--
-- 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 by applicable law or agr... |
-- POK header
--
-- The following file is a part of the POK project. Any modification should
-- be made according to the POK licence. You CANNOT use this file or a part
-- of a file for your own project.
--
-- For more information on the POK licence, please see our LICENCE FILE
--
-- Pleas... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 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 Types;
package Reader is
-- This is the Scanner/Parser (returns an AST)
function Read_Str (S : String) return Types.Scanner_Handle;
private
procedure Lex_Init (S : String);
function Read_Form return Types.Scanner_Handle;
end Reader;
|
-- C74402B.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.Text_IO;
with Polygons;
procedure Main is
package Float_IO is new Ada.Text_IO.Float_IO (Float);
Test_Points : Polygons.Point_List :=
(( 5.0, 5.0),
( 5.0, 8.0),
(-10.0, 5.0),
( 0.0, 5.0),
( 10.0, 5.0),
( 8.0, 5.0),
( 10.0, 10.0));
Square : Polygon... |
-- Copyright 2017 Steven Stewart-Gallus
--
-- 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 by applicable law or agr... |
-- with i.physics.Object;
-- with i.physics.Joint;
with ada.strings.unbounded;
package physics.Motor is
type Item is abstract tagged
record
Name : ada.strings.unbounded.unbounded_String;
is_Enabled : Boolean := False;
end record;
proced... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
package body Plugin
is
function Words (Str : Unbounded_String) return Vector
is
Result : Vector;
Word : Unbounded_String;
begin
for I in 1 .. Length (Str) loop
if Element (Str, I) /= ' ' and I /= Length (Str) then
Append (Word, Element (Str, I));
else
... |
------------------------------------------------------------------------------
-- --
-- AUDIO / RIFF / WAV --
-- --
-- ... |
package body Partitions is
-- compare number sets (not provided)
function "<" (Left, Right : Number_Sets.Set) return Boolean is
use type Ada.Containers.Count_Type;
use Number_Sets;
Left_Pos : Cursor := Left.First;
Right_Pos : Cursor := Right.First;
begin
-- compare each element, ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Roman_Numeral_Test is
function To_Roman (Number : Positive) return String is
subtype Digit is Integer range 0..9;
function Roman (Figure : Digit; I, V, X : Character) return String is
begin
case Figure is
when 0 => return "";
... |
with System.Machine_Code; use System.Machine_Code;
with STM32GD.Board;
with STM32GD.Systick; use STM32GD.Systick;
with Drivers.Text_IO;
with Startup;
procedure Main is
package Text_IO is new Drivers.Text_IO (USART => STM32GD.Board.USART);
begin
STM32GD.Board.Init;
Text_IO.Put_Line ("Starting SYSTICK...");
... |
-- C48004B.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... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
-- SipHash.General_SPARK
-- Implementing SipHash over a general private type
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
with Integer_Storage_IO;
-- This generic function will calculate SipHash for any private type of definite
-- size
generic
type T is private;
type Hash_Type is mod <>;... |
with TestBehaviour, TestPosition, TestEnvironment, TestSLModes;
use TestBehaviour, TestPosition, TestEnvironment, TestSLModes;
with Ada.Text_IO;
use Ada.Text_IO;
procedure run_all is
begin
put("TestPosition...");
TestPosition.run_test;
put_line("OK");
put("TestBehaviour...");
TestBehaviour.run_test;
put... |
pragma Warnings (Off);
pragma Style_Checks (Off);
-- Algorithm to generate a Sci - Fi - style extruded surface
-- Copyright (c) Gautier de Montmollin 2006
-- CH - 8810 Horgen
-- SWITZERLAND
-- Permission granted to use the herein contained algorithm for any purpose,
-- provided this copyright note r... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Extensions;
with System;
private package CUPS.bits_pthreadtypes_h is
-- Copyright (C) 2002-2016 Free Software Foundation, Inc.
-- This file is part of the GNU C Library.
-- The GNU C Library is free software;... |
type Card is record
Rank : Integer;
Suit : String (1 .. 8);
end record;
This_Card : Card := (8, "spades "); |
-- Taken from https://en.wikibooks.org/wiki/Ada_Programming/Type_System
--
-- This code has a from of "type foo is new ..."
-- Though "new" is used in the form, "with" doesn't
-- follow "new" like "type foo is new bar with ...".
--
procedure Input is
package Pak is
type Integer_1 is range 1 .. 10;
p... |
package Primes is
type List is array (Positive range <>) of Positive;
function First(N: Positive) return List;
end Primes;
|
with Ada.Text_IO, Ada.Numerics.Float_Random;
procedure Concurrent_Hello is
type Messages is (Enjoy, Rosetta, Code);
task type Writer (Message : Messages);
task body Writer is
Seed : Ada.Numerics.Float_Random.Generator;
begin
Ada.Numerics.Float_Random.Reset (Seed); -- time-dependent, see ARM A.5... |
with AAA.Strings;
with CLIC.Subcommand;
with CLIC.TTY;
package Commands.Topics.Contribute is
package TT renames CLIC.TTY;
type Topic is new CLIC.Subcommand.Help_Topic with null record;
overriding
function Name (This : Topic) return CLIC.Subcommand.Identifier
is ("contribute");
overriding
funct... |
-- Copyright 2017 Steven Stewart-Gallus
--
-- 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 by applicable law or agr... |
-------------------------------------------------------------------------------
-- SUNANGLE
--
-- Copyright © 2016 Eric Laursen
--
-- This code is available under the "MIT License".
-- Please see the file COPYING in this distribution for license terms.
--
-- Purpose:
-- This package computes the the sun angle (azimut... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
-- RUN: %llvmgcc -c %s
procedure VCE is
S : String (1 .. 2);
B : Character := 'B';
begin
S := 'A' & B;
end;
|
with Heap;
generic
type Num is range <>;
package PrimeUtilities is
type Sieve is Array (Positive range <>) of Num;
type Prime_Count is Record
prime : Num;
count : Positive;
end Record;
type Prime_Factors is Array (Positive range <>) of Prime_Count;
type Proper_Divisors is Array (Positive ... |
with Ada.Numerics.Generic_Elementary_Functions;
-- with System.IO;
with Web.HTML.Canvases;
with Web.Strings;
with Web.UI.Events.Mouse.Click;
with Web.UI.GL_Widgets;
with Web.Window;
with OpenGL;
with Cube_Programs;
package body Cube_Demo is
use type OpenGL.GLfloat;
function "+" (Item : Wide_Wide_String) r... |
------------------------------------------------------------------------------
-- --
-- Giza --
-- --
-- ... |
-- CC3016C.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... |
-- SPDX-License-Identifier: MIT
--
-- Copyright (c) 1999 - 2019 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... |
with
Interfaces.C.Strings,
System;
use type
System.Address;
package body FLTK.Widgets.Valuators.Dials is
procedure dial_set_draw_hook
(W, D : in System.Address);
pragma Import (C, dial_set_draw_hook, "dial_set_draw_hook");
pragma Inline (dial_set_draw_hook);
procedure di... |
package SPDX.Licenses is
pragma Style_Checks (Off); -- Genrated code
Version : constant String :="3.10-14-g0fb8a59";
type Id is (
Id_0BSD,
AAL,
ADSL,
AFL_1_1,
AFL_1_2,
AFL_2_0,
AFL_2_1,
A... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
with Stacks_Tests; use Stacks_Tests;
with Queues_Tests; use Queues_Tests;
with AUnit.Test_Caller;
package body Container_Suite is
package Caller is new AUnit.Test_Caller (Stacks_Tests.Test);
package Caller2 is new AUnit.Test_Caller (Queues_Tests.Test);
function Suite return Access_Test_Suite is
Ret : ... |
package Loop_Optimization16_Pkg is
type Index_Base is range 0 .. 127;
function F return Natural;
end Loop_Optimization16_Pkg;
|
with Ada.Unchecked_Conversion;
with System;
with C.stdlib;
with C.string;
package body GMP.Root_F is
use type C.char;
use type C.signed_int;
use type C.size_t;
use type C.gmp.mp_bitcnt_t;
procedure memcpy (dst, src : System.Address; n : C.size_t)
with Import, Convention => Intrinsic, External_Name => "__builti... |
-----------------------------------------------------------------------
-- are -- Advanced Resource Embedder
-- Copyright (C) 2021 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 c... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Exceptions;
with Ada.Streams;
with Ada.Text_IO;
with GNAT.Sockets;
with League.Application;
with League.Strings;
with Slim.... |
-----------------------------------------------------------------------
-- ado-queries -- Database Queries
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2017, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ hashes used in skill --
-- |___/_|\_\_|_|____| by: Timm Felden ... |
-----------------------------------------------------------------------
-- gprofiler-events - Profiler Events Description
-- 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 not ... |
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Containers.Generic_Anonymous_Array_Sort;
with GNAT.SHA256;
with League.Base_Codecs;
with League.JSON.Arrays;
with League.JS... |
-------------------------------------------------------------------------------
-- Copyright (c) 2019, 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... |
with Ada.Integer_Text_IO;
with Ada.Numerics.Elementary_Functions;
-- Copyright 2021 Melwyn Francis Carlo
procedure A017 is
use Ada.Integer_Text_IO;
use Ada.Numerics.Elementary_Functions;
N : Integer := 0;
And_Str_Length : constant Integer := 3;
Hundred_Str_Length : constant Integer :=... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Defining_Names;
with Program.Elements;
package Program.Cross_Reference_Updaters is
pragma Preelaborate;
type Cross_Reference_... |
-- TODO: Think about memory management issues w.r.t. strings
-- and symbols used in the symbol table. What about string
-- pointers given as arguments to Interned?
-- Newly-allocated strings in other version of Interned?
-- Newly-allocated symbols when a name not already
-- interned? What is the portable semanti... |
with Ada.Strings.Unbounded;
with Ada.Strings.Fixed;
with Ada.Text_IO;
with Ada.Streams;
with GNAT.Sockets;
with GNAT.String_Split;
with GNAT.Regpat;
with Irc.Bot;
with Irc.Message;
with Irc.Commands;
package Commands is
package IO renames Ada.Text_IO;
package SU renames Ada.Strings.Unbounded;
package SF ren... |
package body Digraphs is
function Node_Count(Graph: Graph_Type) return Node_Idx_With_Null is
begin
return Node_Idx_With_Null(Graph.Length);
end Node_Count;
procedure Add_Node(Graph: in out Graph_Type'Class; Node: Node_Index) is
begin
for I in Node_Index range Graph.Node_Count+1 .. Node loop... |
type Data_Array is array(Natural range <>) of Integer;
procedure Insertion_Sort(Item : in out Data_Array) is
First : Natural := Item'First;
Last : Natural := Item'Last;
Value : Integer;
J : Integer;
begin
for I in (First + 1)..Last loop
Value := Item(I);
J := I - 1;
while J in Ite... |
--------------------------------------------------------------------------
-- Arbitrary Precision Math Library: Trigonometric Functions
-- Joe Wingbermuehle 20020320 <> 20020327
--------------------------------------------------------------------------
with Arbitrary.Log; use Arbitrary.Log;
with Arbitrary.Const; use A... |
with afrl.cmasi.object; use afrl.cmasi.object;
with afrl.cmasi.enumerations; use afrl.cmasi.enumerations;
with avtas.lmcp.types; use avtas.lmcp.types;
package afrl.cmasi.abstractGeometry is
type AbstractGeometry is new afrl.cmasi.object.Object with private;
type AbstractGeometry_Acc is access all AbstractGeom... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- { dg-do compile }
with Private2_Pkg; use Private2_Pkg;
package Private2 is
type R is new Rec2;
end Private2;
|
with Generator;
with GNATCOLL.Config;
package Generator.Frontmatter is
use GNATCOLL.Config;
function Read_Excerpt (
Content : String;
Excerpt_Separator : String) return String;
function Read_CreateDate (Filename : String) return String;
function Read (Filepath : String;
Ta... |
with Ada.Containers; use Ada.Containers;
with Ada.Directories; use Ada.Directories;
with Blueprint; use Blueprint;
with Ada.Text_IO;
with Ada.Command_Line;
with Templates_Parser;
with CLIC.TTY;
with Filesystem;
with Commands;
with Globals;
with Ada.Characters.Handling;
package body Commands.Generate is
pack... |
with Ada.Text_IO;
with Equilibrium;
with Ada.Containers.Vectors;
procedure Main is
subtype Index_Type is Positive range 1 .. 7;
package Vectors is new Ada.Containers.Vectors
(Element_Type => Integer, Index_Type => Index_Type);
type Plain_Array is array (Index_Type) of Integer;
function Element (From ... |
with Ada.Numerics.Generic_Elementary_Functions;
with Ada.Exceptions;
with Ada.Strings.Unbounded;
use Ada.Strings.Unbounded;
package body Histogram
with SPARK_Mode => On
is
package Float_Functions is new Ada.Numerics.Generic_Elementary_Functions(Float);
use Float_Functions;
procedure set(d: out Data; i:Natur... |
-- * CAUTION * : this GLUT.ads file is generated by preprocessing GLUT.prs
-- You should modify GLUT.prs and preprocess it with : tools/glut_prep.bat
--
-- Bindings to FreeGLUT (2.4.0 or later).
-- Maintained by Gautier de Montmollin and Rod Kay
--
-- Overall changes made to older Ada bindings to GLUT 3.7,
-- th... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package Important_Dates with
SPARK_Mode => On
is
function Leap_Year
(Year : Positive)
return Boolean is
((Year mod 4 = 0 and then Year mod 100 /= 0) or else (Year mod 400 = 0));
function Valid_Date
(Year : Positive;
Month : P... |
with Ada.Text_IO; use Ada.Text_IO;
with Sf.Window.Window; use Sf, Sf.Window, Sf.Window.Window;
with Sf.Window.VideoMode; use Sf.Window.VideoMode;
with Sf.Window.Event; use Sf.Window.Event;
with Sf.Window.Keyboard; use Sf.Window.Keyboard;
with Sf.Window.GL; use Sf.Window.GL;
with Sf.Window.GLU; ... |
with Ada.Text_IO; use Ada.Text_IO;
package body Tareas is
T1 : Tarea_1;
task body Tarea_1 is
begin
loop
Put_Line("Soy la tarea 1");
delay 1.0;
end loop;
end Tarea_1;
task body Tarea_2 is
begin
loop
Put_Line("Soy la tarea 2");
delay 3.0;
... |
<ADSWorkspace Revision="23" Version="100">
<Workspace Name="">
<Cell Name="TP_modulation_STUDENT_2012_lib:DUC_AMUFAMUFA" />
<Cell Name="TP_modulation_STUDENT_2012_lib:SDC_AMFA" />
<Ael Name="save_project_state.ael" />
<Dataset Name="BlueTooth_AMFA.ds" />
<Dataset Name="Exampl... |
pragma License (Unrestricted);
-- implementation unit
package Ada.Strings.Naked_Maps.Debug is
pragma Preelaborate;
-- sets
function Valid (Set : Character_Set_Data) return Boolean;
-- maps
function Valid (Map : Character_Mapping_Data) return Boolean;
end Ada.Strings.Naked_Maps.Debug;
|
with ACO.OD_Types;
package ACO.Protocols.Service_Data.Clients is
type Client
(Handler : not null access ACO.CANopen.Handler;
Od : not null access ACO.OD.Object_Dictionary'Class)
is abstract new SDO with private;
function Get_Endpoint
(This : Client;
Server_Node : ACO.Me... |
with MPFR.Root_FR.Inside;
with System;
with C.mpfr;
with C.string;
package body MPC.Root_C 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 Re (X : MP_Complex) return MPF... |
------------------------------------------------------------------------------
-- Copyright (C) 2012-2020 by Heisenbug Ltd.
--
-- 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 Hocevar. See the LICE... |
with MSP430_SVD.USCI_A0_UART_MODE; use MSP430_SVD.USCI_A0_UART_MODE;
with MSP430_SVD.SPECIAL_FUNCTION; use MSP430_SVD.SPECIAL_FUNCTION;
package body MSPGD.UART.Peripheral is
procedure Init is
Baud_Rate_Div : constant UInt32 := UInt32 (Clock.Frequency) / Speed;
begin
USCI_A0_UART_MODE_Periph.UCA0CTL1... |
with
openGL.Renderer.lean,
openGL.Visual,
openGL.Frustum;
package openGL.Culler
--
-- Provides a base class for cullers.
--
is
type Item is abstract tagged limited private;
type View is access all Item'Class;
--------------
--- Attributes
--
procedure add (Self : in out Ite... |
with Menus; use Menus;
package MainMenu is
procedure ShowMainMenu;
procedure ShowHelpScreen(This : in out Menu);
end MainMenu;
|
package Datastore is
pragma Elaborate_Body;
-- Create an array of strings that can be of any length
-- (i.e. array of string pointers)
-- Create a record that contains this array
type Element_T is null record;
-- Create two access types to the element
-- An immutable access type
-- An a... |
with Plugins.Tables;
package Prova is
type Pippo is abstract tagged null record;
function Constructor (Params : not null access Plugins.No_Parameters)
return Pippo is abstract;
package Table_Int is
new Plugins.Tables (Root_Plugin_Type => Pippo,
Plugin_... |
with System.UTF_Conversions.From_16_To_8;
with System.UTF_Conversions.From_32_To_8;
package body System.WCh_WtS is
function Wide_String_To_String (
S : Wide_String;
EM : WC_Encoding_Method)
return String
is
pragma Unreferenced (EM);
begin
return UTF_Conversions.From_16_To_8.Conve... |
-- AOC, Day 1
with Ada.Text_IO;
use Ada.Text_IO;
with Day1;
procedure main is
begin
Day1.load_modules("day1_input.txt");
put_line("Part 1: " & Day1.Mass'Image(Day1.fuel_for_modules));
put_line("Part 2: " & Day1.Mass'Image(Day1.total_fuel));
end main;
|
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- runtime unit specialized for Linux
package System.Storage_Map is
pragma Preelaborate;
function Load_Address return Address;
Growing_Down_Is_Preferred : constant Boolean := True; -- bias of mmap
end System.Storage_Map;
|
with impact.d3.Transform;
package body impact.d3.Object
is
procedure define (Self : in out Item)
is
use impact.d3.Transform;
begin
Self.m_anisotropicFriction := (1.0, 1.0, 1.0);
Self.m_hasAnisotropicFriction := False;
Self.m_contactProcessingThreshold := math.Real'Las... |
with Ada.Containers; use Ada.Containers;
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Vectors;
package body Lto21_Pkg2 is
pragma Suppress (Tampering_Check);
procedure Proc is
function Hash (Syd : Natural) return Hash_Type is (Hash_Type'Mod (Syd));
package Vect2 is new Vectors (Positive, N... |
-- Copyright 2011-2014 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 --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
use Ada.Text_IO;
package body def_monitor is
protected body Monitor is
entry cadiraLock when (contCadires < 4) is
begin
contCadires := contCadires + 1;
end cadiraLock;
procedure cadiraUnlock is
begin
contCadires := contCadires - 1;
end cadira... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.