Commit Graph

46787 Commits

Author SHA1 Message Date
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
nickysn
10a01c0127 + import catch, throw and stack management win16 api functions
git-svn-id: trunk@31540 -
2015-09-05 21:41:37 +00:00
nickysn
e09f230250 + added the pointer validation win16 apis
git-svn-id: trunk@31539 -
2015-09-05 21:02:43 +00:00
nickysn
4d43d8d909 + import the win16 debug apis
git-svn-id: trunk@31538 -
2015-09-05 20:45:22 +00:00
nickysn
1b84fbee57 + add win16 to systems_all_windows; this enables the win32-like mangling of the
dll internal symbols names on win16 as well

git-svn-id: trunk@31537 -
2015-09-05 20:06:59 +00:00
nickysn
6e09a4ff92 + enable compilation of the uuchar, objpas and strings units for the win16 target
git-svn-id: trunk@31536 -
2015-09-05 19:45:52 +00:00
nickysn
72d6876225 + initialize the PrefixSeg variable from the win16 startup code
git-svn-id: trunk@31535 -
2015-09-05 18:03:37 +00:00
nickysn
a062fb17b3 + added makefiles for the win16 rtl
git-svn-id: trunk@31534 -
2015-09-05 15:50:19 +00:00
nickysn
8610065db4 + started porting the win16 api units
git-svn-id: trunk@31533 -
2015-09-05 15:48:40 +00:00
nickysn
393d86a2e5 + implemented writing proper win16 dll import libraries
git-svn-id: trunk@31532 -
2015-09-05 13:45:23 +00:00
nickysn
049171c69c * moved the imports of InitTask, WaitEvent and InitApp to the win16 startup module
git-svn-id: trunk@31531 -
2015-09-05 12:43:26 +00:00
nickysn
c2c008c09a * switch to a full blown win16 system unit
git-svn-id: trunk@31530 -
2015-09-05 12:39:58 +00:00
nickysn
4068a05631 + support the 'absolute seg:ofs' variable declaration in the win16 target as well
git-svn-id: trunk@31529 -
2015-09-05 12:07:29 +00:00
nickysn
8bca76e645 * improved formatting and added comments to the win16 startup code
git-svn-id: trunk@31528 -
2015-09-05 11:48:05 +00:00
nickysn
e83f3d2978 * updated all the remaining makefiles that 'fpcmake -r' missed
git-svn-id: trunk@31527 -
2015-09-05 11:21:36 +00:00
nickysn
e05aec2083 + added the win16 target to fpmake
git-svn-id: trunk@31526 -
2015-09-05 11:11:59 +00:00
nickysn
2e3cb70489 * regenerated makefiles after adding the win16 target
git-svn-id: trunk@31525 -
2015-09-05 11:02:54 +00:00
nickysn
fb0f606793 * update revision.inc
git-svn-id: trunk@31524 -
2015-09-05 10:52:13 +00:00
nickysn
b8b90f96a1 + added the win16 target to fpcmake
git-svn-id: trunk@31523 -
2015-09-05 10:15:10 +00:00
nickysn
3145d68fdb * fixed compilation of ppudump
git-svn-id: trunk@31522 -
2015-09-05 03:38:51 +00:00
nickysn
839ab714cc + started implementing a win16 target :)
git-svn-id: trunk@31521 -
2015-09-05 02:47:42 +00:00
nickysn
a1d29b8251 * always pop DS in huge memory models in asm routines that don't specify
'nostackframe'

git-svn-id: trunk@31520 -
2015-09-04 21:51:04 +00:00
nickysn
98ec7a2211 * eliminated the dual initialization of DS in interrupt procedures in the huge
memory model

git-svn-id: trunk@31519 -
2015-09-04 21:37:07 +00:00
nickysn
4c9b339c22 + added the huge memory model option to the compiler help screen
git-svn-id: trunk@31518 -
2015-09-04 20:43:38 +00:00
nickysn
69042574b2 * assume external variables are in a different segment in the huge memory model
git-svn-id: trunk@31517 -
2015-09-04 19:39:55 +00:00
nickysn
2087290802 * i8086 huge memory model threadvar code generation fixes
git-svn-id: trunk@31516 -
2015-09-04 19:15:10 +00:00
nickysn
2b42c17318 + also initialize the proper (foreign) segment when loading a global variable
from another unit in the huge memory model

git-svn-id: trunk@31515 -
2015-09-04 16:05:52 +00:00
svenbarth
eaab604f0c pgenutil.pas:
* split generate_specialization() into two phases: generate_specialization_phase1() and generate_specialization_phase2(); the former parses the generic parameters and determines the correct generic def while the latter does the real specialization. This is needed for generic functions/methods as no full specialization needs to be done until overload selection by tcallcandidates
pgentype.pas:
  + new type tspecializationcontext

git-svn-id: trunk@31514 -
2015-09-04 15:37:54 +00:00
svenbarth
5255c936d3 symsym.pas:
+ add an overload of check_hints() that allows to specify the current file position
  * have the previous check_hints() procedure be an inline procedure as it simply calls the new overload

git-svn-id: trunk@31513 -
2015-09-04 14:50:16 +00:00
svenbarth
af75198907 symsym.pas:
+ provide possibility to create syms that are not registered in the current module. These syms won't be stored in the ppu.

git-svn-id: trunk@31512 -
2015-09-04 14:43:02 +00:00
nickysn
1487236f29 + support addr_fardataseg references in the internal asm writer
git-svn-id: trunk@31511 -
2015-09-04 14:33:48 +00:00
svenbarth
938c8335a9 symdef.pas:
* provide possibility to create defs that are not registered in the current module and also not in the symtablestack. These defs won't be stored in the ppu.

git-svn-id: trunk@31510 -
2015-09-04 14:24:27 +00:00
svenbarth
66df1cafb1 pdecsub.pas:
* move handling after parsing a procedure's/function's/method's name and its parameters from parse_proc_dec() into a new function parse_proc_dec_finish(), so that it can be used for generic functions/methods in the future

git-svn-id: trunk@31509 -
2015-09-04 14:03:16 +00:00