Commit Graph

15022 Commits

Author SHA1 Message Date
Michaël Van Canneyt
399f693ebb * ExtractShortPathName 2023-11-12 22:13:22 +01:00
Michaël Van Canneyt
f10bdf4012 * Add System.AnsiStrings for Delphi compatibility 2023-11-12 17:49:41 +01:00
Michaël Van Canneyt
407fb4b1da * pthread_mutex_timedlock 2023-11-12 10:17:22 +01:00
Michaël Van Canneyt
d8700e5190 * Make TSemaphore and TMutex opt-in for some platforms 2023-11-12 08:49:45 +01:00
Michaël Van Canneyt
81925b7c1b * Correctly close IFDEF block 2023-11-11 17:57:53 +01:00
Michaël Van Canneyt
f2372c0c0a * Fix during defined USE_pthread_mutex_trylock 2023-11-11 12:17:04 +01:00
Michaël Van Canneyt
121f6fce22 * Fix typo, missing brackets 2023-11-11 12:08:44 +01:00
Michaël Van Canneyt
0e3b8cca8c * Correct tsemaphore for platforms that do not have the mutex_timedlock 2023-11-11 11:55:24 +01:00
Michaël Van Canneyt
76909f0894 * Correct StuffString for character size in unicodestring 2023-11-10 17:08:26 +01:00
Michaël Van Canneyt
7f6931f685 * Better version of nilpchar 2023-11-10 15:21:14 +01:00
Michaël Van Canneyt
457daac896 * Re-Add MatchIndexFromName. Fixes issue #40478 2023-11-10 14:18:34 +01:00
Michaël Van Canneyt
d989fb9a15 * Implement TSemaphore & TMutex for Delphi compatibility 2023-11-10 14:13:23 +01:00
Michaël Van Canneyt
a9ff6272f6 * Add IsInstanceOf 2023-11-09 11:28:53 +01:00
Pierre Muller
5205ce30f4 Clean up OSCPUSupported array values 2023-11-06 21:25:35 +00:00
mattias
85338e2d05 fcl-pdf: using EPDF 2023-11-06 08:44:49 +01:00
mattias
5181d57559 fcl-css: comments 2023-11-05 15:57:16 +01:00
mattias
b41a0be550 fcl-css: less hints 2023-11-05 15:57:16 +01:00
mattias
be68d66137 fcl-pdf: added function TPDFDocument.AddFont(AFontStream: TStream; AName: String): Integer and function TFPFontCacheList.AddFontFromStream(AStream: TStream): integer 2023-11-05 15:57:16 +01:00
mattias
605a495db1 fcl-pdf: added gitignores for fonts and binaries 2023-11-05 15:57:16 +01:00
Michaël Van Canneyt
8e024b2606 * Fix by Dokkie8844 to treat error codes by GnuTLS in a more graceful manner. Fixes issue #40195 2023-11-05 10:25:44 +01:00
Michaël Van Canneyt
6941409295 * Patch from Dokkie8844 to set hostname when verifying peer certificate. Fixes issue #40479 2023-11-05 10:19:34 +01:00
J. Gareth "Curious Kit" Moreton
736f5edf98 * Packages: Fixed assembler error in Hash package on x86_64 when external assembler is used 2023-11-04 21:48:13 +00:00
Michaël Van Canneyt
b388355750 * Quotes not needed. 2023-11-03 17:40:56 +01:00
Michaël Van Canneyt
4363c0b229 * Add system.analytics for Delphi compatibility 2023-11-03 17:09:28 +01:00
Michaël Van Canneyt
9197def8cc * Attempt to load .so.2. Fixes issue #40495 2023-11-03 17:02:14 +01:00
Michaël Van Canneyt
9fe4e1247f * Fix syntax error 2023-11-03 09:48:46 +01:00
Michaël Van Canneyt
e3d3fe654c * Do not quote twice in maybequoted. Fix issue #40494 2023-11-03 09:42:05 +01:00
Michaël Van Canneyt
2cec31d86f * correct aDelta size 2023-11-02 13:56:53 +01:00
Michaël Van Canneyt
5034440383 * Fix compilation of unicode RTL after patch by Rika 2023-11-02 09:53:10 +01:00
Michaël Van Canneyt
09dcd5b07a * Add wsFullScreen to TWindowState. Fixes issue #40493 2023-11-02 08:15:44 +01:00
Michaël Van Canneyt
f253ca856f * Add ColorToRGB class var to TColorRec 2023-11-01 23:30:26 +01:00
Michaël Van Canneyt
d8c7b99cdd * Add some types for Delphi compatibility 2023-11-01 23:14:12 +01:00
Michaël Van Canneyt
e48d53a2f5 * Add TEditCharCase 2023-11-01 21:38:55 +01:00
Michaël Van Canneyt
d0fe59feda --amend 2023-11-01 15:28:01 +01:00
Michaël Van Canneyt
c7426a37ef * (Try)Cast 2023-11-01 15:28:01 +01:00
florian
0eeba27df6 * typo fixed 2023-11-01 11:32:51 +01:00
J. Gareth "Curious Kit" Moreton
f7465bb3ec * Packages: x86_64 assembly version of SHA1Transform added to hash package 2023-11-01 09:35:47 +00:00
florian
29c8758975 * clean up strange extra char 2023-11-01 10:35:12 +01:00
Rika Ichinose
dba8138175 Refactor promotional features of StrUtils. 2023-11-01 09:02:27 +00:00
Michaël Van Canneyt
36ef7ca8db * Dotted rtl 2023-10-31 17:48:45 +01:00
Michaël Van Canneyt
b0fd261519 * Correct permissions 2023-10-31 11:57:25 +01:00
Michaël Van Canneyt
29f7b41fc6 * Add system.devices for Delphi compatibility 2023-10-31 11:55:30 +01:00
Michaël Van Canneyt
f07e9675f8 * Add delphi-compatible methods to TAlphaColorF 2023-10-30 11:41:50 +01:00
Michaël Van Canneyt
f2d5deb26d * Adjust wasmtime interface to latest version 2023-10-30 09:17:01 +01:00
Michaël Van Canneyt
1ce1fcf5ae * Patch from Rika to fix broken test (tw39885) 2023-10-29 11:04:40 +01:00
Rika Ichinose
9382070454 Refactor and fix a bug in Boyer-Moore. 2023-10-28 06:56:15 +00:00
Michaël Van Canneyt
55e72fc0f1 * Undo last change. 2023-10-28 00:59:48 +02:00
Michaël Van Canneyt
9fe395018a * Remove TStringList descendents 2023-10-28 00:40:12 +02:00
Michaël Van Canneyt
0368e12aaa * System messaging, simple implementation 2023-10-27 18:33:05 +02:00
Michaël Van Canneyt
5ba5265fe6 * Delphi compatibility unit system.permissions 2023-10-26 23:41:14 +02:00
Pierre Muller
76becd36b7 Add new TUnsortedCompilerOptionsStringList class
which sets Duplicates to dupAccept explicitly in constructor.
 Use new TUnsortedCompilerOptionsStringList class to instanciate
 all TStrings containing list of complier options.
2023-10-26 09:42:48 +00:00
Michaël Van Canneyt
1e64126fba * Do not (yet) compile for wasm 2023-10-26 11:20:50 +02:00
Michaël Van Canneyt
a36fca37f1 * Correctly load library, make this public 2023-10-26 11:20:50 +02:00
Michaël Van Canneyt
37654bda66 * Fix windows unicodertl compilation 2023-10-26 11:20:50 +02:00
J. Gareth "Curious Kit" Moreton
1437928ce6 * Packages: i386 BMI1 implementation of MD5 hash 2023-10-25 21:09:25 +00:00
Michaël Van Canneyt
9bb1cda8b5 * Fix compilation in unicode rtl 2023-10-25 17:26:39 +02:00
Michaël Van Canneyt
28dba2e721 * Git did not add .lst files 2023-10-25 16:50:51 +02:00
Michaël Van Canneyt
01589aa693 * WasmEdge library import 2023-10-25 15:07:26 +02:00
Pierre Muller
1f8865454b Increase size of Param field of TSwitchItem object, to avoid truncation for -Cploongarch64 option 2023-10-25 09:58:23 +00:00
Nikolay Nikolov
376de92a50 Merge branch 'main' into wasm_goto 2023-10-25 03:03:38 +03:00
Michaël Van Canneyt
1866aa1515 * Fix windows compilation 2023-10-24 17:25:42 +02:00
Michaël Van Canneyt
39ef628a77 * Already namespaced 2023-10-24 16:46:28 +02:00
Michaël Van Canneyt
48385fce80 * Forgot to add 2023-10-24 16:43:05 +02:00
Michaël Van Canneyt
4a88ed950a * No namespaces for fpmkunit 2023-10-24 16:38:34 +02:00
Michaël Van Canneyt
55d33aa6a7 * Fix compilation using namespaces & unicode rtl 2023-10-24 15:27:35 +02:00
Michaël Van Canneyt
652d41a70a * Dependencies for utils to compile to webassembly 2023-10-24 10:54:18 +02:00
Michaël Van Canneyt
9d00605c35 * Allow compilation for wasm 2023-10-24 10:42:12 +02:00
Michaël Van Canneyt
f4863177b6 * Remove duplicate code, move some code from fileutils to utils 2023-10-24 10:14:37 +02:00
Michaël Van Canneyt
6fda6f79d8 * License header 2023-10-23 23:33:34 +02:00
Michaël Van Canneyt
a0878c9565 * Debug capture separated out 2023-10-23 23:31:33 +02:00
Nikolay Nikolov
d39b5e8296 Merge branch 'main' into wasm_goto 2023-10-23 02:53:55 +03:00
Michaël Van Canneyt
b4ccac8def * Fix compilation with pas2js 2023-10-22 17:35:47 +02:00
Michaël Van Canneyt
74c995c06b * Add system.math.vectors for Delphi compatibility. 2023-10-22 17:08:20 +02:00
Nikolay Nikolov
d66a8cb902 + enable compilation of the hermes package for the WASI platform, since WebAssembly now supports goto 2023-10-22 02:12:47 +03:00
Nikolay Nikolov
0bf609f0f0 + enable compilation of the fcl-res package for the WASI platform, since WebAssembly now supports goto 2023-10-22 02:08:09 +03:00
Nikolay Nikolov
fbcdce2c87 + enable compilation of the chm package for the WASI platform, since WebAssembly now supports goto 2023-10-22 02:02:28 +03:00
Nikolay Nikolov
30b745758c + enable compilation of the bzip2 unit for the WASI platform, since WebAssembly now supports goto 2023-10-22 01:58:50 +03:00
Michaël Van Canneyt
237e2686f1 * Patch from Dokkie8844 to ease implementation of certificate verification. Fixes issue #40480 2023-10-21 22:24:23 +02:00
Michaël Van Canneyt
b003828d26 * Some fixes for namespaced compilation 2023-10-19 12:19:38 +02:00
Pierre Muller
44e2c05ef7 Set calling convention for fontconfig library import unit 2023-10-19 10:28:17 +02:00
Pierre Muller
3c2fa91c75 Extend support to all BSD systems for libfontconfig and fcl-pdf packages 2023-10-18 21:09:44 +00:00
Pierre Muller
59fe173cc7 Add calls to FcGetVersion, FcConfigGetFilename and FcConfigFilename 2023-10-18 15:24:31 +00:00
Pierre Muller
9070b3647a Add new FcConfigGetFilename function 2023-10-18 15:24:31 +00:00
Pierre Muller
9782b206cf Add namespaced version of libfontconfig and unixtype units in _USES clause 2023-10-18 15:18:00 +00:00
Pierre Muller
b51e5f370f Disable fcl-pdf package for wince target 2023-10-18 15:17:02 +00:00
Michaël Van Canneyt
557a324473 * Add system.actions unit for Delphi compatibility 2023-10-18 17:06:04 +02:00
Michaël Van Canneyt
a88dd9197f * Some delphi compatibility methods/types for actions 2023-10-18 16:49:39 +02:00
Michaël Van Canneyt
db1efd0264 * Fix windows implementation of find. Fixes issue #40473 2023-10-18 16:40:53 +02:00
Michaël Van Canneyt
c120a13af8 * Unprepare on commit/rollback 2023-10-18 08:57:01 +02:00
mattias
985dec61b1 pastojs: do not add rtti for public constructor for class without rtti, related #37752 2023-10-17 15:09:22 +02:00
mattias
bb817db47a pas2js: skip invalid surrogate 2023-10-17 13:11:09 +02:00
mattias
6bb5c3c48c pastojs: added test for utf-16 surrogates 2023-10-17 13:03:12 +02:00
mattias
c7db379a4f pastojs: errors on illegal char const 2023-10-17 13:02:45 +02:00
mattias
f477b94f0f fcl-js: fixed EscapeString for surrogates 2023-10-17 13:02:12 +02:00
mattias
86dde7821c fcl-pdf: gitignore fonts 2023-10-17 13:01:09 +02:00
Michaël Van Canneyt
48348ca7a1 * libfontconfig only on linux/freebsd/darwin 2023-10-17 11:16:41 +02:00
mattias
ddd39227eb fcl-json: clean up 2023-10-17 09:47:00 +02:00
Pierre Muller
9e341da6ed Apply fix submitted by Rika on discussion about issue #39366 2023-10-17 06:49:47 +00:00
Michaël Van Canneyt
fa9da559fb * libfontconfig dependency for linux/bsd 2023-10-17 00:31:37 +02:00
Michaël Van Canneyt
354ae2344e * Add fontmapper by Anton Kavalenka. Fixes issue #39363 2023-10-16 22:28:01 +02:00
Michaël Van Canneyt
9588204585 * (re)Build element ID list at end of parse. Fixes issue #39391 2023-10-16 17:07:17 +02:00
Michaël Van Canneyt
c0354d0975 * Allow descendents to override methods to implement their own parsing. Fixes issue #40063 2023-10-16 14:41:31 +02:00
Michaël Van Canneyt
a61d606643 * Close dataset on SQL change. Fixes issue #39610 2023-10-16 14:19:06 +02:00
Ondrej Pokorny
8bd9651abd TSQLConnection.DoInternalDisconnect: safe with Assigned(FStatements) - like TDatabase.CloseDataSets etc. 2023-10-16 09:45:53 +00:00
Ondrej Pokorny
cd909ec2bc TCustomConnection.DoCloseError virtual 2023-10-16 09:45:53 +00:00
Michaël Van Canneyt
e1715d6d1a * Add miter/penstyle, allow font in floating point size, allow simulation of italic/bold. Patch by Joeny Ang. Fixes issue #39836 2023-10-16 11:17:56 +02:00
Michaël Van Canneyt
c1be8e590d * Add demo to show OnVerifyCertificate, part of issue #39998 2023-10-16 09:06:05 +02:00
Michaël Van Canneyt
fb7c1d8805 * Add foForceLF to allow LF-separated files on windows. Fixes issue #39893 2023-10-15 23:30:42 +02:00
Michaël Van Canneyt
d9fb288552 * Transfer ForcedClose from TSQLConnector to proxy. Fixes issue #39910 2023-10-15 22:35:12 +02:00
Michaël Van Canneyt
f73456a9d9 * FileNewer should return true if the dest file does not exist. 2023-10-15 17:14:05 +02:00
Michaël Van Canneyt
1b4e733a66 * Disable range checking 2023-10-15 16:57:59 +02:00
Michaël Van Canneyt
0bd34bb992 * Remove subtarget option 2023-10-15 16:54:15 +02:00
Michaël Van Canneyt
32465fbdc1 * Fix wrong char->ansichar 2023-10-15 11:17:09 +02:00
Michaël Van Canneyt
151d72661a * Force close during destroy, add event to report errors 2023-10-15 11:16:45 +02:00
Michaël Van Canneyt
aa841d584d * Patch from Rika to enable assembler version of MD5 on i386-darwin. Fixes issue #40470 2023-10-15 10:24:45 +02:00
Michaël Van Canneyt
66e2cf5e5c * Fix MSDos compilation 2023-10-15 10:24:45 +02:00
Rika Ichinose
e1ea58dd2f MD5Transform for i386 without a stack frame and with less pushes. 2023-10-14 22:59:14 +03:00
Rika Ichinose
4603b80ac0 Remove “original version” of MD5Transform. 2023-10-14 22:59:13 +03:00
florian
f12abd03cc * compilation on non-x86 targets fixed 2023-10-14 21:29:28 +02:00
florian
5b9998e38b * fix BMI1 version of SysV MD5Transform 2023-10-14 14:37:00 +02:00
J. Gareth "Curious Kit" Moreton
6a9a416f84 * Packages: BMI1 version of MD5Transform for x86_64 2023-10-14 12:35:20 +00:00
J. Gareth "Curious Kit" Moreton
fce4a953a7 * Packages: x86_64 assembly language version of MD5Transform added to hash package 2023-10-14 12:35:20 +00:00
J. Gareth "Curious Kit" Moreton
afc981d2cb * md5performancetest now gives better granularity on the elapsed time 2023-10-14 12:35:20 +00:00
Michaël Van Canneyt
761de25eb4 * Update to last version of TRegExpr engine. Fix issue #40433 2023-10-14 09:56:58 +02:00
Michaël Van Canneyt
d5807e03b6 * Fix debug statement 2023-10-13 16:13:08 +02:00
Michaël Van Canneyt
358d45f9eb * Delphi compatibility unit. Fixes issue #40089 2023-10-13 15:33:59 +02:00
Michaël Van Canneyt
181aebe508 * Add windows colors 2023-10-13 08:32:43 +02:00
Michaël Van Canneyt
0ec1f182b4 * Disable debug info, patch by MichaelW. Fixes issue #40466 2023-10-12 21:26:19 +02:00
Michaël Van Canneyt
9ef5b8bce9 * Fixes in DoCopyProps. Fixes issue #40362 2023-10-12 11:11:48 +02:00
Michaël Van Canneyt
0d37b3c6ec * Use SinCos where possible. Fixes issue #40420 2023-10-12 09:11:21 +02:00
Michaël Van Canneyt
38776ca494 * Use const string arguments where possible. Fixes issue #40441 2023-10-12 08:49:07 +02:00
Michaël Van Canneyt
ac5b96a0c9 * Bind fields when needed in InternalOpen. Fixes issue #40450 2023-10-12 08:33:23 +02:00
Kai Burghardt
5307ef07c4 bypass realinteger conversion → real promotion in dateUtils.dateOf
The `dateUtils.dateOf` function takes one `tDateTime` value, a `real` value,
converts it to an `integer` using `trunc`, and then the value is automatically
promoted to a `real` value again (because of result data type `tDateTime`).

This is unnecessary (unless an error is the desired behavior).
You can use just `system.int` to obtain the integral (= date) part of `tDateTime`.
2023-10-11 23:05:33 +02:00
florian
f671db3fa6 + simple test for Dateutils.DateOf 2023-10-11 23:05:33 +02:00
Michaël Van Canneyt
3fbf05ec89 * Do not eat exceptions. Allow to handle errors in translation. Fixes issue #40430 2023-10-11 09:00:11 +02:00
Michaël Van Canneyt
26e66fda75 * Fix Access Violation when starting debug server failed 2023-10-11 08:47:53 +02:00
mattias
435861b238 fcl-passrc: added test unit not used through alias 2023-10-10 19:37:04 +02:00
mattias
d8fa6e6a9c fcl-passrc: started test generic with type alias 2023-10-10 19:36:32 +02:00
mattias
7aa2ae7b36 fcl-css: test user pseudo class 2023-10-08 23:26:48 +02:00
marcoonthegit
816a4714f6 * another indirection problem reported on the forum for libusb_free_device_list 2023-10-07 22:50:18 +02:00
marcoonthegit
018593270b * From double to triple indirection for the get_device_list function. Reported by Jurassic Pork on forum. 2023-10-07 16:40:41 +02:00
Karoly Balogh
d748124996 tosunits: add VM_INQUIRE constant for xbios_vsetmode() 2023-10-03 21:11:18 +02:00
Karoly Balogh
35ac20c1f0 tosunits: xbios vsetrgb/vgetrgb - do not use Pascal open array style syntax in a C-style API, but C pointer-style 2023-10-03 21:11:18 +02:00
Michaël Van Canneyt
123481aa8d * Minor improvements of EncodeUri. Fixes issue #40455 2023-10-03 08:59:41 +02:00
Rika Ichinose
83f7213b25 Improve i386 SHA1Transform further: remove some (14) reads, and use MOVBE if suddenly available. 2023-09-23 17:14:55 +00:00
Sven/Sarah Barth
cb2fa0d2c1 * rename tests for TValue from tests.value to tests.rtti.value, cause they're still part of the tests related to the RTTI unit 2023-09-22 15:05:21 +02:00
Sven/Sarah Barth
811fb28433 * correctly retrieve the type of the Variant 2023-09-22 15:03:16 +02:00
Sven/Sarah Barth
6bf7e4c0d3 * use the VWideChar field to retrieve the WideChar value instead of VChar to fix usage on big endian systems 2023-09-21 22:41:19 +02:00
florian
e440545954 * sha1i386.inc is used on all targets now 2023-09-16 23:25:31 +02:00
marcoonthegit
692cf4f2bc * add some default headers, fixes #40432 2023-09-16 16:41:30 +02:00