Commit Graph

32828 Commits

Author SHA1 Message Date
sekelsenmat
8b6e8079ec Fixes a potential crash in TStrings.SaveToStream
git-svn-id: trunk@16187 -
2010-10-19 15:50:13 +00:00
sergei
7e5ff8ca89 * xmlread.pp, modified attribute parsing code to use DOM-independent data structures (second part)
* ExpectAttValue() now builds both plain string value and first-level node chain.
  * Normalize() procedure moved to xmlutils.pp and made publicly available as BufNormalize.
  * ParseLiteral() cleaned of attribute-specific code; at this point it is clear it won't be used for parsing attributes.

git-svn-id: trunk@16186 -
2010-10-19 15:14:33 +00:00
sergei
e0d8556cae * xmlread.pp, modified attribute parsing code to use DOM-independent data structures (first part)
git-svn-id: trunk@16184 -
2010-10-18 20:46:35 +00:00
sergei
dfe1c0f228 xmlread.pp, r16175 caused a regression in level1/core/commentgetcomment; we should ignore comments in DTD, but not between DTD and root element. Fixed.
git-svn-id: trunk@16183 -
2010-10-18 20:19:32 +00:00
joost
56cd935acf * Fixed compilation on Windows/WinCE after merging the XPCom branch in r16180
git-svn-id: trunk@16181 -
2010-10-18 15:22:53 +00:00
joost
07bf44517c * Merged XPCom branch into trunk, added support for constref and changed
the IInterface implementation to be XPCom-compatible
--- Merging r15997 through r16179 into '.':
U    rtl/inc/variants.pp
U    rtl/inc/objpash.inc
U    rtl/inc/objpas.inc
U    rtl/objpas/classes/persist.inc
U    rtl/objpas/classes/compon.inc
U    rtl/objpas/classes/classesh.inc
A    tests/test/tconstref1.pp
A    tests/test/tconstref2.pp
A    tests/test/tconstref3.pp
U    tests/test/tinterface4.pp
A    tests/test/tconstref4.pp
U    tests/webtbs/tw10897.pp
U    tests/webtbs/tw4086.pp
U    tests/webtbs/tw15363.pp
U    tests/webtbs/tw2177.pp
U    tests/webtbs/tw16592.pp
U    tests/tbs/tb0546.pp
U    compiler/sparc/cpupara.pas
U    compiler/i386/cpupara.pas
U    compiler/pdecsub.pas
U    compiler/symdef.pas
U    compiler/powerpc/cpupara.pas
U    compiler/avr/cpupara.pas
U    compiler/browcol.pas
U    compiler/defcmp.pas
U    compiler/powerpc64/cpupara.pas
U    compiler/ncgrtti.pas
U    compiler/x86_64/cpupara.pas
U    compiler/opttail.pas
U    compiler/htypechk.pas
U    compiler/tokens.pas
U    compiler/objcutil.pas
U    compiler/ncal.pas
U    compiler/symtable.pas
U    compiler/symsym.pas
U    compiler/m68k/cpupara.pas
U    compiler/regvars.pas
U    compiler/arm/cpupara.pas
U    compiler/symconst.pas
U    compiler/mips/cpupara.pas
U    compiler/paramgr.pas
U    compiler/psub.pas
U    compiler/pdecvar.pas
U    compiler/dbgstabs.pas
U    compiler/options.pas
U    packages/fcl-fpcunit/src/testutils.pp

git-svn-id: trunk@16180 -
2010-10-17 20:58:22 +00:00
marco
8304d2c1c5 * adds gwlp and gclp constants, mantis 17656 and 17655
git-svn-id: trunk@16179 -
2010-10-17 19:58:49 +00:00
nickysn
15e59b8ace * fixed windows keyboard layout switching and maybe other bugs, caused by not pumping all thread messages
git-svn-id: trunk@16178 -
2010-10-17 14:32:25 +00:00
sergei
d248315ae4 * xmlread.pp, do some cleanup and get rid of FCursor field.
git-svn-id: trunk@16175 -
2010-10-16 22:56:55 +00:00
florian
5dae691c96 * implementation of bit scan intrinsics by Richard Vida, resolves #17592
git-svn-id: trunk@16174 -
2010-10-16 15:03:30 +00:00
sergei
6cb12d0efc * xmlread.pp, doing progress with streaming API:
* correct handling of comments, PIs and (partially) DocumentType

git-svn-id: trunk@16172 -
2010-10-15 23:47:33 +00:00
marco
a680c63950 * TThread.Resume and suspend deprecated (see user changes trunk)
git-svn-id: trunk@16171 -
2010-10-15 22:15:57 +00:00
daniel
3307d98c40 - Revert micro-exe mode for now.
git-svn-id: trunk@16170 -
2010-10-15 16:49:48 +00:00
michael
38aacec93d * Fixed memory allocation in registration
git-svn-id: trunk@16163 -
2010-10-15 07:46:08 +00:00
sergei
d3bdf2577c * xmlread.pp, doing progress with streaming API:
+ state transitions needed to report start/end element events correctly
  + procedures for maintaining attribute data
  * excluded FCursor from attribute value parsing

git-svn-id: trunk@16161 -
2010-10-14 19:41:22 +00:00
michael
89df75c731 * Implement GetDisplayName and add ParamByName() implementation.
git-svn-id: trunk@16158 -
2010-10-14 09:57:57 +00:00
pierre
73b1fa667c * use dwarf64 numbers for x86_64 stabs registers
git-svn-id: trunk@16157 -
2010-10-13 22:56:02 +00:00
sekelsenmat
84626f3b36 Adds OpenAL to the list of packages to be built for x86-darwin
git-svn-id: trunk@16156 -
2010-10-13 21:25:09 +00:00
Károly Balogh
f634ef6640 + Workaround for IE2010053115 internal errors while writing PPU with explicitparaloc functions.
* MorphOS cycles again now at least, someone with clue might want to take a look if this is the proper way to fix this.

git-svn-id: trunk@16154 -
2010-10-13 19:58:44 +00:00
pierre
ec99b1ba40 * Add tf_dwarf_only_local_labels for win64 as suggested by Willibald Krenn
git-svn-id: trunk@16151 -
2010-10-13 08:52:35 +00:00
michael
1c6defe7be * Added example and tests for format
git-svn-id: trunk@16147 -
2010-10-12 20:45:49 +00:00
michael
48e8728b89 * Implemented FormatJSON
git-svn-id: trunk@16146 -
2010-10-12 20:08:23 +00:00
michael
8dd254b281 * Fixed synchronize/waitfor issue
git-svn-id: trunk@16145 -
2010-10-12 18:08:24 +00:00
nickysn
d22d5be5c7 * Win32 kbd input unicode translation via MultiByteToWideChar
git-svn-id: trunk@16144 -
2010-10-12 14:39:48 +00:00
nickysn
e97106b8cc * updated ptc c_api
git-svn-id: trunk@16143 -
2010-10-12 14:38:27 +00:00
nickysn
1aabf1c96c - deleted x11dgadisplay*.inc as the code has been moved to x11dga1display*.inc and they're no longer used
git-svn-id: trunk@16142 -
2010-10-12 14:31:26 +00:00
nickysn
e7c4990780 * buffer overflow checking in ptccrt.KeyBufAdd
git-svn-id: trunk@16141 -
2010-10-12 14:17:35 +00:00
pierre
ba6a4760e9 * fix regression 16700 introduced in rev 16104
git-svn-id: trunk@16133 -
2010-10-11 21:23:11 +00:00
pierre
586dd1ee49 * fix go32v2 assembler parsing failure introduced in rev 16104
git-svn-id: trunk@16132 -
2010-10-11 20:53:19 +00:00
joost
631811d779 * Added the ability to skip the rebuild of all packages which are dependent on the package being installed
git-svn-id: trunk@16131 -
2010-10-11 20:24:08 +00:00
Jonas Maebe
a178ff5172 * fixed evaluation of length('') (the type of an empty string is a chararray
instead of string) (mantis #17604)

git-svn-id: trunk@16128 -
2010-10-11 15:00:20 +00:00
daniel
2139a229d3 + If no unit is used, no symbol inside the system unit is used,
and no language features requiring initialization are used,
    do not initialize units, but just configure the fpu and
    signal handlers.

git-svn-id: trunk@16124 -
2010-10-10 17:40:39 +00:00
daniel
f4ec65add8 - Remove unused variable fpustate.
git-svn-id: trunk@16123 -
2010-10-10 15:09:05 +00:00
Jonas Maebe
d1ed076618 * changed r16080 so that global debug labels are only created on linux
systems when smart linking and PIC are on, because on Darwin this
    breaks smart linking and it's not necessary there (probably should be
    disabled completely and the problem should be solved in another way)
    (mantis #17593)

git-svn-id: trunk@16122 -
2010-10-10 13:39:46 +00:00
Jonas Maebe
31dab28eca * when checking for stack tainting parameters, verify all locations of every
parameter instead of only the first location (mantis #17590)

git-svn-id: trunk@16121 -
2010-10-10 12:36:59 +00:00
joost
1844ff4c01 * Improved safecall test. Added code to test parameter-values
git-svn-id: trunk@16120 -
2010-10-10 10:52:54 +00:00
Jonas Maebe
d5bc1c972f * don't generate init/fini sections in the al_procedures list, because the
compiler assumes it remains a sec_code (fixes linking problems with the
    iOS SDK 3.2 simulator tool chain when using debug info)

git-svn-id: trunk@16119 -
2010-10-09 21:27:07 +00:00
Jonas Maebe
769eb3f604 * moved the initialisation of the nodetree and tai class reference constants
from the unit initialisation sections to the variable declaration sections
    to prevent the base units from overriding derived classes (based on patch
    by Hans-Peter Dietrich, mantis #17516)

git-svn-id: trunk@16118 -
2010-10-09 18:52:22 +00:00
Jonas Maebe
15846bf3d1 - disabled {$modeswitch result} for macpas mode by default (mantis #17382)
git-svn-id: trunk@16117 -
2010-10-09 18:43:07 +00:00
Jonas Maebe
4b4f10b9e8 r331 | jonas | 2010-10-09 20:41:18 +0200 (Sat, 09 Oct 2010) | 3 lines
+ {$modeswitch result} so it still compiles once {$modeswitch result} is
    no longer on by default for {$mode macpas}

git-svn-id: trunk@16116 -
2010-10-09 18:42:10 +00:00
nickysn
6310b37bd5 + added ptcgraph implementation of SetBkColor and GetBkColor in 640x480x2 (MCGAHi) mode
git-svn-id: trunk@16115 -
2010-10-09 16:17:41 +00:00
joost
799b0368ac * place the function result parameter last for safecall routines on
all platforms that support a safecall calling convention

git-svn-id: trunk@16114 -
2010-10-08 22:38:30 +00:00
Jonas Maebe
ff9ca6ee17 - reverted spelling fixes from r16094 because these headers are
automatically translated, and spelling fixes will make future
    updates harder

git-svn-id: trunk@16113 -
2010-10-08 17:53:19 +00:00
Jonas Maebe
db8a67747d * give an error when trying to use (bit)sizeof on a type that is not yet
resolved by the compiler (mantis #14354)

git-svn-id: trunk@16112 -
2010-10-08 17:42:53 +00:00
pierre
41e388ace8 * Revert rev 16108
git-svn-id: trunk@16111 -
2010-10-08 13:39:11 +00:00
pierre
386478cd77 * Allow any register for GOT if current procedure has assembler code
git-svn-id: trunk@16110 -
2010-10-08 13:20:28 +00:00
pierre
207e0b58f5 * Support Intel [ebx].offset var PIC construct
git-svn-id: trunk@16109 -
2010-10-08 13:19:50 +00:00
pierre
1d2581b6d9 labels need to be non-local for PIC code using GOT
git-svn-id: trunk@16108 -
2010-10-08 13:16:04 +00:00
Jonas Maebe
ea706f6271 + use "Terminal" under Haiku to launch external programs (patch by
Olivier Coursiere, mantis #17392)

git-svn-id: trunk@16107 -
2010-10-08 13:06:06 +00:00
Jonas Maebe
92997a0249 * store/load tloopnode.loopflags to/from ppu files so that for/repeat/while
loops are correctly inlined (mantis #17493)

git-svn-id: trunk@16106 -
2010-10-08 13:01:25 +00:00