Commit Graph

22 Commits

Author SHA1 Message Date
florian
dfc2652062 + support of compiler intrinsic sar* using a patch by Benjamin Rosseaux, resolves #15606
git-svn-id: trunk@14834 -
2010-01-31 16:47:01 +00:00
paul
eee6658a46 revert occasionally committed pp.lpi
git-svn-id: trunk@14064 -
2009-11-05 03:34:06 +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
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
florian
ab217ca748 * lpi version increased
git-svn-id: trunk@13415 -
2009-07-19 18:12:57 +00:00
florian
08f0ead3ef * version got updated
git-svn-id: trunk@12584 -
2009-01-23 13:26:33 +00:00
florian
b76211b426 * more improvements
git-svn-id: trunk@5348 -
2006-11-12 22:32:26 +00:00
florian
e29892329a * improved pp.lpi
git-svn-id: trunk@5347 -
2006-11-12 22:24:15 +00:00
florian
34a361e4b5 * windowism removed
git-svn-id: trunk@5226 -
2006-11-04 17:59:06 +00:00
florian
2d73d2462d * properties set
git-svn-id: trunk@5225 -
2006-11-04 17:55:22 +00:00
florian
53e4ea7bc1 * fixed broken project
git-svn-id: trunk@5158 -
2006-11-01 17:39:53 +00:00
florian
7fbd71ab99 * removed session info
git-svn-id: trunk@5157 -
2006-11-01 17:19:09 +00:00
florian
237d66c4b9 * improved default lazarus project
git-svn-id: trunk@5156 -
2006-11-01 17:15:15 +00:00
florian
6263aefef5 * locally changed pp.lpi reverted
git-svn-id: trunk@3880 -
2006-06-16 20:32:16 +00:00
mazen
bc18d6eb8a + added palmos support to makes files
+ added Makefile.fpc to palmos in rtl
+ added faked prt0 to plamos rtl

git-svn-id: trunk@2443 -
2006-02-05 19:22:12 +00:00
Vincent Snijders
708cb4fb7a fixed compilation by lazarus
git-svn-id: trunk@576 -
2005-07-03 21:09:07 +00:00
florian
f6442b758c * overloading of assignment operator by different unique result types now possible 2005-04-28 19:32:11 +00:00
mazen
581b52422c - remove $IFDEF DELPHI and related code
- remove $IFDEF FPCPROCVAR and related code
2004-10-15 09:14:16 +00:00
mazen
e90d8a42e3 * USE_SYSUTILS merged successfully : cycles with and without defines
* Need to be optimized in performance
2004-10-14 18:16:17 +00:00
mazen
e27d695e7c * Fix new command line parameters 2004-09-22 15:41:57 +00:00
mazen
72556ae39f * fix compile problem 2004-07-26 04:00:35 +00:00
mazen
4a0a19d733 + added to use Lazarus debugging compiler 2004-03-17 11:58:03 +00:00