content stringlengths 23 1.05M |
|---|
-- Abstract :
--
-- Types and operations for computing grammar properties used in
-- generating a packrat parser.
--
-- We use the terminology in [tratt 2010] for recursion in
-- productions.
--
-- References :
--
-- See wisitoken-parse-packrat.ads.
--
-- Copyright (C) 2018 Free Software Foundation, Inc.
--
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with mersenne_types_h;
package noise_h is
-- BSD 3-Clause License
-- *
-- * Copyright © 2008-2021, Jice and the libtcod contributors.
-- * All rights reserved.
-- *
-- * Redistribution and use in source and binary forms, wit... |
-- Copyright (c) 2015-2019 Marcel Schneider
-- for details see License.txt
with Ada.Text_IO; use Ada.Text_IO;
with Punctuation; use Punctuation;
with Tokens; use Tokens;
with TokenValue; use TokenValue;
with Lexer; use Lexer;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Containers.Hashed_Maps; use... |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with bits_types_h;
package stdint_h is
INT8_MIN : constant := (-128); -- /usr/include/stdint.h:116
INT16_MIN : constant := (-32767-1); -- /usr/include/stdint.h:117
INT32_MIN : constant := (-2147483647-1); -- /usr/include/... |
package Semaphores is
protected type SIMA (Initial_Value: Natural; Max_Value: Natural;) is
entry P;
entry V;
private
Count : Natural := Initial_Value;
Max_Count : Natural := Max_Value;
end SIMA;
end Semaphores;
|
with text_io;
procedure bug4 is
x : integer := integer'first;
y : integer := integer'first + 1;
begin
text_io.put_line("X = " & integer'image(x));
text_io.put_line("Y = " & integer'image(y));
end bug4;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Toggles;
with GL.Low_Level;
private package GL.Enums is
pragma Preelaborate;
type Attribute_Mask is record
Depth_Buffer : Boolean;
Stencil_Buffer : Boolean;
Color_Buf... |
with Ada.Text_IO, Ada.Integer_Text_IO, copia_examenes;
use copia_examenes;
use Ada.Text_Io, Ada.Integer_Text_Io;
procedure Escribir_aula_act(aula_act: in T_Aula) is
begin
New_Line;
Put_line("----------------------------------------------------------------------");
for i in 1..10 loop
for J in 1..... |
-- { dg-do run }
-- { dg-options "-O1" }
with TREE_STATIC_Def; use TREE_STATIC_Def;
procedure TREE_STATIC_Use is
I : Int := One;
begin
check (I, 1);
end;
|
-----------------------------------------------------------------------
-- awa-modules-tests - Unit tests for Modules
-- Copyright (C) 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 this f... |
-- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com)
-- //
-- // This software is provided 'as-is', without any express or implied warranty.
-- // In no event will the authors be held li... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Steps_4 is
task Step_By_Step is
entry Step_One;
entry Step_Two;
entry Step_Three;
entry Finish;
end Step_By_Step;
task body Step_By_Step is
Keep_Looping : Boolean := TRUE;
begin
while Keep_Looping loop
select
... |
-- 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 AdaBase.Results.Sets;
with Connect;
with CommonText;
with Ada.Text_IO;
with Ada.Command_Line;
procedure Memcheck is
package CON renames Connect;
package TIO renames Ada.Text_IO;
package CLI renames Ada.Command_Line;
package AR renames AdaBase.Results;
package CT renames CommonText;
procedure... |
-- This spec has been automatically generated from STM32WB55x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.LCD is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_DUTY_Field is HAL.... |
-----------------------------------------------------------------------
-- util-encoders-hmac-sha1 -- Compute HMAC-SHA1 authentication code
-- Copyright (C) 2011, 2017, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
-- Copyright 2021 S.Merrony
-- 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, copy, modify, merge, publish, distribute, ... |
------------------------------------------------------------------------------
-- Copyright (c) 2011, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
procedure While_Loop_Statement is
begin
while True loop
null;
end loop;
end While_Loop_Statement;
|
-----------------------------------------------------------------------
-- jobs-tests -- Unit tests for AWA jobs
-- Copyright (C) 2012, 2014 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 e... |
with Ada.Integer_Text_IO;
-- Copyright 2021 Melwyn Francis Carlo
procedure A019 is
use Ada.Integer_Text_IO;
-- The first element is a dummy element.
Month_Constant : constant array (Integer range 1 .. 13) of Integer :=
(0, 1, -1, 0, 0, 1, 1, 2, 3, 3, 4, 4, 5);
N : Integer := 0;
Day_Val : Integ... |
with Kernel.Serial_Output; use Kernel.Serial_Output;
with System; use System;
with Force_External_Interrupt_2;
--with Registro; use Registro;
with tools; use tools;
package body pulse_interrupt is
--------------------------------------------------------------------------
-- Tarea que fuerza la in... |
with Extraction.Node_Edge_Types;
with Extraction.Utilities;
package body Extraction.Derived_Type_Defs is
use type LALCO.Ada_Node_Kind_Type;
function Has_Interfaces (Node : LAL.Ada_Node'Class) return Boolean is
(Node.Kind in LALCO.Ada_Derived_Type_Def | LALCO.Ada_Task_Def |
LALCO.Ada_Protected_Ty... |
with Ada.Text_IO;
with Ada.Float_Text_IO;
with Ada.IO_Exceptions;
with Ada.Integer_Text_IO;
use Ada;
procedure Change_Calculator is
type Money is delta 0.01 digits 10;
Input_Amount : Money := 0.0;
package Money_IO is new Text_IO.Decimal_IO(Money);
type Currency_Denomination is record
Name : String(1... |
with HAL;
with BBQ10KBD;
package BB_Pico_Bsp.Keyboard is
function Key_FIFO_Pop return BBQ10KBD.Key_State;
-- When the FIFO is empty a Key_State with Kind = Error is returned
function Status return BBQ10KBD.KBD_Status;
procedure Set_Backlight (Lvl : HAL.UInt8);
function Version return HAL.UInt8;
... |
with agar.core;
with interfaces.c;
package agar.gui is
package c renames interfaces.c;
-- Flags for init_video
type video_flags_t is new c.unsigned;
HWSURFACE : constant video_flags_t := 16#001#;
ASYNCBLIT : constant video_flags_t := 16#002#;
ANYFORMAT : constant video_flags_t := 16#004#;
HW... |
-- { dg-do compile }
-- { dg-options "-O" }
with Opt25_Pkg1;
with Opt25_Pkg2;
procedure Opt25 (B1, B2 : in out Boolean) is
package Local_Pack_Instance is new Opt25_Pkg1 (Boolean, True);
package Local_Stack is new Opt25_Pkg2 (Integer, 0);
S : Local_Stack.Stack := Local_Stack.Default_Stack;
begin
Local_... |
pragma License (Unrestricted);
private with System.Synchronous_Control;
package Ada.Dispatching is
pragma Preelaborate;
procedure Yield;
pragma Inline (Yield); -- renamed
Dispatching_Policy_Error : exception;
private
procedure Yield
renames System.Synchronous_Control.Yield;
end Ada.Dispatching... |
with
glx.Pointers,
interfaces.C;
package glx.Binding
is
function getCurrentContext return access ContextRec;
function getCurrentDrawable return Drawable;
procedure waitGL;
procedure waitX;
procedure useXFont (Font : in GLX.Font;
First : in C.int;
... |
with Ada.Finalization;
with ACO.CANopen;
with ACO.States;
with ACO.Messages;
with ACO.OD;
with ACO.OD_Types;
private with Ada.Real_Time;
private with ACO.Events;
package ACO.Nodes is
type Node_Base
(Id : ACO.Messages.Node_Nr;
Handler : not null access ACO.CANopen.Handler;
Od : not nu... |
--with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO;
--with Ada.Text_IO.Unbounded_IO; use Ada.Text_IO.Unbounded_IO;
--with Interfaces; use Interfaces;
--with assembler; use assembler;
--with callbacks; use callbacks;
with gui;
--with util; ... |
--
-- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the... |
with Ada.Characters,
Ada.Containers.Hashed_Maps,
Ada.Containers.Vectors,
Ada.Execution_Time,
Ada.Long_Long_Integer_Text_IO,
Ada.Real_Time,
Ada.Text_IO;
with Utils;
procedure Main is
use Ada.Execution_Time,
Ada.Real_Time,
Ada.Text_IO;
use Utils;
subtype Chunks is C... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
-- { dg-do run }
with Aggr19_Pkg; use Aggr19_Pkg;
procedure Aggr19 is
C : Rec5
:= (Ent => (Kind => Two, Node => (L => (D => True, Pos => 1 )), I => 0));
A : Rec5 := C;
begin
Proc (A);
if A /= C then
raise Program_Error;
end if;
end;
|
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
with Utils;
package body STM32GD.I2C.Peripheral is
Default_Timeout : constant Natural := 10000;
Count_Down : Natural;
procedure Start (Duration : Natural := Default_Timeout) is
begin
Count_Down := Duration;
end Start;
function Timed_Out return Boolean is
begin
return (Count_Down = 0... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Containers.Indefinite_Ordered_Maps;
private with Ada.Containers.Ordered_Maps;
private with Ada.Strings.Unbounded;
package Tabula.Users.Lists is
type User_List (<>) is limited private;
function Create (
Directory : not null Static_String_Access;
Log_Fil... |
-- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O... |
package body cached_Rotation
is
use ada.Numerics,
float_elementary_Functions;
the_Cache : array (0 .. slot_Count - 1) of aliased Matrix_2x2_type;
Pi_x_2 : constant := Pi * 2.0;
last_slot_Index : constant Float_type := Float_type (slot_Count - 1);
index_Factor : cons... |
package Hello is
type Printer is abstract tagged null record;
procedure Print_On_Console (P : Printer; V : String) is abstract;
type Ada_Printer is new Printer with null record;
procedure Print_On_Console (P : Ada_Printer; V : String);
procedure Print_Messages (P : Printer'Class);
end Hello;
|
-- An example of using low-level convertor API (fixed string procedures)
-- Program reads standard input, adds cr before lf, then writes to standard output
with Ada.Streams;
use Ada.Streams;
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Text_IO.Text_Streams;
use Ada.Text_IO.Text_Streams;
with Ada.Unchecked_Conversion;... |
-- 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 Ada.Text_IO; use Ada.Text_IO;
with C3GA;
with GA_Utilities;
with Multivectors; use Multivectors;
procedure Line1 is
Point1 : constant Normalized_Point := C3GA.Set_Normalized_Point (0.0, 1.0, 0.0);
Point2 : constant Normalized_Point := C3GA.Set_Normalized_Point (1.0, 0.0, 0.0);
Point3 : constant Norm... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl>
--
-- 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 vers... |
generic
type Output_Stream (<>) is limited private;
-- Stream of bytes
with procedure Put (Stream : in out Output_Stream; Bytes : String) is <>;
-- Write all Bytes in Stream
procedure TOML.Generic_Dump
(Stream : in out Output_Stream;
Value : TOML_Value)
with Preelaborate, Pre => Value.Kind = TO... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- gen-integration-tests -- Tests for integration
-- Copyright (C) 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (th... |
with SDL;
with SDL.Error;
with SDL.Log;
with SDL.Versions;
procedure Version is
Linked_Version : SDL.Versions.Version;
begin
SDL.Log.Set (Category => SDL.Log.Application, Priority => SDL.Log.Debug);
SDL.Versions.Linked_With (Info => Linked_Version);
SDL.Log.Put_Debug ("Revision : " & SDL.Versions.R... |
-- Copyright 2019 Simon Symeonidis (psyomn)
--
-- 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 la... |
-- 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... |
-- see OpenUxAS\src\Includes\Constants\UxAS_String.h
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package UxAS.Common.String_Constant.Lmcp_Network_Socket_Address is
-- NOTE: we are modifying the actual socket addresses used in the full C++
-- version so that the Ada demo, running as a separate pro... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Glfw.API;
with Glfw.Enums;
package body Glfw.Windows.Hints is
procedure Reset_To_Defaults renames API.Default_Window_Hints;
procedure Set_Resizable (Value : Boolean) is
begin
API.... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with AUnit; use AUnit;
with AUnit.Test_Cases; use AUnit.Test_Cases;
with Ada.Containers.Indefinite_Vectors;
package Yaml.Parser.Event_Test is
subtype Test_Case_Name is String (1 .. 4);
package ... |
with Ada.Real_Time; use Ada.Real_Time;
with STM32F4; use STM32F4;
with STM32F4.GPIO; use STM32F4.GPIO;
with STM32F4.RCC; use STM32F4.RCC;
with STM32F429_Discovery; use STM32F429_Discovery;
package body STM32F4.SDRAM is
--------------------
-- Configure_GPIO --
--------------------
procedure Conf... |
with Ada.Strings,
Ada.Strings.UTF_Encoding,
Ada.Strings.UTF_Encoding.Wide_Strings,
Ada.Command_Line,
Ada.Directories,
Ada.Sequential_IO,
Interfaces.C_Streams,
Password_Encode;
use Ada.Strings.UTF_Encoding;
package body PassEncrypt is
use IO;
procedure Main is
use Password... |
-- RUN: %llvmgcc -c %s
package Init_Size is
type T (B : Boolean := False) is record
case B is
when False =>
I : Integer;
when True =>
J : Long_Long_Integer; -- Bigger than I
end case;
end record;
A_T : constant T := (False, 0);
end;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
procedure Hello is
package IO renames Ada.Text_IO;
begin
loop
foo();
exit when 2 > 3;
bar();
exit when 2 > 3 and 3 > 4;
end loop;
end Hello;
|
--
-- Intentionally not providing a Copyright header to verify that
-- having -copyright in the config for our module does indeed turn
-- this check off.
--
package Pck is
end Pck;
|
with System.Storage_Barriers;
with System.Synchronous_Control;
package body System.Once is
pragma Suppress (All_Checks);
Yet : constant := 0;
Start : constant := 1;
Done : constant := 2;
function atomic_load (
ptr : not null access constant Flag;
memorder : Integer := Storage_Barriers.ATOMI... |
package impact.d2.orbs.Joint.mouse
--
--
--
is
-- #ifndef B2_MOUSE_JOINT_H
-- #define B2_MOUSE_JOINT_H
--
-- #include <Box2D/Dynamics/Joints/b2Joint.h>
--
-- /// Mouse joint definition. This requires a world target point,
-- /// tuning parameters, and the time step.
-- struct b2MouseJointDef : public b2JointDef... |
separate(Practica4)
function Tratar_Fichero(Nom_F_Ent: in Unbounded_String;
Nom_F_Let: in Unbounded_String;
Nom_F_Num: in Unbounded_String) return Natural is
Fich1,fichL,fichN:file_type;
letra,Numero:Unbounded_string;
linea:string(1..125);
nume:natural;
begin
open(fich1,in_file,name=>to_string(Nom_F_Ent... |
with Ada.Calendar.Formatting;
with Ada.Characters.Latin_1;
with Ada.Environment_Variables;
with Ada.Exceptions.Finally;
with Ada.Directories.Temporary;
with Ada.Directories.Volumes;
with Ada.IO_Modes;
with Ada.Streams;
with System.Native_IO.Names; -- implementation unit
with C.errno;
with C.stdlib;
with C.string;
packa... |
with AdaBase;
with Connect;
with CommonText;
with Ada.Text_IO;
with AdaBase.Results.Sets;
procedure Query_Select is
package CON renames Connect;
package TIO renames Ada.Text_IO;
package ARS renames AdaBase.Results.Sets;
package AR renames AdaBase.Results;
package CT renames CommonText;
begin
CON... |
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Langkit_Support.Text; use Langkit_Support.Text;
package body Rejuvenation.Node_Locations is
-- We postulate that a ghost node is not surrounded by trivia.
-- A ghost node has a range from X to X-1,
-- where X... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
with Interfaces; use Interfaces;
with STM32_SVD; use STM32_SVD;
with Drivers.Text_IO;
with STM32GD.Board;
with Drivers.Si7060;
procedure Main is
package Temp_Sensor is new Drivers.Si7060 (Address => 16#32#, I2C => STM32GD.Board.I2C);
package Text_IO is new Drivers.Text_IO (USART => STM32GD.Board.USART);
Line... |
pragma Ada_2012;
with Ada.Unchecked_Deallocation;
package body Dsp.Ring_Filters is
procedure Free is
new Ada.Unchecked_Deallocation (Object => Sample_Array,
Name => Sample_Array_Access);
procedure Free is
new Ada.Unchecked_Deallocation (Object => Coefficient_Arr... |
separate (Numerics.Sparse_Matrices)
function Permute_By_Col (Mat : in Sparse_Matrix;
P : in Int_Array) return Sparse_Matrix is
Result : Sparse_Matrix;
Tmp : Nat := 1;
use Ada.Text_IO;
begin
pragma Assert (Mat.Format = CSC);
pragma Assert (P'Length = Integer (Mat.P.Length) - 1);
Result.Format... |
with Plop;
procedure Hello is
B : Plop.B;
C : Plop.C;
begin
Plop.Print (B);
Plop.Print (C);
end Hello;
|
-----------------------------------------------------------------------
-- search-tokenizers -- Search engine tokenizers
-- 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... |
-- 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... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Slim.Menu_Commands.Play_File_Commands is
---------
-- Run --
---------
overriding procedure Run (Self : Pla... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with asm_generic_int_ll64_h;
package linux_ptrace_h is
PTRACE_TRACEME : constant := 0; -- /usr/include/linux/ptrace.h:11
PTRACE_PEEKTEXT : constant := 1; -- /usr/include/linux/ptrace.h:12
PTRACE_PEEKDATA : constant := 2; -... |
with Ada.Characters.Latin_1;
with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO;
procedure Put_PPM (File : File_Type; Picture : Image) is
use Ada.Characters.Latin_1;
Size : constant String := Integer'Image (Picture'Length (2)) & Integer'Image (Picture'Length (1));
Buffer : String (1..Picture'Length (2) ... |
-- { dg-do compile }
with Rational_Arithmetic;
use Rational_Arithmetic;
procedure Test_Rational_Arithmetic is
R: Rational := 10/2;
B: Boolean := R = 5/1; -- RHS cannot be a Whole
-- ("/" has been "undefined")
C: Boolean := R = Rational' (5/1);
D: Boolean := (6/3) = R;
E: Boole... |
with HAL.Bitmap;
package HAL.Framebuffer is
subtype FB_Color_Mode is HAL.Bitmap.Bitmap_Color_Mode range
HAL.Bitmap.ARGB_8888 .. HAL.Bitmap.AL_88;
type Display_Orientation is
(Default, Landscape, Portrait);
type Wait_Mode is (Polling, Interrupt);
type Frame_Buffer_Display is limited interface;... |
with agar.gui.widget.box;
package agar.gui.widget.mpane is
use type c.unsigned;
type layout_t is (
MPANE1,
MPANE2V,
MPANE2H,
MPANE2L1R,
MPANE1L2R,
MPANE2T1B,
MPANE1T2B,
MPANE3L1R,
MPANE1L3R,
MPANE3T1B,
MPANE1T3B,
MPANE4
);
for layout_t use (
MPANE1 => 0,... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, AdaCore --
-- --
-- ... |
-- { dg-do run }
-- { dg-options "-O3" }
procedure Round_Div is
type Fixed is delta 1.0 range -2147483648.0 .. 2147483647.0;
A : Fixed := 1.0;
B : Fixed := 3.0;
C : Integer;
function Divide (X, Y : Fixed) return Integer is
begin
return Integer (X / Y);
end;
begin
C := Divide (A, B);
if ... |
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is C... |
package body afrl.cmasi.location3D is
function getFullLmcpTypeName(this : Location3D) return String is ("afrl.cmasi.location3D.Location3D");
function getLmcpTypeName(this : Location3D) return String is ("Location3D");
function getLmcpType(this : Location3D) return UInt32_t is (CMASIEnum'Pos(LOCATION3D_ENUM)... |
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package Parser is
-- Declare needed types
type Parts is array (0 .. 3) of Unbounded_String;
package Parts_Vector is new Ada.Containers.Vectors
( Index_Type => Natural,
Element_Type => Parts );
... |
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Incr.Documents;
with Incr.Lexers.Incremental;
with Incr.Nodes;
with Incr.Version_Trees;
package Incr.Parsers.Incremental is... |
-- -----------------------------------------------------------------------------
-- Copyright (C) 2003-2019 Stichting Mapcode Foundation (http://www.mapcode.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... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with League.Strings;
with XML.SAX.Attributes;
with XML.SAX.Output_Destinations;
with XML.SAX.Writers;
package Custom_Writers is
type SAX_Output_Des... |
-- SPDX-License-Identifier: MIT
--
-- Copyright (c) 2009 - 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... |
-----------------------------------------------------------------------
-- gen-commands-model -- Model creation command for dynamo
-- Copyright (C) 2011, 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may n... |
-- 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... |
-- { dg-do run }
procedure Discr33 is
subtype Int is Integer range 1..100;
type T (D : Int := 1) is
record
A : Integer;
B : String (1..D);
C : aliased Integer;
end record;
Var : T := (D => 1, A => 1234, B => "x", C => 4567);
type Int_Ref is access all Integer;
... |
package Vect8 is
type Vec is array (1 .. 2) of Long_Float;
pragma Machine_Attribute (Vec, "vector_type");
function Foo (V : Vec) return Vec;
end Vect8;
|
package Tables is
type Table is private;
type Ordering is (Lexicographic, Psionic, ...); -- add others
procedure Sort (It : in out Table;
Order_By : in Ordering := Lexicographic;
Column : in Positive := 1;
Reverse_Order... |
------------------------------------------------------------------------------
-- Copyright (c) 2015-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with impact.d3.Shape.convex;
-- #include "BulletCollision/CollisionShapes/impact.d3.Shape.convex.h"
package impact.d3.collision.gjk_epa
--
-- GJK-EPA collision solver by Nathanael Presson, 2008
--
is
use Math;
-- btGjkEpaSolver contributed under zlib by Nathanael Presson
--
package btGjkEpaSolver2... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
pragma Style_Checks ("NM32766");
pragma Wide_Character_Encoding (Brackets);
---------------------------------------------------
-- This file has been generated automatically from
-- cbsg.idl
-- by IAC (IDL to Ada Compiler) 20.0w (rev. 90136cd4).
---------------------------------------------------
-- NOTE: If you m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.