Commit Graph

30999 Commits

Author SHA1 Message Date
paul
cfa89b009f compiler: check that method marked by 'enumerator MoveNext' have no required arguments. correct error message.
git-svn-id: trunk@14045 -
2009-11-04 13:33:57 +00:00
paul
2f0cde4625 compiler:
- don't find MoveNext functions with the required arguments
  - add some test from Alexander S. Klenin
(issue #0014990)

git-svn-id: trunk@14044 -
2009-11-04 13:21:10 +00:00
paul
5f7bc2d3b5 compiler:
- don't allow operator enumerator with non object/class/interface result type
  - add some test from Alexander S. Klenin
(issue #0014990)

git-svn-id: trunk@14043 -
2009-11-04 12:59:05 +00:00
paul
61ec5e1417 compiler:
- fix for-in loop for empty sets
  - add some test from Alexander S. Klenin
(issue #0014990)

git-svn-id: trunk@14042 -
2009-11-04 12:25:01 +00:00
paul
5752be310d compiler:
- fix for-in loop for string const array
  - add some test from Alexander S. Klenin
(issue #0014990)

git-svn-id: trunk@14041 -
2009-11-04 12:07:42 +00:00
marco
cbdbf0fd32 * enabled libxml for FreeBSD. Some tests run, and the breakage of the others are not due to FreeBSD.
git-svn-id: trunk@14040 -
2009-11-04 11:29:45 +00:00
ivost
ff6f8675a3 * fixed wrong type
git-svn-id: trunk@14039 -
2009-11-04 11:11:09 +00:00
pierre
b9461b978c * add missing remote dialog labels
git-svn-id: trunk@14038 -
2009-11-04 09:26:07 +00:00
pierre
d1f8681690 * fix compilation failure of test.pas
git-svn-id: trunk@14037 -
2009-11-04 09:25:28 +00:00
pierre
eb7150e727 * add new fields to symtab_and_line record
git-svn-id: trunk@14036 -
2009-11-04 00:47:25 +00:00
pierre
409137bc44 * add missing directory for gdbcon.pp source
git-svn-id: trunk@14035 -
2009-11-04 00:31:20 +00:00
pierre
a0b8dbcce5 * use -dUSE_MINGW_GDB for gdbcon unit also
git-svn-id: trunk@14034 -
2009-11-04 00:28:57 +00:00
pierre
f1ea3f3ffe * added required gdb_datadir variable
git-svn-id: trunk@14033 -
2009-11-03 23:56:23 +00:00
pierre
11f73d1d7f * suppress VarArgs from QueryHook function
git-svn-id: trunk@14031 -
2009-11-03 23:30:51 +00:00
pierre
22ae7cdc3a * fix last commit
git-svn-id: trunk@14030 -
2009-11-03 23:25:56 +00:00
Tomas Hajny
0943fcb65e * Fix by Giulio: Fix test for go32v2
git-svn-id: trunk@14028 -
2009-11-03 22:56:39 +00:00
Tomas Hajny
72fc416779 * Fix by Giulio: Increased maxpackages in installer (go32v2 packages are 29)
git-svn-id: trunk@14027 -
2009-11-03 22:51:20 +00:00
Tomas Hajny
0179fb503e * Fix by Giulio: Fix compilation of redir.pp for go32v2
git-svn-id: trunk@14026 -
2009-11-03 22:48:45 +00:00
pierre
3a96d163fd + Add mingw unit
git-svn-id: trunk@14025 -
2009-11-03 22:43:08 +00:00
pierre
45b652581a + Add support for gdblib.inc file in libgdb directory
git-svn-id: trunk@14024 -
2009-11-03 22:30:15 +00:00
blikblum
d0783df9f8 * Fix visibility of methods
git-svn-id: trunk@14023 -
2009-11-03 22:20:12 +00:00
marco
e798f1164d * patch (don't call waitprocess if not running) from Mantis 14707
git-svn-id: trunk@14022 -
2009-11-03 22:16:39 +00:00
pierre
1992daedd5 + Add support for GDB 7.0.
git-svn-id: trunk@14021 -
2009-11-03 22:16:29 +00:00
marco
5c8ee686cb * Patch from Mantis 14709
git-svn-id: trunk@14020 -
2009-11-03 22:15:29 +00:00
pierre
de0f1b2866 * Add start_break_number field to TGDBController object
git-svn-id: trunk@14019 -
2009-11-03 22:08:11 +00:00
marco
8bc0583045 * trystrto* variants with formatsettings.
git-svn-id: trunk@14018 -
2009-11-03 21:20:10 +00:00
Jonas Maebe
c49c838270 * fixed 64 bit compilation
git-svn-id: trunk@14017 -
2009-11-03 14:05:02 +00:00
marco
030379bc57 * Minor optimization from mantis 14974
git-svn-id: trunk@14016 -
2009-11-03 12:59:12 +00:00
marco
91a756e51a * slight adjustment. Bug #14420 fixed.
git-svn-id: trunk@14015 -
2009-11-03 11:18:27 +00:00
marco
ce87b907ee * fix for windows compilation after last chances (mantis 14980)
git-svn-id: trunk@14014 -
2009-11-03 09:21:58 +00:00
paul
8292fcc49e rtl: override TObject.Equals for TBits and TStrings classes
git-svn-id: trunk@14013 -
2009-11-03 02:01:06 +00:00
marco
2c906dd4a1 * rearranged the append/rewrite slightly
git-svn-id: trunk@14012 -
2009-11-02 21:58:37 +00:00
marco
4b498be828 * add "append" mode, fixes 14420
git-svn-id: trunk@14011 -
2009-11-02 21:53:07 +00:00
Tomas Hajny
597285117c * added support for installation of IDE sources
git-svn-id: trunk@14010 -
2009-11-02 21:10:13 +00:00
marco
ac5552cec0 * German msg files from KMS, mantis 14966
git-svn-id: trunk@14009 -
2009-11-02 20:15:14 +00:00
paul
aa5a5e79ce merge revisions: 13909,13923,13924,13934,13935,13942,13943,13944,13946,13948,13950,13951,13952,13983,13994:
rtl: add enumerators to the basic classes
tests: add enumerators test which compiles and work both by fpc and dcc
compiler: 
  + start for-in loop implementation: implement for-in loop for types (enumerations and ranges), strings, arrays and sets. todo: perform type checking, optimize array and string loops - use temp for expression, implement for-in loop for classes
test:
  + add a simple test for the 'for-in' loop
compiler: fix string for-in loop. now it uses a temp variable to store string expression result
complier: fix for-in array loop. use a temp variable for the loop expression only if loop is not an open array loop
complier: continue enumerator implementation:
  + add operator enumerator which give an ability to add enumerator for an existent type (for example to override builtin string enumerator)
  + add class enumerator support via delphi compatible GetEnumerator method + enumerator class/object template (function MoveNext: Boolean; property Current)
  + tests
compiler: fix for-in loop for arrays. delphi does not copy arrays to a temp variable and it is possible to change array during loop. + test
compiler: add reference for the enumerator operator when it is used + another test for operator enumerator for a class
compiler: add reference for the enumerator operator when it is used + another test for operator enumerator for a class
compiler: enumerator directive support:
  + allow to mark methods and properties by 'enumerator MoveNext' and 'enumerator Current' modifiers. Parser checks return types and duplicates.
  + prefer *marked* by enumerator directive methods and properties than GetEnumerator and Current builtin symbols
  + increase ppu version
  + test
rtl: add IEnumerator and IEnumerable interfaces declarations
tests: for-in loop tests:
  + add small comment at the top of test program
compiler: allow 'enumerator MoveNext' for the interface function declaration + test
compiler: move all for-in loop helpers to the nflw unit
compiler: don't allow the compiler to choose the non-valid enumerator operator for the for-in loop

git-svn-id: trunk@14008 -
2009-11-02 03:24:48 +00:00
Tomas Hajny
0a6888dbcb + enhanced clone of GNU rm, helper for building GO32v2 releases under WinXP, but possibly useful in some other cases too
git-svn-id: trunk@14007 -
2009-11-01 21:33:07 +00:00
Jonas Maebe
8d65471fe2 * give a proper error when trying to use val() on a boolean (mantis #14777)
* don't allow a boolean or (wide)char to be used as the "error" parameter
    for val()

git-svn-id: trunk@14006 -
2009-11-01 17:18:40 +00:00
paul
dfef902c53 rtl: introduce new TObject methods: UnitName, GetHashCode, Equals, ToString added for compatibility with delphi 2009.
+ changes in compiler, utils, packages to resolve identifier conflicts with the new TObject methods (like changing of UnitName arguments to AUnitName, adding Classes. before the toString, etc). (issue #0014931)

git-svn-id: trunk@14005 -
2009-11-01 16:22:47 +00:00
paul
dfdfec0201 compiler: don't write zero ClassInfo pointer even if class does not have published methods rtti (issue #14930)
git-svn-id: trunk@14004 -
2009-11-01 16:01:23 +00:00
paul
a13c657e69 fix test (should fail)
git-svn-id: trunk@14003 -
2009-11-01 15:59:22 +00:00
Jonas Maebe
c2190ebd30 * return errors from unimplemented functions instead of random values
git-svn-id: trunk@14002 -
2009-11-01 15:41:29 +00:00
Jonas Maebe
3e624d990d * only allow one "message" modifier per method declaration (mantis #14946)
git-svn-id: trunk@14001 -
2009-11-01 15:23:57 +00:00
Jonas Maebe
ab9980967f * use "open" rather than xterm for poNewConsole on Darwin (patch by
Dmitry Boyarintsev, fixes mantis #14957)

git-svn-id: trunk@14000 -
2009-11-01 14:53:45 +00:00
paul
c2e749797b + test
git-svn-id: trunk@13999 -
2009-11-01 14:42:52 +00:00
paul
a901cd3e91 compiler: don't select non-valid assignment operator (have more than 1 argument) since this cause an internal error (bug #0014962)
git-svn-id: trunk@13998 -
2009-11-01 14:41:33 +00:00
paul
e784ec1079 merge revisions 13898-13899:
- compiler: allow message after the *deprecated* keyword
 - compiler: raise an internal error if deprecated message is trying to set to a non clear string pointer

git-svn-id: trunk@13997 -
2009-11-01 14:06:30 +00:00
ivost
e5ef111466 * updated testpackages to use newest version of libhandler
git-svn-id: trunk@13996 -
2009-11-01 11:31:37 +00:00
ivost
a9150ebb8a * lib handler: default libraries can be changed now
git-svn-id: trunk@13995 -
2009-11-01 11:28:17 +00:00
ivost
4e35433504 * added some new functions to zorba headers
* added an example

git-svn-id: trunk@13993 -
2009-11-01 01:26:13 +00:00