Author: wlux
Date: Fri Oct 23 18:32:21 2015
New Revision: 39088
URL: http://svn.gna.org/viewcvs/gnustep?rev=39088&view=rev
Log:
Fix bug where incorrect method signatures were generated for script
methods with more than four arguments.
Modified:
libs/steptalk/trunk/ChangeLog
libs/steptalk/trunk/Frameworks/StepTalk/STObjCRuntime.m
Modified: libs/steptalk/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/steptalk/trunk/ChangeLog?rev=39088&r1=39087&r2=39088&view=diff
==============================================================================
--- libs/steptalk/trunk/ChangeLog (original)
+++ libs/steptalk/trunk/ChangeLog Fri Oct 23 18:32:21 2015
@@ -1,3 +1,9 @@
+2015-10-23 Wolfgang Lux <[email protected]>
+
+ * Frameworks/StepTalk/STObjCRuntime.m (selector_types): Fix broken
+ array initialization, which meant that incorrect method signatures
+ were generated for methods with more than four arguments.
+
2014-11-02 Wolfgang Lux <[email protected]>
* Frameworks/StepTalk/STRemoteConversation.m
Modified: libs/steptalk/trunk/Frameworks/StepTalk/STObjCRuntime.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/steptalk/trunk/Frameworks/StepTalk/STObjCRuntime.m?rev=39088&r1=39087&r2=39088&view=diff
==============================================================================
--- libs/steptalk/trunk/Frameworks/StepTalk/STObjCRuntime.m (original)
+++ libs/steptalk/trunk/Frameworks/StepTalk/STObjCRuntime.m Fri Oct 23
18:32:21 2015
@@ -38,7 +38,7 @@
#import <Foundation/NSValue.h>
#import <GNUstepBase/GSObjCRuntime.h>
-#define SELECTOR_TYPES_COUNT 10
+#define SELECTOR_TYPES_COUNT (sizeof(selector_types)/sizeof(selector_types[0]))
/* Predefined default selector types up to 10 arguments for fast creation.
It should be faster than manually constructing the string. */
@@ -49,11 +49,11 @@
"@16@0:4@8@12",
"@20@0:4@8@12@16",
"@24@0:4@8@12@16@20",
- "@28@0:4@8@12@16@20@24"
- "@32@0:4@8@12@16@20@24@28"
- "@36@0:4@8@12@16@20@24@28@32"
- "@40@0:4@8@12@16@20@24@28@32@36"
- "@44@0:4@8@12@16@20@24@28@32@36@40"
+ "@28@0:4@8@12@16@20@24",
+ "@32@0:4@8@12@16@20@24@28",
+ "@36@0:4@8@12@16@20@24@28@32",
+ "@40@0:4@8@12@16@20@24@28@32@36",
+ "@44@0:4@8@12@16@20@24@28@32@36@40"
};
NSMutableDictionary *STAllObjectiveCClasses(void)
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs