Commit Graph

46892 Commits

Author SHA1 Message Date
Jonas Maebe
954cfd8d40 * replaced use of current_asmdata.currasmlist with the "list" parameter
in g_set_addr_nonbitpacked_record_field_ref()

git-svn-id: trunk@31776 -
2015-09-22 19:59:34 +00:00
Jonas Maebe
530a08b779 * added some missing unit dependencies
git-svn-id: trunk@31775 -
2015-09-22 13:48:57 +00:00
Jonas Maebe
f05d573391 * changed default debug format for Darwin/i386 from Stabs to DWARF2, as the
oldcctools are no longer shipped with Xcode 7 and Clang assembler doesn't
    support Stabs (and DWARF2 has been working better than Stabs since a long
    time already)

git-svn-id: trunk@31774 -
2015-09-22 12:55:59 +00:00
sergei
fe59bb9ec5 - THTMLToDOMConverter.FElementStack is created and destroyed, but unused otherwise. Removed.
* THTMLToDOMConverter.ReaderEndElement: Since each item in FNodeBuffer is removed only when processing EndElement event for its *parent* element (not the element it corresponds to, if any), it must be flagged for ignore once its own EndElement is handled. Otherwise, several same-named elements nested within each other were ending up in a wrong DOM tree. This bug was reported in Russian forum.

git-svn-id: trunk@31773 -
2015-09-22 05:37:39 +00:00
svenbarth
96a9273fba pdecsub.pas:
+ export parse_proc_dec_finish() from the unit
pgenutil.pas:
  * adjust generate_specialization_phase2() to correctly specialize procdefs

git-svn-id: trunk@31772 -
2015-09-18 21:51:17 +00:00
svenbarth
d15cdefc37 pdecsub.pas:
* extend parse_proc_head() with the ability to deal with specializations of procdefs
Note: such a procdef is created as unregistered as this is used to determine the correct overload in tcallcandidates (through the use of the yet to be adapted generate_specialization_phase2())

git-svn-id: trunk@31771 -
2015-09-18 21:31:53 +00:00
florian
d36694bdb8 * fix compilation with -Oodfa
git-svn-id: trunk@31770 -
2015-09-18 18:22:25 +00:00
svenbarth
17a0ac7fc0 pdecsub.pas:
* extend parse_proc_head() with support for /parsing/ generic functions (at least in mode Delphi, mode ObjFPC depends on the new isgeneric parameter to be set)
  * adjust parsing of interface mappings with a generic interface (note: in mode ObjFPC this now requires a "specialize" directly before the generic interface's name, which is more in line with other uses of "specialize")
pexpr.pas, factor:
  * don't call postfixoperators() if hadspecialize is set

tests/test/tgeneric79.pp:
  * adjust test to changed syntax

git-svn-id: trunk@31769 -
2015-09-18 16:24:07 +00:00
svenbarth
35d8a51730 pexpr.pas:
* extend factor() with the ability to deal with an already parsed "specialize"

git-svn-id: trunk@31768 -
2015-09-18 15:38:09 +00:00
svenbarth
295a8af4bb pexpr.pas:
* extend do_member_read() with the possibility to pass a specialization context on to do_proc_call() if the symbol is a procsym

git-svn-id: trunk@31767 -
2015-09-18 15:30:50 +00:00
svenbarth
0539ab29d0 pexpr.pas:
* do_proc_call can take a tspecializationcontext and pass it on to ccallnode.create()

Note: pointers to generic functions/methods are not yet supported, so there's a temporary, non-translated error message for these constructs

git-svn-id: trunk@31766 -
2015-09-18 15:24:15 +00:00
svenbarth
5316ae6a49 pdecsub.pas, pd_virtual:
* generate error if method is generic

git-svn-id: trunk@31765 -
2015-09-18 14:54:35 +00:00
svenbarth
79f19f79f2 msg/errore.msg:
+ add error message if a generic method is declared inside an interface
  + add error message if a generic method is declared as virtual

git-svn-id: trunk@31764 -
2015-09-18 14:52:47 +00:00
svenbarth
529677cc79 ncal.pas:
* extend tcallnode with the ability to pass a tspecializationcontext so that tcallcandidates can do a final specialization
  * the final procdef is registered at the end of tcallnode.pass_typecheck

git-svn-id: trunk@31763 -
2015-09-18 14:48:54 +00:00
yury
75b3ce2d2c * Added a comment.
git-svn-id: trunk@31762 -
2015-09-18 14:40:39 +00:00
yury
835e3efdad * i386-android: Library startup code is PIC compatible.
git-svn-id: trunk@31761 -
2015-09-18 14:40:27 +00:00
svenbarth
2e24d6dffb htypechk.pas:
* extend tcallcandidates by the ability to handle generic procdefs
pgenutil.pas:
  + export check_generic_constraints

git-svn-id: trunk@31760 -
2015-09-18 14:37:47 +00:00
svenbarth
e44a51f10d symdef.pas, tprocdef:
+ new token buffer that holds the declaration of the generic function/method while the one from tdef contains the body
ppu.pas:
  * increase PPU version
utils/ppuutils/ppudump.pp:
  * also read the declaration token buffer, it's however not printed yet (ToDo!)

git-svn-id: trunk@31759 -
2015-09-18 13:46:50 +00:00
svenbarth
e8c68a09c1 pgenutil.pas, parse_generic_parameters:
* no longer create the type symbol and the defs as registered
pdecl.pas, types_dec:
  * register the syms and defs of the parsed generic parameters

git-svn-id: trunk@31758 -
2015-09-18 13:16:25 +00:00
svenbarth
040786e5bb + extend tundefineddef with the possiblity to create it as unregistered
* for now all undefineddefs are created as registered
Note: an additional parameter instead of an overload is used for tundefineddef.create as otherwise both constructors would need to be overridden in potential descendant CPU-specific classes...

git-svn-id: trunk@31757 -
2015-09-18 13:08:58 +00:00
svenbarth
4b98b36212 pgenutil.pas:
* make generate_specialization_phase1() and generate_specialization_phase2() aware of the existance of procdefs

git-svn-id: trunk@31756 -
2015-09-18 12:53:42 +00:00
yury
61a1976e09 * Removed a leftover of my code. It is not needed anymore.
git-svn-id: trunk@31755 -
2015-09-18 10:34:27 +00:00
yury
7c62aadf65 * Fixed string conversion warnings in RTL.
git-svn-id: trunk@31752 -
2015-09-17 17:25:57 +00:00
nickysn
b3226f2e63 + readded the FIsCaseSensitive variable (that was removed in r31734) as a
property in the TOmfLibObjectReader class

git-svn-id: trunk@31751 -
2015-09-17 16:53:46 +00:00
yury
e1a0b1204a * Removed unused vars in RTL.
git-svn-id: trunk@31750 -
2015-09-17 16:48:53 +00:00
nickysn
718dda73ef + added an overload for EnumProps with a TFarProc parameter for BP7 compatibility
git-svn-id: trunk@31749 -
2015-09-17 16:43:15 +00:00
nickysn
d942309402 * fixed memory leak in TOmfLibObjectReader.ReadLibrary
git-svn-id: trunk@31748 -
2015-09-17 16:40:40 +00:00
nickysn
24d051703e + added the window repainting win16api functions
git-svn-id: trunk@31747 -
2015-09-17 16:38:44 +00:00
yury
374148b966 * fixed compilation of 8086 compiler.
git-svn-id: trunk@31746 -
2015-09-17 16:30:02 +00:00
yury
11a9ff4a43 * Removed unused vars for mipsel compiler.
git-svn-id: trunk@31745 -
2015-09-17 15:46:30 +00:00
yury
47b316d0e2 * Removed unused vars for x86-64 compiler.
git-svn-id: trunk@31744 -
2015-09-17 15:26:31 +00:00
yury
e04a3b4ac6 * Removed unused vars for x86 compiler.
git-svn-id: trunk@31743 -
2015-09-17 15:20:15 +00:00
yury
aa150093d2 * Hack-fixed a compiler note.
git-svn-id: trunk@31742 -
2015-09-17 15:11:45 +00:00
yury
d27964bd1a * Removed unused chunk of code. Looks like a not needed leftover.
git-svn-id: trunk@31741 -
2015-09-17 15:11:03 +00:00
nickysn
12cd32ec18 + added the win16api drawing support functions
git-svn-id: trunk@31740 -
2015-09-17 15:03:57 +00:00
nickysn
051c8e74ce + added the win16api window query and enumeration functions
git-svn-id: trunk@31739 -
2015-09-17 14:27:25 +00:00
nickysn
077ce10a93 + added the win16api window coordinate mapping and hit testing functions
git-svn-id: trunk@31738 -
2015-09-17 14:14:49 +00:00
nickysn
2dffffb66d + added the win16api main window support functions
git-svn-id: trunk@31737 -
2015-09-17 13:55:33 +00:00
nickysn
d62c342b9c + added the win16api window proc implementation and subclassing functions
git-svn-id: trunk@31736 -
2015-09-17 13:41:45 +00:00
nickysn
c56a028e31 + added the win16api window placement functions
git-svn-id: trunk@31735 -
2015-09-17 13:23:06 +00:00
yury
b26fa07f1a * Fixed notes "var is assigned but not used".
git-svn-id: trunk@31734 -
2015-09-17 13:03:04 +00:00
nickysn
e01d57cea3 + added the win16api window creation/destroy functions
git-svn-id: trunk@31733 -
2015-09-17 12:51:03 +00:00
yury
432248cbf1 * Removed lot of unused vars.
git-svn-id: trunk@31732 -
2015-09-17 12:48:58 +00:00
yury
40628fa614 * Removed unused vars.
git-svn-id: trunk@31731 -
2015-09-17 12:24:59 +00:00
yury
80e5eb0c5d * ARM: I hope this is a final proper fix for GOT initialization. + Test.
git-svn-id: trunk@31730 -
2015-09-17 12:18:04 +00:00
nickysn
fc6837799e * RegisterClass returns a BOOL in windows 3.0 and earlier, and an ATOM in 3.1+
git-svn-id: trunk@31729 -
2015-09-17 12:05:15 +00:00
yury
1dff9bf025 * ARM: Fixed GOT init when optimization is off.
git-svn-id: trunk@31728 -
2015-09-16 21:30:20 +00:00
yury
34efa0e9a9 * Skip tests for android since they must be run locally.
git-svn-id: trunk@31727 -
2015-09-16 18:22:00 +00:00
yury
95aa8cf453 * delete test file.
git-svn-id: trunk@31726 -
2015-09-16 18:19:57 +00:00
yury
6e638e31d7 * Use cp1251 on Android.
git-svn-id: trunk@31725 -
2015-09-16 17:49:38 +00:00