Commit Graph

126 Commits

Author SHA1 Message Date
Lewin
0386f8f05a Fixed warnings showing row/column number as zero in some cases 2014-07-07 02:18:44 +10:00
Carlo Kok
70b4e1a851 Merge pull request #81 from velter/patch-9
Compiler bug in const arrays
2014-06-25 18:17:31 +02:00
Carlo Kok
390ee15ad1 Merge pull request #82 from velter/patch-8
Proposal to prevent duplicate definition
2014-06-25 18:16:54 +02:00
Frédéric Hannes
df155c4640 Minor tweak in compiler 2014-06-11 19:47:12 +02:00
velter
5967ab113b Update Duplicate definition change 2014-05-27 16:05:00 +02:00
velter
9dd1dd0111 Compiler bug in const arrays
There a compiler bug in array constants. A construct like

procedure B(eType : TObject);
begin
	if eType is TObject then ;
end;

function A(eVal : int32) : booleen;
begin
	result:=not(eVal in [1,2]);
end;         

begin
	A(1);
	A(2);
	A(3);
end;


Cause an AV in UpsCompiler line 6185. The root cause is the use of FindAndAddType with no name. The function return the last created anonymous type. In the previous sample it's a Type created by the "is" operator which is not an array. Casting it to TPSArrayType lead to the AV.
2014-05-27 14:51:17 +02:00
pchev
8ce29b39c5 Comobj support for FPC 2014-05-19 10:11:51 +02:00
velter
98145c07a1 Allow forward declaration 2014-05-07 11:36:31 +02:00
velter
980d731d32 Proposal to prevent duplicate register
Add a new property to control the behavior. By default, the behavior is not changed. Setting AllowDuplicateRegsiter to false will raise an exception each time a class/interface/function register a name already known.
2014-05-07 09:59:55 +02:00
Lewin
c68d42b839 Merge branch 'master' of https://github.com/remobjects/pascalscript 2014-05-04 18:06:17 +10:00
Lewin
2c9dc5455c Defining a "set of byte" no longer requires casting each element to byte 2014-04-26 20:06:44 +10:00
velter
561066d5cd Remove warnings
Implicit conversion from Ansi to Unicode
2014-04-08 17:35:29 +02:00
Carlo Kok
96b415f190 Merge pull request #66 from geby/master
Removed undesirable typecast to WideString
2014-03-11 08:04:15 +01:00
Carlo Kok
1b6d5ac13b Merge pull request #70 from velter/patch-3
Remove warnings
2014-03-11 08:03:34 +01:00
Carlo Kok
94c5198fd1 0: Cast to IPointer instead of Cardinal for 64bits Pascal SCript 2013-12-03 12:42:38 +01:00
velter
36f007a7f2 Remove a warning 2013-11-18 17:34:49 +01:00
velter
3c81406c02 Patch for issue #67 2013-11-18 16:52:26 +01:00
geby
3cbd7e5628 - GetUnicodeString was same as GetWideString before. Improved to faster default conversions.
- Corrected result of 'plus' string operation to UnicodeString.
2013-11-07 14:30:46 +01:00
Carlo Kok
3c93994501 Merge pull request #37 from Shoozza/kylix-compatibility-fix
Fix Kylix compilation errors
2013-11-07 03:47:43 -08:00
vdemidov
ff9f866b9f Add support of interface-variable to Assigned function
Assign function was compatible with classe, PChar and string but not compatible with interface.
2013-08-21 10:02:34 +03:00
evgeny-k
29944c0f5f Merge pull request #42 from JohnPeel/GetArrayLength-fix
GetArrayLength, First parameter doesn't need to be a variable.
2013-08-14 04:43:06 -07:00
John Peel
976b80b833 GetArrayLength, First parameter doesn't need to be a variable. 2013-06-08 00:02:15 -04:00
lewinjh
f8e612ceea - It is now possible to iterate over enumerations
- Added set functions Include and Exclude
2013-06-05 18:31:39 +10:00
Gregor A. Cieslak
85e8d5032b Fix Kylix compilation errors 2013-05-28 07:17:59 +02:00
Martijn Laan
ccad499426 Add StrToInt64Def.
Add comment pointing to the places where the standard funtions are defined.
2013-01-15 21:28:21 +01:00
Martijn Laan
3e720bee8a Fix compiler errors introduced by commit 54a4cf632a. 2013-01-12 16:20:47 +01:00
Carlo Kok
54a4cf632a Patch by Martin Friebe to make sure 64bits pointers are never truncated 2012-12-10 09:34:45 +01:00
vyacheslavd
ee3749e7b7 46955: PascalScript: Warning shows wrong row,col number in some constructions
git-svn-id: http://code.remobjects.com/svn/pascalscript@261 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2012-02-17 09:30:56 +00:00
ck
d7571d7ef9 make exportname = true the default.
git-svn-id: http://code.remobjects.com/svn/pascalscript@248 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2011-03-02 07:10:05 +00:00
ck
875121c9c7 Issue 132: "Unknown indentifier" inside unit (fixed by Lukas Gebauer)
git-svn-id: http://code.remobjects.com/svn/pascalscript@243 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2010-12-14 08:17:04 +00:00
andreyt
d68fee08b3 0:fixed bug with Unit_Name property.
git-svn-id: http://code.remobjects.com/svn/pascalscript@237 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2010-09-28 11:52:45 +00:00
ck
911bc3b7aa 0: Dropped all warnings in 2007+
git-svn-id: http://code.remobjects.com/svn/pascalscript@236 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2010-09-27 14:03:39 +00:00
ck
0a9ac85673 Patch from Frédéric Hannes for PS_NOWIDESTRING support.
git-svn-id: http://code.remobjects.com/svn/pascalscript@234 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2010-08-26 06:41:03 +00:00
ck
33b59e8b6c Changes from Frederic Hannes to improve unicode support.
git-svn-id: http://code.remobjects.com/svn/pascalscript@232 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2010-08-09 07:35:28 +00:00
ck
9675b8b9de Tweaks for d5 support from Eric Jansen eric.thuisremovethis@planet.nl
git-svn-id: http://code.remobjects.com/svn/pascalscript@230 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2010-07-08 09:28:01 +00:00
mlaan
df25ea9efe Fixed compile time type freeing bug.
git-svn-id: http://code.remobjects.com/svn/pascalscript@219 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2010-03-29 09:02:34 +00:00
ck
358ec2d054 Issue 111: Trim function doesn't work like in Delphi
Issue 112: PS_NOWIDESTRING flag

git-svn-id: http://code.remobjects.com/svn/pascalscript@218 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2010-03-29 07:29:09 +00:00
ck
5ace34133e < 2009 support.
git-svn-id: http://code.remobjects.com/svn/pascalscript@216 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2010-03-09 10:23:29 +00:00
ck
1356caab72 Issue 107: RegisterPublishedProperties can't support tkUString type in D2009 and UP
git-svn-id: http://code.remobjects.com/svn/pascalscript@215 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2010-03-08 15:24:06 +00:00
carlokok
3aea5a40f7 0: small fix for previous checkin.
git-svn-id: http://code.remobjects.com/svn/pascalscript@211 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2010-02-16 09:00:28 +00:00
carlokok
c9a24523c1 Issue 73: Using VarArrayCreate: Proper single dim variant array support
git-svn-id: http://code.remobjects.com/svn/pascalscript@208 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2010-02-16 08:46:09 +00:00
carlokok
35bbbc3267 Fix from the newsgroup for unit support
git-svn-id: http://code.remobjects.com/svn/pascalscript@207 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2010-02-11 17:40:08 +00:00
carlokok
778c87859a 0: fix for 2009/2010.
git-svn-id: http://code.remobjects.com/svn/pascalscript@198 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2010-01-11 09:38:09 +00:00
mlaan
32ac6ae048 Fix Slavomir Skopalik code for D2009+ (committed by ck rev 189)
git-svn-id: http://code.remobjects.com/svn/pascalscript@197 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2009-12-22 15:12:43 +00:00
carlokok
e001c2ed30 0: Make it work for non-unit support too
git-svn-id: http://code.remobjects.com/svn/pascalscript@196 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2009-12-18 09:48:32 +00:00
carlokok
74f19ac84e (code Review 1): patch for unit support http://code.remobjects.com/p/pascalscript/review/1/
git-svn-id: http://code.remobjects.com/svn/pascalscript@195 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2009-12-18 09:30:29 +00:00
carlokok
abe195487f (code review 2): fix for ProcessFor (Problem with Int64)
git-svn-id: http://code.remobjects.com/svn/pascalscript@194 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2009-12-18 09:26:11 +00:00
carlokok
997b869e43 2009 cc broke things for 7
git-svn-id: http://code.remobjects.com/svn/pascalscript@193 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2009-12-07 16:49:49 +00:00
carlokok
46a475884e Issue 58: Division with integer constants
git-svn-id: http://code.remobjects.com/svn/pascalscript@192 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2009-12-07 16:22:32 +00:00
carlokok
3a20e22223 Issue 57: Comparison error
git-svn-id: http://code.remobjects.com/svn/pascalscript@191 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
2009-12-07 15:52:26 +00:00