Commit Graph

52336 Commits

Author SHA1 Message Date
nickysn
bc8c1ea1bc * fixed get_caller_frame() for win16 (on that platform, bp is incremented by
one, before pushing, to indicate a far call, so it has to be aligned by 2
  again, after reading)

git-svn-id: trunk@37657 -
2017-12-01 23:00:47 +00:00
nickysn
06e025b779 + enable compilation of the free vision package for the win16 target
git-svn-id: trunk@37656 -
2017-12-01 21:04:57 +00:00
nickysn
f6d672d1b5 + fixed compilation of unit outline in the i8086 compact and medium memory models
git-svn-id: trunk@37655 -
2017-12-01 21:04:21 +00:00
nickysn
4d3cf7de6d * fixed compilation of unit views in the i8086 compact and medium memory models
git-svn-id: trunk@37654 -
2017-12-01 20:57:17 +00:00
nickysn
a6c878c256 * fixed compilation of unit drivers in the medium and compact memory models
git-svn-id: trunk@37653 -
2017-12-01 20:50:44 +00:00
nickysn
7af8cb4015 + fixed compilation of unit 'time' on win16
git-svn-id: trunk@37652 -
2017-12-01 20:42:41 +00:00
nickysn
f1b14555b1 + added i8086 memory model defines in free vision's platform.inc
git-svn-id: trunk@37651 -
2017-12-01 20:42:14 +00:00
nickysn
1b14212b47 * fixed compilation of unit 'editors' on i8086
git-svn-id: trunk@37650 -
2017-12-01 20:29:49 +00:00
nickysn
718eb04ef8 * redefine sw_integer and sw_word in unit objects to be 16-bit on i8086, so
that they match BP7 and FPC's FV units

git-svn-id: trunk@37649 -
2017-12-01 20:20:39 +00:00
nickysn
c4e036d647 + compilation of unit 'drivers' fixed for the win16 target
git-svn-id: trunk@37648 -
2017-12-01 19:58:15 +00:00
nickysn
48756d91b7 + win16 support in free vision's platform.inc
git-svn-id: trunk@37647 -
2017-12-01 19:57:44 +00:00
nickysn
2a852a490a + enabled compilation of unit 'objects' on win16
git-svn-id: trunk@37646 -
2017-12-01 19:46:46 +00:00
nickysn
6a1a31f5da + added diagnostic check when GetDC() fails in the win16 video unit
git-svn-id: trunk@37645 -
2017-12-01 17:09:05 +00:00
nickysn
d25c39396c + support the arrow keys and pgup/pgdn/home/end/ins/del keys in the win16
keyboard unit. fpctris is now playable on win16 :)

git-svn-id: trunk@37644 -
2017-12-01 17:07:52 +00:00
nickysn
ac82fc3072 + implemented crt.delay() for win16
git-svn-id: trunk@37643 -
2017-12-01 16:01:39 +00:00
nickysn
b6efaeb8fd * fixed bug in NewHeapBlock, which caused an infinite loop in GetMem, when more
than 2 blocks are needed

git-svn-id: trunk@37642 -
2017-12-01 15:31:06 +00:00
nickysn
ca7da11bb6 * fixed bug in TryBlockGetMem, caused by ambigous variable named 'Size' in with statement
git-svn-id: trunk@37641 -
2017-12-01 15:12:56 +00:00
nickysn
ea8fc43f52 * free the old block in win16 global heap reallocmem
git-svn-id: trunk@37639 -
2017-12-01 14:51:50 +00:00
nickysn
d3d60568e7 * fix invalid pointer access in the handling of WM_PAINT before InitVideo has
allocated videobuf in the win16 video unit

git-svn-id: trunk@37638 -
2017-12-01 14:35:50 +00:00
nickysn
87846323c2 + destroy the win16 video unit window in DoneVideo
git-svn-id: trunk@37637 -
2017-12-01 13:59:46 +00:00
nickysn
163ee92ef5 * handle gracefully freeing a subblock that is located at the end of its block
(with no free space after it) in the win16 global heap manager

git-svn-id: trunk@37636 -
2017-12-01 13:39:20 +00:00
nickysn
87d5cc014f * merge with both the previous and next adjacent free blocks in the win16 global
heap manager, when freeing a block, adjacent to free space on both sizes

git-svn-id: trunk@37635 -
2017-12-01 13:32:10 +00:00
nickysn
6228fc2748 + initial implementation of a win16 global heap manager that does support suballocation for small blocks
git-svn-id: trunk@37634 -
2017-11-30 17:54:20 +00:00
marco
2cf1d1d51d * enhmetafileproc/enummetafileproc fix. Reported by Oleg, mantis #32751
git-svn-id: trunk@37633 -
2017-11-29 10:13:34 +00:00
joost
19db86cafa * Fixed mem-leak in TWebHandler
git-svn-id: trunk@37632 -
2017-11-28 17:27:45 +00:00
nickysn
7763942907 * fixed the 'Unsupported fixup location type' error messages in the MZ internal
linker

git-svn-id: trunk@37631 -
2017-11-28 02:29:28 +00:00
nickysn
07c18c8689 * fixed snapshot building of win16-i8086 in the medium memory model, via the use of FarAddr()
git-svn-id: trunk@37630 -
2017-11-28 00:03:19 +00:00
nickysn
b571f48735 * fixed the return type of FarAddr(), so that it is assignment compatible to
typed far pointers as well

git-svn-id: trunk@37629 -
2017-11-27 19:42:36 +00:00
nickysn
78e0f6c68b + added an i8086-specific FarAddr() function, similar to Addr(), but always
returns a far pointer, regardless of the current memory model

git-svn-id: trunk@37628 -
2017-11-27 16:41:48 +00:00
florian
7741b495bd - duplicate defintion of TBoundArray removed, resolves #32530
git-svn-id: trunk@37627 -
2017-11-26 21:03:52 +00:00
florian
04738ff2a6 + shlobj: SHGetKnownFolderPath
* correctly search font files on windows, resolves #32495

git-svn-id: trunk@37626 -
2017-11-26 17:37:11 +00:00
florian
a650d346f1 * optimized for speed UpCase/LowerCase for UnicodeChar, based on a patch by AlexeyT, resolves #32638
git-svn-id: trunk@37625 -
2017-11-26 15:28:45 +00:00
florian
46ab35edb3 * apply MovOpMov2Op also to inc and dec
* made core more readable

git-svn-id: trunk@37624 -
2017-11-26 15:28:44 +00:00
florian
8e3d23a23e + patch by Florian Immenroth: MagickSetResolution added
git-svn-id: trunk@37623 -
2017-11-26 15:26:07 +00:00
florian
32f305d2a8 o patch by Ondrej Pokorny: adds a simple box/pixelate interpolation to fcl-image, resolves #32665
git-svn-id: trunk@37622 -
2017-11-26 15:20:41 +00:00
florian
2be94d3c78 * fix building on win64 with FPC_SOFT_FPUX80 defined, resolves #32502
git-svn-id: trunk@37621 -
2017-11-26 15:16:37 +00:00
florian
0c07db3904 * made libcups initialization/finalization more threadsafe
git-svn-id: trunk@37620 -
2017-11-26 09:42:04 +00:00
florian
4b8dcd676c * libcups interface unit included in FPC, resolves #32729
git-svn-id: trunk@37619 -
2017-11-26 09:33:34 +00:00
nickysn
44f04d39a4 + added asm optimized implementations of StrLower() and StrUpper() for i8086
git-svn-id: trunk@37618 -
2017-11-24 16:11:18 +00:00
nickysn
51489f9186 + added test for the StrUpper() and StrLower() functions in the strings unit
git-svn-id: trunk@37617 -
2017-11-24 15:59:20 +00:00
nickysn
5595a74609 + i8086 asm implementation of StrEnd()
git-svn-id: trunk@37616 -
2017-11-23 17:06:06 +00:00
nickysn
39dc58de09 - removed one asm instruction from i386's StrEnd() implementation
git-svn-id: trunk@37615 -
2017-11-23 16:43:51 +00:00
nickysn
3d108d5e51 + enabled the i386 asm optimized strcomp (was previously disabled due to wrong ifndef)
git-svn-id: trunk@37614 -
2017-11-23 16:16:05 +00:00
nickysn
c464f7fa56 * fixed the SEG inline asm directive when used with 32-bit registers on the i8086 target
git-svn-id: trunk@37613 -
2017-11-22 15:04:30 +00:00
marco
89da7ad63e * zero out timeval/zone before use. zoneinfo of gettimeofday is often
no longer authorative and it fixes at least haiku. (mantis #32718 by Olivier)

git-svn-id: trunk@37612 -
2017-11-22 13:58:53 +00:00
pierre
c63981e5b5 Fix msdos failure due to copy/paste error in previous commit
git-svn-id: trunk@37611 -
2017-11-20 21:45:29 +00:00
Mattias Gaertner
5d943aeeed fcl-passrc: resolver: fixed procedure modifier overload with multiple units
git-svn-id: trunk@37610 -
2017-11-20 16:42:14 +00:00
florian
0f637434a3 * disable test on avr
git-svn-id: trunk@37609 -
2017-11-19 18:05:22 +00:00
florian
cb087279d6 * do not generate an andi if the constant is 255
git-svn-id: trunk@37608 -
2017-11-19 18:05:21 +00:00
florian
366360d36c * LdiMov/Cp2Ldi/Cpi may not be performed if reg0=reg1
* cleanup of MovOp2Op
* fixed MovMov2Mov

git-svn-id: trunk@37607 -
2017-11-19 18:05:19 +00:00