id int64 0 30.9k | extension stringclasses 1
value | max_stars_count int64 0 17k | max_stars_repo_name stringlengths 7 106 | max_stars_repo_path stringlengths 5 136 | text stringlengths 9 1M |
|---|---|---|---|---|---|
7,200 | ada | 0 | j-lawrence-b1/string-path-search | tests/data/small/level1/level2/level3/test.ada | --------------------------------------------------------------------------------
--Copyright 1998 Praxis Critical Systems Limited --
-- --
--The material contained herein is the subject of copyright and all rights in... |
7,201 | ada | 6 | jonashaggstrom/ada-canopen | src/aco-protocols-network_management.ads | with ACO.OD;
with ACO.States;
private with ACO.Events;
private with ACO.Log;
private with Interfaces;
package ACO.Protocols.Network_Management is
NMT_CAN_Id : constant ACO.Messages.Id_Type := 0;
type NMT
(Id : ACO.Messages.Node_Nr;
Od : not null access ACO.OD.Object_Dictionary'Class)
is abstra... |
7,202 | ada | 0 | hgrodriguez/embedded-dashboard-console | src/matrix_area_double_word.adb | with Pimoroni_LED_Dot_Matrix;
package body Matrix_Area_Double_Word is
procedure Initialize is
package PLDM_0 is new Pimoroni_LED_Dot_Matrix (Byte_0_I2C,
Byte_0_Address);
package PLDM_1 is new Pimoroni_LED_Dot_Matrix (Byte_1_I2C,
... |
7,203 | ada | 1 | MatrixMike/AdaDemo1 | Exercise4.adb | <filename>Exercise4.adb
with Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Text_IO;
procedure Exercise4 is
Item : Integer;
begin
Put_Line("Enter the type of house you want to purchase");
Put_Line("1. Single Family");
Put_Line("2. Townhouse");
Put_Line("3. Condominium");
Put_Line("Your Choice... |
7,204 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.0.1/gen_emacs_wisi_lr_text_rep_parse.adb | <filename>.emacs.d/elpa/wisi-3.0.1/gen_emacs_wisi_lr_text_rep_parse.adb
-- Abstract :
--
-- See spec.
--
-- Copyright (C) 2014, 2017 - 2019 All Rights Reserved.
--
-- This program is free software; you can redistribute it and/or
-- modify it under terms of the GNU General Public License as
-- published by... |
7,205 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-accept_statements.adb | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Accept_Statements is
function Create
(Accept_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
... |
7,206 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/prompts/100_packages/main.adb | <reponame>AdaCore/training_material
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
begin
loop
Put ("(A)dd | (R)emove | (P)rint | Q(uit) : ");
declare
Str : constant String := Get_Line;
begin
exit when Str'length = 0;
case Str (Str'first) is
when 'A' =>... |
7,207 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-case_expression_path_vectors.ads | <filename>source/nodes/program-nodes-case_expression_path_vectors.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Nodes.Generic_Vectors;
with Program.Elements.Case_Expression_Paths;
package Program.Nod... |
7,208 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/sal-gen_graphs.ads | -- Abstract :
--
-- Type and operations for graphs.
--
-- References:
--
-- [1] Introduction to Algorithms, <NAME>, <NAME>.
-- Leiserson, <NAME>, <NAME>.
--
-- [2] "An Efficient Search Algorithm to Find the Elementary Circuits
-- of a Graph", <NAME>, Communications of the ACM Volume 13
-- Number 12 December 197... |
7,209 | ada | 30 | jscparker/math_packages | ordinary/runge_8th_order_demo_4.adb | <gh_stars>10-100
--
-- N-Body integrations demonstrate the need for high accuracy and
-- reliable error estimates.
--
-- N-Body equation:
-- Acceleration(Body_j)
-- = SumOver(Body_k) { Mass(Body_k) * G * DeltaR / NORM(DeltaR)**3 }
--
-- where DeltaR = (X(Body_k) - X(Body_j)) is a vector,
-- and where G is the g... |
7,210 | ada | 80 | thindil/steamsky | src/statistics.adb | <gh_stars>10-100
-- Copyright 2016-2021 <NAME>
--
-- 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
-- (... |
7,211 | ada | 65 | PThierry/ewok-kernel | libgnat/gnat/last_chance_handler.ads |
with System;
package Last_Chance_Handler is
procedure Last_Chance_Handler (File : System.Address; Line : Integer);
pragma Export (C, Last_Chance_Handler, "__gnat_last_chance_handler");
pragma No_Return (Last_Chance_Handler);
end Last_Chance_Handler;
|
7,212 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-fofi64.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
7,213 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | ADL/drivers/stm32g474/stm32-sai.adb | <reponame>JCGobbi/Nucleo-STM32G474RE
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- ... |
7,214 | ada | 0 | mstewartgallus/linted | src/ada-pulse/src/pulse-channelmap.ads | <filename>src/ada-pulse/src/pulse-channelmap.ads
-- Copyright 2016 <NAME>
--
-- 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... |
7,215 | ada | 6 | WickedShell/Ada_Drivers_Library | examples/shared/common/gui/bitmapped_drawing.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- ... |
7,216 | ada | 2 | zenharris/ada-bbs | src/display_warning.ads | <filename>src/display_warning.ads
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
with Terminal_Interface.Curses; use Terminal_Interface.Curses;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Calendar; use Ada.Calendar;
with Ada.Calendar.Formatting; use Ada.Calendar.Formatting;
package D... |
7,217 | ada | 0 | DerickEddington/tarmi | tarmi.ads | <reponame>DerickEddington/tarmi
-- TODO: Figure-out the memory management issues... is it
-- possible to use only standard Ada facilities, or is an
-- additional GC unavoidable?
package Tarmi is
type Datum_R is abstract tagged null record;
type Datum is not null access constant Datum_R'Class;
type Pair_R ... |
7,218 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/recursive_call.adb | -- { dg-do compile }
-- { dg-options "-gnat2012" }
function Recursive_Call (File : String; Status : out Boolean) return Boolean is
begin
if File /= "/dev/null" then
return Recursive_Call ("/dev/null", Status);
end if;
return False;
end;
|
7,219 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/common/tlv.ads | 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... |
7,220 | ada | 0 | twdroeger/ada-awa | awa/plugins/awa-wikis/regtests/awa-wikis-tests.adb | <filename>awa/plugins/awa-wikis/regtests/awa-wikis-tests.adb<gh_stars>0
-----------------------------------------------------------------------
-- awa-wikis-tests -- Unit tests for wikis module
-- Copyright (C) 2018, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (th... |
7,221 | ada | 88 | VVCAS-Sean/OpenUxAS | src/ada/src/services/arv/uxas-comms-lmcp_net_client-service-automation_request_validation.adb | with AFRL.CMASI.AutomationRequest; use AFRL.CMASI.AutomationRequest;
with AFRL.CMASI.EntityConfiguration; use AFRL.CMASI.EntityConfiguration;
with AFRL.CMASI.EntityState; use AFRL.CMASI.EntityState;
with AFRL.CMASI.KeepInZone; use AFRL.CMASI... |
7,222 | ada | 36 | seaneshbaugh/rosetta-euler | ada/002/euler.adb | <gh_stars>10-100
with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Containers.Vectors;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Containers;
procedure Euler is
package Integer_Vectors is new Vectors(Natural, Integer);
Fibs : Integer_Vectors.Vector;
Last : Integer_Vectors.Cursor;
Second_T... |
7,223 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/s-tpoben.adb | <reponame>vidkidz/crossbridge
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
7,224 | ada | 33 | ytomino/drake | source/directories/machine-apple-darwin/s-ndfina.ads | pragma License (Unrestricted);
-- implementation unit specialized for Darwin
with Ada.Directories.Volumes;
package System.Native_Directories.File_Names is
-- compare file names with normalization and case-insensitive, if HFS+
function Equal_File_Names (
FS : Ada.Directories.Volumes.File_System;
Lef... |
7,225 | ada | 1 | ScottWLoyd/ada_dynamic_libs | main.adb | with Ada.Text_IO; use Ada.Text_IO;
with Interfaces.C;
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with Ada.Directories; use Ada.Directories;
with System;
with Ada.Calendar;
procedure Main is
type LPCSTR is access constant Interfaces.C.char; -- winnt.h
pragma Convention (C, LPCSTR);
fu... |
7,226 | ada | 1 | Fabien-Chouteau/pygamer-simulator | src/pygamer-controls.adb | <filename>src/pygamer-controls.adb
with Ada.Text_IO; use Ada.Text_IO;
with GNAT.OS_Lib;
with Sf.Window.Event; use Sf.Window.Event;
with Sf.Graphics.RenderWindow; use Sf.Graphics.RenderWindow;
with Sf.Window.Keyboard; use Sf.Window.Keyboard;
package body PyGamer.Controls is
type Buttons_State is array (Buttons) of ... |
7,227 | ada | 12 | TUM-EI-RCS/StratoX | tests/units-overhead/src/main.adb | with Units; use Units;
--with Altunits; use Altunits;
with Ada.Text_IO; use Ada.Text_IO;
procedure main is
a : Length_Type := 5.0;
b : Time_Type := 2.0;
v : Linear_Velocity_Type := 3.0;
--v : Linear_Velocity_Type := 3.0;
function calc_my_velocity( l : Length_Type; t : Time_Type ) return Linear_Velocit... |
7,228 | ada | 0 | reznikmm/gps-tracker | source/receiver/main/lora.adb | -- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Streams;
with Ada.Unchecked_Conversion;
with Interfaces;
with System;
package body LoRa is
pragma Discard_Names;
-- procedure puts
-- (data : Strin... |
7,229 | ada | 0 | reznikmm/gela | source/visibility/program-visibility.ads | -- SPDX-FileCopyrightText: 2019-2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
--
-- This package is about Ada Visibility Rules as they defined in the Reference
-- Manual (Section 8).
--
-- The package provides Context type. The user populates... |
7,230 | ada | 0 | cborao/Ada-P3 | chat_messages.adb | <gh_stars>0
--PRÁCTICA 3: <NAME> (Chat_Messages.adb)
with Ada.Text_IO;
with Lower_Layer_UDP;
with Ada.Strings.Unbounded;
package body Chat_Messages is
package ATI renames Ada.Text_IO;
use Ada.Strings.Unbounded;
procedure Init_Message (Server_EP: LLU.End_Point_Type;
Client_EP_Receive: LLU.End_Point_T... |
7,231 | ada | 33 | ytomino/drake | source/streams/machine-apple-darwin/s-nateio.ads | pragma License (Unrestricted);
-- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux)
with Ada.IO_Exceptions;
with Ada.IO_Modes;
with Ada.Streams;
with System.Native_IO;
with C.termios;
package System.Native_Text_IO is
pragma Preelaborate;
subtype Handle_Type is Native_IO.Handle_Type;
-- ... |
7,232 | ada | 52 | onox/orka | orka_transforms/src/orka-transforms-simd_quaternions.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <<EMAIL>>
--
-- 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
-... |
7,233 | ada | 0 | fuzzysloth/ada-awa | awa/plugins/awa-settings/src/model/awa-settings-models.adb | <reponame>fuzzysloth/ada-awa<gh_stars>0
-----------------------------------------------------------------------
-- AWA.Settings.Models -- AWA.Settings.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-bo... |
7,234 | ada | 0 | Letractively/ada-asf | src/asf-contexts-facelets.adb | <reponame>Letractively/ada-asf
-----------------------------------------------------------------------
-- contexts-facelets -- Contexts for facelets
-- Copyright (C) 2009, 2010, 2011, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use... |
7,235 | ada | 1 | charlie5/lace-alire | 1-base/lace/source/text/lace-text-all_lines.adb | <filename>1-base/lace/source/text/lace-text-all_lines.adb
with
lace.Text.all_Tokens,
ada.Characters.latin_1;
package body lace.Text.all_Lines
is
use lace.Text.all_Tokens,
ada.Characters.latin_1;
function Lines (Self : in Item) return Text.items_2
is
begin
return Tokens (Self, LF);... |
7,236 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/krunch.ads | <filename>llvm-gcc-4.2-2.9/gcc/ada/krunch.ads<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
7,237 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/math/impact-d3-scalar.adb |
package body impact.d3.Scalar
is
function btRecipSqrt (x : in Real) return Real
is
use math.Functions;
begin
return 1.0 / sqRt (x);
end btRecipSqrt;
function btAtan2Fast (y, x : Real) return Real
is
coeff_1 : constant Real := SIMD_PI / 4.0;
coeff_2 : constant Real := 3.0 ... |
7,238 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pack20.ads | -- { dg-do compile }
with Pack20_Pkg; use Pack20_Pkg;
package Pack20 is
type Rec is record
Simple_Type : Integer;
Fixed : String_Ptr;
end record;
pragma Pack (Rec);
procedure Proc (A : Rec);
end Pack20;
|
7,239 | ada | 33 | kqr/qweyboard | src/main.adb | <filename>src/main.adb
with Unicode_Strings; use Unicode_Strings;
with Ada.Command_Line;
with Ada.Task_Termination;
with Ada.Task_Identification;
with Configuration;
with Logging;
with Qweyboard.Emulation;
with Input_Backend;
with Output_Backend;
procedure Main is
use Logging;
Settings : Configuration.Settings... |
7,240 | ada | 236 | jquorning/septum | src/common/sp-commands.ads | -------------------------------------------------------------------------------
-- Copyright 2021, The Septum Developers (see AUTHORS file)
-- 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
... |
7,241 | ada | 0 | armoredsoftware/protocol | measurer/gdb-7.9/gdb/testsuite/gdb.ada/optim_drec/foo.adb | -- Copyright 2012-2015 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.
--
-- ... |
7,242 | ada | 0 | jfouquart/synth | src/definitions.ads | <filename>src/definitions.ads
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
package Definitions is
pragma Pure;
synth_version_major : constant String := "2";
synth_version_minor : constant String := "04";
copyright_years : constant String := ... |
7,243 | ada | 0 | anajmedd/ENSEEIHT-Projects | 1A/PIM/projet/google_creuse.adb | <filename>1A/PIM/projet/google_creuse.adb<gh_stars>0
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;
with lca;
package body google_creuse is
procedure initialiser(V : out matricep) is
begin
for i in 1..Capacite l... |
7,244 | ada | 4 | faelys/gela-asis | .build/ada/asis-gela-units.adb | <filename>.build/ada/asis-gela-units.adb
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, <NAME>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following cond... |
7,245 | ada | 26 | damaki/libkeccak | src/x86_64/AVX2/keccak-parallel_keccak_1600.ads | <gh_stars>10-100
-------------------------------------------------------------------------------
-- Copyright (c) 2019, <NAME>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
-- * Red... |
7,246 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/eval_fat.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
7,247 | ada | 24 | svn2github/matreshka | source/sql/firebird/matreshka-internals-sql_drivers-firebird-databases.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
7,248 | ada | 0 | timmyjose-projects/arithmetic-expression-evaluator-in-ada | src/eval.adb | <gh_stars>0
with Ada.Text_IO;
package body Eval is
procedure Show (E : in Expr) is
begin
case E.Kind is
when Add =>
Ada.Text_IO.Put ("Add(");
when Sub =>
Ada.Text_IO.Put ("Sub(");
when Mul =>
Ada.Text_IO.Put ("Mul(");
when Div =>
... |
7,249 | ada | 18 | jrmarino/ravenadm | src/configure.adb | <gh_stars>10-100
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Definitions; use Definitions;
with Ada.Integer_Text_IO;
with Ada.Directories;
with Ada.Text_IO;
with HelperText;
with Unix;
package body Configure is
package INT renames Ada.Integer_Text... |
7,250 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32wl5x_cm4/stm32_svd-dac.ads | -- This spec has been automatically generated from STM32WL5x_CM4.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.DAC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- CR_TSEL array
type ... |
7,251 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gsttypefind_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h;
limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstcaps_h;
with glib;
with Interfaces.C.Strings;
limited wi... |
7,252 | ada | 1 | Fabien-Chouteau/sdlada | src/sdl-video-rectangles.adb | --------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, <NAME>
--
-- 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 from the... |
7,253 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/wisitoken-generate-lr.adb | -- Abstract :
--
-- See spec.
--
-- Copyright (C) 2017 - 2020 Free Software Foundation, Inc.
--
-- This library is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public License as published by the Free
-- Software Foundation; either version 3, or (at your option) ... |
7,254 | ada | 8 | flyx/OpenCLAda | src/implementation/cl_gl/cl-queueing-cl_gl.adb | --------------------------------------------------------------------------------
-- Copyright (c) 2013, <NAME> <<EMAIL>>
--
-- 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... |
7,255 | ada | 0 | djgoku/RosettaCodeData | Task/Miller-Rabin-primality-test/Ada/miller-rabin-primality-test-2.ada | <filename>Task/Miller-Rabin-primality-test/Ada/miller-rabin-primality-test-2.ada
with Ada.Numerics.Discrete_Random;
package body Miller_Rabin is
function Is_Prime (N : Number; K : Positive := 10)
return Result_Type
is
subtype Number_Range is Number range 2 .. N - 1;
package Rand... |
7,256 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/stm32/stm32f401/svd/i-stm32-rcc.ads | <filename>bb-runtimes/arm/stm32/stm32f401/svd/i-stm32-rcc.ads
--
-- Copyright (C) 2020, AdaCore
--
-- This spec has been automatically generated from STM32F401.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package Interfaces.STM32.RCC is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
... |
7,257 | ada | 7 | TUDSSL/TICS | msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/testsuite/gnat.dg/object_overflow1.adb | <gh_stars>1-10
-- { dg-do compile }
with Interfaces.C; use Interfaces.C;
procedure Object_Overflow1 is
procedure Proc (x : Boolean) is begin null; end;
type Arr is array(ptrdiff_t) of Boolean;
Obj : Arr; -- { dg-warning "Storage_Error" }
begin
Obj(1) := True;
Proc (Obj(1));
end;
|
7,258 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/support/macrodef.adb | <gh_stars>1-10
with Ada.Text_IO;
with System;
procedure Macrodef is
begin
Ada.Text_IO.Put_Line ("Integer'First = " & Integer'Image (Integer'First));
Ada.Text_IO.Put_Line ("Integer'Last = " & Integer'Image (Integer'Last));
Ada.Text_IO.Put_Line ("System.Min_Int = " & Long_Long_Integer'Image (System.Min_Int));
... |
7,259 | ada | 30 | jrmarino/AdaBase | src/results/adabase-results-field.adb | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with AdaBase.Results.Converters;
package body AdaBase.Results.Field is
package ARC renames AdaBase.Results.Converters;
-- [1] For several conversions, the string equivalents in both ASCII
-- an... |
7,260 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-bignum.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
7,261 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/stm32l0/power_modes/main.adb | <filename>examples/stm32l0/power_modes/main.adb<gh_stars>1-10
with STM32GD;
with STM32GD.Board;
with STM32_SVD; use STM32_SVD;
with STM32_SVD.Flash; use STM32_SVD.Flash;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.PWR; use STM32_SVD.PWR;
with STM32_SVD.SCB; use STM32_SVD.SCB;
with STM32_SVD.GPIO; use STM32_SV... |
7,262 | ada | 52 | onox/orka | examples/src/orka_13_geometry.adb | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2015 onox <<EMAIL>>
--
-- 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
-... |
7,263 | ada | 15 | mgrojo/adalib | ada-execution_time-interrupts.ads | -- Standard Ada library specification
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
-- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaRe... |
7,264 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/lm3s/setup_pll.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
7,265 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-dwalin.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
7,266 | ada | 2 | Infoss/conf-profile-4-android | ConfProfile/jni/strongswan/src/charon-tkm/src/ehandler/exception_handler.ads | <filename>ConfProfile/jni/strongswan/src/charon-tkm/src/ehandler/exception_handler.ads
--
-- Copyright (C) 2012 <NAME>
-- Copyright (C) 2012 <NAME>
-- Hochschule fuer Technik Rapperswil
--
-- This program is free software; you can redistribute it and/or modify it
-- under the terms of the GNU General Public Licens... |
7,267 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/validsw.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
7,268 | ada | 0 | reznikmm/gela | source/oasis/program-elements-null_statements.ads | <reponame>reznikmm/gela
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Statements;
with Program.Lexical_Elements;
package Program.Elements.Null_Statements is
pragma Pure (Program.Elements.Nul... |
7,269 | ada | 2 | charlie5/cBound | tier-1/xcb/source/thin/xcb-xcb_render_linefix_t.ads | <reponame>charlie5/cBound
-- This file is generated by SWIG. Please do not modify by hand.
--
with xcb.xcb_render_pointfix_t;
with Interfaces.C;
with Interfaces.C.Pointers;
package xcb.xcb_render_linefix_t is
-- Item
--
type Item is record
p1 : aliased xcb.xcb_render_pointfix_t.Item;
p2 : aliase... |
7,270 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.0.1/wisitoken-parse-packrat.adb | <filename>.emacs.d/elpa/wisi-3.0.1/wisitoken-parse-packrat.adb
-- Abstract :
--
-- See spec.
--
-- Copyright (C) 2018 Free Software Foundation, Inc.
--
-- This library is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public License as published by the Free
-- Softwar... |
7,271 | ada | 12 | TUM-EI-RCS/StratoX | tests/subnormal-target/src/crash.adb | <gh_stars>10-100
with Ada.Real_Time; use Ada.Real_Time;
with HIL.GPIO; use HIL.GPIO;
package body Crash is
procedure Last_Chance_Handler
(Source_Location : System.Address; Line : Integer) is
next : Time := Clock;
PERIOD : constant Time_Span := Milliseconds(1000);
begin
write (RED_LED, HIG... |
7,272 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Josephus-problem/Ada/josephus-problem.ada | <reponame>LaudateCorpus1/RosettaCodeData<filename>Task/Josephus-problem/Ada/josephus-problem.ada
with Ada.Command_Line, Ada.Text_IO;
procedure Josephus is
function Arg(Idx, Default: Positive) return Positive is -- read Argument(Idx)
(if Ada.Command_Line.Argument_Count >= Index
then Positive'Value(Ad... |
7,273 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-array_component_associations.adb | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Array_Component_Associations is
function Create
(Choices : Program.Element_Vectors.Element_Vector_Access;
Arrow_Token :... |
7,274 | ada | 2 | Fabien-Chouteau/motherlode | src/cargo_menu.adb | -- Motherlode
-- Copyright (c) 2020 <NAME>
with HAL; use HAL;
with PyGamer; use PyGamer;
with PyGamer.Time;
with PyGamer.Controls;
with PyGamer.Screen;
with Parameters;
with Render;
with World;
with Player;
with Sound;
package body Cargo_Menu is
use type World.Valuable_Cell;
Selected : World.Valuable_Cell... |
7,275 | ada | 0 | luk9400/nsi | list2/task1/src/main.adb | <gh_stars>0
with Ada.Text_IO;
with Primes;
procedure Main is
N : Positive := 16;
begin
Ada.Text_IO.Put_Line (Primes.IsPrime (N)'Image);
end Main;
|
7,276 | ada | 0 | GLADORG/glad-cli | src/commands-destroy.ads | with AAA.Strings;
with CLIC.TTY;
with Ada.Text_IO;
private with GNAT.Strings;
package Commands.Destroy is
package IO renames Ada.Text_IO;
package TT renames CLIC.TTY;
type Command is new Commands.Command with private;
overriding function Name (Cmd : Command) return CLIC.Subcommand.Identifier is
("destroy... |
7,277 | ada | 0 | optikos/oasis | source/nodes/program-nodes-others_choices.adb | <gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Others_Choices is
function Create
(Others_Token : not null Program.Lexical_Elements.Lexical_Element_Acce... |
7,278 | ada | 52 | onox/orka | orka/src/orka/interface/orka-rendering-framebuffers.ads | <filename>orka/src/orka/interface/orka-rendering-framebuffers.ads
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 onox <<EMAIL>>
--
-- 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 ... |
7,279 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-bbcpsp__x86_64.ads | <filename>bb-runtimes/src/s-bbcpsp__x86_64.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
7,280 | ada | 80 | thindil/steamsky | tests/crew-test_data-tests-skills_container-test_data-tests.ads | <reponame>thindil/steamsky
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Crew.Test_Data.Tests.Skills_Container.Test_Data.Tests is
type Test is new GNATtest_Generated.G... |
7,281 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/source_ref1.adb | pragma Source_Reference (3, "p1.adb");
procedure Source_Ref1 is
begin
null;
end;
|
7,282 | ada | 0 | reznikmm/gela | source/library/program-directory_unit_schemas.ads | <reponame>reznikmm/gela
-- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Unit_Naming;
private with Ada.Strings.Wide_Wide_Unbounded;
package Program.Directory_Unit_Schemas is
pragma Preelaborate;
typ... |
7,283 | ada | 6 | HeisenbugLtd/si_units | src/si_units-metric-scaling.ads | <reponame>HeisenbugLtd/si_units
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- 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... |
7,284 | ada | 0 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt41_pkg.ads | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt41_pkg.ads
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package Opt41_Pkg is
type Enum is (One, Two, Three, Four, Five, Six);
type Rec (D : Enum) is record
case D is
when One =>
I : ... |
7,285 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-stream.ads | <filename>bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-stream.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
7,286 | ada | 0 | sebsgit/textproc | src/imagethresholds.adb | with PixelArray;
with Ada.Containers.Vectors;
with Ada.Text_IO;
package body ImageThresholds is
function isBinary(image: PixelArray.ImagePlane) return Boolean is
function checkPixel(px: Pixel) return Boolean is
begin
return (px = 255 or px = 0);
end checkPixel;
begin
return image... |
7,287 | ada | 2 | egustafson/sandbox | Ada/gnat/ab.ada | <reponame>egustafson/sandbox<gh_stars>1-10
with TEXT_IO; use TEXT_IO;
with TASK_CONTROL;
use TASK_CONTROL;
procedure AB is
task A;
task B;
task C;
task D;
-- --
-- End of type declairations. --
-- --
task body A is
begin
dela... |
7,288 | ada | 0 | fuzzysloth/ada-awa | awa/regtests/awa-wikis-parsers-tests.ads | <reponame>fuzzysloth/ada-awa
-----------------------------------------------------------------------
-- awa-wikis-parsers-tests -- Unit tests for wiki parsing
-- Copyright (C) 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not... |
7,289 | ada | 0 | Fabien-Chouteau/bb_pico_bsp | src/bb_pico_bsp-lvgl_backend.ads | with Lv.Hal.Indev;
package BB_Pico_Bsp.LVGL_Backend is
procedure Initialize (Enable_Pointer : Boolean := True);
function Keypad_Indev return Lv.Hal.Indev.Indev_T;
end BB_Pico_Bsp.LVGL_Backend;
|
7,290 | ada | 2 | thindil/tashy2 | tests/tk-image-image_options_test_data.ads | -- This package is intended to set up and tear down the test environment.
-- Once created by GNATtest, this package will never be overwritten
-- automatically. Contents of this package can be modified in any way
-- except for sections surrounded by a 'read only' marker.
with AUnit.Test_Fixtures;
with GNATtest_Ge... |
7,291 | ada | 0 | pdibez/mundo-aspiradora | source/aspiradora.ads | with direccion,estado_casillero;
use direccion,estado_casillero;
package aspiradora is
-- IMPORTANTE 1: En Ada deben definirse la clase del objeto y los metodos en el mismo alcance
-- IMPORTANTE 2: En Ada debe pasarse el objeto como paramtero en cada metodo. Es un this explicito
type t_aspiradora is tagged ... |
7,292 | ada | 33 | ytomino/drake | source/zcx/s-unocse.adb | <gh_stars>10-100
-- for ZCX (or SjLj, or Win64 SEH)
pragma Check_Policy (Trace => Ignore);
with System.System_Allocators;
with C.unwind;
separate (System.Unwind.Occurrences)
package body Separated is
pragma Suppress (All_Checks);
use type C.signed_int;
procedure memset (
b : Address;
c : Integer;... |
7,293 | ada | 0 | sebsgit/textproc | src/tests/gpucomponentlabelingtests.adb | <reponame>sebsgit/textproc<filename>src/tests/gpucomponentlabelingtests.adb<gh_stars>0
with opencl; use opencl;
with cl_objects;
with GpuComponentLabeling;
with PixelArray.Gpu;
with PixelArray; use PixelArray;
with ImageIO;
with ShapeDatabase;
with ImageRegions; use ImageRegions;
with AUnit.Assertions; use AUnit.Asser... |
7,294 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/zfp-stm32g474/gnat/s-semiho.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
7,295 | ada | 1 | irion7/aflex-ayacc-mirror | aflex/src/alsys_dos/cmdlineb.ada |
-- TITLE command line interface
-- AUTHOR: <NAME> (UCI)
-- DESCRIPTION command line interface body for use with the VERDIX VADS system.
-- NOTES this file is system dependent
-- $Header: /co/ua/self/arcadia/aflex/ada/src/RCS/command_lineB.a,v 1.3 90/01/12 15:19:44 self Exp Locker: self $
--***************************... |
7,296 | ada | 24 | svn2github/matreshka | tools/gen_props.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
7,297 | ada | 15 | My-Colaborations/dynamo | src/asis/a4g-vcheck.ads | <filename>src/asis/a4g-vcheck.ads
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- ... |
7,298 | ada | 3 | charlie5/aIDE | source/adam-factory.ads | <reponame>charlie5/aIDE
with
AdaM.Any,
ada.Streams,
ada.Tags;
package AdaM.Factory
--
-- Provides persistent pointers.
--
--
-- Example:
--
-- package Subprogram
-- is
-- type Item is new Source.Entity with private;
-- type View is access all Item'Class;
--
-- private
-- ...
--
-- pr... |
7,299 | ada | 0 | matzke1/rose | src/frontend/Experimental_Ada_ROSE_Connection/parser/asis_adapter/source/asis_adapter-element-expressions.adb | with Asis.Elements;
with Asis.Exceptions;
with Asis.Expressions;
with Asis.Extensions;
with Asis.Set_Get; use Asis.Set_Get;
with A4G.Int_Knds; use A4G.Int_Knds;
package body Asis_Adapter.Element.Expressions is
-----------------------------
-- Do_Pre_Child_Processing --
-----------------------------
proce... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.