Commit Graph

53437 Commits

Author SHA1 Message Date
svenbarth
35bddf6fb1 * correctly update the (now unregistered) unit symbol if the unit was found with the help of a default namespace
(this is needed to trigger the correct creation of the namespace symbols)

git-svn-id: trunk@38917 -
2018-05-05 17:18:42 +00:00
svenbarth
083781bf0c * keep track if the unit was found by using a default namespace as prefix
git-svn-id: trunk@38916 -
2018-05-05 17:18:39 +00:00
svenbarth
99c53abf36 * also take into account default namespace when looking for a unit:
if looking for a unit's PPU or source failed (and no explicit name was specified)
    then all namespaces are walked in the order they were given in and then first the
    PPU is looked for and then the source

git-svn-id: trunk@38915 -
2018-05-05 17:18:37 +00:00
svenbarth
b77b6b001f + add a global that will contain all default namespaces passed in as parameters
git-svn-id: trunk@38914 -
2018-05-05 17:18:34 +00:00
svenbarth
e7f29e9e28 * also pass the pattern with which the potential unit/namespace symbol had been found to try_consume_unitsym*()
git-svn-id: trunk@38913 -
2018-05-05 17:18:31 +00:00
svenbarth
c0dcb505e2 * use the module's filename instead of the passed in name (we assume all units added that way don't use the
ability to have a different module name to their filename)

git-svn-id: trunk@38912 -
2018-05-05 17:18:29 +00:00
svenbarth
e59e9e2a0a * extend tunitsym to be created as registered or not (for now all are created as registered)
git-svn-id: trunk@38911 -
2018-05-05 17:18:26 +00:00
michael
a8e5d89aac * Patch to fix IndexOfHeader (plus some cosmetic changes) from engkin. Bug ID #33680
git-svn-id: trunk@38910 -
2018-05-05 15:09:45 +00:00
michael
f9e790aa3f * Fix bug ID #33691, BCD not correctly passed on
git-svn-id: trunk@38909 -
2018-05-05 14:58:37 +00:00
michael
f540dbfab3 * Do not allow duplicate keys in JSONObject
git-svn-id: trunk@38908 -
2018-05-05 14:51:19 +00:00
michael
b8378ef774 * Fix bug #33683, value duplicates with section
git-svn-id: trunk@38907 -
2018-05-05 14:23:54 +00:00
michael
73b8851dda * Re-interpret Page.Data : Can be Nil. If set, and different from the main data loop on the page, the page is rendered for each record in the data loop (bug ID 33689)
git-svn-id: trunk@38906 -
2018-05-05 11:59:49 +00:00
michael
da133b2456 * Fix bug #0033656: scan report for data loops and add them to ReportData
git-svn-id: trunk@38905 -
2018-05-05 09:36:05 +00:00
nickysn
c530e031b1 * synchronize get_saved_registers_int and get_volatile_registers_int for all
calling conventions on i386
* generated code at the caller side for pocall_pascal routines on i386 no longer
  assumes the routine destroys all registers (except ebp) - instead now it
  assumes that it preserves the ebx,esi,edi and ebp registers. This is
  compatible with the pascal calling convention of 32-bit delphi and was already
  honoured by FPC on the callee side.
* updated the list of calling conventions that save all registers, used in
  tx86callnode.can_call_ref, so it is accurate on all x86 platforms - i8086,
  i386 and x86_64.

git-svn-id: trunk@38904 -
2018-05-04 16:16:24 +00:00
svenbarth
abd893cac4 * fix for Mantis #33635: correctly working SSE2 based Frac() implementation by J. Gareth Moreton
+ added test

git-svn-id: trunk@38903 -
2018-05-04 15:44:40 +00:00
nickysn
80a9dab99a * introduce a case statement, based on the calling convention in i386's
tcpuparamanager.get_saved_registers_int

git-svn-id: trunk@38902 -
2018-05-04 15:03:01 +00:00
Mattias Gaertner
a490c51ee8 fcl-image: fpreadtiff: Handling LZW compression starting with 00, patch 33685
git-svn-id: trunk@38901 -
2018-05-04 10:50:16 +00:00
Mattias Gaertner
50564747b2 pastojs: number literals: remove leading zeroes
git-svn-id: trunk@38900 -
2018-05-04 09:07:26 +00:00
pierre
c618822648 Disable assembler code for i386 OS targets using old GNU assemblers
git-svn-id: trunk@38899 -
2018-05-03 16:02:39 +00:00
Mattias Gaertner
c3511b0a83 pastojs: forbid typecast record
git-svn-id: trunk@38898 -
2018-05-03 11:48:11 +00:00
Mattias Gaertner
76391fab52 fcl-passrc: resolver: mode delphi: error when passing alias type to var argument
git-svn-id: trunk@38897 -
2018-05-03 10:44:08 +00:00
michael
7aa7f1b96f * Fix bug #33681
git-svn-id: trunk@38896 -
2018-05-03 07:09:05 +00:00
Mattias Gaertner
a6ec8c5e97 pas2js: version 0.9.19
git-svn-id: trunk@38895 -
2018-05-02 12:00:12 +00:00
Mattias Gaertner
7cb5f2a9d7 pastojs: fixed typecast smallint(integer)
git-svn-id: trunk@38894 -
2018-05-02 08:06:05 +00:00
Mattias Gaertner
d0f7497845 pastojs: fixed typecast shortint(integer)
git-svn-id: trunk@38893 -
2018-05-02 06:44:37 +00:00
Mattias Gaertner
37819b8da1 pastojs: fixed typecast(obj[])[]
git-svn-id: trunk@38892 -
2018-05-02 05:51:53 +00:00
Mattias Gaertner
abbba47708 fcl-passrc: resolver: no hint for abstract methods aclassof.create
git-svn-id: trunk@38891 -
2018-05-02 05:51:36 +00:00
Mattias Gaertner
9c724c430a fcl-passrc: resolver: no hint for abstract methods aclassof.create and create is virtual
git-svn-id: trunk@38890 -
2018-05-01 22:13:38 +00:00
Mattias Gaertner
e30da6b412 fcl-passrc: useanalyzer: no hint for external var assigned but not used
git-svn-id: trunk@38889 -
2018-05-01 21:37:46 +00:00
Mattias Gaertner
299ff9b50b pastojs: case string of range
git-svn-id: trunk@38888 -
2018-05-01 21:04:03 +00:00
Mattias Gaertner
c2af7a4d3d resolver: case string of range
git-svn-id: trunk@38887 -
2018-05-01 21:03:51 +00:00
Mattias Gaertner
790e1e6007 pastojs: default(settype|rangetype|currency|string)
git-svn-id: trunk@38886 -
2018-05-01 10:59:52 +00:00
Mattias Gaertner
0493219f48 pastojs: external typed const
git-svn-id: trunk@38885 -
2018-05-01 09:50:42 +00:00
Mattias Gaertner
3741378ec7 fcl-passrc: parse external typed const without expression if po_ExtConstWithoutExpr
git-svn-id: trunk@38884 -
2018-05-01 09:50:18 +00:00
Mattias Gaertner
d140e01abe fcl-image: fixed compile fpreadtiff
git-svn-id: trunk@38883 -
2018-04-30 23:59:56 +00:00
Mattias Gaertner
7ea975a869 pastojs: default(record)
git-svn-id: trunk@38882 -
2018-04-30 23:48:28 +00:00
Mattias Gaertner
78d12d1b5e fcl-passrc: default()
git-svn-id: trunk@38881 -
2018-04-30 23:48:02 +00:00
Mattias Gaertner
f6c09153c2 pastojs: property specifier nodefault
git-svn-id: trunk@38880 -
2018-04-30 22:22:05 +00:00
Mattias Gaertner
293ff51025 fcl-image: fpreadtiff:
Issue #33668, patch from circular
- fix bug with alpha channel with RGB images
- fix for Predictor 2 (using horizontal difference)
- fix for LZW to handle case when end of stream code is omitted
- fix crash by LZW allocating tons of memory
- optimized LZW decompression by avoiding lots of small memory allocations
- handle paletted image (colormap)
- handle 4 bit samples
- handle rotation (when x/y are flipped)
- handle premultiplied RGB values
- handle fill order (bits from low to high) for 1 bit images
- fix code for extra channels (rare case though)
- accepts 1 bit, 4 bit, 8 bit, 12 bit and 16 bit samples for any channel
- avoid using global variable IFD

git-svn-id: trunk@38879 -
2018-04-30 21:06:43 +00:00
Mattias Gaertner
8100f9b222 pastojs: nested classes
git-svn-id: trunk@38878 -
2018-04-30 18:03:48 +00:00
Mattias Gaertner
ee8896b988 fcl-passrc: resolver: nested classes
git-svn-id: trunk@38877 -
2018-04-30 18:01:59 +00:00
Mattias Gaertner
a918071130 pastojs: docs
git-svn-id: trunk@38876 -
2018-04-30 08:32:44 +00:00
Mattias Gaertner
e16651f18c fcl-passrc: resolver: forbid assignment of for-loop variable
git-svn-id: trunk@38875 -
2018-04-30 08:32:23 +00:00
michael
e4ca90ba1f * Fix warnings, read <keyword> for gobble keywords
git-svn-id: trunk@38874 -
2018-04-30 07:14:04 +00:00
michael
09e45aabfd * Attempt to generate less empty lines
git-svn-id: trunk@38873 -
2018-04-30 06:41:15 +00:00
Mattias Gaertner
7db9ac914f fcl-passrc: $Writeableconst
git-svn-id: trunk@38872 -
2018-04-29 23:34:36 +00:00
Mattias Gaertner
b1b6b52842 fcl-passrc: added bool flag $PointerMath
git-svn-id: trunk@38871 -
2018-04-29 22:42:16 +00:00
Mattias Gaertner
994167481d pas2js: docs: record const
git-svn-id: trunk@38870 -
2018-04-29 19:26:57 +00:00
Mattias Gaertner
01ccfbcf61 pastojs: record const
git-svn-id: trunk@38869 -
2018-04-29 19:26:45 +00:00
Mattias Gaertner
70b4a4b9a5 fcl-passrc: resolver: record const
git-svn-id: trunk@38868 -
2018-04-29 19:26:31 +00:00