CombinedText
stringlengths
4
3.42M
-- -- Copyright (C) 2021 Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- package body ST7789 is procedure Write (This : in out ST7789_Screen; Reg : Register) is use HAL.SPI; Status : SPI_Status; begin This.CS.Clear; This.DC.Clear; ...
-- Copyright 2008-2017 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- ...
-- Databases - A simple database library for Ada applications -- (c) Kristian Klomsten Skordal 2019 <kristian.skordal@wafflemail.net> -- Report bugs and issues on <https://github.com/skordal/databases/issues> -- vim:ts=3:sw=3:et:si:sta with Databases; with Ada.Containers.Vectors; with Ada.Finalization; with Inte...
--PRÁCTICA 3: CÉSAR BORAO MORATINOS (Chat_Procedures.ads) with Maps_G; with Ada.Text_IO; with Ada.Calendar; with Lower_Layer_UDP; with Ada.Command_Line; with Ada.Strings.Unbounded; package Chat_Procedures is package ATI renames Ada.Text_IO; package LLU renames Lower_Layer_UDP; package ACL renames Ada.C...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- -- -- ...
-- C4A010A.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...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
-- Abstract : -- -- Add sorted behavior to parent. -- -- Copyright (C) 2018, 2019 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 versi...
pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.USB is pragma Preelaborate; --------------- -- Registers -- --------------- ----------------------------------- -- Usb...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" version="0...
package Father is type Father_Type is new Integer; private procedure Father_What (A : in out Father_Type); end Father;
------------------------------------------------------------------------------ -- host.ads -- -- This package defines the task for the host. The host allows the philoso- -- phers to enter and leave the restaurant. It also keeps track of how many -- philosophers have died. The host is called Norman_...
-- CE2409A.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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- -- Copyright (C) 2019, AdaCore -- -- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- 1. Redistributions of source code mu...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
-- -- Basic test : splitting a sentence into words -- with Ada.Text_IO; use Ada.Text_IO; with AdaPcre; use AdaPcre; procedure Test_0 is procedure Search_For_Pattern (Compiled_Expression : in AdaPcre.Pcre_Type; Search_In : in String; Offset : in Natural; First, Last...
with CSS.Core; with Ada.Text_IO; with CSS.Parser.Lexer_dfa; with CSS.Parser.Lexer_io; with CSS.Core.Values; package body CSS.Parser.Lexer is use Ada.Text_IO; use Ada.Strings.Unbounded; use Ada; use CSS.Parser.Lexer_dfa; use CSS.Parser.Lexer_IO; use CSS.Core.Values; pragma Style_Checks (Off); ...
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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- Copyright 2012-2017 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- ...
-- Generated by gperfhash with Util.Strings.Transforms; with Interfaces; use Interfaces; package body Mysql.Perfect_Hash is C : constant array (Character) of Unsigned_8 := (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
with Ada.Text_IO; use Ada.Text_IO; package body Symbolic_Expressions.Solving is procedure Mastica (X : Boolean) is begin null; end Mastica; ---------------------- -- Triangular_Solve -- ---------------------- procedure Triangular_Solve (What : in Equation_Tables.Map; Result...
-- Copyright 2010-2021 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Finalization; package Loop_Optimization8_Pkg1 is type Array_T is array (Positive range <>) of Natural; type Array_Access_T is access Array_T; type T is new Ada.Finalization.Controlled with record Last : Natural := 0; Elements : Array_Access_T; end record; Empty : T := (Ada.Finalization.C...
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....
with impact.d3.Joint; with impact.d3.Object.rigid; with impact.d3.jacobian_Entry; -- #include "LinearMath/impact.d3.Vector.h" -- #include "impact.d3.jacobian_Entry.h" -- #include "impact.d3.Joint.h" -- -- class impact.d3.Object.rigid; package impact.d3.Joint.hinge -- -- Hinge constraint between two rigidbodie...
package Giza.Hershey_Fonts.Gothitt is Font : constant Giza.Font.Ref_Const; private Glyph_0 : aliased constant Glyph := (Number_Of_Vectors => 0, Width => 16, Height => 0, Y_Offset => 0, X_Offset => -8, Vects => (others => (Raise_Pen))); Glyph_1 : aliased constant Glyph := ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
with ARM_Output, ARM_Contents, Ada.Text_IO; package ARM_Corr is -- -- Ada reference manual formatter (ARM_Form). -- -- This package defines the text output object. -- Output objects are responsible for implementing the details of -- a particular format. -- -- -----...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package Regtests.Simple is end Regtests.Simple;
-- Copyright 2019 Michael Casadevall <michael@casadevall.pro> -- -- 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, cop...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- Minimal Example to produce "integer literal expected" error in Dimension Aspect -- -- Steps to reproduce: -- * Dimension_System is applied on Integer type -- * subtype Dimension is set to a negative integer literal -- -- Wrong Behavior: -1 is a valid integer literal, however, compiler complains it is not...
-- Copyright 2017-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 applicab...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Copyright 2015-2021 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- ...
-- This spec has been automatically generated from STM32F427x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with System; with HAL; package STM32_SVD.CAN is pragma Preelaborate; --------------- -- Registers -- --------------- ------------------ -- MCR_Register -- ------------...
-- OpenAPI Petstore -- This is a sample server Petstore server. For this sample, you can use the api key `special_key` to test the authorization filters. -- -- The version of the OpenAPI document: 1.0.0 -- -- -- NOTE: This package is auto generated by OpenAPI-Generator 5.0.0-SNAPSHOT. -- https://openapi-generato...
package Rational is type Rat is private; function Create(num : in Long_Long_Integer; den : in Long_Long_Integer) return Rat; function Numerator(r : in Rat) return Long_Long_Integer; function Denomonator(r : in Rat) return Long_Long_Integer; function "+" (left, right: in Rat) return Rat; function "-"...
------------------------------------------------------------------------------- -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, -- are permitted provided that the following conditions are met: -- -- 1. Redistributions of source code must retain the above copyright notice, t...
------------------------------------------------------------------------------ -- Copyright (c) 2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with Ada.Unchecked_Conversion; with System.Tasks; package body Ada.Task_Termination is use type Task_Identification.Task_Id; function To_Private is new Unchecked_Conversion ( Task_Identification.Task_Id, System.Tasks.Task_Id); function To_Private is new Unchecked_Conversion ( ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
pragma License (Unrestricted); -- extended unit with Ada.IO_Exceptions; with Ada.Iterator_Interfaces; private with Ada.Finalization; private with Ada.Streams; generic type Input_Cursor is private; with function Has_Element (Position : Input_Cursor) return Boolean is <>; with package Input_Iterator_Interfaces ...
with Ada.Command_Line; use Ada.Command_Line; with Ada.Exceptions; use Ada.Exceptions; with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with TJa.Sockets; use TJa.Sockets; with TJa.Window.Text; use TJa.Window.Text; with TJa.Window.Elementary; use TJ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; with Ada.Strings.Fixed; -- Copyright 2021 Melwyn Francis Carlo procedure A024 is use Ada.Text_IO; use Ada.Strings.Fixed; N_Max : constant Integer := 10; I : constant Integer := 1_000_000; Numbers : array (Integer range 1 .. N_Max) of String (1 .. 1) := ("0", "1", ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Task_Body_Declarations is function Create (Task_Token : not null Program.Lexical_Elements ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Declarations; with Program.Lexical_Elements; with Program.Elements.Defining_Names; with Program.Elements.Parameter_Specifications; wit...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
-- Implantation du module Arbre_Binaire with Ada.Text_IO ; use Ada.Text_IO; with Ada.Unchecked_Deallocation; package body Arbre_Binaire is procedure Free is new Ada.Unchecked_Deallocation (Object => T_Noeud, Name => T_Abr); procedure Initialiser ( Abr : out T_Abr ) is begin Abr := Null ; end Ini...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- MIT License -- -- Copyright (c) 2021 Glen Cornell <glen.m.cornell@gmail.com> -- -- 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 rig...
package Giza.Bitmap_Fonts.FreeMonoBoldOblique32pt7b is Font : constant Giza.Font.Ref_Const; private FreeMonoBoldOblique32pt7bBitmaps : aliased constant Font_Bitmap := ( 16#00#, 16#7C#, 16#00#, 16#FE#, 16#01#, 16#FF#, 16#01#, 16#FF#, 16#03#, 16#FF#, 16#03#, 16#FF#, 16#03#, 16#FE#, 16#03#, 16#FE#, 16#03#, 16#...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017-2020, Fabien Chouteau -- -- -- -- ...
with Asis.Declarations; with Asis.Elements; package body Asis_Adapter.Element.Defining_Names is ------------ -- EXPORTED: ------------ procedure Do_Pre_Child_Processing (Element : in Asis.Element; State : in out Class) is Parent_Name : constant String := Module_Name; Module_Name : constant S...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2014-2015 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 fr...
----------------------------------------------------------------------- -- AWA.Comments.Models -- AWA.Comments.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-body.xhtml -- Ada Generator: https://ada-...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- This spec has been automatically generated from STM32F429x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.FLASH is pragma Preelaborate; --------------- -- Registers -- --------------- subtype ACR_LATENCY_Field i...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Partitions; use Partitions; with File_Block_Drivers; use File_Block_Drivers; with Test_Directories; use Test_Directories; with File_IO; procedure TC_Read_Partitions is use type File_IO.Status_Code; procedure List_Partitions (Path_To_Disk_Image : String);...
----------------------------------------------------------------------- -- asf-components-widgets-inputs -- Input widget components -- Copyright (C) 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may ...
function System.Environment_Block return C.char_ptr_ptr is environ : C.char_ptr_ptr with Import, Convention => C; begin return environ; end System.Environment_Block;
-- Copyright 2006-2019 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. -- -- ...
!FILE_FORMAT=ADS !VERSION=1.0 !Section=Dimensions 'Name|DimensionClass|DefaultTopMember|DimensionAlias|ShortName|UseForCurrency|DimensionSize|customDimensionId Fin_Department|Generic|#root|Fin_Department|C1|From|Large|1 Detail|Generic|#root|Detail|C2|To|Large|2 Data_Type|Generic|#root|Data_Type|C3|None|Large|3 Functi...
-- Copyright 2005, 2007, 2008 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....
pragma Ada_2012; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Strings.Fixed; with Ada.Characters.Handling; with Utilities.Tokenize; with Ada.Strings; package body Utilities.Option_Lists is ----------- -- Parse -- ----------- function Parse (Input : String; E...
----------------------------------------------------------------------- -- serialize-io-json-tests -- Unit tests for JSON parser -- Copyright (C) 2011, 2016, 2017, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
with Ada.Wide_Text_IO; use Ada.Wide_Text_IO; procedure Unicode is begin Put("札幌"); end Unicode;
package SomeClass is type SomeClass1 is record someAttribute : Integer := 1; end record; type SomeClass2 is record someAttribute2 : SomeClass1; end record; end SomeClass;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with z3_api_h; with System; package z3_optimization_h is function Z3_mk_optimize (c : z3_api_h.Z3_context) return z3_api_h.Z3_optimize -- z3/src/api/z3_optimization.h:38 with Import => True, Convention => C, Ext...
-- Copyright 2008-2020 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Lv.Color; with Lv.Style; package Lv.Objx.Gauge is subtype Instance is Obj_T; -- Create a gauge objects -- @param par pointer to an object, it will be the parent of the new gauge -- @param copy pointer to a gauge object, if not NULL then the new object will be copied from it -- @return pointer...
-- LANGUAGE: Ada -- AUTHOR: Niall Cartwright -- GITHUB: https://github.com/Nairu with Ada.Text_IO; use Ada.Text_IO; procedure HelloWorld is begin Put_Line ("Hello World!"); end HelloWorld;
with Lumen.Binary; package body Mandelbrot is function Create_Image (Width, Height : Natural) return Lumen.Image.Descriptor is use type Lumen.Binary.Byte; Result : Lumen.Image.Descriptor; X0, Y0 : Float; X, Y, Xtemp : Float; Iteration : Float; Max_Iteration : constant Float := 1...
-- Copyright 2008-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. -- -- ...
----------------------------------------------------------------------- -- Ada Labs -- -- -- -- Copyright (C) 2008-2009, AdaCore -- -- ...
-- -- (c) Copyright 1993,1994,1995,1996 Silicon Graphics, Inc. -- ALL RIGHTS RESERVED -- Permission to use, copy, modify, and distribute this software for -- any purpose and without fee is hereby granted, provided that the above -- copyright notice appear in all copies and that both the copyright notice -- and th...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" version="0...