Commit Graph

28337 Commits

Author SHA1 Message Date
marco
46acbe2ee0 * moved commdlg functions from windows to commdlg unit. Constants still have to be done.
git-svn-id: trunk@10323 -
2008-02-13 22:21:11 +00:00
Jonas Maebe
d3c590973e * regenerated with darwin/x86_64 support
git-svn-id: trunk@10322 -
2008-02-13 21:07:17 +00:00
marco
2e1682d7a7 * fix for #10772 interlocked now calling convention default (I hope, this modifier is undocumented #10823)
* remove comctl32 functions from windows. In time accctrl and comdlg functions will also go, but for that the respective windows headers must be done first.
      This both for delphi compat, and to avoid duplicate identifiers (and vague errors) as encountered with win32extra merging.

git-svn-id: trunk@10321 -
2008-02-13 21:00:14 +00:00
Jonas Maebe
f36e5411af * split cpu64bit compiler define into
a) cpu64bitaddr, which means that we are generating a compiler which
       will generate code for targets with a 64 bit address space/abi
    b) cpu64bitalu, which means that we are generating a compiler which
       will generate code for a cpu with support for 64 bit integer
       operations (possibly running in a 32 bit address space, depending
       on the cpu64bitaddr define)
   All cpus which had cpu64bit set now have both the above defines set,
   and none of the 32 bit cpus have cpu64bitalu set (and none will
   compile with it currently)
  + pint and puint types, similar to aint/aword (not pword because that
    that conflicts with pword=^word)
  * several changes from aint/aword to pint/pword
  * some changes of tcgsize2size[OS_INT] to sizeof(pint)

git-svn-id: trunk@10320 -
2008-02-13 20:44:00 +00:00
florian
c05d4912f4 + basic system unit for avr-embedded
* fixed several compiler stuff to be able to start system unit compilation on avr

git-svn-id: trunk@10318 -
2008-02-13 20:35:16 +00:00
florian
8aa80c8262 * properties set
git-svn-id: trunk@10317 -
2008-02-13 20:34:45 +00:00
florian
cae52272aa * split ena_rq define
git-svn-id: trunk@10316 -
2008-02-13 19:06:17 +00:00
michael
55f15818d0 * Patch from sergei Gorelkin:
* Optimized Escape() and Unescape() for speed.
  * Corrected relative filename handling in FilenameToURI(), a relative
    filename should remain relative after conversion to URI and back.

git-svn-id: trunk@10315 -
2008-02-13 10:32:12 +00:00
michael
77b38b6be5 * Patch from Sergei Gorelkin:
fcl-xml/src/dom.pp: resolved a number of Level 1 conformance issues:

  * Node.Normalize always deletes empty text nodes
  * Node.Normalize is recursive into Attributes
  * Node.InsertBefore corrected exception code in case when RefChild is
    not one of node's children
  + Node.InsertBefore added missing check for possible cycle in tree
  + Node.AppendChild and Node.InsertBefore added checking type of NewChild
  + CloneNode enabled for Fragment and Entity
  - CloneNode deleted for DocumentType (w3 specs directly prohibit cloning
    it between documents, and cloning within one document is claimed
    'implementation specific' - but makes no sense).
  + Node.ImportNode is now working

  * Uncommented Level 2 node properties (NamespaceURI, localName and
    Prefix), this caused a name clash and a lot of function argument
    renames.

  fcl-xml/src/xmlutils.pp:

  + overloaded IsXmlName() that accepts PWideChars

  fcl-xml/src/xmlconf.pp

  * Applied a fix similar to xmlcfg.pp for Mantis #10554

  fcl-xml/src/xmlread.pp:

  * Major: Got errors reported at correct locations for all 1600+ negative
    tests. Easy to say, but it required modifying almost every second
    line of code.
  * TContentParticle references an existing element definition instead of
    storing its own name (this allows content model matching without
    string comparisons).
  * Resorted to old-style 'object' for TElementValidator and to plain
    procedures for decoders (allows to drop almost all related memory
    management).
  * Moved parameter entity detection from char to token level, this
    simplifies things a bit.
  + Added second level of buffering to input source (a step towards
    supporting arbitrary encodings).
  * The main parsing loop contains no implicit exception frames now.


  fcl-xml/src/xmlwrite.pp

  * Replaced the stupid indenting algorithm with a simple rule: "Do not
    write indents adjacent to text nodes". Now it does not make a mess
    out of the documents which were parsed with PreserveWhitespace=True.
  * Use specialized node properties instead of generic ones, this
    eliminates WideString copies and results in almost 2x performance
    boost in Windows.
  * Even more performance:
    * Write line endings together with indents -> twice less calls.
    * Increase slack in buffer and write strings with known length (i.e.
      most of markup) without overflow checking.

  fcl-xml/tests/xmlts.pp:

  * Use parser options instead of dedicated procedure to 'canonicalize'
    documents, the parser has become mature enough to do that.
  * Fatal error in non-valid category is a test failure, as well as
    validation error alone in not-wellformed category.

  fcl-xml/src/README

  * Brought a bit up to date

  fcl-xml/tests/README

  + Added testsuite errata/issues

git-svn-id: trunk@10314 -
2008-02-13 10:31:09 +00:00
florian
469672cb56 * fixed another crash with the new function result handling for sysv x86-64 abi
git-svn-id: trunk@10312 -
2008-02-12 21:26:46 +00:00
peter
737212ff22 * fix result type of constset+[]
git-svn-id: trunk@10311 -
2008-02-12 17:30:00 +00:00
peter
417c832e9d * in node simplify
git-svn-id: trunk@10310 -
2008-02-12 17:27:27 +00:00
florian
0df73836a2 + avr as cpu
git-svn-id: trunk@10308 -
2008-02-11 22:25:19 +00:00
joost
2220e453cf * Moved FCurrentRecBuf from the index to TBufDataset itself
* Add new (inserted) records to all indexes

git-svn-id: trunk@10307 -
2008-02-11 22:06:00 +00:00
tom_at_work
52135af71f * implement branchless fpc_abs_long in a generic way
* enable optimization for ppc/ppc64 (two times faster than 
"generic" rtl branching routine)

git-svn-id: trunk@10306 -
2008-02-11 21:13:52 +00:00
florian
f8c9052c21 * fixed writeln(<enum>) for 64 bit systems, resolves #10033
git-svn-id: trunk@10305 -
2008-02-11 21:05:08 +00:00
florian
1a2a4af773 * hopefully the final fix for x86-64 sysv calling conventions
git-svn-id: trunk@10304 -
2008-02-11 19:46:40 +00:00
yury
29c19fa4e3 * Do not free invalid pointer in RegSetValueExA wrapper.
git-svn-id: trunk@10303 -
2008-02-11 18:43:37 +00:00
yury
d0aa4a7e2f * Fix AV errors when taking pointers of empty strings.
git-svn-id: trunk@10302 -
2008-02-11 17:34:40 +00:00
yury
518f21a99e * Import some functions by ordinal only to be compatible with older versions of wince.
git-svn-id: trunk@10301 -
2008-02-11 16:23:54 +00:00
florian
9edab963df * regenerated
git-svn-id: trunk@10299 -
2008-02-11 16:00:36 +00:00
florian
4056064f83 * fixed cross compilation
git-svn-id: trunk@10297 -
2008-02-11 15:35:59 +00:00
yury
ed86757898 * Pass const record parameters by reference for all calling conventions on i386-wince. It is needed to be Windows unit Delphi compatible, since WinAPI functions are cdecl on wince.
git-svn-id: trunk@10296 -
2008-02-11 15:12:41 +00:00
florian
e4997eaa45 * fixes safecall on non-win64 x86-64, should solve random rte 229
git-svn-id: trunk@10295 -
2008-02-11 13:47:41 +00:00
florian
4592402529 * fixed sysv x86-64 function results for records and arrays with sizes 9..16 bytes
git-svn-id: trunk@10285 -
2008-02-10 22:28:07 +00:00
Jonas Maebe
c35e0bf712 - removed fclex at the end of fpc_exp_real because it makes that routine 10+
times slower on P4/Athlon XP cpus, and removing it does not cause any test
    suite regressions

git-svn-id: trunk@10284 -
2008-02-10 21:49:52 +00:00
peter
ad08395cde * added new packages
git-svn-id: trunk@10283 -
2008-02-10 20:12:51 +00:00
peter
1c065d8279 * updated
git-svn-id: trunk@10282 -
2008-02-10 19:20:10 +00:00
peter
e3f09b5294 * log archive name that is created
git-svn-id: trunk@10281 -
2008-02-10 19:10:21 +00:00
peter
36316bea75 * recovery mode added to always use internal fpmkunit
* fix dependency versioning

git-svn-id: trunk@10280 -
2008-02-10 19:06:20 +00:00
Jonas Maebe
3e63d3f1dd - removed {$ifndef cpu64bit} code
git-svn-id: trunk@10275 -
2008-02-10 17:05:27 +00:00
Almindor
acc4d25f75 * update spellcheck unit with new stuff
git-svn-id: trunk@10274 -
2008-02-10 16:09:23 +00:00
peter
915b1bddb3 * rename scheck to spellcheck
git-svn-id: trunk@10272 -
2008-02-10 15:55:39 +00:00
Jonas Maebe
a497aec91d * always use ppc<targetcpu> instead of ppcross<targetcpu> on darwin,
because due to the mach-o executable format which can contain
    binaries for different architectures in a single file, different
    names for native and cross compilers are not used on Mac OS X
    (mantis #10067)

git-svn-id: trunk@10270 -
2008-02-10 14:42:49 +00:00
marco
4774f766e0 * second batch Lazarus' win32extra merging. Basic migration done, though a few discussion items remain open.
git-svn-id: trunk@10269 -
2008-02-10 14:17:11 +00:00
marco
c6c6bbd13a * first batch of lazarus' win32extra enhancements
git-svn-id: trunk@10268 -
2008-02-10 13:45:37 +00:00
marco
60c1b69019 * small ifdef unicode fix
git-svn-id: trunk@10267 -
2008-02-10 13:16:39 +00:00
marco
3f3105172d * fix for win64 compilation failure of last night
git-svn-id: trunk@10265 -
2008-02-10 11:22:09 +00:00
Jonas Maebe
59d9169bbd * perform typechecking of callinit/callcleanup statements immediately when
they are added (mantis #10807), because
   a) the typecheckpass of the entire blocks has to be postponed until firstpass
      because new statements may still be added in the firstpass (otherwise
      the newly added statements in the firstpass are never typechecked due to
      the blocknode already having a resultdef set)
   b) simplify can be called between the typecheck and firstpass, and it needs
      the typeinfo

git-svn-id: trunk@10263 -
2008-02-10 11:13:33 +00:00
michael
87d74ffd84 * Fixed bug #10769
git-svn-id: trunk@10262 -
2008-02-10 10:54:13 +00:00
Jonas Maebe
839edb58a1 - reverted r9776 (see comments to #10433)
git-svn-id: trunk@10261 -
2008-02-10 10:09:25 +00:00
Jonas Maebe
058e3762aa * added missing begin/end
git-svn-id: trunk@10260 -
2008-02-10 10:07:55 +00:00
marco
3b6e5bd6af * imagehlp unit added
git-svn-id: trunk@10259 -
2008-02-09 19:52:58 +00:00
marco
e9804d7002 * some more small updates.
git-svn-id: trunk@10258 -
2008-02-09 19:46:14 +00:00
marco
f8f4fc21a3 * More image_ structs from winnt.h
git-svn-id: trunk@10257 -
2008-02-09 18:55:59 +00:00
marco
bdf213a03a * ulong32 + 64 needed for imagehlp.pp
git-svn-id: trunk@10256 -
2008-02-09 12:31:20 +00:00
Jonas Maebe
4d9445749c * fixed buffer overflow in delete() for widestrings (patch by
Martin Schreiber, #10800)

git-svn-id: trunk@10255 -
2008-02-09 11:47:14 +00:00
marco
71a017aca0 * overload fix.
git-svn-id: trunk@10252 -
2008-02-08 19:58:51 +00:00
Almindor
0dece44b9b * use the qword hack only on linux x86_64 (others would fail)
git-svn-id: trunk@10250 -
2008-02-08 16:58:41 +00:00
Jonas Maebe
c44fb4a79e * call FreeInstance after fail if vmt<>nil rather than if vmt=1
(mantis #10790)

git-svn-id: trunk@10249 -
2008-02-08 15:04:58 +00:00