Commit Graph

2937 Commits

Author SHA1 Message Date
marco
3605c0655a --- Merging r30653 into '.':
U    rtl/inc/fexpand.inc
--- Recording mergeinfo for merge of r30653 into '.':
 U   .
--- Merging r30654 into '.':
U    tests/test/units/dos/tfexpand.pp
--- Recording mergeinfo for merge of r30654 into '.':
 G   .
--- Merging r30774 into '.':
G    tests/test/units/dos/tfexpand.pp
--- Recording mergeinfo for merge of r30774 into '.':
 G   .
--- Merging r30788 into '.':
U    rtl/amiga/system.pp
--- Recording mergeinfo for merge of r30788 into '.':
 G   .
--- Merging r30789 into '.':
U    rtl/morphos/system.pp
--- Recording mergeinfo for merge of r30789 into '.':
 G   .
--- Merging r30790 into '.':
U    packages/fcl-process/fpmake.pp
A    packages/fcl-process/src/amicommon
A    packages/fcl-process/src/amicommon/process.inc
A    packages/fcl-process/src/amicommon/pipes.inc
A    packages/fcl-process/src/amicommon/simpleipc.inc
--- Recording mergeinfo for merge of r30790 into '.':
 G   .
--- Merging r30803 into '.':
U    packages/fcl-process/src/amicommon/simpleipc.inc
--- Recording mergeinfo for merge of r30803 into '.':
 G   .
--- Merging r30805 into '.':
U    packages/fcl-process/src/amicommon/process.inc
U    packages/fcl-process/src/amicommon/pipes.inc
--- Recording mergeinfo for merge of r30805 into '.':
 G   .
--- Merging r30806 into '.':
G    packages/fcl-process/src/amicommon/process.inc
G    packages/fcl-process/src/amicommon/pipes.inc
--- Recording mergeinfo for merge of r30806 into '.':
 G   .
--- Merging r30812 into '.':
U    packages/morphunits/src/amigados.pas
U    packages/amunits/src/coreunits/amigados.pas
G    packages/fcl-process/src/amicommon/process.inc
G    packages/fcl-process/src/amicommon/pipes.inc
U    packages/arosunits/src/amigados.pas
--- Recording mergeinfo for merge of r30812 into '.':
 G   .
--- Merging r30813 into '.':
U    rtl/aros/system.pp
--- Recording mergeinfo for merge of r30813 into '.':
 G   .

# revisions: 30653,30654,30774,30788,30789,30790,30803,30805,30806,30812,30813

git-svn-id: branches/fixes_3_0@31082 -
2015-06-17 11:23:29 +00:00
marco
2fb2b18abc --- Merging r29537 into '.':
U    compiler/symdef.pas
A    tests/webtbs/tw27320.pp
A    tests/webtbs/uw27320.defaults.pp
--- Recording mergeinfo for merge of r29537 into '.':
 U   .
--- Merging r29579 into '.':
A    tests/webtbs/tw27348.pp
G    compiler/symdef.pas
--- Recording mergeinfo for merge of r29579 into '.':
 G   .
--- Merging r29743 into '.':
U    compiler/rautils.pas
G    compiler/symdef.pas
--- Recording mergeinfo for merge of r29743 into '.':
 G   .
--- Merging r29685 into '.':
A    tests/webtbs/tw27424.pp
U    compiler/pgenutil.pas
--- Recording mergeinfo for merge of r29685 into '.':
 G   .
--- Merging r30160 into '.':
U    rtl/inc/cgeneric.inc
--- Recording mergeinfo for merge of r30160 into '.':
 G   .
--- Merging r31028 into '.':
U    rtl/objpas/classes/classes.inc
A    tests/webtbs/tw28271.pp
--- Recording mergeinfo for merge of r31028 into '.':
 G   .

# revisions: 29537,29579,29743,29685,30160,31028

git-svn-id: branches/fixes_3_0@31065 -
2015-06-14 20:35:18 +00:00
michael
0bf989a26e * Merge revisions 31037,31036,31035,31034,31033 from trunk
git-svn-id: branches/fixes_3_0@31040 -
2015-06-13 16:58:24 +00:00
marco
a0d20ecb2b --- Merging r30047 into '.':
U    rtl/java/jsystemh.inc
U    rtl/inc/generic.inc
U    rtl/inc/systemh.inc
A    tests/test/tutf8cpl.pp

# revisions: 30047

git-svn-id: branches/fixes_3_0@30552 -
2015-04-12 14:20:56 +00:00
marco
154caf1283 --- Merging r29590 into '.':
U    compiler/psub.pas
A    tests/tbs/tb0609.pp
--- Merging r29691 into '.':
U    rtl/inc/system.inc

# revisions: 29590,29691

git-svn-id: branches/fixes_3_0@29770 -
2015-02-20 21:56:45 +00:00
marco
e8338c128b --- Merging r29545 into '.':
U    packages/chm/src/chmwriter.pas
U    packages/chm/src/chmfilewriter.pas
U    packages/chm/src/chmcmd.lpr
--- Merging r29546 into '.':
U    rtl/inc/system.fpd
--- Merging r29547 into '.':
U    utils/fpdoc/fpdoc.pp
--- Merging r29548 into '.':
U    utils/fpdoc/makeskel.pp
--- Merging r29550 into '.':
G    packages/chm/src/chmcmd.lpr

# revisions: 29545,29546,29547,29548,29550

git-svn-id: branches/fixes_3_0@29720 -
2015-02-16 12:20:32 +00:00
marco
00092321e3 --- Merging r29469 into '.':
U    rtl/inc/system.fpd
--- Merging r29470 into '.':
G    rtl/inc/system.fpd
--- Merging r29475 into '.':
U    compiler/msg/errore.msg
U    compiler/msgtxt.inc
--- Merging r29477 into '.':
U    rtl/dragonfly/x86_64/cprt0.as
--- Merging r29478 into '.':
U    packages/openssl/src/openssl.pas
--- Merging r29491 into '.':
U    installer/install.dat
--- Merging r29492 into '.':
U    rtl/os2/sysos.inc
U    rtl/os2/sysucode.inc
--- Merging r29494 into '.':
U    utils/fpmake.pp

# revisions: 29469,29470,29475,29477,29478,29491,29492,29494

git-svn-id: branches/fixes_3_0@29505 -
2015-01-18 16:24:07 +00:00
marco
6db1f5bfa8 * Delphi compat changes pchar->pansichar. add pppansichar to systemh.inc
git-svn-id: trunk@29375 -
2015-01-03 13:54:59 +00:00
marco
4733e50de5 * system unit additions from mantis #27206. Exports some dynarray related RTTI functions.
git-svn-id: trunk@29364 -
2015-01-01 00:21:40 +00:00
Jonas Maebe
cec82a1540 * translate placeholder code page numbers into actual code pages in
fpc_ansistr_to_widechararray(), so that CP_ACP/CP_OEM etc are properly
    handled (fixes assign/assignfile with non-ansi characters in source files
    that don't explicitly specify the code page)

git-svn-id: trunk@29218 -
2014-12-08 12:11:33 +00:00
marco
2578514853 * first dragonfly patch (existing most). Mantis #27091
git-svn-id: trunk@29213 -
2014-12-07 20:27:02 +00:00
sergei
92447a9a20 * Moved local typed constants having the same value in several routines to global scope.
git-svn-id: trunk@29207 -
2014-12-06 13:07:32 +00:00
pierre
606b0a99c7 Remove wrong close call after failed Reset
git-svn-id: trunk@29200 -
2014-12-04 13:10:08 +00:00
sergei
ae68a4962f - RTL: merged functionality of InitWideStringManager into InitUnicodeStringManager and removed the former.
git-svn-id: trunk@29130 -
2014-11-23 21:09:00 +00:00
nickysn
4fe1ec9c51 * fixed TSingleRec.SetSign on 16 and 8-bit CPUs
git-svn-id: trunk@29120 -
2014-11-23 14:14:03 +00:00
sergei
3a5e6485b5 - RTL: removed InitVariantManager, it was an empty procedure since day 1.
git-svn-id: trunk@29114 -
2014-11-22 20:35:46 +00:00
florian
7180d184c5 + implements TExtended80Rec, TDoubleRec, TSingleRec
+ test

git-svn-id: trunk@29084 -
2014-11-16 20:47:33 +00:00
michael
3563944752 * Patch to allow changing TVarRec data (bug ID 26773)
git-svn-id: trunk@28995 -
2014-11-05 22:17:54 +00:00
Jonas Maebe
87e55caabc * declare tvarrec.vpchar explicitly as pansichar for documentation purposes
(mantis #26842)

git-svn-id: trunk@28823 -
2014-10-15 15:37:23 +00:00
Jonas Maebe
ff583bde6c * made setstring() a compiler intrinsic so it can set the compile-time
code page of ansistrings (mantis #26735)

git-svn-id: trunk@28813 -
2014-10-12 20:27:06 +00:00
Jonas Maebe
d9c13d892e + added fpc_in_aligned forgotten in r23310
git-svn-id: trunk@28812 -
2014-10-12 20:27:04 +00:00
nickysn
d8a9860e92 + optimization in tinyheap's reallocmem for the case when there's not enough
space after the block, but it becomes enough when the space before the block
  is also reclaimed

git-svn-id: trunk@28786 -
2014-10-07 14:36:23 +00:00
florian
714901ce45 * fixes feature defines after recent changes
git-svn-id: trunk@28743 -
2014-10-04 18:12:09 +00:00
florian
03c553606e - unneeded spaces removed
git-svn-id: trunk@28740 -
2014-10-04 13:45:17 +00:00
nickysn
1e0a69fa7f + optimizations in SysTinyReAllocMem for the case when growing the heap block
and there is enough free space after the block

git-svn-id: trunk@28723 -
2014-09-29 09:48:45 +00:00
nickysn
e9dc9735a0 + check whether the pointer passed to SysTinyReAllocMem is within the heap area
(the same check used as in SysTinyFreeMem)

git-svn-id: trunk@28721 -
2014-09-28 15:27:44 +00:00
nickysn
e4f3f33692 + optimization in SysTinyReAllocMem for the case of shrinking a memory block
git-svn-id: trunk@28714 -
2014-09-23 01:29:53 +00:00
nickysn
a10c200090 * tdynarraytypedata.elSize changed from PtrUInt to SizeUInt; this fixes e.g.
setlength on dynarrays in the i8086 far data memory models

git-svn-id: trunk@28710 -
2014-09-22 20:18:07 +00:00
nickysn
782b033acd * optimized SysTinyReAllocMem for the case when the new and old size are the
same after alignment to TinyHeapAllocGranularity

git-svn-id: trunk@28706 -
2014-09-22 12:48:12 +00:00
nickysn
4e48190342 + implemented Mark and Release for the tiny heap
git-svn-id: trunk@28700 -
2014-09-20 23:33:54 +00:00
nickysn
6735e717ef * the results of MemAvail and MaxAvail changed to LongInt in the i8086 far data
memory models (TP7 compatibility)

git-svn-id: trunk@28667 -
2014-09-14 21:11:32 +00:00
nickysn
00c98edd29 * the FPC_TINYHEAP_HUGE define moved to tnyheaph.inc
git-svn-id: trunk@28666 -
2014-09-14 20:42:35 +00:00
nickysn
706a1d8712 * the FPC_HEAP_HUGE define renamed FPC_TINYHEAP_HUGE, because it applies to the
tiny heap, not the regular one

git-svn-id: trunk@28665 -
2014-09-14 20:10:48 +00:00
nickysn
624b3204d8 + added and implemented MemAvail and MaxAvail for the tiny heap
git-svn-id: trunk@28664 -
2014-09-14 18:35:15 +00:00
nickysn
ad7111ad4d * SysTinyFreeMem: terminate with a runtime error if Addr is >= HeapPtr, since
InternalTinyFreeMem cannot handle that (which causes heap corruption), and it
  indicates a bug in the program anyway, because the area between HeapPtr and
  HeapEnd is free (so it indicates either a double free or freeing an invalid
  pointer).

git-svn-id: trunk@28658 -
2014-09-14 14:47:13 +00:00
nickysn
bb07318386 + added RegisterTinyHeapBlock_Simple_Prealigned procedure, which is the same as
RegisterTinyHeapBlock_Simple, but expects its address and size parameters to
  be already aligned on a TinyHeapAllocGranularity boundary

git-svn-id: trunk@28651 -
2014-09-13 15:35:46 +00:00
nickysn
c8e9d2cf6e + added a simplified version of RegisterTinyHeapBlock, for use when the tiny
heap is a single memory block

git-svn-id: trunk@28635 -
2014-09-09 12:45:47 +00:00
nickysn
72ba70f7ec * use HexStr instead of casting to PtrUInt for logging pointers, when
DEBUG_TINY_HEAP is defined, because HexStr produces nicer results for far
  pointers

git-svn-id: trunk@28633 -
2014-09-09 00:47:25 +00:00
nickysn
bf8a7f0784 * handle properly the case when RegisterTinyHeapBlock is called with a start
address equal or larger than HeapEnd

git-svn-id: trunk@28621 -
2014-09-08 17:45:09 +00:00
Károly Balogh
8d98f31afc two cases of use casts instead of anding with when extracting 16bit values
git-svn-id: trunk@28615 -
2014-09-07 23:38:33 +00:00
Károly Balogh
05e72f52c6 a slightly better generic implementation for SwapEndian() 32 bit and 64 bit ints
git-svn-id: trunk@28614 -
2014-09-07 23:19:57 +00:00
Károly Balogh
83cf14d5dd removed unnecessary masking in Swap() calls
git-svn-id: trunk@28613 -
2014-09-07 23:17:52 +00:00
nickysn
af1c5096d6 * tiny heap made TP7 compatible; the FreeList and HeapPtr variables made public
git-svn-id: trunk@28612 -
2014-09-07 19:41:53 +00:00
sergei
5279693919 * softfpu.pp: fixed two more porting bugs, and also added two typecasts to avoid unnecessary 64-bit operations.
git-svn-id: trunk@28609 -
2014-09-06 21:01:50 +00:00
nickysn
e4095588d6 * the type of FreeList changed to an untyped pointer (TP7 compatibility)
git-svn-id: trunk@28608 -
2014-09-06 18:52:43 +00:00
nickysn
a4d71348dd * TinyHeapBlocks renamed FreeList for TP7 compatibility reasons (and it'll be
moved to the interface part of the system unit as soon as the tiny heap's free
  list becomes TP7 compatible)

git-svn-id: trunk@28607 -
2014-09-06 14:56:04 +00:00
nickysn
9b41b10350 * implementation of tiny heap's GetMem changed, so that it doesn't use FreeMem
internally.

git-svn-id: trunk@28580 -
2014-09-01 23:37:00 +00:00
sergei
98332db7fe * Improved generic implementations of Bsf/Bsr. Existing ones were just ugly, BsfQword/BsrQWord producing total of 15 inline expansions 5 levels down and bloating into just a little less than a kilobyte of code (on MIPS). Now it is at most 3 expansions and 21 instructions (84 bytes), 16 and 32 bit routines are branchless.
git-svn-id: trunk@28575 -
2014-09-01 16:00:33 +00:00
Jonas Maebe
74e56c2674 * let GetDirIO() return its result in DefaultFileSystemCodePage, as its only
used internally and in combination with other strings in that code page

git-svn-id: trunk@28571 -
2014-08-31 21:28:01 +00:00
Jonas Maebe
88d969f3bd * ensure that sysutils.expandfilename() returns its result in
DefaultRTLFileSystemCodePage instead of in DefaultFileSystemCodePage
    (mantis #26627)

git-svn-id: trunk@28570 -
2014-08-31 21:27:57 +00:00