commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
462d07a2210bfa3acfcf44b5fe6c5df4d82250ea | clean up | mdbs99/james | src/core/james.data.adapters.pas | src/core/james.data.adapters.pas | {
MIT License
Copyright (c) 2017-2018 Marcos Douglas B. Santos
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... | {
MIT License
Copyright (c) 2017-2018 Marcos Douglas B. Santos
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... | mit | Pascal |
6b239addfdfbf47edb28e1cf5398d558e42ed7c7 | fix win32titlestyler | Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText | comp/win32titlestyler.pas | comp/win32titlestyler.pas | (*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) Alexey Torgashin
*)
unit win32titlestyler;
{$mode objfpc}{$H+}
interface
uses
Windows, SysUtils, Forms, ... | (*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) Alexey Torgashin
*)
unit win32titlestyler;
{$mode objfpc}{$H+}
interface
uses
Windows, SysUtils, Forms, ... | mpl-2.0 | Pascal |
b9dbfcd2f8f66827e5a2b861d987d9f8dd29c368 | Update demo | monkeyxu/DelphiAST,LaKraven/DelphiAST,AmesianX/DelphiAST,Wosi/DelphiASTTemp,Wosi/DelphiAST,uschuster/DelphiAST,RomanYankovsky/DelphiAST,vintagedave/DelphiAST,NickRing/DelphiAST | Demo/uMainForm.pas | Demo/uMainForm.pas | unit uMainForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, StdCtrls;
type
TForm1 = class(TForm)
Memo1: TMemo;
MainMenu1: TMainMenu;
OpenDelphiUnit1: TMenuItem;
OpenDialog1: TOpenDialog;
procedure OpenDelphiUnit1Click(Sender: TOb... | unit uMainForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, StdCtrls;
type
TForm1 = class(TForm)
Memo1: TMemo;
MainMenu1: TMainMenu;
OpenDelphiUnit1: TMenuItem;
OpenDialog1: TOpenDialog;
procedure OpenDelphiUnit1Click(Sender: TOb... | mpl-2.0 | Pascal |
ac28891c68e2b628e0aa149036214b6171efdbda | Update Algoritmo_01.pas | carlosvilela/Algoritmos,carlosvilela/Algoritmos,carlosvilela/Algoritmos | Algoritmos-em-Pascal/Algoritmo_01.pas | Algoritmos-em-Pascal/Algoritmo_01.pas | {01 - Faça um algoritmo que leia números inteiros positivos e imprima no final qual o maior e menor número lido. O algoritmo deve parar a leitura quando for lido um número igual a zero.}
program Maior_Menor_inteiro;
uses crt; {usar o delay, clrscr, }
var N : integer;
var Max,Min : integer;
var i : integer;
begin
w... | {01 - Faça um algoritmo que leia números inteiros positivos e imprima no final qual o maior e menor número lido. O algoritmo deve parar a leitura quando for lido um número igual a zero.
program Maior_Menor_inteiro;
uses crt; {usar o delay, clrscr, }
var N : integer;
var Max,Min : integer;
var i : integer;
begin
wr... | mit | Pascal |
ad529acd95c6421f3a25e34e5e88cd7f12a648ae | Build fixes for stricter .ctors | remobjects/Marzipan,remobjects/Marzipan,remobjects/Marzipan | Importer/Program.pas | Importer/Program.pas | namespace Importer;
interface
uses
System.IO,
System.Linq,
RemObjects.CodeGen4;
type
ConsoleApp = static class
private
method WriteSyntax;
public
method Main(args: array of String);
end;
implementation
method ConsoleApp.WriteSyntax;
begin
writeLn('syntax: MZImporter.ex... | namespace Importer;
interface
uses
System.IO,
System.Linq,
RemObjects.CodeGen4;
type
ConsoleApp = static class
private
method WriteSyntax;
public
method Main(args: array of String);
end;
implementation
method ConsoleApp.WriteSyntax;
begin
writeLn('syntax: MZImporter.ex... | bsd-3-clause | Pascal |
319e3617e0545838f868fcf0d655c0f8f865be7b | Use LongInt in fibonacci test | rscprof/kalium | testing/tests/rec-010/program.pas | testing/tests/rec-010/program.pas | function fib_(x: LongInt
; var fib_2: LongInt): LongInt;
var
a, b, c, d: LongInt;
begin
if x = 0 then
begin
fib_ := 0;
fib_2 := 1;
end
else
begin
a := fib_(x div 2, b);
c := a * (2 * b - a);
d := b * b + a * a;
if x mod 2 = 0
then ... | function fib_(x: Integer; var fib_2: Integer): Integer;
var
a, b, c, d: Integer;
begin
if x = 0 then
begin
fib_ := 0;
fib_2 := 1;
end
else
begin
a := fib_(x div 2, b);
c := a * (2 * b - a);
d := b * b + a * a;
if x mod 2 = 0
then begin... | bsd-3-clause | Pascal |
4bbfaea47d2c1d0c52c8032031c8b1484774716d | test cleanup | Xcentric/FIToolkit | Tests/Test_FIToolkit.Logger.Utils.pas | Tests/Test_FIToolkit.Logger.Utils.pas | unit Test_FIToolkit.Logger.Utils;
{
Delphi DUnit Test Case
----------------------
This unit contains a skeleton test case class generated by the Test Case Wizard.
Modify the generated code to correctly setup and call the methods from the unit
being tested.
}
interface
uses
TestFramework,
FIToolkit.L... | unit Test_FIToolkit.Logger.Utils;
{
Delphi DUnit Test Case
----------------------
This unit contains a skeleton test case class generated by the Test Case Wizard.
Modify the generated code to correctly setup and call the methods from the unit
being tested.
}
interface
uses
TestFramework,
FIToolkit.L... | mit | Pascal |
ad5f7ad6fed9247f893693f8791270ea0c112208 | use chained calls | ForNeVeR/ML2DiskConfig | src/ML2DiskConfig.pas | src/ML2DiskConfig.pas | {$reference ../libs/Avalonia.Controls.dll}
{$reference ../libs/Avalonia.Direct2D1.dll}
{$reference ../libs/Avalonia.Markup.Xaml.dll}
{$reference ../libs/Avalonia.Win32.dll}
{$resource ML2DiskConfig.App.xaml}
uses
Avalonia,
Avalonia.Controls,
Avalonia.Markup.Xaml,
MainWindowUnit;
type
App = class... | {$reference ../libs/Avalonia.Controls.dll}
{$reference ../libs/Avalonia.Direct2D1.dll}
{$reference ../libs/Avalonia.Markup.Xaml.dll}
{$reference ../libs/Avalonia.Win32.dll}
{$resource ML2DiskConfig.App.xaml}
uses
Avalonia,
Avalonia.Controls,
Avalonia.Markup.Xaml,
MainWindowUnit;
type
App = class... | mit | Pascal |
ede5956d705d3a5c213870e8e0aebb0468f4b0c2 | Replace ASM with Object Pascal. It was not 64bit friendly. | wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI | src/DataTypes.pas | src/DataTypes.pas | Unit DataTypes;
{$mode objfpc}{$H+}
{$ASMMODE intel}
// NewView - a new OS/2 Help Viewer
// Copyright 2001 Aaron Lawrence (aaronl at consultant dot com)
// This software is released under the Gnu Public License - see readme.txt
Interface
// Just defines various types useful in manipulating help files.
type
int32... | Unit DataTypes;
{$mode objfpc}{$H+}
{$ASMMODE intel}
// NewView - a new OS/2 Help Viewer
// Copyright 2001 Aaron Lawrence (aaronl at consultant dot com)
// This software is released under the Gnu Public License - see readme.txt
Interface
// Just defines various types useful in manipulating help files.
type
int32... | lgpl-2.1 | Pascal |
4f782520eccaf26d071b6a626094075da33449ad | Update hello world (#53) | rpottsoh/xdelphi,exercism/xdelphi,rpottsoh/xpascal,exercism/xpascal,rpottsoh/exercism-delphi | exercises/hello-world/uTestHelloWorld.pas | exercises/hello-world/uTestHelloWorld.pas | //*****************************************************************************
// You got an error, which is exactly as it should be.
// This is the first step in the Test-Driven Development
// (TDD) process.
//
// The most important part of the error is
//
// "cannot compile"
//
// It's looking for a file named uHe... | unit uTestHelloWorld;
interface
uses
DUnitX.TestFramework;
type
[TestFixture]
HelloWorldTest = class(TObject)
public
[Test]
procedure test_no_name;
[Test]
[Ignore('Comment this line to run this test')]
procedure test_sample_name;
[Test]
[Ignore('Comment this line to run this test')... | mit | Pascal |
9c1d8c609e172298dc1df8a5c88522eb2d1a1cf0 | use the correct types | csoroiu/untwist,csoroiu/untwist | samples/pascal/randint.pas | samples/pascal/randint.pas | {$IFDEF FPC}
{$mode objfpc} {$H+}
{$ELSE}
{$N+,E-,D-,L-,Y-}
{$ENDIF}
program randInt;
{$IFDEF CONDITIONALEXPRESSIONS}
{$IF CompilerVersion >= 14}
{$APPTYPE CONSOLE}
{$IFEND}
{$ENDIF}
{dcc32 -B -CC -U..\Lib randInt.pas}
procedure randInteger(seed, range : longint; count : integer);
var
i : integer;
begin
... | {$IFDEF FPC}
{$mode objfpc} {$H+}
{$ELSE}
{$N+,E-,D-,L-,Y-}
{$ENDIF}
program randInt;
{$IFDEF CONDITIONALEXPRESSIONS}
{$IF CompilerVersion >= 14}
{$APPTYPE CONSOLE}
{$IFEND}
{$ENDIF}
{dcc32 -B -CC -U..\Lib randInt.pas}
procedure randInteger(seed : longint; range, count : integer);
var
i : integer;
begin
... | apache-2.0 | Pascal |
3b943e4022806734b723e8e86deda8572b7bef10 | Sort style | mdbs99/xavier | src/xavier.xml.pas | src/xavier.xml.pas | {
MIT License
Copyright (c) 2017 Marcos Douglas B. Santos
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, mo... | {
MIT License
Copyright (c) 2017 Marcos Douglas B. Santos
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, mo... | mit | Pascal |
ae8bb689affb94a4086d452643f4a806e0548c50 | improve logging on uninstall | tavultesoft/keymanweb,tavultesoft/keymanweb | windows/src/desktop/insthelp/Keyman.System.InstHelp.KeymanStartTaskUninstall.pas | windows/src/desktop/insthelp/Keyman.System.InstHelp.KeymanStartTaskUninstall.pas | unit Keyman.System.InstHelp.KeymanStartTaskUninstall;
interface
type
TKeymanStartTaskUninstall = class
class procedure DeleteAllTasks;
private
class procedure ReportEvent(const Message: string); static;
end;
implementation
uses
System.SysUtils,
System.Variants,
Winapi.ActiveX,
Winapi.Windows,
... | unit Keyman.System.InstHelp.KeymanStartTaskUninstall;
interface
type
TKeymanStartTaskUninstall = class
class procedure DeleteAllTasks;
end;
implementation
uses
System.SysUtils,
System.Variants,
Winapi.ActiveX,
Winapi.Windows,
klog,
TaskScheduler_TLB;
const
CTaskFolderName = 'Keyman';
class ... | apache-2.0 | Pascal |
f2dbf36df1a767ad515c97164d9d9414f0dcbfb5 | Add licence to lastfm.pas. | tristan2468/hgdc-x | lastfm.pas | lastfm.pas | /*
* Copyright (c) 2011, Tristan Linnell <tris@canthack.org>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS I... | //
// Copyright 2011 Tristan Linnell
// tris@canthack.org
//
// lastfm.pas - Last.fm scrobbling client
unit LastFM;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
const
API_ROOT_URL = 'http://ws.audioscrobbler.com/2.0/';
API_KEY = 'KEY_HERE';
API_SECRET = 'SECRET HERE';
type
{ TLastFM }
TLa... | isc | Pascal |
b64e1b483931527ed581bd8f830afacb5f8015ff | Fix crash running kmconvert because COM was not initialized | tavultesoft/keymanweb,tavultesoft/keymanweb | windows/src/developer/kmconvert/Keyman.Developer.System.KeymanConvertMain.pas | windows/src/developer/kmconvert/Keyman.Developer.System.KeymanConvertMain.pas | unit Keyman.Developer.System.KeymanConvertMain;
interface
procedure Run;
implementation
uses
System.SysUtils,
Winapi.ActiveX,
Keyman.Developer.System.KMConvertParameters,
Keyman.Developer.System.ImportWindowsKeyboard,
Keyman.Developer.System.KeyboardProjectTemplate,
ResourceStrings,
VersionInfo;
fun... | unit Keyman.Developer.System.KeymanConvertMain;
interface
procedure Run;
implementation
uses
System.SysUtils,
Keyman.Developer.System.KMConvertParameters,
Keyman.Developer.System.ImportWindowsKeyboard,
Keyman.Developer.System.KeyboardProjectTemplate,
ResourceStrings,
VersionInfo;
function DoRun: Boole... | apache-2.0 | Pascal |
4c1d939220faa0a9ea49e01a745e08e506a02e8b | Fix bubble.pas missing 'var' keyword (no problems) | chovanecm/pascal-truffle,chovanecm/pascal-truffle | benchmarks/bubble.pas | benchmarks/bubble.pas | program bubble;
var arr : array [1..10000] of integer;
var n, i, j : integer;
var tmp : integer;
var sorted: boolean;
var swaps : integer;
begin
n := 10000;
swaps := 0;
{ generate array }
for i:= 1 to n do
begin
arr[i] := n - i;
end;
{bubble sort}
for i:=2 to n do
begin
for j:=n downto i do
begin
if arr[j] < a... | program bubble;
var arr : array [1..10000] of integer;
var n, i, j : integer;
var tmp : integer;
var sorted: boolean;
swaps : integer;
begin
n := 10000;
swaps := 0;
{ generate array }
for i:= 1 to n do
begin
arr[i] := n - i;
end;
{bubble sort}
for i:=2 to n do
begin
for j:=n downto i do
begin
if arr[j] < arr[j... | mit | Pascal |
4f7c15d667ffabe49ce4c63fc9d04ff14bcb1d03 | Update demo | vintagedave/DelphiAST,Wosi/DelphiASTTemp,RomanYankovsky/DelphiAST,AmesianX/DelphiAST,monkeyxu/DelphiAST,LaKraven/DelphiAST,NickRing/DelphiAST,uschuster/DelphiAST,Wosi/DelphiAST | Demo/uMainForm.pas | Demo/uMainForm.pas | unit uMainForm;
{$IFDEF FPC}{$MODE Delphi}{$ENDIF}
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, StdCtrls, SimpleParser.Lexer.Types;
type
TForm1 = class(TForm)
Memo1: TMemo;
MainMenu1: TMainMenu;
OpenDelphiUnit1: TMenuItem;
OpenDialog... | unit uMainForm;
{$IFDEF FPC}{$MODE Delphi}{$ENDIF}
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, StdCtrls, SimpleParser.Lexer.Types;
type
TForm1 = class(TForm)
Memo1: TMemo;
MainMenu1: TMainMenu;
OpenDelphiUnit1: TMenuItem;
OpenDialog... | mpl-2.0 | Pascal |
e6ee45066384e51aa762f422851757be438e8337 | Handle \ vs / in Importer dll names | remobjects/Marzipan,remobjects/Marzipan,remobjects/Marzipan | Importer/ImporterSettings.pas | Importer/ImporterSettings.pas | namespace Importer;
interface
uses
System.Collections.Generic,
System.Text,
System.Linq,
System.Xml.Linq;
type
OutputType = public enum (Nougat, ObjC);
ImporterSettings = public class
private
fLibraries : List<String> := new List<String>;
fTypes: List<ImportType> := new List<Imp... | namespace Importer;
interface
uses
System.Collections.Generic,
System.Text,
System.Linq,
System.Xml.Linq;
type
OutputType = public enum (Nougat, ObjC);
ImporterSettings = public class
private
fLibraries : List<String> := new List<String>;
fTypes: List<ImportType> := new List<Imp... | bsd-3-clause | Pascal |
8dd584bb3fd6152cfc581ac4f799a6a1f44d7aaf | Add {$IFDEF TESTINSIGHT} (#69) | andrea-magni/MARS,andrea-magni/MARS | tests/MARSTestsProject.dpr | tests/MARSTestsProject.dpr | program MARSTestsProject;
{.$DEFINE TESTINSIGHT}
{$IFNDEF TESTINSIGHT}
{$APPTYPE CONSOLE}
{$ENDIF}{$STRONGLINKTYPES ON}
{$R *.res}
uses
SysUtils,
{$IFDEF TESTINSIGHT}
TestInsight.DUnitX,
{$ENDIF}
DUnitX.TestFramework,
DUnitX.Loggers.Console,
Tests.Core in 'Tests.Core.pas',
Tests.MessageBodyWriters in 'T... | program MARSTestsProject;
{.$DEFINE TESTINSIGHT}
{$IFNDEF TESTINSIGHT}
{$APPTYPE CONSOLE}
{$ENDIF}{$STRONGLINKTYPES ON}
{$R *.res}
uses
SysUtils,
TestInsight.DUnitX,
DUnitX.TestFramework,
DUnitX.Loggers.Console,
Tests.Core in 'Tests.Core.pas',
Tests.MessageBodyWriters in 'Tests.MessageBodyWriters.pas',
... | mpl-2.0 | Pascal |
4148f3e20bcab39458852b8639981280e6391f9d | Fix issue where web server will not listen on https when not listening on the default https port (443) | rburgstaler/StandAloneDelphiWebServer,rburgstaler/StandAloneDelphiWebServer | WebServerUnit.pas | WebServerUnit.pas | unit WebServerUnit;
interface
uses
Classes,
SysUtils,
IdSSLOpenSSL,
IdGlobal,
IdSSL,
IdHTTPWebBrokerBridge;
type
TWebServer = class
private
FServer: TIdHTTPWebBrokerBridge;
fSSLPrivateKeyPassword: String;
fSSLEnabled: Boolean;
procedure TerminateThreads;
function getActive: Boole... | unit WebServerUnit;
interface
uses
Classes,
SysUtils,
IdSSLOpenSSL,
IdSSL,
IdHTTPWebBrokerBridge;
type
TWebServer = class
private
FServer: TIdHTTPWebBrokerBridge;
fSSLPrivateKeyPassword: String;
procedure TerminateThreads;
function getActive: Boolean;
function getPort: Integer;
... | mit | Pascal |
56b3fed9b28bb8e0235f3c308efcd5989b4ac44f | fix dlg_custom, macos | Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText | app/proc_customdialog_dummy.pas | app/proc_customdialog_dummy.pas | (*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) Alexey Torgashin
*)
unit proc_customdialog_dummy;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, ... | (*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) Alexey Torgashin
*)
unit proc_customdialog_dummy;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, ... | mpl-2.0 | Pascal |
d897e9c37b1077491654e93065d765f863bb0bb4 | rename 2 funcs | Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText | app/treehelper_rest.pas | app/treehelper_rest.pas | (*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) Alexey Torgashin
*)
unit TreeHelper_reST;
{$mode objfpc}{$H+}
interface
uses
SysUtils,
ATStrings,
AT... | (*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) Alexey Torgashin
*)
unit TreeHelper_reST;
{$mode objfpc}{$H+}
interface
uses
SysUtils,
ATStrings,
AT... | mpl-2.0 | Pascal |
77758165514c6eb7537285ab279eacea4e39c0a8 | update to v2.0.0 | exercism/xdelphi,rpottsoh/exercism-delphi,exercism/xpascal | exercises/pangram/uPangramTests.pas | exercises/pangram/uPangramTests.pas | unit uPangramTests;
interface
uses
DUnitX.TestFramework;
const
CanonicalVersion = '2.0.0';
type
[TestFixture('isPangram')]
TPangramTests = class(TObject)
public
[Test]
// [Ignore('Comment the "[Ignore]" statement to run the test')]
procedure empty_sentence;
[Test]
[Ignore]
procedur... | unit uPangramTests;
interface
uses
DUnitX.TestFramework;
const
CanonicalVersion = '1.4.0';
type
[TestFixture]
PangramTests = class(TObject)
public
[Test]
// [Ignore('Comment the "[Ignore]" statement to run the test')]
procedure sentence_empty;
[Test]
[Ignore]
procedure recognizes_a... | mit | Pascal |
a2abc70de5a3617a8be260eaf7a3df0a4bb0578d | rework apply/save of hotkey from hotkey conf dlg | Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText | app/proc_keysdialog.pas | app/proc_keysdialog.pas | (*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) Alexey Torgashin
*)
unit proc_keysdialog;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Controls... | (*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) Alexey Torgashin
*)
unit proc_keysdialog;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Controls... | mpl-2.0 | Pascal |
92de11c1ac70066d07314b9a3cb276eacf2cccad | remove Application.ProcessMessages from processForm | grahamegrieve/fhirserver,grahamegrieve/fhirserver,grahamegrieve/fhirserver,grahamegrieve/fhirserver | toolkit/ProcessForm.pas | toolkit/ProcessForm.pas | unit ProcessForm;
{
Copyright (c) 2017+, Health Intersections Pty Ltd (http://www.healthintersections.com.au)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code ... | unit ProcessForm;
{
Copyright (c) 2017+, Health Intersections Pty Ltd (http://www.healthintersections.com.au)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code ... | bsd-3-clause | Pascal |
42da8c84895acb8d922fdb36b13978a09ddadd36 | work on scrollbars | Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText | app/proc_scrollbars.pas | app/proc_scrollbars.pas | unit proc_scrollbars;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Controls, Graphics, StdCtrls, ComCtrls, Forms,
ATScrollBar, ATListbox;
type
{ TTreeViewMy }
TTreeViewMy = class(TTreeView)
private
FScroll: TATScroll;
procedure ScrollChange(Sender: TObject);
procedure UpdScroll;
pr... | unit proc_scrollbars;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Controls, Graphics, StdCtrls, ComCtrls, Forms,
ATScrollBar;
type
{ TTreeViewMy }
TTreeViewMy = class(TTreeView)
private
FScroll: TATScroll;
procedure ScrollChange(Sender: TObject);
procedure UpdScroll;
protected
... | mpl-2.0 | Pascal |
adfd08c7daaec6ce3a10331c6d139307a7eda0d2 | Add a CleanUp process to the TaskList to avoid unnecessary memory usage. | monde-sistemas/pusher-http-delphi | delphi/PusherServer.pas | delphi/PusherServer.pas | unit PusherServer;
interface
uses
ComObj,
System.Generics.Collections,
System.Threading,
System.Classes,
SysUtils,
System.SyncObjs;
type
TOptions = set of (UseSSL);
TPusherServer = class
private
PusherServerNative: OleVariant;
public
constructor Create(AppID, AppKey, AppSecret: string; C... | unit PusherServer;
interface
uses
ComObj,
System.Generics.Collections,
System.Threading,
System.Classes,
SysUtils,
System.SyncObjs;
type
TOptions = set of (UseSSL);
TPusherServer = class
private
PusherServerNative: OleVariant;
public
constructor Create(AppID, AppKey, AppSecret: string; C... | mit | Pascal |
603770e222be02684f2aeb2d841ce97192ae9652 | fix for Win32 single-inst option | Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText | app/fix_focus_window.pas | app/fix_focus_window.pas | (*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) Alexey Torgashin
*)
unit fix_focus_window;
{$mode objfpc}{$H+}
interface
uses
{$ifdef windows}
Windows... | (*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) Alexey Torgashin
*)
unit fix_focus_window;
{$mode objfpc}{$H+}
interface
uses
{$ifdef windows}
Windows... | mpl-2.0 | Pascal |
49c09f4a98517a39d1f9400fc1c6882623fff3ed | Build .kmx when linux specified in targets system store | tavultesoft/keymanweb,tavultesoft/keymanweb | windows/src/global/delphi/general/UKeymanTargets.pas | windows/src/global/delphi/general/UKeymanTargets.pas | unit UKeymanTargets;
interface
type
TKeymanTarget = (
ktAny,
ktWindows, ktMacosx, ktLinux,
ktWeb, ktIphone, ktIpad, ktAndroidphone, ktAndroidtablet,
ktMobile, ktDesktop, ktTablet);
TKeymanTargets = set of TKeymanTarget;
const
// Note: if these change, update the copied values in KeyboardParser... | unit UKeymanTargets;
interface
type
TKeymanTarget = (
ktAny,
ktWindows, ktMacosx, ktLinux,
ktWeb, ktIphone, ktIpad, ktAndroidphone, ktAndroidtablet,
ktMobile, ktDesktop, ktTablet);
TKeymanTargets = set of TKeymanTarget;
const
// Note: if these change, update the copied values in KeyboardParser... | apache-2.0 | Pascal |
7db38dce9d3390ca5ec4c3698b3546cceebfd1c8 | optimize addon installed report | Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText | app/form_addon_report.pas | app/form_addon_report.pas | unit form_addon_report;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ButtonPanel,
ExtCtrls, StdCtrls, IniFiles,
ATStringProc,
proc_globdata,
proc_msg;
type
{ TfmAddonReport }
TfmAddonReport = class(TForm)
ButtonPanel1: TButtonPanel;
ListB... | unit form_addon_report;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ButtonPanel,
ExtCtrls, StdCtrls, IniFiles,
ATStringProc,
proc_globdata,
proc_msg;
type
{ TfmAddonReport }
TfmAddonReport = class(TForm)
ButtonPanel1: TButtonPanel;
ListB... | mpl-2.0 | Pascal |
6883630159e70f04e0d3b76bc898de992c009683 | Append content for the request to prove full trip to server took place | rburgstaler/StandAloneDelphiWebServer,rburgstaler/StandAloneDelphiWebServer | WebModuleUnit.pas | WebModuleUnit.pas | unit WebModuleUnit;
interface
uses
System.SysUtils, System.Classes, Web.HTTPApp, Datasnap.DSHTTPCommon,
Datasnap.DSHTTPWebBroker, Datasnap.DSServer,
Web.WebFileDispatcher, Web.HTTPProd,
DSAuth,
Datasnap.DSProxyJavaScript, IndyPeerImpl, Datasnap.DSClientMetadata,
Datasnap.DSCommonServer, IPPeerServer,
Da... | unit WebModuleUnit;
interface
uses
System.SysUtils, System.Classes, Web.HTTPApp, Datasnap.DSHTTPCommon,
Datasnap.DSHTTPWebBroker, Datasnap.DSServer,
Web.WebFileDispatcher, Web.HTTPProd,
DSAuth,
Datasnap.DSProxyJavaScript, IndyPeerImpl, Datasnap.DSClientMetadata,
Datasnap.DSCommonServer, IPPeerServer,
Da... | mit | Pascal |
25f0c85d0dbc691c3074fa43a6085ca72ac22d7a | Update heap.pas | MikeMirzayanov/binary-heap-benchmark,MikeMirzayanov/binary-heap-benchmark,MikeMirzayanov/binary-heap-benchmark,MikeMirzayanov/binary-heap-benchmark,MikeMirzayanov/binary-heap-benchmark,MikeMirzayanov/binary-heap-benchmark,MikeMirzayanov/binary-heap-benchmark,MikeMirzayanov/binary-heap-benchmark,MikeMirzayanov/binary-he... | pascal/heap.pas | pascal/heap.pas | const MAXN = 10000000;
var h: array[0..MAXN - 1] of longInt;
procedure pushDown(pos, n: longInt);
var j, t: longInt;
begin
while (2 * pos + 1 < n) do
begin
j := 2 * pos + 1;
if (j + 1 < n) and (h[j + 1] > h[j]) then
inc(j);
if (h[pos] >= h[j]) then
break;
... | uses dos;
const MAXN = 10000000;
var h: array[0..MAXN - 1] of longInt;
procedure swap(var x, y: longInt);
begin
x := x xor y;
y := x xor y;
x := x xor y;
end;
procedure pushDown(pos, n: longInt);
var j: longInt;
begin
while (2 * pos + 1 < n) do
begin
j := 2 * pos + 1;
if (j + 1 <... | mit | Pascal |
4a3b13f433dfc910950a22d39b5e2f3941cff2b2 | Fix typo. | kmzbrnoI/hJOPserver | src/DataUsers.pas | src/DataUsers.pas | unit DataUsers;
// TUsersTableData - trida starajici se o vyplneni tabulky uzivatelu
interface
uses ComCtrls, SysUtils;
type
TUsersTableData=class
private
LV:TListView;
public
procedure LoadToTable();
procedure UpdateTable();
procedure UpdateLine(line:Integer);
procedure ... | unit DataUsers;
// TJCTableData - trida starajici se o vyplneni tabulky jizdnich cest
interface
uses ComCtrls, SysUtils;
type
TUsersTableData=class
private
LV:TListView;
public
procedure LoadToTable();
procedure UpdateTable();
procedure UpdateLine(line:Integer);
procedure... | apache-2.0 | Pascal |
fdf885b6e5efc11488dc43065d177eb3eea46791 | update to v1.4.0 | rpottsoh/exercism-delphi,rpottsoh/xdelphi,rpottsoh/xpascal,exercism/xdelphi,exercism/xpascal | exercises/leap/uLeapTests.pas | exercises/leap/uLeapTests.pas | unit uLeapTests;
interface
uses
DUnitX.TestFramework;
const
CanonicalVersion = '1.4.0';
type
[TestFixture]
YearTest = class(TObject)
public
[Test]
// [Ignore('Comment the "[Ignore]" statement to run the test')]
procedure year_not_divisible_by_4_common_year;
[Test]
[Ignore]
procedur... | unit uLeapTests;
interface
uses
DUnitX.TestFramework;
const
CanonicalVersion = '1.3.0';
type
[TestFixture]
YearTest = class(TObject)
public
[Test]
// [Ignore('Comment the "[Ignore]" statement to run the test')]
procedure year_not_divisible_by_4_common_year;
[Test]
[Ignore]
procedure ... | mit | Pascal |
dd7bf2fa313697f8eea04e27521cfc7123a1507d | remove unused ndk references | minneron/minneron,minneron/minneron | tok.pas | tok.pas | { this is a token-centric editor. }
{$mode delphiunicode}{$i xpc.inc}
program tok;
uses xpc, uapp, mned, ukm, utok, ui, kvm, ug2d, uww, num,
/* dndk, undk, */ udb, udc, utv, mnbuf, classes, cw, cli;
type TToken = record
x, y : cardinal; c : word;
end;
type TTokEd = class (uapp.TCustomApp)
protected
... | { this is a token-centric editor. }
{$mode delphiunicode}{$i xpc.inc}
program tok;
uses xpc, uapp, mned, ukm, utok, ui, kvm, ug2d, uww, num,
dndk, undk, udb, udc, utv, mnbuf, classes, cw, cli;
type TToken = record
x, y : cardinal; c : word;
end;
type TTokEd = class (uapp.TCustomApp)
protected
ndk :... | mit | Pascal |
a33bb0debd3b16f3e2553dbe0f64f4c8ea0852f1 | fix compilation of dbgdisasm | graemeg/fpdebug | dubylib/dbgdisasm.pas | dubylib/dbgdisasm.pas | // abstract disassembler
unit dbgdisasm;
interface
uses
dbgTypes;
type
TDisasmElem = class(TObject)
Instr : String;
Params : array [0..3] of String;
Next : TDisasmElem;
end;
TDisassembler = class(TObject)
public
procedure Disasm(const From: TDbgPtr; const Data: array of byte); virtual; ... | // abstract disassembler
unit dbgdisasm;
interface
type
TDisasmElem = class(TObject)
Instr : String;
Params : array [0..3] of String;
Next : TDisasmElem;
end;
TDisassembler = class(TObject)
public
procedure Disasm(const From: TDbgPtr; const Data: array of byte); virtual; abstract;
func... | bsd-2-clause | Pascal |
e383b4641f7b499ec3b29d66cd074eaa405bbd8a | update pascal version | FarGroup/FarManager,johnd0e/FarManager,johnd0e/FarManager,FarGroup/FarManager,FarGroup/FarManager,FarGroup/FarManager,johnd0e/FarManager,johnd0e/FarManager,FarGroup/FarManager,FarGroup/FarManager,johnd0e/FarManager,FarGroup/FarManager,johnd0e/FarManager,johnd0e/FarManager,FarGroup/FarManager,johnd0e/FarManager | plugins/helloworld/HelloWorld.pas | plugins/helloworld/HelloWorld.pas | (*
"Hello, World!" - 樮 .
Copyright (c) 2000-2006, [ FAR group ]
Delphi version copyright (c) 2000, Vasily V. Moshninov
*)
{$IFNDEF VIRTUALPASCAL}
{$APPTYPE CONSOLE}
{$MINENUMSIZE 4}
{$ENDIF}
library HelloWorld;
uses windows, plugin;
type
TMessage = (MTitle, MMessage1, MMessage2, MMessage3, MMessage4, MB... | (*
"Hello, World!" - 樮 .
Copyright (c) 2000, [ FAR group ]
Delphi version copyright (c) 2000, Vasily V. Moshninov
*)
{$APPTYPE CONSOLE}
{$MINENUMSIZE 4}
library HelloWorld;
uses windows, plugin;
type
TMessage = (MTitle, MMessage1, MMessage2, MMessage3, MMessage4, MButton);
var
FARAPI: TPluginStartupInfo;
... | bsd-3-clause | Pascal |
a685549d69d55b95edf36f298e38bb017f2ebf84 | Fix compilation warnings | thibmo/kam_remake,reyandme/kam_remake,reyandme/kam_remake,thibmo/kam_remake,thibmo/kam_remake,thibmo/kam_remake,reyandme/kam_remake,reyandme/kam_remake,reyandme/kam_remake,thibmo/kam_remake | src/ext/iaWin.NameDelphiThreads.pas | src/ext/iaWin.NameDelphiThreads.pas | unit iaWin.NameDelphiThreads;
{$I KaM_Remake.inc}
interface
uses
WinAPI.Windows;
procedure NameDelphiThreads(const pMainThreadId:THandle);
// taken from https://github.com/ideasawakened/iaLib
// article: https://www.ideasawakened.com/post/name-your-threads-even-the-ones-auto-created-by-delphi
implem... | unit iaWin.NameDelphiThreads;
{$I KaM_Remake.inc}
interface
uses
WinAPI.Windows;
procedure NameDelphiThreads(const pMainThreadId:THandle);
// taken from https://github.com/ideasawakened/iaLib
// article: https://www.ideasawakened.com/post/name-your-threads-even-the-ones-auto-created-by-delphi
implem... | agpl-3.0 | Pascal |
8acfdb3afaf0e794ddd7524f60f53a5b20a37769 | Fix for managed VLC apps | Relfos/TERRA-Engine,thecocce/TERRA-Engine,thecocce/TERRA-Engine,auokss/TERRA-Engine,Relfos/TERRA-Engine,Relfos/TERRA-Engine,Relfos/TERRA-Engine,auokss/TERRA-Engine,thecocce/TERRA-Engine,thecocce/TERRA-Engine,thecocce/TERRA-Engine,Relfos/TERRA-Engine,auokss/TERRA-Engine,auokss/TERRA-Engine,Relfos/TERRA-Engine,Relfos/TER... | Samples/Source/Extra/VCL/main.pas | Samples/Source/Extra/VCL/main.pas | unit main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, Menus;
type
TForm1 = class(TForm)
Button1: TButton;
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure Button1Clic... | unit main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, Menus;
type
TForm1 = class(TForm)
Button1: TButton;
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure Button1Clic... | apache-2.0 | Pascal |
6ebecac53109ceff756c7728d828188d4e133d12 | Test comments parsing | rscprof/kalium | testing/tests/basic-002/program.pas | testing/tests/basic-002/program.pas | BEGIN
{
Haskell is an advanced
purely-functional programming
language.
}
{----------------------------------------------------}
(* An open-source product of more than twenty years *)
{ of cutting-edge research, it allows rapid *)
(* development of robust, concise, co... | BEGIN
END.
| bsd-3-clause | Pascal |
e81d84f2f3c884f1faad7fe8b84294c89c4d3b10 | test unit fix | d-mozulyov/CrystalPathFinding | development/TestUnit.pas | development/TestUnit.pas | unit TestUnit;
{$i crystal_options.inc}
interface
uses
{$ifdef MSWINDOWS}
{$if Defined(FPC) or (CompilerVersion < 23)}Windows{$else}Winapi.Windows{$ifend},
{$endif}
SysUtils,
CrystalPathFinding;
procedure RUN;
procedure ShowMessage(const S: string); overload;
procedure ShowMessage(const StrFmt: strin... | unit TestUnit;
{$i crystal_options.inc}
interface
uses
{$ifdef MSWINDOWS}
Winapi.Windows,
{$endif}
SysUtils,
CrystalPathFinding;
procedure RUN;
procedure ShowMessage(const S: string); overload;
procedure ShowMessage(const StrFmt: string; const Args: array of const); overload;
implementation
procedur... | mit | Pascal |
bfe52820e5d8a32b2fb9761c5906fcbdbd87db97 | add test | dluschan/school,dluschan/school | containers/pascal/tests/mem_leaks.pas | containers/pascal/tests/mem_leaks.pas | program test_memory_leaks;
uses
containers, sysutils;
procedure check(lost_memory: longInt);
begin
if lost_memory = 0 then
writeln('Ok')
else
writeln('Failed: ', lost_memory, ' bytes lost.');
end;
procedure test();
var
m: container;
it: iterator;
memory: longInt;
i, j: longInt;
begin
memory := getHeapStat... | program test_memory_leaks;
uses
containers, sysutils;
procedure check(lost_memory: longInt);
begin
if lost_memory = 0 then
writeln('Ok')
else
writeln('Failed: ', lost_memory, ' bytes lost.');
end;
procedure test();
var
m: container;
it: iterator;
memory: longInt;
i, j: longInt;
begin
memory := getHeapStat... | mit | Pascal |
0af8346693fad0f0af6fd110edd5334d9f7bcd9c | Update DUnitXExamples_XE3.dpr | LaKraven/DUnitX,jpluimers/DUnitX,fabriciocolombo/DUnitX,LaKraven/DUnitX,rmcginty/DUnitX,staticcat/DUnitX,wesller/DUnitX,henriquewerlang/DUnitX,VSoftTechnologies/DUnitX,wesller/DUnitX,staticcat/DUnitX,Teloah/DUnitX | Examples/DUnitXExamples_XE3.dpr | Examples/DUnitXExamples_XE3.dpr | program DUnitXExamples_XE3;
{$APPTYPE CONSOLE}
uses
SysUtils,
DUnitX.Examples.EqualityAsserts in 'DUnitX.Examples.EqualityAsserts.pas',
DUnitX.Examples.General in 'DUnitX.Examples.General.pas',
DUnitX.CommandLine in '..\DUnitX.CommandLine.pas',
DUnitX.ConsoleWriter.Base in '..\DUnitX.ConsoleWriter.Base.pas'... | program DUnitXExamples_XE3;
{$APPTYPE CONSOLE}
uses
SysUtils,
DUnitX.Examples.EqualityAsserts in 'DUnitX.Examples.EqualityAsserts.pas',
DUnitX.Examples.General in 'DUnitX.Examples.General.pas',
DUnitX.CommandLine in '..\DUnitX.CommandLine.pas',
DUnitX.ConsoleWriter.Base in '..\DUnitX.ConsoleWriter.Base.pas'... | apache-2.0 | Pascal |
8d764501ba935e6e17b7e612d6127e4876928c08 | Update demo | Wosi/DelphiAST,Wosi/DelphiASTTemp,LaKraven/DelphiAST,RomanYankovsky/DelphiAST,vintagedave/DelphiAST,AmesianX/DelphiAST,uschuster/DelphiAST,NickRing/DelphiAST,monkeyxu/DelphiAST | Demo/uMainForm.pas | Demo/uMainForm.pas | unit uMainForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, StdCtrls;
type
TForm1 = class(TForm)
Memo1: TMemo;
MainMenu1: TMainMenu;
OpenDelphiUnit1: TMenuItem;
OpenDialog1: TOpenDialog;
procedure OpenDelphiUnit1Click(Sender: TOb... | unit uMainForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, StdCtrls;
type
TForm1 = class(TForm)
Memo1: TMemo;
MainMenu1: TMainMenu;
OpenDelphiUnit1: TMenuItem;
OpenDialog1: TOpenDialog;
procedure OpenDelphiUnit1Click(Sender: TOb... | mpl-2.0 | Pascal |
8eb17b1541e7dfe1cc071312959d290939c7fa1f | Extend record passing test to function returning record | Leporacanthicus/lacsap,Leporacanthicus/lacsap,Leporacanthicus/lacsap | recpass.pas | recpass.pas | program recpass;
(* Record passing, assignment of records, etc *)
type
r = record
x : integer;
y : real;
z : boolean;
end;
var
c : r;
d : r;
e : r;
procedure test(a : r; var b :r);
begin
b := a;
end; { test }
function test2(a : r) : r;
begin
test2 := a;
end;
begin
c.x :=... | program recpass;
(* Record passing, assignment of records, etc *)
type
r = record
x : integer;
y : real;
z : boolean;
end;
var
c : r;
d : r;
procedure test(a : r; var b :r);
begin
b := a;
end; { test }
begin
c.x := 4;
c.y := 9.2;
c.z := true;
test(c, d);
writeln('x... | isc | Pascal |
e547d7c8f91daf5b076d84e8d3c3733a2f2eaa7c | use new inherited .center method | minneron/minneron,minneron/minneron | impforth.pas | impforth.pas | {$mode delphiunicode}{$i xpc.inc}
program impforth;
uses xpc, classes, uapp, ukm, ui, utv, cw, kvm, cli,cx,
uimpforth, uimpwords, uimpshell;
type
TForthApp = class (uapp.TCustomApp)
public
imp : TImpForth; // active
trm : TTermView; // active, visible
ish : TImpShell; // active, visible
... | {$mode delphiunicode}{$i xpc.inc}
program impforth;
uses xpc, classes, uapp, ukm, ui, utv, cw, kvm, cli,cx,
uimpforth, uimpwords, uimpshell;
type
TForthApp = class (uapp.TCustomApp)
public
imp : TImpForth; // active
trm : TTermView; // active, visible
ish : TImpShell; // active, visible
... | mit | Pascal |
0f16b846fc6b73fcf7b85a9493c4512c3f932c6d | Save settings to default directory immidiately | thibmo/kam_remake,thibmo/kam_remake,reyandme/kam_remake,thibmo/kam_remake,thibmo/kam_remake,thibmo/kam_remake,reyandme/kam_remake,reyandme/kam_remake,reyandme/kam_remake,reyandme/kam_remake | src/settings/KM_Settings.pas | src/settings/KM_Settings.pas | unit KM_Settings;
{$I KaM_Remake.inc}
interface
type
// Abstract settings entity
TKMSettings = class abstract
protected
fNeedsSave: Boolean;
procedure Changed;
function GetDefaultSettingsName: string; virtual; abstract;
function NeedToSave: Boolean; virtual;
procedure LoadFrom... | unit KM_Settings;
{$I KaM_Remake.inc}
interface
type
// Abstract settings entity
TKMSettings = class abstract
protected
fNeedsSave: Boolean;
procedure Changed;
function GetDefaultSettingsName: string; virtual; abstract;
function NeedToSave: Boolean; virtual;
procedure LoadFrom... | agpl-3.0 | Pascal |
07a5c6a1c5f92bf014a91e2bbf934f36d09c6b6e | Use internal PointerToHex function. | AquaSoftGmbH/RefCountTracer | Src/Tracer.Logger.EurekaLog.pas | Src/Tracer.Logger.EurekaLog.pas | unit Tracer.Logger.EurekaLog;
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
interface
uses
Classes,
Tracer.Logger,
ECallStack;
type
TEurekaLogRefCountT... | unit Tracer.Logger.EurekaLog;
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
interface
uses
Classes,
Tracer.Logger,
ECallStack;
type
TEurekaLogRefCountT... | mpl-2.0 | Pascal |
f1ebe4392212125905246c935db2d3805fb56aeb | exit with error code when unhandled exception occurs | Xcentric/FIToolkit | Source/FIToolkit.dpr | Source/FIToolkit.dpr | program FIToolkit;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.SysUtils,
System.Types,
FIToolkit.Base.Consts in 'Base\FIToolkit.Base.Consts.pas',
FIToolkit.Base.Exceptions in 'Base\FIToolkit.Base.Exceptions.pas',
FIToolkit.CommandLine.Consts in 'CommandLine\FIToolkit.CommandLine.Consts.pas',
FIToolkit.Comm... | program FIToolkit;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.SysUtils,
System.Types,
FIToolkit.Base.Consts in 'Base\FIToolkit.Base.Consts.pas',
FIToolkit.Base.Exceptions in 'Base\FIToolkit.Base.Exceptions.pas',
FIToolkit.CommandLine.Consts in 'CommandLine\FIToolkit.CommandLine.Consts.pas',
FIToolkit.Comm... | mit | Pascal |
5245c1d3b5cba5972fdadf794aac8f4bac8951fc | Clean up in RXXPacker | reyandme/kam_remake,wimulkeman/kam_remake,wimulkeman/kam_remake,Kromster80/kam_remake,Kromster80/kam_remake,reyandme/kam_remake,Alexandr57/kam_remake,Kromster80/kam_remake,reyandme/kam_remake,Alexandr57/kam_remake,thibmo/kam_remake,thibmo/kam_remake,wimulkeman/kam_remake,Kromster80/kam_remake,thibmo/kam_remake,thibmo/k... | Utils/RXXPacker/RXXPackerForm.pas | Utils/RXXPacker/RXXPackerForm.pas | unit RXXPackerForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, KM_Defaults, KM_TextLibrary, KM_Render, KM_ResourceGFX, KM_ResourceSprites, KM_Log;
type
TRXXForm1 = class(TForm)
btnPackMenu: TButton;
btnPackGame: TButton;
... | unit RXXPackerForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, KM_Defaults, KM_TextLibrary, KM_Render, KM_ResourceGFX, KM_ResourceSprites, KM_Log;
type
TRXXForm1 = class(TForm)
btnPackMenu: TButton;
btnPackGame: TButton;
... | agpl-3.0 | Pascal |
a52c8d833057fc8101b9e8ed91713313bbafb1b6 | Remove namespaces unknown to Delphi 2010 and below. | simar0at/delphi-rest-client-api,simar0at/delphi-rest-client-api,simar0at/delphi-rest-client-api,simar0at/delphi-rest-client-api | src/ProxyUtils.pas | src/ProxyUtils.pas | unit ProxyUtils;
interface
function ProxyActive: Boolean;
function GetProxyServer: string;
function GetProxyOverride: string;
implementation
uses
SysUtils,
Registry,
Windows;
const
INTERNET_SETTINGS = 'Software\Microsoft\Windows\CurrentVersion\Internet Settings';
PROXY_ENABLED = 'ProxyEnable';
PR... | unit ProxyUtils;
interface
function ProxyActive: Boolean;
function GetProxyServer: string;
function GetProxyOverride: string;
implementation
uses
System.SysUtils,
System.Win.Registry,
Winapi.Windows;
const
INTERNET_SETTINGS = 'Software\Microsoft\Windows\CurrentVersion\Internet Settings';
PROXY_ENAB... | apache-2.0 | Pascal |
6f7d559c12bd29975562a505f37619648f1c0c43 | Add comment | tavultesoft/keymanweb,tavultesoft/keymanweb | windows/src/test/manual-tests/metro-permissions/Keyman.System.Test.MetroPermissions.pas | windows/src/test/manual-tests/metro-permissions/Keyman.System.Test.MetroPermissions.pas | unit Keyman.System.Test.MetroPermissions;
interface
function EnginePostInstall: Boolean;
implementation
uses
Winapi.AccCtrl,
Winapi.ShlObj,
Winapi.Windows,
System.Classes,
System.SysUtils,
Keyman.System.Security,
RegistryKeys,
utilsystem;
{
Add permission for ALL APPLICATION PACKAGES to read %Pro... | unit Keyman.System.Test.MetroPermissions;
interface
function EnginePostInstall: Boolean;
implementation
uses
Winapi.AccCtrl,
Winapi.ShlObj,
Winapi.Windows,
System.Classes,
System.SysUtils,
Keyman.System.Security,
RegistryKeys,
utilsystem;
{
Add permission for ALL APPLICATION PACKAGES to read %Pro... | apache-2.0 | Pascal |
84466ab7c5d4aaea673a80f90fb6ee4a2c70d63a | fix AV when deleting an entry | bgarrels/Coedit,bgarrels/Coedit | src/ce_toolseditor.pas | src/ce_toolseditor.pas | unit ce_toolseditor;
{$I ce_defines.inc}
interface
uses
Classes, SysUtils, FileUtil, RTTIGrids, Forms, Controls, Graphics, Dialogs,
ExtCtrls, Menus, Buttons, StdCtrls, ce_widget, ce_tools;
type
{ TCEToolsEditorWidget }
TCEToolsEditorWidget = class(TCEWidget)
BtnAddTool: TBitBtn;
btnRemTool: TBitBtn... | unit ce_toolseditor;
{$I ce_defines.inc}
interface
uses
Classes, SysUtils, FileUtil, RTTIGrids, Forms, Controls, Graphics, Dialogs,
ExtCtrls, Menus, Buttons, StdCtrls, ce_widget, ce_tools;
type
{ TCEToolsEditorWidget }
TCEToolsEditorWidget = class(TCEWidget)
BtnAddTool: TBitBtn;
btnRemTool: TBitBtn... | mit | Pascal |
2136f46e9f255dfd516b40c3f05e754afcca81d5 | fix bad storage of utf8 text in treehelper data | Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText | app/treehelpers_base.pas | app/treehelpers_base.pas | (*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) Alexey Torgashin
*)
unit TreeHelpers_Base;
{$mode ObjFPC}{$H+}
{$ModeSwitch advancedrecords}
interface
use... | (*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) Alexey Torgashin
*)
unit TreeHelpers_Base;
{$mode ObjFPC}{$H+}
{$ModeSwitch advancedrecords}
interface
use... | mpl-2.0 | Pascal |
081ba5a8518007132b538f4c8c096515b95153ac | update tests to align with test data (#170) | exercism/xdelphi,exercism/xpascal,rpottsoh/exercism-delphi,rpottsoh/xdelphi,rpottsoh/xpascal | exercises/leap/uLeapTests.pas | exercises/leap/uLeapTests.pas | unit uLeapTests;
interface
uses
DUnitX.TestFramework;
type
[TestFixture]
YearTest = class(TObject)
public
[Test]
// [Ignore('Comment the "[Ignore]" statement to run the test')]
procedure year_not_divisible_by_4_common_year;
[Test]
[Ignore]
procedure year_divisible_by_4_not_divisible_by_... | unit uLeapTests;
interface
uses
DUnitX.TestFramework;
type
[TestFixture]
YearTest = class(TObject)
public
[Test]
// [Ignore('Comment the "[Ignore]" statement to run the test')]
procedure test_leap_year;
[Test]
[Ignore]
procedure test_standard_and_odd_year;
[Test]
[Ignore]
p... | mit | Pascal |
60c3cc5b90bd037fedbe4fbd71cad937f050a1c1 | add working version of Delphi GUI | ivere27/node-delphi | example/Unit1.pas | example/Unit1.pas | unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, TobyPascal, Vcl.StdCtrls;
type
TForm1 = class(TForm)
Memo1: TMemo;
Memo2: TMemo;
Button1: TButton;
Button2: TButton;
procedure Fo... | unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, TobyPascal, Vcl.StdCtrls;
type
TForm1 = class(TForm)
Memo1: TMemo;
Memo2: TMemo;
Button1: TButton;
Button2: TButton;
procedure Fo... | mit | Pascal |
0bc07c3a2ea9bba959bea32a123306589b7e6060 | Update param.pas to pass string directly to writeln | Leporacanthicus/lacsap,Leporacanthicus/lacsap,Leporacanthicus/lacsap | test/param.pas | test/param.pas | program param;
var
i : integer;
begin
for i := 0 to ParamCount do begin
writeln("Param ", i:1, "='", paramstr(i), "'");
end;
end.
| program param;
var
i : integer;
str : string;
begin
for i := 0 to ParamCount do begin
str := paramstr(i);
writeln("Param ", i:1, "='", str, "'");
end;
end.
| isc | Pascal |
3505650f762b4034dfe96b26f02f2c8a85dee5b5 | Fix MARSTemplate resources registration. | andrea-magni/MARS,andrea-magni/MARS | Demos/MARSTemplate/Server.Resources.pas | Demos/MARSTemplate/Server.Resources.pas | (*
Copyright 2016, MARS-Curiosity - REST Library
Home: https://github.com/andrea-magni/MARS
*)
unit Server.Resources;
interface
uses
SysUtils, Classes
, MARS.Core.Attributes, MARS.Core.MediaType, MARS.Core.JSON, MARS.Core.Response
, MARS.Core.URL
//, MARS.Core.Token
, MARS.Core.Token.Resource
, ... | (*
Copyright 2016, MARS-Curiosity - REST Library
Home: https://github.com/andrea-magni/MARS
*)
unit Server.Resources;
interface
uses
SysUtils, Classes
, MARS.Core.Attributes, MARS.Core.MediaType, MARS.Core.JSON, MARS.Core.Response
, MARS.Core.URL
//, MARS.Core.Token
, MARS.Core.Token.Resource
, ... | mpl-2.0 | Pascal |
2ed742c16436474a7867a017c355eef48c1d0b04 | allow parameters in queries, too | minneron/minneron,minneron/minneron | udb.pas | udb.pas | //-----------------------------------------------------------------------
//
// classes to make working with SqlDb nicer outside of lazarus.
//
//-----------------------------------------------------------------------
{$mode delphi}{$i xpc.inc}
unit udb;
interface
uses db, sqldb, sqlite3conn,
sysutils, // for excepti... | //-----------------------------------------------------------------------
//
// classes to make working with SqlDb nicer outside of lazarus.
//
//-----------------------------------------------------------------------
{$mode delphi}{$i xpc.inc}
unit udb;
interface
uses db, sqldb, sqlite3conn,
sysutils, // for excepti... | mit | Pascal |
4171ff23aae27a68686cd9823855a8732cb60570 | use new name for containers | dluschan/school,dluschan/school | containers/pascal/tests/test1.pas | containers/pascal/tests/test1.pas | program test1;
uses
containers;
var
m: container;
a, b: iterator;
begin
m := container.create();
m.push_back(1);
m.push_back(2);
m.push_back(3);
m.push_back(4);
m.push_back(5);
a := m.get_begin();
a.next();
a.next();
m.insert(a, -1);
m.insert(a, -2);
m.insert(a, -3);
a.destroy();
a := m.get_begin()... | program listTest;
uses
listlib;
var
m: list;
a, b: list_iterator;
begin
m := list.create();
m.push_back(1);
m.push_back(2);
m.push_back(3);
m.push_back(4);
m.push_back(5);
a := m.get_begin();
a.next();
a.next();
m.insert(a, -1);
m.insert(a, -2);
m.insert(a, -3);
a.destroy();
a := m.get_begin();
b ... | mit | Pascal |
7a4beedab27b2a74c2c20d5325aa974b44f2f6df | fix win32titlestyler for future | Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText | comp/win32titlestyler.pas | comp/win32titlestyler.pas | (*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) Alexey Torgashin
*)
unit win32titlestyler;
{$mode objfpc}{$H+}
interface
uses
Windows, SysUtils, Forms, ... | (*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) Alexey Torgashin
*)
unit win32titlestyler;
{$mode objfpc}{$H+}
interface
uses
Windows, SysUtils, Forms, ... | mpl-2.0 | Pascal |
63e1631aa02b4a62e42a041e034361c2ec8a0bd2 | Simplify the `hello-world` exercise's stub. The goal of this is to make things easier for students to get started and to introduce as little syntax as possible. | exercism/xdelphi,rpottsoh/exercism-delphi | exercises/practice/hello-world/uHelloWorld.pas | exercises/practice/hello-world/uHelloWorld.pas | unit uHelloWorld;
interface
function Hello: string;
implementation
function Hello: string;
begin
result := 'Goodbye, Mars!';
end;
end.
| unit uHelloWorld;
interface
function Hello: string;
implementation
function Hello: string;
begin
result := 'Hello, World!';
end;
end.
| mit | Pascal |
0a03e7fb03f6d5e93114c2dad47628aec33e511b | update Toby v0.1.5 | ivere27/node-delphi | TobyPascal.pas | TobyPascal.pas | unit TobyPascal;
interface
uses
Classes, SysUtils, math;
type
TobyOnloadCB = procedure (isolate: Pointer); cdecl;
TobyOnunloadCB = procedure (isolate: Pointer; exitCode: integer); cdecl;
TobyHostcallCB = function (name, value: PAnsiChar):PAnsiChar; cdecl;
TToby = class
private
started : boolean;... | unit TobyPascal;
interface
uses
Classes, SysUtils, math;
type
TobyOnloadCB = procedure (isolate: Pointer); cdecl;
TobyOnunloadCB = procedure (isolate: Pointer; exitCode: integer); cdecl;
TobyHostcallCB = function (name, value: PAnsiChar):PAnsiChar; cdecl;
TToby = class
private
started : boolean;... | mit | Pascal |
2661f702b34c625984a2cb8e5c77ca941c20ae7c | Allow an optional second conditional define to be provided for the [Profile] aspect | remobjects/ProfilingAspect | RemObjects.Elements.Profiler.Aspect/ProfileAspect.pas | RemObjects.Elements.Profiler.Aspect/ProfileAspect.pas | namespace RemObjects.Elements.Profiler;
uses
RemObjects.Elements.Cirrus.*;
type
[AttributeUsage(AttributeTargets.Class or AttributeTargets.Method)]
ProfileAspect = public class(IMethodImplementationDecorator)
private
var fOptionalDefine: String;
public
constructor; empty;
constr... | namespace RemObjects.Elements.Profiler;
interface
uses
RemObjects.Elements.Cirrus.*;
type
[AttributeUsage(AttributeTargets.Class or AttributeTargets.Method)]
ProfileAspect = public class(IMethodImplementationDecorator)
private
class var fShownWarning: Boolean;
public
method HandleImpl... | mit | Pascal |
4a37af62cf30b16d20187c8ea0902ec8011b0f14 | Update MSWebDeploy.pas | novuslogic/Zautomatic,novuslogic/Zautomatic | source/Includes/MSWebDeploy.pas | source/Includes/MSWebDeploy.pas | unit MSEbDeploy;
interface
(*
Web Deploy error codes
https://docs.microsoft.com/en-us/iis/publish/troubleshooting-web-deploy/web-deploy-error-codes
Web Deploy PowerShell Cmdlets
https://docs.microsoft.com/en-us/iis/publish/using-web-deploy/packaging-and-restoring-a-web-site
*)
implementation
end. | unit MSEbDeploy;
interface
(*
Web Deploy error codes
https://docs.microsoft.com/en-us/iis/publish/troubleshooting-web-deploy/web-deploy-error-codes
*)
implementation
end. | apache-2.0 | Pascal |
6b97607b8bfe9b2e9684d44d2bbfbf72d14485d7 | Update main.dfm | JonWel/CoolProp,henningjp/CoolProp,dcprojects/CoolProp,JonWel/CoolProp,dcprojects/CoolProp,CoolProp/CoolProp,DANA-Laboratory/CoolProp,dcprojects/CoolProp,JonWel/CoolProp,DANA-Laboratory/CoolProp,JonWel/CoolProp,JonWel/CoolProp,henningjp/CoolProp,JonWel/CoolProp,henningjp/CoolProp,DANA-Laboratory/CoolProp,DANA-Laborator... | wrappers/Delphi/main.dfm | wrappers/Delphi/main.dfm | object MainForm: TMainForm
Left = 0
Top = 0
Caption = 'CoolProp Demo'
ClientHeight = 372
ClientWidth = 595
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
OnActivate = FormActivate
OnCrea... | object MainForm: TMainForm
Left = 0
Top = 0
Caption = 'CoolProp Demo'
ClientHeight = 372
ClientWidth = 595
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
OnActivate = FormActivate
OnCrea... | mit | Pascal |
d7af6e8891f1d1a5b0e3f5b26cfcdc404a8ee91f | Test failure case | tavultesoft/keymanweb,tavultesoft/keymanweb | windows/src/unit-tests/keyboard-js-info/Keyman.Test.System.KeyboardJSInfoTest.pas | windows/src/unit-tests/keyboard-js-info/Keyman.Test.System.KeyboardJSInfoTest.pas | unit Keyman.Test.System.KeyboardJSInfoTest;
interface
uses
DUnitX.TestFramework;
type
[TestFixture]
TKeyboardJSInfoTest = class(TObject)
public
[Setup]
procedure Setup;
[TearDown]
procedure TearDown;
[Test]
procedure TestJSWithoutDebugCode;
[Test]
procedure TestJSWithDebugC... | unit Keyman.Test.System.KeyboardJSInfoTest;
interface
uses
DUnitX.TestFramework;
type
[TestFixture]
TKeyboardJSInfoTest = class(TObject)
public
[Setup]
procedure Setup;
[TearDown]
procedure TearDown;
[Test]
procedure TestJSWithoutDebugCode;
[Test]
procedure TestJSWithDebugC... | apache-2.0 | Pascal |
5054345248acacb13ff085427c5b2b88c708a329 | Update to Docto include | novuslogic/Zautomatic,novuslogic/Zautomatic | includes/Docto.pas | includes/Docto.pas | unit Docto;
interface
Uses Windows, Cmd;
// https://tobya.github.io/DocTo/
// choco install docto
// https://docs.microsoft.com/en-us/dotnet/api/microsoft.office.interop.word.wdsaveformat?view=word-pia
function FindDocToFolder: string;
function DocTo(const aInputFilename: string;const aOutputFilename: string; cons... | unit Docto
interface
Uses Windows, Cmd, Powrshell;
function FindDocToFolder: string;
implementation
function FindDocToFolder: string;
begin
result := '';
result := File.IncludeTrailingPathDelimiter(Program_FilesFolder) + 'DocTo\';
end;
| apache-2.0 | Pascal |
d59a6ed9d93349e7fe41334b2deebdf839296b49 | Update to Environment class | novuslogic/DelphiAWSSDK | Source/Amazon.Environment.pas | Source/Amazon.Environment.pas | unit Amazon.Environment;
interface
Uses System.SysUtils;
const
AWS_REGION = 'AWS_REGION';
AWS_ACCESS_KEY_ID = 'AWS_ACCESS_KEY_ID';
AWS_SECRET_ACCESS_KEY = 'AWS_SECRET_ACCESS_KEY';
AWS_CREDENTIAL_FILE = 'AWS_CREDENTIAL_FILE';
AWS_PROFILE = 'AWS_PROFILE';
type
TAmazonEnvironment = class
protected
... | unit Amazon.Environment;
interface
Uses System.SysUtils;
const
AWS_REGION = 'AWS_REGION';
AWS_ACCESS_KEY_ID = 'AWS_ACCESS_KEY_ID';
AWS_SECRET_ACCESS_KEY = 'AWS_SECRET_ACCESS_KEY';
AWS_CREDENTIAL_FILE = 'AWS_CREDENTIAL_FILE';
type
TAmazonEnvironment = class
protected
fsaprofile: UTF8String;
... | apache-2.0 | Pascal |
ab62a7e144f5b0c3252018dd86373ecf5f4156d1 | Add methods to get used memory by the app | thibmo/kam_remake,reyandme/kam_remake,thibmo/kam_remake,reyandme/kam_remake,reyandme/kam_remake,thibmo/kam_remake,reyandme/kam_remake,thibmo/kam_remake,reyandme/kam_remake,thibmo/kam_remake | src/utils/KM_CommonShellUtils.pas | src/utils/KM_CommonShellUtils.pas | unit KM_CommonShellUtils;
{$I KaM_Remake.inc}
interface
function OpenPDF(const aURL: string): Boolean;
function GetMemUsed: NativeUInt;
function GetCommittedStackSize: NativeUInt;
implementation
uses
{$IFDEF MSWindows}Windows, PsAPI,{$ENDIF}
Forms
{$IFDEF WDC}, ShellApi {$ENDIF}
;
function OpenPDF(co... | unit KM_CommonShellUtils;
{$I KaM_Remake.inc}
interface
function OpenPDF(const aURL: string): Boolean;
implementation
uses
{$IFDEF MSWindows}Windows, {$ENDIF}
Forms
{$IFDEF WDC}, ShellApi {$ENDIF}
;
function OpenPDF(const aURL: string): Boolean;
begin
if aURL = '' then Exit(False);
{$IFDEF WDC}
Res... | agpl-3.0 | Pascal |
e8f0c9f786d5a68225afab032d4d903cadab2acc | simplify NullDigest Initialize method | Xor-el/HashLib4Pascal,Xor-el/HashLib4Pascal | HashLib/src/NullDigest/HlpNullDigest.pas | HashLib/src/NullDigest/HlpNullDigest.pas | unit HlpNullDigest;
{$I ..\Include\HashLib.inc}
interface
uses
Classes,
SysUtils,
HlpHashLibTypes,
HlpHash,
HlpIHash,
HlpIHashInfo,
HlpHashResult,
HlpIHashResult;
type
TNullDigest = class sealed(THash, ITransformBlock)
strict private
var
FOut: TMemoryStream;
public
constructor Creat... | unit HlpNullDigest;
{$I ..\Include\HashLib.inc}
interface
uses
Classes,
SysUtils,
HlpHashLibTypes,
HlpHash,
HlpIHash,
HlpIHashInfo,
HlpHashResult,
HlpIHashResult;
type
TNullDigest = class sealed(THash, ITransformBlock)
strict private
var
FOut: TMemoryStream;
public
constructor Creat... | mit | Pascal |
cb6b626dfcf5229cb2f4cb8bd2294bf240c86f30 | add cascade-style open, first for TRecordSet | minneron/minneron,minneron/minneron | udb.pas | udb.pas | //-----------------------------------------------------------------------
//
// classes to make working with SqlDb nicer outside of lazarus.
//
//-----------------------------------------------------------------------
{$mode delphi}{$i xpc.inc}
unit udb;
interface
uses db, sqldb, sqlite3conn,
classes; // for TStringL... | //-----------------------------------------------------------------------
//
// classes to make working with SqlDb nicer outside of lazarus.
//
//-----------------------------------------------------------------------
{$mode delphi}{$i xpc.inc}
unit udb;
interface
uses db, sqldb, sqlite3conn,
classes; // for TStringL... | mit | Pascal |
a29e3aeea01c04d9b3df2d85cb9bdaba1e73ecee | Update cpIntf.pas | CoolProp/CoolProp,DANA-Laboratory/CoolProp,henningjp/CoolProp,dcprojects/CoolProp,henningjp/CoolProp,henningjp/CoolProp,CoolProp/CoolProp,CoolProp/CoolProp,JonWel/CoolProp,henningjp/CoolProp,henningjp/CoolProp,CoolProp/CoolProp,DANA-Laboratory/CoolProp,DANA-Laboratory/CoolProp,CoolProp/CoolProp,henningjp/CoolProp,JonWe... | wrappers/Delphi/cpIntf.pas | wrappers/Delphi/cpIntf.pas | {
Delphi Interface for CoolProp
Bruce Wernick, 13 December 2015
Notes:
All of the char parameters are PAnsiChar, the floating point numbers are
Double and the integer types are either LongInt or Integer depending on the
type in the dll. Where there is an output string, the calling program must
create th... | {
Delphi Interface for CoolProp
Bruce Wernick, 10 December 2015
}
unit cpIntf;
interface
const
cpdll = 'CoolProp.dll';
type
CoolChar = AnsiChar;
PCoolChar = PAnsiChar;
CoolStr = AnsiString;
CoolVec = array[0..1023] of CoolChar;
function get_global_param_string(
param: PCoolChar;
var res: CoolVec;... | mit | Pascal |
f195b412321c0186c795f45536f299e797d1ffcb | update to v1.2.0 | rpottsoh/exercism-delphi,exercism/xdelphi,exercism/xpascal | exercises/reverse-string/uReverseStringTests.pas | exercises/reverse-string/uReverseStringTests.pas | unit uReverseStringTests;
interface
uses
DUnitX.TestFramework;
const
CanonicalVersion = '1.2.0';
type
[TestFixture]
ReverseStringTest = class(TObject)
public
[Test]
// [Ignore('Comment the "[Ignore]" statement to run the test')]
procedure an_empty_string;
[Test]
[Ignore]
procedure... | unit uReverseStringTests;
interface
uses
DUnitX.TestFramework;
const
CanonicalVersion = '1.0.1';
type
[TestFixture]
ReverseStringTest = class(TObject)
public
[Test]
// [Ignore('Comment the "[Ignore]" statement to run the test')]
procedure an_empty_string;
[Test]
[Ignore]
procedure... | mit | Pascal |
72edc4ea1c518fd1615e4e34c918089f3252e21a | Use a less common default port than 8080 so we don't conflict | rburgstaler/StandAloneDelphiWebServer,rburgstaler/StandAloneDelphiWebServer | FormUnit.dfm | FormUnit.dfm | object Form1: TForm1
Left = 271
Top = 114
Caption = 'Form1'
ClientHeight = 235
ClientWidth = 399
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
OnCreate = FormCreate
PixelsPerInch = 96
... | object Form1: TForm1
Left = 271
Top = 114
Caption = 'Form1'
ClientHeight = 235
ClientWidth = 399
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
OnCreate = FormCreate
PixelsPerInch = 96
... | mit | Pascal |
2b0d4511f2266b5d58bc252f8803881442af33f3 | Add missing KaM_Remake.inc to a new unit | thibmo/kam_remake,thibmo/kam_remake,reyandme/kam_remake,thibmo/kam_remake,reyandme/kam_remake,thibmo/kam_remake,reyandme/kam_remake,reyandme/kam_remake,reyandme/kam_remake,thibmo/kam_remake | src/mission/KM_MapUtilsExt.pas | src/mission/KM_MapUtilsExt.pas | unit KM_MapUtilsExt;
{$I KaM_Remake.inc}
interface
uses
KM_Maps;
function TryOpenMapPDF(aMap: TKMapInfo): Boolean;
implementation
uses
KM_CommonShellUtils;
function TryOpenMapPDF(aMap: TKMapInfo): Boolean;
var
pdfPath: string;
begin
Result := False;
if aMap = nil then Exit;
pdfPath := aMap.DetermineR... | unit KM_MapUtilsExt;
interface
uses
KM_Maps;
function TryOpenMapPDF(aMap: TKMapInfo): Boolean;
implementation
uses
KM_CommonShellUtils;
function TryOpenMapPDF(aMap: TKMapInfo): Boolean;
var
pdfPath: string;
begin
Result := False;
if aMap = nil then Exit;
pdfPath := aMap.DetermineReadmeFilePath;
if ... | agpl-3.0 | Pascal |
5f7a61542e37abc15c0cb22ac525de9625445659 | Update main.pas | JonWel/CoolProp,henningjp/CoolProp,DANA-Laboratory/CoolProp,DANA-Laboratory/CoolProp,henningjp/CoolProp,henningjp/CoolProp,CoolProp/CoolProp,CoolProp/CoolProp,JonWel/CoolProp,DANA-Laboratory/CoolProp,DANA-Laboratory/CoolProp,dcprojects/CoolProp,dcprojects/CoolProp,DANA-Laboratory/CoolProp,JonWel/CoolProp,JonWel/CoolPro... | wrappers/Delphi/main.pas | wrappers/Delphi/main.pas | unit main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics,
Controls, Forms, Dialogs, StdCtrls, ExtCtrls,
superobject, uMolChart;
type
TMainForm = class(TForm)
ListBox1: TListBox;
PaintBox1: TPaintBox;
StaticText1: TStaticText;
procedure FormActivate(Sender: TObject);
... | unit main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics,
Controls, Forms, Dialogs, StdCtrls, ExtCtrls,
superobject, uMolChart;
type
TMainForm = class(TForm)
ListBox1: TListBox;
PaintBox1: TPaintBox;
StaticText1: TStaticText;
procedure FormActivate(Sender: TObject);
... | mit | Pascal |
9de6167e76aa32bf0787af9c1292f0e1de121bc3 | fix uses in .lpr | Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText | app/cudatext.lpr | app/cudatext.lpr | program cudatext;
{$mode objfpc}{$H+}
uses
//heaptrc,
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, lazcontrols, uniqueinstance_package, FormMain, FormConsole, proc_str,
proc_py, proc_py_const, proc_globdata, FormFrame, form_menu_comma... | program cudatext;
{$mode objfpc}{$H+}
uses
//heaptrc,
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, lazcontrols, uniqueinstance_package, FormMain, FormConsole, proc_str,
proc_py, proc_py_const, proc_globdata, FormFrame, form_menu_comma... | mpl-2.0 | Pascal |
64f37664b33ad1b166aadf5c4aa45ca916e93c79 | Clear - очистка для предмета. Все поля в -1. | bearlib/items | sources/library/uCommon.pas | sources/library/uCommon.pas | unit uCommon;
interface
{TODO: Ground Map?}
{TODO: \ [Jesus05]}
{TODO: [Jesus05]}
const
LibVersion = '0.3.0';
type
TItem = record
ItemID: Integer;
X, Y: Integer;
MapID: Integer;
// Stack: Integer;
// Amount: Integer;
// Durability: Integer;
// Weight: Integer;
... | unit uCommon;
interface
{TODO: Ground Map?}
{TODO: \ [Jesus05]}
{TODO: [Jesus05]}
const
LibVersion = '0.3.0';
type
TItem = record
ItemID: Integer;
X, Y: Integer;
MapID: Integer;
// Stack: Integer;
// Amount: Integer;
// Durability: Integer;
// Weight: Integer;
... | mit | Pascal |
af0fe0264e9778ab3d365f3e42b37e2a037e3f49 | Update function comment | bewuethr/software-tools | chapter2/echo.pas | chapter2/echo.pas | { complete echo }
program echo (input, output);
const
ENDSTR = 0;
MAXSTR = 1024;
ENDFILE = -1;
NEWLINE = 10; { ASCII value }
BLANK = 32;
type
character = -1..127; { ASCII, plus ENDFILE }
string = array [1..MAXSTR] of character;
{ putc -- put one character on standard output }
procedure... | { complete echo }
program echo (input, output);
const
ENDSTR = 0;
MAXSTR = 1024;
ENDFILE = -1;
NEWLINE = 10; { ASCII value }
BLANK = 32;
type
character = -1..127; { ASCII, plus ENDFILE }
string = array [1..MAXSTR] of character;
{ putc -- put one character on standard output }
procedure... | mit | Pascal |
d65ab2b242bcd6695ef037c32ce5f76e05e50407 | Update to Xcopy unit with bug fixes | novuslogic/Zautomatic,novuslogic/Zautomatic | source/Includes/Xcopy.pas | source/Includes/Xcopy.pas | unit Xcopy;
interface
function IsFileorFolder(aPath: string): integer;
function Xcopy(const aSource, aDestination: string): boolean;
implementation
function Xcopy(const aSource, aDestination: string): boolean;
var
liIsFileOrFolder: integer;
fbOverWrite: boolean;
lsDestiantionFilename: string;
begin
result ... | unit Xcopy;
interface
function IsFileorFolder(aPath: string): integer;
function Xcopy(const aSource, aDestination: string): boolean;
implementation
function Xcopy(const aSource, aDestination: string): boolean;
var
liIsFileOrFolder: integer;
fbOverWrite: boolean;
lsDestiantionFilename: string;
begin
result ... | apache-2.0 | Pascal |
2c6423d3e7908e934a26a2e6c01cc59b973c26c0 | fix TBuffer instantiation. It's a component now. | minneron/minneron,minneron/minneron | tok.pas | tok.pas | { this is a token-centric editor. }
{$mode delphiunicode}{$i xpc.inc}
program tok;
uses xpc, uapp, mned, ukm, utok, ui, kvm, ug2d, uww, num,
dndk, undk, udb, udc, utv, mnbuf, classes, cw, cli;
type TToken = record
x, y : cardinal; c : word;
end;
type TTokEd = class (uapp.TCustomApp)
protected
ndk :... | { this is a token-centric editor. }
{$mode delphiunicode}{$i xpc.inc}
program tok;
uses xpc, uapp, mned, ukm, utok, ui, kvm, ug2d, uww, num,
dndk, undk, udb, udc, utv, mnbuf, classes, cw, cli;
type TToken = record
x, y : cardinal; c : word;
end;
type TTokEd = class (uapp.TCustomApp)
protected
ndk :... | mit | Pascal |
79140dca7466f294a353b81efd2d9face4406cc8 | Make test try to detect when it's used wrong | Leporacanthicus/lacsap,Leporacanthicus/lacsap,Leporacanthicus/lacsap | test/cfuncname.pas | test/cfuncname.pas | program cfuncname;
(* Test to ensure we don't have name collisions with C function names *)
var x : integer;
(* Use an arbitrary C function name to do something completely different in Pascal *)
function strcpy(var x : integer; y : integer) : integer;
begin
if x <> 3 then
writeln('Huh?');
strcpy := x * y... | program cfuncname;
(* Test to ensure we don't have name collisions with C function names *)
(* Use an arbitrary C function name to do something completely different in Pascal *)
function strcpy(x : integer; y : integer) : integer;
begin
strcpy := x * y
end; { strcpy }
begin
writeln(strcpy(3,4):1)
end.
| isc | Pascal |
ea706b96808279ec1665af72e26d502697d5b7e0 | Remove unnecessary compiler directive | reyandme/kam_remake,thibmo/kam_remake,reyandme/kam_remake,thibmo/kam_remake,reyandme/kam_remake,thibmo/kam_remake,thibmo/kam_remake,thibmo/kam_remake,reyandme/kam_remake,reyandme/kam_remake | src/utils/algorithms/KM_Sort.pas | src/utils/algorithms/KM_Sort.pas | unit KM_Sort;
{$I KaM_Remake.inc}
interface
type
TKMCompFunc = function (const aElem1, aElem2): Integer;
procedure SortCustom(var aArr; aMinIdx, aMaxIdx, aSize: Integer; aCompFunc: TKMCompFunc);
implementation
{ Universal Quick sort procedure }
// It is possible to sort array of standard data types and also arra... | unit KM_Sort;
{$I KaM_Remake.inc}
{$IFDEF FPC}{$H+}{$ENDIF}
interface
type
TKMCompFunc = function (const aElem1, aElem2): Integer;
procedure SortCustom(var aArr; aMinIdx, aMaxIdx, aSize: Integer; aCompFunc: TKMCompFunc);
implementation
{ Universal Quick sort procedure }
// It is possible to sort array of standar... | agpl-3.0 | Pascal |
3e421e2d50672c8150c1f6cfc605ade923174d58 | Add todo and comment | reyandme/kam_remake,thibmo/kam_remake,reyandme/kam_remake,thibmo/kam_remake,thibmo/kam_remake,reyandme/kam_remake,reyandme/kam_remake,thibmo/kam_remake,reyandme/kam_remake,thibmo/kam_remake | src/settings/KM_Settings.pas | src/settings/KM_Settings.pas | unit KM_Settings;
{$I KaM_Remake.inc}
interface
type
// Abstract settings entity
TKMSettings = class abstract
private
fUseLocalFolder: Boolean;
procedure LoadFromDefaultFile;
procedure SaveToDefaultFile;
function GetDirectory: string;
function GetPath: string;
protected
fNeedsSave: Boo... | unit KM_Settings;
{$I KaM_Remake.inc}
interface
type
// Abstract settings entity
TKMSettings = class abstract
private
fUseLocalFolder: Boolean;
procedure LoadFromDefaultFile;
procedure SaveToDefaultFile;
function GetDirectory: string;
function GetPath: string;
protected
fNeedsSave: Boo... | agpl-3.0 | Pascal |
7b083e619919a6502914b2e93d8e8b41086bbdec | add exit code test | graemeg/fpdebug | debugger/test.pas | debugger/test.pas | {$mode objfpc}
var
s : string;
{$asmmode Intel}
procedure TestBreak; assembler;
asm
int 3;
end;
procedure TestAV;
var
a, b : Integer;
c : integer;
begin
a := 4;
b := a - 4;
try
writeln('next line fail with division by zero!');
c := a div b;
writeln(c);
except
... | {$mode objfpc}
var
s : string;
{$asmmode Intel}
procedure TestBreak; assembler;
asm
int 3;
end;
procedure TestAV;
var
a, b : Integer;
c : integer;
begin
a := 4;
b := a - 4;
try
writeln('next line fail with division by zero!');
c := a div b;
writeln(c);
except
... | bsd-2-clause | Pascal |
0dfd4e7b72d8a73664bf3b5c49dcb78e023973ba | update example to remove memory leak | rpottsoh/xdelphi,rpottsoh/exercism-delphi,exercism/xpascal,rpottsoh/xpascal,exercism/xdelphi | exercises/allergies/uAllergiesExample.pas | exercises/allergies/uAllergiesExample.pas | unit uAllergies;
interface
uses System.Generics.Collections;
type
IAllergies = interface(IInvokable)
['{0A1F6B96-4CDC-4D7C-BE50-6B466CA27EB0}']
function GetAllergyList: TList<string>;
function AllergicTo(allergy: string): Boolean;
property IList: TList<string> read GetAllergyList;
end;
TAl... | unit uAllergies;
interface
uses System.Generics.Collections;
type
IAllergies = interface(IInvokable)
['{0A1F6B96-4CDC-4D7C-BE50-6B466CA27EB0}']
function GetAllergyList: TList<string>;
function AllergicTo(allergy: string): Boolean;
property IList: TList<string> read GetAllergyList;
end;
TAl... | mit | Pascal |
dc05069eca1727e7e15d273439e0db93f6928eb8 | Fix TListView.DeleteSelected. | ying32/govcl | UILibSources/liblcl/ucontrolpatchs.pas | UILibSources/liblcl/ucontrolpatchs.pas | //----------------------------------------
//
// Copyright © ying32. All Rights Reserved.
//
// Licensed under Apache License 2.0
//
//----------------------------------------
unit uControlPatchs;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, ExtCtrls, Forms, ComCtrls, StdCtrls, Graphics;
type
PFNLVC... | //----------------------------------------
//
// Copyright © ying32. All Rights Reserved.
//
// Licensed under Apache License 2.0
//
//----------------------------------------
unit uControlPatchs;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, ExtCtrls, Forms, ComCtrls, StdCtrls, Graphics;
type
PFNLVC... | apache-2.0 | Pascal |
59e0d75e4d094faddb331380118a0f01c9d9ba51 | Update Algoritmo_02.pas | carlosvilela/Algoritmos,carlosvilela/Algoritmos,carlosvilela/Algoritmos | Algoritmos-em-Pascal/Algoritmo_02.pas | Algoritmos-em-Pascal/Algoritmo_02.pas | {02 - Num frigorífico existem 90 bois. Cada boi traz preso em seu pescoço um cartão contendo seu número de identificação e seu peso. Fazer um algoritmo que escreva o número e o peso do boi mais gordo e do boi mais magro.}
program Cadastro_Bois;
uses crt; {usar dalay, clrscr}
const num_Cadastro = 90;
var codigo : ... | program Cadastro_Bois;
uses crt; {usar dalay, clrscr}
const num_Cadastro = 90;
var codigo : array of integer; {array infinito}
var peso : array [0..num_Cadastro] of integer; {array limitado}
var Max, Min : integer;
var i : integer;
begin
write ('Insira o Codigo: ');
read (codigo[0]);
write ('Insira o Peso: ');... | mit | Pascal |
a514c84118f13a3ad3a7882f19f8baf07a3d4504 | Add verification of output data in AsyncTransformTest | thecocce/Compute | tests/Compute.Test.pas | tests/Compute.Test.pas | unit Compute.Test;
interface
procedure RunTests;
implementation
uses
System.SysUtils,
System.DateUtils,
Compute,
Compute.Functions;
function ReferenceTransform(const Input: TArray<double>): TArray<double>;
var
i: integer;
x: double;
begin
SetLength(result, Length(input));
for i := 0 to High(input)... | unit Compute.Test;
interface
procedure RunTests;
implementation
uses
System.SysUtils,
System.DateUtils,
Compute,
Compute.Functions;
function ReferenceTransform(const Input: TArray<double>): TArray<double>;
var
i: integer;
x: double;
begin
SetLength(result, Length(input));
for i := 0 to High(input)... | apache-2.0 | Pascal |
5219cb72c4795d4e8675be6176fdeb8b6b6dbadf | Make Output Filename optional | AquaSoftGmbH/RefCountTracer | Src/Tracer.CommandLine.pas | Src/Tracer.CommandLine.pas | unit Tracer.CommandLine;
interface
procedure ExecuteCommandLineInterface;
implementation
uses
System.Classes,
System.SysUtils,
Tracer.Tree,
Tracer.Tools,
Parameters;
type
TOption = (oRemoveNonLeaked);
TOptionsSet = set of TOption;
TOptions = record
Options: TOptionsSet;
LogFilename: string;... | unit Tracer.CommandLine;
interface
procedure ExecuteCommandLineInterface;
implementation
uses
System.Classes,
System.SysUtils,
Tracer.Tree,
Tracer.Tools,
Parameters;
type
TOption = (oRemoveNonLeaked);
TOptionsSet = set of TOption;
TOptions = record
Options: TOptionsSet;
LogFilename: string;... | mpl-2.0 | Pascal |
a7aa4e87ae1b2044fc4b85009da9ede1a1339545 | Remove unnecessary SysUtils usage | eugeneilyin/mORMotBP,eugeneilyin/mORMotBP,eugeneilyin/mORMotBP,eugeneilyin/mORMotBP,eugeneilyin/mORMotBP | Demo/mORMotBPDemo.dpr | Demo/mORMotBPDemo.dpr | {===============================================================================
WARNING!
Before running the tests you must build Assets.res file
To do this add the next two events to the "Pre-build events" project options:
"$(PROJECTDIR)\..\Tools\assetslz" -GZ1 -B1 "$(PROJECTDIR)\..\Assets" "$(PROJECTDIR)\Assets.tm... | {===============================================================================
WARNING!
Before running the tests you must build Assets.res file
To do this add the next two events to the "Pre-build events" project options:
"$(PROJECTDIR)\..\Tools\assetslz" -GZ1 -B1 "$(PROJECTDIR)\..\Assets" "$(PROJECTDIR)\Assets.tm... | mit | Pascal |
18b3e1ea07c300ea50fe1e712b0fef54893f58ea | Fix buggy test | Leporacanthicus/lacsap,Leporacanthicus/lacsap,Leporacanthicus/lacsap | test/testset.pas | test/testset.pas | program testset;
type
letterset = set of 'A'..'Z';
var
a, b : letterset;
c : set of 0..9;
n : integer;
d : char;
begin
a := ['A', 'E', 'I'];
b := [ ];
c := [ ];
d := 'B';
if c = [ ] then
writeln('c is an empty set');
if c + [n mod 10] <= [0..4] then
c := c + [n mod 10... | program testset;
type
letterset = set of 'A'..'Z';
var
a, b : letterset;
c : set of 0..9;
n : integer;
d : char;
begin
a := ['A', 'E', 'I'];
b := [ ];
d := 'B';
if c = [ ] then
writeln('c is an empty set');
if c + [n mod 10] <= [0..4] then
c := c + [n mod 10];
if ... | isc | Pascal |
418de43db5d0d1f88520a76d41f0182bc3a25eec | update Adler32 | Xor-el/HashLib4Pascal,Xor-el/HashLib4Pascal | HashLib/src/Checksum/HlpAdler32.pas | HashLib/src/Checksum/HlpAdler32.pas | unit HlpAdler32;
{$I ..\Include\HashLib.inc}
interface
uses
HlpHashLibTypes,
HlpIHashInfo,
HlpHash,
HlpIHash,
HlpHashResult,
HlpIHashResult;
type
TAdler32 = class sealed(THash, IChecksum, IHash32, ITransformBlock)
strict private
var
FA, FB: UInt32;
const
MOD_ADLER = UInt32(65521);
p... | unit HlpAdler32;
{$I ..\Include\HashLib.inc}
interface
uses
HlpHashLibTypes,
HlpIHashInfo,
HlpHash,
HlpIHash,
HlpHashResult,
HlpIHashResult;
type
TAdler32 = class sealed(THash, IChecksum, IHash32, ITransformBlock)
strict private
var
FA, FB: UInt32;
const
MOD_ADLER = UInt32(65521);
p... | mit | Pascal |
a5d30b49ec89cf4c44e07efded44d73d2c21cce1 | Add default DisplayWidth | simar0at/delphi-rest-client-api,VSoftTechnologies/delphi-rest-client-api,monde-sistemas/delphi-rest-client-api,monde-sistemas/delphi-rest-client-api,fabriciocolombo/delphi-rest-client-api,thomaserlang/delphi-rest-client-api,simar0at/delphi-rest-client-api,VSoftTechnologies/delphi-rest-client-api,fabriciocolombo/delphi-... | src/DataSetUtils.pas | src/DataSetUtils.pas | unit DataSetUtils;
interface
uses DB, SysUtils;
type
TDataSetUtils = class
public
class function CreateField(DataSet: TDataSet; FieldType: TFieldType; const FieldName: string = ''; ASize: Integer=0; ADisplayWidth: Integer = 30): TField;
class function CreateDataSetField(DataSet: TDataSet; const FieldName... | unit DataSetUtils;
interface
uses DB, SysUtils;
type
TDataSetUtils = class
public
class function CreateField(DataSet: TDataSet; FieldType: TFieldType; const FieldName: string = '';ASize: Integer=0): TField;
class function CreateDataSetField(DataSet: TDataSet; const FieldName: string): TDataSetField;
en... | apache-2.0 | Pascal |
829abaabafd1e394ea2df23f6c14d88ca94e92fc | Add a join method to all macro drivers. | atrodo/draak | src/TDraak/Macro.pas | src/TDraak/Macro.pas | (* **************************************************************** *)
(* Copyright (C) 1999-2010, Jon Gentle, All right reserved. *)
(* **************************************************************** *)
(* This program is free software; you can redistribute it under the *)
(* terms of the Artistic License, as... | (* **************************************************************** *)
(* Copyright (C) 1999-2010, Jon Gentle, All right reserved. *)
(* **************************************************************** *)
(* This program is free software; you can redistribute it under the *)
(* terms of the Artistic License, as... | artistic-2.0 | Pascal |
81f9ea41f3b2f39d69d8b0aa2a3c3a88a175e831 | Update Project4.dpr | dcprojects/CoolProp,JonWel/CoolProp,dcprojects/CoolProp,henningjp/CoolProp,henningjp/CoolProp,CoolProp/CoolProp,henningjp/CoolProp,henningjp/CoolProp,DANA-Laboratory/CoolProp,CoolProp/CoolProp,JonWel/CoolProp,CoolProp/CoolProp,DANA-Laboratory/CoolProp,dcprojects/CoolProp,henningjp/CoolProp,henningjp/CoolProp,dcprojects... | wrappers/Delphi/Project4.dpr | wrappers/Delphi/Project4.dpr | program Project4;
uses
Forms,
main in 'main.pas' {MainForm},
uMolChart in 'uMolChart.pas',
cpIntf in 'cpIntf.pas';
{$R *.res}
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TMainForm, MainForm);
Application.Run;
end.
| mit | Pascal | |
1c17a227a0517532e7c8f4e85caf9106b9492558 | Fix 'learn more' link | tavultesoft/keymanweb,tavultesoft/keymanweb | windows/src/desktop/kmshell/install/Keyman.Configuration.UI.MitigationForWin10_1803.pas | windows/src/desktop/kmshell/install/Keyman.Configuration.UI.MitigationForWin10_1803.pas | // See #1285 for detail
unit Keyman.Configuration.UI.MitigationForWin10_1803;
interface
uses
System.Classes,
System.SysUtils,
System.Variants,
Vcl.Controls,
Vcl.Dialogs,
Vcl.Forms,
Vcl.StdCtrls;
procedure CheckForMitigationWarningFor_Win10_1803(ASilent: Boolean; const ALogFile: string);
procedure ShowM... | unit Keyman.Configuration.UI.MitigationForWin10_1803;
interface
uses
System.Classes,
System.SysUtils,
System.Variants,
Vcl.Controls,
Vcl.Dialogs,
Vcl.Forms,
Vcl.StdCtrls;
procedure CheckForMitigationWarningFor_Win10_1803(ASilent: Boolean; const ALogFile: string);
procedure ShowMitigationWarningFormFor_... | apache-2.0 | Pascal |
a67a3b9bc8e37c61ac565a67322359a508fee83d | update to 1.3.0 | exercism/xpascal,rpottsoh/exercism-delphi,exercism/xdelphi,rpottsoh/xdelphi,rpottsoh/xpascal | exercises/rna-transcription/uTestRnaTranscription.pas | exercises/rna-transcription/uTestRnaTranscription.pas | unit uTestRnaTranscription;
interface
uses
DUnitX.TestFramework;
const
CanonicalVersion = '1.3.0';
type
[TestFixture]
RnaTranscriptionTest = class(TObject)
public
[Test]
// [Ignore('Comment the "[Ignore]" statement to run the test')]
procedure Empty_RNA_sequence;
[Test]
[Ignore]
pro... | unit uTestRnaTranscription;
interface
uses
DUnitX.TestFramework;
const
CanonicalVersion = '1.1.0';
type
[TestFixture]
RnaTranscriptionTest = class(TObject)
public
[Test]
// [Ignore('Comment the "[Ignore]" statement to run the test')]
procedure Rna_complement_of_cytosine_is_guanine;
[Test]
... | mit | Pascal |
ade8d692d9d65091f87958b56a56d24c0a091590 | Fix duplicated uses on Auto import | rfrezino/RFindUnit | Source/FindUnit.AutoImport.pas | Source/FindUnit.AutoImport.pas | unit FindUnit.AutoImport;
interface
uses
IniFiles, SysUtils, Log4Pascal, Classes;
type
TAutoImport = class(TObject)
private
FIniFilePath: string;
FSearchMemory: TIniFile;
procedure LoadIniFile;
procedure SaveIniFile;
function LoadClassesToImport: TStringList;
public
constructor Create... | unit FindUnit.AutoImport;
interface
uses
IniFiles, SysUtils, Log4Pascal, Classes;
type
TAutoImport = class(TObject)
private
FIniFilePath: string;
FSearchMemory: TIniFile;
procedure LoadIniFile;
procedure SaveIniFile;
function LoadClassesToImport: TStringList;
public
constructor Create... | mit | Pascal |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.