Commit Graph

15613 Commits

Author SHA1 Message Date
Michaël Van Canneyt
25c75b1784 * Ensure null-terminated strings. Patch by modersohn, fixes issue #40499 2023-11-03 17:01:03 +01:00
Michaël Van Canneyt
82bc91e6cf * Make explicit how much better FPC is when compared to Delphi ;) 2023-11-03 11:52:14 +01:00
Michaël Van Canneyt
be0e06bd50 * Delphi compatibility methods, unicode character type helper 2023-11-03 11:08:20 +01:00
Michaël Van Canneyt
2ad272f03f * Correct dependency of (System.)Character, or resulting unit is unusable 2023-11-02 12:10:36 +01:00
Michaël Van Canneyt
122ef8bb76 * Make sure it compiles with 3.2.2 2023-11-01 23:37:12 +01:00
Michaël Van Canneyt
df67c18f7d * Some delphi compatibility constants 2023-11-01 23:23:41 +01:00
Michaël Van Canneyt
e4ebf46df3 * Some delphi compatibility types and consts 2023-11-01 23:19:56 +01:00
Michaël Van Canneyt
24d8478650 * Missing functions 2023-11-01 22:48:14 +01:00
Michaël Van Canneyt
81e2db47a9 * Add some methods to TFormatSettings for Delphi compatibility 2023-11-01 21:38:55 +01:00
Michaël Van Canneyt
33950a5e22 * Add SArgumentNil 2023-11-01 21:38:55 +01:00
Michaël Van Canneyt
038f054bdc * Add varUInt32 alias for delphi compatibility 2023-11-01 21:38:55 +01:00
Michaël Van Canneyt
80d471a9f1 * Add HINST for Delphi compatibility 2023-11-01 21:38:55 +01:00
Rika Ichinose
0d3d4918b3 Don’t allow generic fpc_pchar_length to arbitrarily over-read. 2023-11-01 20:04:40 +00:00
Rika Ichinose
873492006d Working i386 fpc_pchar_to_shortstr; previous version didn’t support length limits smaller than 255 and was often slower. 2023-11-01 20:04:40 +00:00
Rika Ichinose
8d1d763a1a Don’t use local shortstring in generic fpc_pchar_to_shortstr, move directly to the destination. 2023-11-01 20:04:40 +00:00
Rika Ichinose
0bc1d8d446 Deny effective RTM support if CPUID bit RTM_ALWAYS_ABORT is set. 2023-11-01 17:10:14 +00:00
florian
b2a13077c0 * redefine also PPChar and PPPChar depending on the string type mode, resolves #40491 2023-10-31 23:13:22 +01:00
Rika Ichinose
e00ab51185 On i386 and x86_64, add cpu.CPUID — high-level wrapper to CPUID instruction, and cpu.CPUBrandString — convenience for CPUID leaves 80000002, 80000003, and 80000004. 2023-10-31 21:20:45 +03:00
Michaël Van Canneyt
b3d3b65bdf * Add TPointF.Zero 2023-10-30 14:51:39 +01:00
Pierre Muller
1529ff773f Makefile's regenerated after: Replace remaining SYSINITUNITS variable by SYSINIT_UNITS 2023-10-30 09:34:51 +00:00
Pierre Muller
ee62aa0c13 Replace remaining SYSINITUNITS variable by SYSINIT_UNITS 2023-10-30 09:34:07 +00:00
Michaël Van Canneyt
44cf5d776f * Add some constants for Delphi compatibility 2023-10-30 09:54:43 +01:00
Michaël Van Canneyt
6045b3a6bd * Add Delphi-compatible DisposeOf and friends. 2023-10-30 09:17:01 +01:00
Michaël Van Canneyt
d587f48892 * Fix typos, missing sparc 2023-10-27 09:57:35 +02:00
Michaël Van Canneyt
9904727f75 * add TClassicByteDynArray for delphi compatibility 2023-10-26 23:29:43 +02:00
Michaël Van Canneyt
14fe7203fe * Add TClassicStringDynArray for Delphi compatibility 2023-10-26 23:27:27 +02:00
Michaël Van Canneyt
21e99a0a1e * TOSVersion for Delphi compatibility 2023-10-26 22:15:36 +02:00
Rika Ichinose
0e426db5de x86_64.inc: shorten Interlocked*, perform macro-fused test+jz in Index* early. 2023-10-25 21:05:21 +00:00
Michaël Van Canneyt
a88dd9197f * Some delphi compatibility methods/types for actions 2023-10-18 16:49:39 +02:00
Pierre Muller
e523b9b282 Move setting of SYSTEMDIR variable to prerules to get correct source directory for system unit on BSD targets 2023-10-16 21:44:17 +02:00
Michaël Van Canneyt
bad90711ef * Do not use comp type, use int64 instead. Fix issue #40469 2023-10-16 10:25:52 +02:00
florian
4794e5ffcf * improve math.power as suggested by Paolo Valle, resolves #40461 2023-10-15 23:17:24 +02:00
Michaël Van Canneyt
2854f08daa * Add boolean %b format specifier 2023-10-15 23:06:02 +02:00
Michaël Van Canneyt
bc00d5ae06 * Forgot CenterAt 2023-10-15 22:23:00 +02:00
Michaël Van Canneyt
e28add8b31 * Add some missing identifiers to TRectF. Fixes issue #40068 2023-10-15 16:54:15 +02:00
marcoonthegit
6b7afc6b08 * added some winnls constants. Reworked locale_ and cal_ constants for easier maintenance. 2023-10-15 12:22:12 +02:00
Michaël Van Canneyt
2da416c4ea * Some optimizations for FloatToStr (20% gain). Fixes issue #40137 2023-10-14 17:26:05 +02:00
Michaël Van Canneyt
08821f9422 * Fix issue #40180 2023-10-13 17:19:36 +02:00
Pierre Muller
71c6b6be0c Add also DOSDIR and CLASSESDIR 2023-10-09 11:38:14 +02:00
Pierre Muller
2815273cf0 Set SYSUTILSDIR to unix dir in linux Makefile.fpc 2023-10-09 11:19:21 +02:00
Pierre Muller
08f9aaa6e6 Regenerate Makefile's with centralized SYSTEMUNIT variable 2023-10-09 01:02:28 +02:00
Pierre Muller
cb2d675732 Remove OS specific SYSTEMUNIT variable setting 2023-10-09 01:02:28 +02:00
Pierre Muller
b317f47029 Set SYSTEMUNIT variable globally inside inc/Makefile.rtl 2023-10-09 01:02:28 +02:00
Pierre Muller
e3f4676fb0 Remove softfpu from unit list for wasm32-embedded target 2023-10-03 14:25:52 +00:00
Pierre Muller
e11838c5bd Regenerate amiga, embedded, and go32v2 Makefile's 2023-10-02 22:27:17 +02:00
Pierre Muller
261e66fb84 go32v2 dos unit depends on go32 unit. 2023-10-02 22:27:17 +02:00
Pierre Muller
9845d15162 Cleanup sinclairql Makefile.fpc 2023-10-02 22:27:17 +02:00
Pierre Muller
9a9e2e4ae5 amiga and embedded Makefile.pfc changes
Remove RESUNIT rule from amiga/Makefile.fpc, as fpintres and fpextres are both treated inside inc/Makefile.rtl
  Use CPU_COMMON_UNITS for embedded rules.
2023-10-02 22:27:17 +02:00
Michaël Van Canneyt
ab4db7f475 * Fix OnChange being fired twice when adding an object. Fixes issue 40261 2023-10-02 22:17:59 +02:00
Michaël Van Canneyt
113add75cc * Fix issue #40454 2023-10-02 10:15:24 +02:00