Commit graph

265 commits

Author SHA1 Message Date
Wolfgang Lux
779c0b47c4 Fix NSDebugLLog format issues detect by clang.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38063 72102866-910b-0410-8b05-ffd578937521
2014-09-09 13:52:49 +00:00
Wolfgang Lux
66bd2c33fe Revert bogus change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@37540 72102866-910b-0410-8b05-ffd578937521
2014-01-06 11:24:16 +00:00
Richard Frith-MacDonald
fad9c634f1 trivial optimisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@37485 72102866-910b-0410-8b05-ffd578937521
2013-12-20 14:42:10 +00:00
Wolfgang Lux
70936d6e15 Fix bug where the Smalltalk source reader was loosing the last character
of a symbol token that appears immediately before the end of input.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36777 72102866-910b-0410-8b05-ffd578937521
2013-06-30 17:44:50 +00:00
Wolfgang Lux
254398ccdf Fix bug where the Smalltalk source reader was loosing the last character
of a symbol token that appears immediately before the end of input.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36776 72102866-910b-0410-8b05-ffd578937521
2013-06-30 17:42:15 +00:00
Wolfgang Lux
0e94ff5bac Fix bug where the Smalltalk source reader was setting a wrong token
range for character literals.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36775 72102866-910b-0410-8b05-ffd578937521
2013-06-30 17:30:52 +00:00
Wolfgang Lux
bfed68b1c3 Fix bug where the Smalltalk source reader would accept an incomplete
exponent in a real number, e.g., '1e'.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36774 72102866-910b-0410-8b05-ffd578937521
2013-06-30 17:24:51 +00:00
Wolfgang Lux
4298e255e7 Prevent out of range accesses for the input string in the Smalltalk
source reader.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36773 72102866-910b-0410-8b05-ffd578937521
2013-06-30 17:13:05 +00:00
Wolfgang Lux
c046955909 Tidy Smalltalk source reader.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36772 72102866-910b-0410-8b05-ffd578937521
2013-06-30 16:54:32 +00:00
Wolfgang Lux
9f13e69a41 Fix marshaling for method and structure arguments with type (char*)
and skip const qualifiers in argument and result types.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36664 72102866-910b-0410-8b05-ffd578937521
2013-05-27 12:34:12 +00:00
Wolfgang Lux
b4b2bf3891 Fix typo in STActor method name and introduce additional methods to
add and remove instance variables.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36663 72102866-910b-0410-8b05-ffd578937521
2013-05-26 16:25:54 +00:00
Wolfgang Lux
f1d9694b1c Change Smalltalk grammar to allow empty list of temporaries.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36662 72102866-910b-0410-8b05-ffd578937521
2013-05-26 16:14:13 +00:00
Wolfgang Lux
41047a6341 StepTalk scripts panel: int->NSInteger transition
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36661 72102866-910b-0410-8b05-ffd578937521
2013-05-26 16:03:29 +00:00
Wolfgang Lux
314a9945b2 StepTalk tools and examples: int->NSInteger transition
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36660 72102866-910b-0410-8b05-ffd578937521
2013-05-26 16:01:34 +00:00
Wolfgang Lux
fe46a9e113 StepTalk module bundles: int->NSInteger transition
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36659 72102866-910b-0410-8b05-ffd578937521
2013-05-26 15:58:39 +00:00
Wolfgang Lux
3f8eeb9ff0 StepTalk Smalltalk compiler: int->NSInteger transition
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36658 72102866-910b-0410-8b05-ffd578937521
2013-05-26 15:51:26 +00:00
Wolfgang Lux
7532ab371a StepTalk framework: int->NSInteger transition
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36657 72102866-910b-0410-8b05-ffd578937521
2013-05-26 15:35:06 +00:00
Wolfgang Lux
ba12bd3874 Fix bug in Smalltalk reader where the last character of an identifier
was dropped when the assignment operator ':=' follows it immediately.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36480 72102866-910b-0410-8b05-ffd578937521
2013-04-06 12:22:28 +00:00
Wolfgang Lux
9576ab41c4 Fix bug where instance variables of an actor got lost when set to nil.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36476 72102866-910b-0410-8b05-ffd578937521
2013-04-06 09:08:42 +00:00
Wolfgang Lux
be39511ed8 Add yourself method from Smalltalk, which is convenient in cascades.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36463 72102866-910b-0410-8b05-ffd578937521
2013-04-04 07:33:26 +00:00
Wolfgang Lux
66076e8c6e Hide the StepTalk application scripting menu after it has been loaded
from its bundle.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36457 72102866-910b-0410-8b05-ffd578937521
2013-04-03 07:53:14 +00:00
Wolfgang Lux
9feb26b63c Fix -collect: method to properly handle nil results from block.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36456 72102866-910b-0410-8b05-ffd578937521
2013-04-03 07:46:24 +00:00
Wolfgang Lux
5cfb99c758 Fix Smalltalk reader to always return correct line numbers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36455 72102866-910b-0410-8b05-ffd578937521
2013-04-03 07:42:02 +00:00
Wolfgang Lux
ac8fc9cbb6 Fix bug where the STInterpreterReturnException was not handled when a
block returns nil.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36426 72102866-910b-0410-8b05-ffd578937521
2013-03-25 11:32:20 +00:00
Wolfgang Lux
b7a0150e02 Fix stack underflow exception when computing the value of an empty
block.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36422 72102866-910b-0410-8b05-ffd578937521
2013-03-24 17:29:43 +00:00
Wolfgang Lux
1fc2e5fb63 Follow Smalltalk convention to return the receiver from a method
without an explicit return statement.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36421 72102866-910b-0410-8b05-ffd578937521
2013-03-24 17:24:11 +00:00
Wolfgang Lux
fd46046983 Fix to allow using Smalltalk blocks even after the method containing
their definition has returned.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36420 72102866-910b-0410-8b05-ffd578937521
2013-03-24 17:19:55 +00:00
Wolfgang Lux
b5aeea6a29 Implement correct semantics for return statements inside a Smalltalk
block, which is to return from the method containing the block's
definition.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36419 72102866-910b-0410-8b05-ffd578937521
2013-03-24 17:02:20 +00:00
Wolfgang Lux
9b35f05577 Fix Smalltalk compiler bug: The value of a statement sequence is the
value of its last statement.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36410 72102866-910b-0410-8b05-ffd578937521
2013-03-23 20:02:23 +00:00
Wolfgang Lux
760bbb4b83 Fix bug where an uninitialized attribute got used during initialization.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36409 72102866-910b-0410-8b05-ffd578937521
2013-03-23 19:58:28 +00:00
Wolfgang Lux
d51cc43755 Check the result of the super class initializer and assign it to self.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36407 72102866-910b-0410-8b05-ffd578937521
2013-03-23 19:17:07 +00:00
Wolfgang Lux
81df64e7ab Check the result of the super class initializer and assign it to self.
Also fix two minor space leaks.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36406 72102866-910b-0410-8b05-ffd578937521
2013-03-23 19:07:51 +00:00
Wolfgang Lux
fa9b3747b1 Update to current StepTalk framework methods.
Check the result of the super class initializer and assign it to self.
Also fix a space leak.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36405 72102866-910b-0410-8b05-ffd578937521
2013-03-23 19:00:43 +00:00
Wolfgang Lux
3e7c37d9b3 Check the result of the super class initializer and assign it to self.
Also fix a space leak.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36404 72102866-910b-0410-8b05-ffd578937521
2013-03-23 18:35:43 +00:00
Wolfgang Lux
a31258c1d1 Check the result of the super class initializer and assign it to self.
Also fix two memory management errors.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36403 72102866-910b-0410-8b05-ffd578937521
2013-03-23 18:09:25 +00:00
Wolfgang Lux
484ff95559 Check the result of the super class initializer and assign it to self.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36402 72102866-910b-0410-8b05-ffd578937521
2013-03-23 17:17:35 +00:00
Wolfgang Lux
e180a533b2 Unescape two successive single quote characters inside Smalltalk
literal string tokens.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36235 72102866-910b-0410-8b05-ffd578937521
2013-03-02 16:09:07 +00:00
Wolfgang Lux
303e860924 Define the standard Smalltalk methods for invoking blocks with
arguments, keeping StepTalk's old non-standard methods for backward
compatibility.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36086 72102866-910b-0410-8b05-ffd578937521
2013-02-08 09:02:06 +00:00
Wolfgang Lux
94d605787c Fix syntax error reports to include context when compiling a Smalltalk string
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35840 72102866-910b-0410-8b05-ffd578937521
2012-12-02 11:37:26 +00:00
Wolfgang Lux
6ed2e062bc Fix StepTalk unit test example
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35782 72102866-910b-0410-8b05-ffd578937521
2012-11-03 14:44:15 +00:00
Wolfgang Lux
ea1fed4269 Implement method which is advertised in warning message
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35781 72102866-910b-0410-8b05-ffd578937521
2012-11-03 14:40:52 +00:00
Wolfgang Lux
f683714c79 Fix typos in a few StepTalk warning messages.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35780 72102866-910b-0410-8b05-ffd578937521
2012-11-03 14:24:07 +00:00
Wolfgang Lux
c1a084a1c8 Remove a repeated attribute declaration from the implementation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35751 72102866-910b-0410-8b05-ffd578937521
2012-10-26 17:15:52 +00:00
Wolfgang Lux
903e11ce23 Add WebServices bundle to StepTalk. Must be requested explicitly by
adding webservices=yes to the make command line.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35750 72102866-910b-0410-8b05-ffd578937521
2012-10-26 16:58:45 +00:00
Wolfgang Lux
43359d0766 Add SQLClient bundle to StepTalk. Must be requested explicitly by
adding sqlclient=yes to the make command line.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35749 72102866-910b-0410-8b05-ffd578937521
2012-10-26 16:46:43 +00:00
Wolfgang Lux
2da0d9a1bc Fix Makefile variable for StepTalk bundles
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@35748 72102866-910b-0410-8b05-ffd578937521
2012-10-26 16:01:57 +00:00
Wolfgang Lux
91ca747a02 Fix unintended fall through in a switch statement in Steptalk detected
by clang's static analyzer


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34731 72102866-910b-0410-8b05-ffd578937521
2012-02-07 09:29:14 +00:00
Wolfgang Lux
f7b199f99b Add missing format parameter in Steptalk detected by clang's static analyzer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34730 72102866-910b-0410-8b05-ffd578937521
2012-02-07 09:25:38 +00:00
Wolfgang Lux
939fecc187 Fix memory management bugs in Steptalk detected by clang's static analyzer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34729 72102866-910b-0410-8b05-ffd578937521
2012-02-07 09:22:40 +00:00
Wolfgang Lux
63f3940bee Shut down compiler warnings for StepTalk's Shell example.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34546 72102866-910b-0410-8b05-ffd578937521
2012-01-15 18:16:56 +00:00