Commit Graph

46819 Commits

Author SHA1 Message Date
marcus
5a77040787 AROS, Amiga: Exec.library AllocMem renamed to ExecAllocMem (unification with MorphOS)
git-svn-id: trunk@31600 -
2015-09-11 15:08:31 +00:00
nickysn
c9a1ee5c8f + added the win16api coordinate transformation functions
git-svn-id: trunk@31599 -
2015-09-11 15:00:07 +00:00
nickysn
b8846771bf + added the win16api getdevicecaps function and its constants
git-svn-id: trunk@31596 -
2015-09-11 14:14:20 +00:00
svenbarth
6eef28fd03 pdecsub.pas, proc_add_definition:
* special handling for matching generic procdefs with their forward declarations

git-svn-id: trunk@31595 -
2015-09-11 14:13:54 +00:00
svenbarth
8fbd57080b defcmp.pas, compare_paras:
+ new flag cpo_generic to allow a declaration of a generic function in the interface to be matched to its implementation as for each new undefined defs for the type parameters will be created

git-svn-id: trunk@31594 -
2015-09-11 13:42:51 +00:00
svenbarth
65c37df999 + extend tprocdef with the possiblity to create it as unregistered
* for now all procdefs are created as registered
Note: an additional parameter instead of an overload is used for tprocdef.create as otherwise both constructors would need to be overridden in potential descendant CPU-specific classes...

git-svn-id: trunk@31593 -
2015-09-11 13:36:00 +00:00
svenbarth
84b9d9839c + extend tobjectdef with the possiblity to create it as unregistered
* for now all objectdefs are created as registered
Note: an additional parameter instead of an overload is used for tobjectdef.create as otherwise both constructors would need to be overridden in potential descendant CPU-specific classes...

git-svn-id: trunk@31592 -
2015-09-11 13:28:49 +00:00
svenbarth
d45c275ef3 + extend ttypesym with the possiblity to create it as unregistered
* for now all typesyms are created as registered
Note: an additional parameter instead of an overload is used for ttypesym.create as otherwise both constructors would need to be overridden in potential descendant CPU-specific classes...

git-svn-id: trunk@31591 -
2015-09-11 13:22:12 +00:00
nickysn
6bac838fce + added the win16api basic gdi types
git-svn-id: trunk@31590 -
2015-09-11 13:10:36 +00:00
svenbarth
6fb71e55fd symtable.pas, tparasymtable:
* checkduplicate: also ensure that the owner of the procdef is assigned before using it

git-svn-id: trunk@31589 -
2015-09-11 13:09:17 +00:00
svenbarth
4f5fc66298 + new parser-only node class to handle Delphi-mode inline specializations
git-svn-id: trunk@31588 -
2015-09-11 12:58:25 +00:00
nickysn
09a4efe5d3 + added the win16api keyboard functions
git-svn-id: trunk@31587 -
2015-09-11 12:47:09 +00:00
nickysn
afcc5a9e11 + added the win16api string functions
git-svn-id: trunk@31586 -
2015-09-11 12:38:01 +00:00
nickysn
6567700025 + added the win.ini win16api functions
git-svn-id: trunk@31585 -
2015-09-11 12:00:36 +00:00
nickysn
f4b4cced38 + added the win16 api atom management functions
git-svn-id: trunk@31584 -
2015-09-11 11:47:57 +00:00
sergei
e542800ea9 * Win64 SEH: Track control flow out of unwind-protected regions in a more precise way and don't generate expensive calls to __fpc_local_unwind when not necessary.
git-svn-id: trunk@31582 -
2015-09-09 18:43:46 +00:00
nickysn
5f3c45d370 + added the win16 api resource functions
git-svn-id: trunk@31581 -
2015-09-09 00:35:45 +00:00
nickysn
386c459534 + converted the win16 network api functions
git-svn-id: trunk@31580 -
2015-09-08 22:42:46 +00:00
nickysn
024ebb287e + implemented set_jmp and long_jmp on win16 via the Catch and Throw winapi
functions, which provide the same functionality, but are safe to use in all
  windows modes (e.g. they include the magic for handling jumps to discarded
  or moved code segments in real mode)

git-svn-id: trunk@31579 -
2015-09-08 16:03:50 +00:00
nickysn
600d2cfbc6 + implemented a win16 heap manager for the near data memory models using the
windows local heap

git-svn-id: trunk@31578 -
2015-09-08 14:22:16 +00:00
nickysn
a9069dc16d - removed some debug and commented out code from the win16 system unit
git-svn-id: trunk@31577 -
2015-09-07 22:28:42 +00:00
nickysn
e323a08b20 + also write the omf special segment attributes in the nasm writer for the win16 target
+ enabled the internal omf obj writer for the win16 target

git-svn-id: trunk@31576 -
2015-09-07 22:26:14 +00:00
nickysn
1344d391d3 * use call instead of jmp to PASCALMAIN, because it sets up a stack frame and
all stack frames must be preceded with a valid return address in win16

git-svn-id: trunk@31575 -
2015-09-07 22:12:43 +00:00
Jeppe Johansen
3cb9be73bc Moved tcontrollerdatatype out into cpuinfo.
Added cputype and fputype info to tcontrollerdatatype arrays.

git-svn-id: trunk@31574 -
2015-09-07 20:36:54 +00:00
Jeppe Johansen
53fd543440 Fix fillchar for >ARMv3
git-svn-id: trunk@31573 -
2015-09-07 20:25:03 +00:00
florian
4d349c9c71 * take care of limited offsets of stf/ldf, resolves issue #23620
git-svn-id: trunk@31572 -
2015-09-07 20:14:27 +00:00
florian
a645de74d7 * fix warning
git-svn-id: trunk@31571 -
2015-09-07 20:06:07 +00:00
nickysn
253793ab9d + added the 'farprocspushoddbp' target switch to the help screen
git-svn-id: trunk@31570 -
2015-09-07 19:23:25 +00:00
nickysn
bdfd23cc2e + new target switch "FarProcsPushOddBP", which causes the i8086 compiler to push
odd values of BP if the procedure is far. Enabled this by default for Win16.

git-svn-id: trunk@31569 -
2015-09-07 19:05:18 +00:00
nickysn
1835c075e6 + added win16 to the nasm's supported targets
git-svn-id: trunk@31568 -
2015-09-07 19:00:41 +00:00
nickysn
a76c9ebd43 + initialize StackBottom and StackLength in the win16 system unit startup code
git-svn-id: trunk@31567 -
2015-09-07 01:52:48 +00:00
nickysn
026d2be316 + support Mem[Seg:Ofs] for the win16 target as well
git-svn-id: trunk@31566 -
2015-09-07 00:48:09 +00:00
nickysn
fe8cb4b09d + integrated the winprocs and wintypes .inc files into the win16 system unit
git-svn-id: trunk@31565 -
2015-09-06 23:37:04 +00:00
nickysn
55a8158c51 * split the win16 wintypes and winprocs units into include files, so they can
also be included in the implementation part of the system unit

git-svn-id: trunk@31564 -
2015-09-06 23:02:20 +00:00
nickysn
e62c276672 * use far pointers in the declaration of MessageBox
git-svn-id: trunk@31563 -
2015-09-06 22:46:51 +00:00
Jeppe Johansen
297c17d4f0 Add missing prefix for VCMP for FPv4_S16.
git-svn-id: trunk@31562 -
2015-09-06 20:34:08 +00:00
Jeppe Johansen
dac294c680 Fix ARMv3/ARMv2A support.
git-svn-id: trunk@31561 -
2015-09-06 20:33:26 +00:00
Jeppe Johansen
44ad5af04d Fix some minor UMULL, and FPv4_S16 define problems
git-svn-id: trunk@31560 -
2015-09-06 20:14:16 +00:00
nickysn
4b80bc958c + set the win16 local heap size in the executable
git-svn-id: trunk@31552 -
2015-09-06 13:52:22 +00:00
nickysn
a05c304f87 + reference the stack segment generated by the compiler from the win16 startup
code, so the linker is able to link the object module containing it

git-svn-id: trunk@31551 -
2015-09-06 13:20:58 +00:00
nickysn
dbd7c05bef + set default stack sizes for win16
git-svn-id: trunk@31550 -
2015-09-06 13:13:28 +00:00
nickysn
58465396db + initialize the SelectorInc variable on win16
git-svn-id: trunk@31549 -
2015-09-06 11:52:30 +00:00
nickysn
48e83479ef + implemented ParamCount and ParamStr for win16 (ParamStr(0) is not implemented yet)
git-svn-id: trunk@31548 -
2015-09-06 10:42:33 +00:00
nickysn
eea09632a3 + add and initialize the win16 system unit variables that correspond to the
WinMain parameters in C

git-svn-id: trunk@31547 -
2015-09-06 10:25:34 +00:00
florian
83a7fa2320 o fix compilation of the compiler
* $warn x off does not work tokenwise yet
  * -O2+ is more picky about uninitialized variables, FPC does not do dynamic DFA 

git-svn-id: trunk@31546 -
2015-09-06 10:12:55 +00:00
nickysn
f46e30520a + imported the win16 api file functions
git-svn-id: trunk@31545 -
2015-09-05 23:53:34 +00:00
nickysn
0abe2cddd6 + imported the win16 local memory management functions
git-svn-id: trunk@31544 -
2015-09-05 23:16:43 +00:00
nickysn
1775725c26 + imported the global memory win16 api functions
git-svn-id: trunk@31543 -
2015-09-05 22:56:02 +00:00
nickysn
f751b18754 + import the win16 task apis
git-svn-id: trunk@31542 -
2015-09-05 22:17:41 +00:00
nickysn
203d26af4b + import the module management win16 apis
git-svn-id: trunk@31541 -
2015-09-05 22:09:06 +00:00