[Gnustep-cvs] r38187 - /libs/base/trunk/Source/NSRunLoop.m

2014-11-20 Thread rfm
Author: rfm
Date: Thu Nov 20 10:40:23 2014
New Revision: 38187

URL: http://svn.gna.org/viewcvs/gnustep?rev=38187view=rev
Log:
minor optimisation ... avoid unnecessary retain/release

Modified:
libs/base/trunk/Source/NSRunLoop.m

Modified: libs/base/trunk/Source/NSRunLoop.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/NSRunLoop.m?rev=38187r1=38186r2=38187view=diff
==
--- libs/base/trunk/Source/NSRunLoop.m  (original)
+++ libs/base/trunk/Source/NSRunLoop.m  Thu Nov 20 10:40:23 2014
@@ -443,27 +443,29 @@
   NSAutoreleasePool*arp = [NSAutoreleasePool new];
  GSRunLoopPerformer*array[count];
  NSMapEnumerator   enumerator;
- GSRunLoopCtxt *context;
+ GSRunLoopCtxt *original;
  void  *mode;
  unsigned  i;
 
   found = YES;
- /*
-  * Copy the array - because we have to cancel the requests
-  * before firing.
+
+ /* We have to remove the performers before firing, so we copy
+  * the pointers withoutm releasing the objects, and then set
+  * the array to be empty.
   */
  for (i = 0; i  count; i++)
{
- array[i] = RETAIN(GSIArrayItemAtIndex(performers, i).obj);
-   }
-
- /*
-  * Remove the requests that we are about to fire from all modes.
+ array[i] = GSIArrayItemAtIndex(performers, i).obj;
+   }
+  performers-count = 0;
+
+ /* Remove the requests that we are about to fire from all modes.
   */
+  original = context;
  enumerator = NSEnumerateMapTable(_contextMap);
  while (NSNextMapEnumeratorPair(enumerator, mode, (void**)context))
{
- if (context != nil)
+ if (context != nil  context != original)
{
  GSIArray  performers = context-performers;
  unsigned  tmpCount = GSIArrayCount(performers);


___
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs


[Gnustep-cvs] r38188 - in /libs/base/trunk: ./ Source/ Tests/base/NSURL/ Tests/base/NSURL/Helpers/

2014-11-20 Thread rfm
Author: rfm
Date: Thu Nov 20 10:43:21 2014
New Revision: 38188

URL: http://svn.gna.org/viewcvs/gnustep?rev=38188view=rev
Log:
Patches by Sergei Golovin

Added:
libs/base/trunk/Tests/base/NSURL/test02.m
libs/base/trunk/Tests/base/NSURL/testCert.pem
libs/base/trunk/Tests/base/NSURL/testKey.pem
Modified:
libs/base/trunk/ChangeLog
libs/base/trunk/Source/GSSocketStream.m
libs/base/trunk/Tests/base/NSURL/Helpers/capture.m

[This mail would be too long, it was shortened to contain the URLs only.]

Modified: libs/base/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/ChangeLog?rev=38188r1=38187r2=38188view=diff

Modified: libs/base/trunk/Source/GSSocketStream.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/GSSocketStream.m?rev=38188r1=38187r2=38188view=diff

Modified: libs/base/trunk/Tests/base/NSURL/Helpers/capture.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Tests/base/NSURL/Helpers/capture.m?rev=38188r1=38187r2=38188view=diff

Added: libs/base/trunk/Tests/base/NSURL/test02.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Tests/base/NSURL/test02.m?rev=38188view=auto

Added: libs/base/trunk/Tests/base/NSURL/testCert.pem
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Tests/base/NSURL/testCert.pem?rev=38188view=auto

Added: libs/base/trunk/Tests/base/NSURL/testKey.pem
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Tests/base/NSURL/testKey.pem?rev=38188view=auto


___
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs


[Gnustep-cvs] r38189 - in /apps/projectcenter/trunk: ChangeLog Modules/Parsers/ProjectCenter/PCParser.m

2014-11-20 Thread multix79
Author: rmottola
Date: Thu Nov 20 10:44:42 2014
New Revision: 38189

URL: http://svn.gna.org/viewcvs/gnustep?rev=38189view=rev
Log:
Force last action on parser if file lacks a new line at EOF

Modified:
apps/projectcenter/trunk/ChangeLog
apps/projectcenter/trunk/Modules/Parsers/ProjectCenter/PCParser.m

Modified: apps/projectcenter/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/ChangeLog?rev=38189r1=38188r2=38189view=diff
==
--- apps/projectcenter/trunk/ChangeLog  (original)
+++ apps/projectcenter/trunk/ChangeLog  Thu Nov 20 10:44:42 2014
@@ -1,3 +1,8 @@
+2014-11-20 Riccardo Mottola r...@gnu.org
+
+   * Modules/Parsers/ProjectCenter/PCParser.m
+   Force last action on parser if file lacks a new line at EOF.
+
 2014-11-20 Riccardo Mottola r...@gnu.org
 
* Modules/Parsers/ProjectCenter/ObjCCommentHandler.m

Modified: apps/projectcenter/trunk/Modules/Parsers/ProjectCenter/PCParser.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/Modules/Parsers/ProjectCenter/PCParser.m?rev=38189r1=38188r2=38189view=diff
==
--- apps/projectcenter/trunk/Modules/Parsers/ProjectCenter/PCParser.m   
(original)
+++ apps/projectcenter/trunk/Modules/Parsers/ProjectCenter/PCParser.m   Thu Nov 
20 10:44:42 2014
@@ -210,6 +210,10 @@
 }
 }
 }
+  /* send an extra new line if the file did not terminate with such.
+ Forces the parser to close pending actions */
+  if (codeType(_uchar+_length) != SpaceAndNewLineCodeType)
+(*impSpaceAndNewLine)(_handler, selSpaceAndNewLine, 0X0A);
 }
 
 @end


___
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs


[Gnustep-cvs] r38190 - /libs/base/trunk/Tests/base/NSURL/test02.m

2014-11-20 Thread rfm
Author: rfm
Date: Thu Nov 20 10:58:52 2014
New Revision: 38190

URL: http://svn.gna.org/viewcvs/gnustep?rev=38190view=rev
Log:
fixup corrupted commit

Modified:
libs/base/trunk/Tests/base/NSURL/test02.m

Modified: libs/base/trunk/Tests/base/NSURL/test02.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Tests/base/NSURL/test02.m?rev=38190r1=38189r2=38190view=diff
==
--- libs/base/trunk/Tests/base/NSURL/test02.m   (original)
+++ libs/base/trunk/Tests/base/NSURL/test02.m   Thu Nov 20 10:58:52 2014
@@ -118,203 +118,3 @@
 #endif
   return 0;
 }
-#import Foundation/Foundation.h
-#import Testing.h
-#import ObjectTesting.h
-
-
-int main()
-{
-#if GNUSTEP
-  NSAutoreleasePool   *arp = [NSAutoreleasePool new];
-  unsigned i;
-  NSURL*url;
-  NSMutableString  *m;
-  NSData*data;
-  NSString  *str;
-  NSTask   *t;
-  NSString *helpers;
-  NSString *capture;
-  NSMutableURLRequest   *request;
-  NSHTTPURLResponse *response = nil;
-  NSError   *error = nil;
-  NSFileManager *fm;
-  NSRange   r;
-  NSString  *file = @Capture.dat;
-
-  fm = [NSFileManager defaultManager];
-  helpers = [fm currentDirectoryPath];
-  helpers = [helpers stringByAppendingPathComponent: @Helpers];
-  helpers = [helpers stringByAppendingPathComponent: @obj];
-  capture = [helpers stringByAppendingPathComponent: @capture];
-
-  m = [NSMutableString stringWithCapacity: 2048];
-  for (i = 0; i  128; i++)
-{
-  [m appendFormat: @Hello %d\r\n, i];
-}
-
-  t = [NSTask launchedTaskWithLaunchPath: capture
-  arguments: [NSArray arrayWithObjects:
-nil]];
-  if (t != nil)
-{
-  // Pause to allow server subtask to set up.
-  [NSThread sleepUntilDate: [NSDate dateWithTimeIntervalSinceNow: 0.5]];
-  // remove the captured data from a possible previous run
-  [fm removeItemAtPath: file error: NULL];
-  // making a POST request
-  url = [NSURL URLWithString: @http://localhost:54321/;];
-  request = [NSMutableURLRequest requestWithURL: url];
-  data = [m dataUsingEncoding: NSUTF8StringEncoding];
-  [request setHTTPBody: data];
-  [request setHTTPMethod: @POST];
-
-  // sending the request
-  [NSURLConnection sendSynchronousRequest: request
-   returningResponse: response
-   error: error];
-
-  // analyzing the response
-  PASS(response != nil  [response statusCode] == 204,
-   NSURLConnection synchronous load returns a response);
-
-  data = [NSData dataWithContentsOfFile: @Capture.dat];
-  str = [[NSString alloc] initWithData: data
- encoding: NSUTF8StringEncoding];
-  r = [str rangeOfString: m];
-  PASS(r.location != NSNotFound,
-  NSURLConnection capture test OK);
-
-  // Wait for server termination
-  [t terminate];
-  [t waitUntilExit];
-  DESTROY(str);
-  response = nil;
-  error = nil;
-}  
-
-  // the same but with secure connection (HTTPS)
-  t = [NSTask launchedTaskWithLaunchPath: capture
-  arguments: [NSArray arrayWithObjects:
-@-Secure, @YES,
-nil]];
-  if (t != nil)
-{
-  // Pause to allow server subtask to set up.
-  [NSThread sleepUntilDate: [NSDate dateWithTimeIntervalSinceNow: 0.5]];
-  // remove the captured data from a possible previous run
-  [fm removeItemAtPath: file error: NULL];
-  // making a POST request
-  url = [NSURL URLWithString: @https://localhost:54321/;];
-  request = [NSMutableURLRequest requestWithURL: url];
-  data = [m dataUsingEncoding: NSUTF8StringEncoding];
-  [request setHTTPBody: data];
-  [request setHTTPMethod: @POST];
-
-  // sending the request
-  [NSURLConnection sendSynchronousRequest: request
-   returningResponse: response
-   error: error];
-
-  // sending the request
-  PASS(response != nil  [response statusCode] == 204,
-   NSURLConnection synchronous load returns a response);
-
-  data = [NSData dataWithContentsOfFile: @Capture.dat];
-  str = [[NSString alloc] initWithData: data
- encoding: NSUTF8StringEncoding];  
-  r = [str rangeOfString: m];
-  PASS(r.location != NSNotFound,
-  NSURLConnection capture test OK);
-
-  // Wait for server termination
-  [t terminate];
-  [t waitUntilExit];
-  DESTROY(str);
-}  
-
-  [arp release]; arp = nil;
-#endif
-  return 0;
-}
-#import Foundation/Foundation.h
-#import Testing.h
-#import 

[Gnustep-cvs] r38191 - in /apps/projectcenter/trunk/English.lproj/Info.gorm: data.info objects.gorm

2014-11-20 Thread multix79
Author: rmottola
Date: Thu Nov 20 12:45:57 2014
New Revision: 38191

URL: http://svn.gna.org/viewcvs/gnustep?rev=38191view=rev
Log:
slightly revamp InfoPanel, remove maintainer, make larger, show all names

Modified:
apps/projectcenter/trunk/English.lproj/Info.gorm/data.info
apps/projectcenter/trunk/English.lproj/Info.gorm/objects.gorm

Modified: apps/projectcenter/trunk/English.lproj/Info.gorm/data.info
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/English.lproj/Info.gorm/data.info?rev=38191r1=38190r2=38191view=diff
==
Binary files - no diff available.

Modified: apps/projectcenter/trunk/English.lproj/Info.gorm/objects.gorm
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/English.lproj/Info.gorm/objects.gorm?rev=38191r1=38190r2=38191view=diff
==
Binary files - no diff available.


___
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs


[Gnustep-cvs] r38192 - /libs/simplewebkit/trunk/SimpleWebKit.xcodeproj/project.pbxproj

2014-11-20 Thread multix79
Author: rmottola
Date: Thu Nov 20 20:30:50 2014
New Revision: 38192

URL: http://svn.gna.org/viewcvs/gnustep?rev=38192view=rev
Log:
remove special quantumstep crosscompiles

Modified:
libs/simplewebkit/trunk/SimpleWebKit.xcodeproj/project.pbxproj

[This mail would be too long, it was shortened to contain the URLs only.]

Modified: libs/simplewebkit/trunk/SimpleWebKit.xcodeproj/project.pbxproj
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/simplewebkit/trunk/SimpleWebKit.xcodeproj/project.pbxproj?rev=38192r1=38191r2=38192view=diff


___
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs


[Gnustep-cvs] r38193 - in /libs/simplewebkit/trunk: ChangeLog Sources/WebHTMLDocumentView.m

2014-11-20 Thread multix79
Author: rmottola
Date: Thu Nov 20 20:45:02 2014
New Revision: 38193

URL: http://svn.gna.org/viewcvs/gnustep?rev=38193view=rev
Log:
By Fred: Enable underlining and strikethrough for GNUstep, provide better 
fallback for old MacOS.

Modified:
libs/simplewebkit/trunk/ChangeLog
libs/simplewebkit/trunk/Sources/WebHTMLDocumentView.m

Modified: libs/simplewebkit/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/simplewebkit/trunk/ChangeLog?rev=38193r1=38192r2=38193view=diff
==
--- libs/simplewebkit/trunk/ChangeLog   (original)
+++ libs/simplewebkit/trunk/ChangeLog   Thu Nov 20 20:45:02 2014
@@ -1,3 +1,8 @@
+2014-11-04 Riccardo Mottola r...@gnu.org
+
+   * Sources/WebHTMLDocumentView.m
+   By Fred: Enable underlining and strikethrough for GNUstep, provide 
better fallback for old MacOS.
+
 2014-11-04 Riccardo Mottola r...@gnu.org
 
* Sources/DOMCSS.m

Modified: libs/simplewebkit/trunk/Sources/WebHTMLDocumentView.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/simplewebkit/trunk/Sources/WebHTMLDocumentView.m?rev=38193r1=38192r2=38193view=diff
==
--- libs/simplewebkit/trunk/Sources/WebHTMLDocumentView.m   (original)
+++ libs/simplewebkit/trunk/Sources/WebHTMLDocumentView.m   Thu Nov 20 
20:45:02 2014
@@ -1,7 +1,7 @@
 /* simplewebkit
WebHTMLDocumentView.m
 
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007-2014 Free Software Foundation, Inc.
 
Author: Dr. H. Nikolaus Schaller
 
@@ -653,7 +653,7 @@
 #if 0
NSLog(@setLinkColor: %@, color);
 #endif
-#if defined(__mySTEP__) || MAC_OS_X_VERSION_10_3  MAC_OS_X_VERSION_MAX_ALLOWED
+#if defined(__mySTEP__) || defined(GNUSTEP) || MAC_OS_X_VERSION_10_3  
MAC_OS_X_VERSION_MAX_ALLOWED
if(color)
[self setLinkTextAttributes:[NSDictionary 
dictionaryWithObjectsAndKeys:color, NSUnderlineColorAttributeName,
[NSNumber numberWithInt:NSUnderlineStyleSingle], 
NSUnderlineStyleAttributeName,
@@ -1520,9 +1520,9 @@
{
if([deco 
isEqualToString:@underline])
{ // make underlined
-#if defined(__mySTEP__) || MAC_OS_X_VERSION_10_2  MAC_OS_X_VERSION_MAX_ALLOWED
+#if defined(__mySTEP__) || defined(GNUSTEP)|| MAC_OS_X_VERSION_10_2  
MAC_OS_X_VERSION_MAX_ALLOWED
[attributes 
setObject:[NSNumber numberWithInt:NSUnderlineStyleSingle] 
forKey:NSUnderlineStyleAttributeName];
-#else  // MacOS X  10.3 and GNUstep
+#else  // MacOS X  10.3 
[attributes 
setObject:[NSNumber numberWithInt:NSSingleUnderlineStyle] 
forKey:NSUnderlineStyleAttributeName];
 #endif 
}
@@ -1530,10 +1530,10 @@
;   // FIXME: not 
available as NSAttributedString attribute
else if([deco 
isEqualToString:@line-through])
{ // make strike-through
-#if defined(__mySTEP__) || MAC_OS_X_VERSION_10_2  MAC_OS_X_VERSION_MAX_ALLOWED
+#if defined(__mySTEP__) || defined(GNUSTEP)|| MAC_OS_X_VERSION_10_2  
MAC_OS_X_VERSION_MAX_ALLOWED
[attributes 
setObject:[NSNumber numberWithInt:NSUnderlineStyleSingle] 
forKey:NSStrikethroughStyleAttributeName];
-#else  // MacOS X  10.3 and GNUstep
-   // [attributes 
setObject:[NSNumber numberWithInt:NSSingleUnderlineStyle] 
forKey:NSStrikethroughStyleAttributeName];
+#else  // MacOS X  10.3 
+   [attributes 
setObject:[NSNumber numberWithInt:NSUnderlineStrikethroughMask] 
forKey:NSUnderlineStyleAttributeName];
 #endif
}
// other values are simply 
ignored


___
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs