[Gnustep-cvs] gnustep/core/gui ChangeLog Source/NSSliderCell.m

2006-01-04 Thread Fred Kiefer
CVSROOT:/cvsroot/gnustep
Module name:gnustep
Branch: 
Changes by: Fred Kiefer [EMAIL PROTECTED] 06/01/04 12:41:05

Modified files:
core/gui   : ChangeLog 
core/gui/Source: NSSliderCell.m 

Log message:
Protect against knob image being nil.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnustep/gnustep/core/gui/ChangeLog.diff?tr1=1.2641tr2=1.2642r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/gnustep/gnustep/core/gui/Source/NSSliderCell.m.diff?tr1=1.35tr2=1.36r1=textr2=text




[Gnustep-cvs] gnustep/usr-apps/gworkspace/Operation FileOpInf...

2006-01-04 Thread Enrico Sersale
CVSROOT:/cvsroot/gnustep
Module name:gnustep
Branch: 
Changes by: Enrico Sersale [EMAIL PROTECTED]  06/01/04 17:43:41

Modified files:
usr-apps/gworkspace/Operation: FileOpInfo.h FileOpInfo.m 
   Functions.h Functions.m 
   Operation.m 
Removed files:
usr-apps/gworkspace/Operation: main.m 

Log message:


CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnustep/gnustep/usr-apps/gworkspace/Operation/FileOpInfo.h.diff?tr1=1.6tr2=1.7r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/gnustep/gnustep/usr-apps/gworkspace/Operation/FileOpInfo.m.diff?tr1=1.15tr2=1.16r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/gnustep/gnustep/usr-apps/gworkspace/Operation/Functions.h.diff?tr1=1.2tr2=1.3r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/gnustep/gnustep/usr-apps/gworkspace/Operation/Functions.m.diff?tr1=1.3tr2=1.4r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/gnustep/gnustep/usr-apps/gworkspace/Operation/Operation.m.diff?tr1=1.11tr2=1.12r1=textr2=text




[Gnustep-cvs] gnustep/core/base Source/NSProcessInfo.m ChangeLog

2006-01-04 Thread David Ayers
CVSROOT:/cvsroot/gnustep
Module name:gnustep
Branch: 
Changes by: David Ayers [EMAIL PROTECTED] 06/01/04 20:53:21

Modified files:
core/base/Source: NSProcessInfo.m 
core/base  : ChangeLog 

Log message:
Bug #15353
* Source/NSProcessInfo.m (fallbackInitialisation): Move
initialization to avoid compiler error.  Reported by
Stefan van den Oord.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnustep/gnustep/core/base/Source/NSProcessInfo.m.diff?tr1=1.116tr2=1.117r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/gnustep/gnustep/core/base/ChangeLog.diff?tr1=1.2689tr2=1.2690r1=textr2=text




Re: What is the status of NSPropertyListBinaryFormat_v1_0?

2006-01-04 Thread Derek Zhou
Here is a simple patch, which should be obvious by itself. Diff'ed
against base-1.11.1. Please apply.

Derek

Index: gnustep-base-1.11.1/Source/NSPropertyList.m
===
--- gnustep-base-1.11.1.orig/Source/NSPropertyList.m2006-01-04 
14:05:46.0 -0800
+++ gnustep-base-1.11.1/Source/NSPropertyList.m 2006-01-04 14:14:18.0 
-0800
@@ -3270,7 +3270,7 @@
 {
   unsigned char code;
 
-  if (count = 256)
+  if (count  256)
 {
   unsigned char c;
 
@@ -3279,16 +3279,23 @@
   c = count;
   [dest appendBytes: c length: 1];  
 }
-  else
+  else if (count  256 * 256)
 {
   unsigned short c;
 
   code = 0x11;
   [dest appendBytes: code length: 1];
   c = count;
-  NSSwapHostShortToBig(c);
+  c = NSSwapHostShortToBig(c);
   [dest appendBytes: c length: 2];
 }
+  else
+{
+  code = 0x13;
+  [dest appendBytes: code length: 1];
+  count = NSSwapHostIntToBig(count);
+  [dest appendBytes: code length: 4];
+}
 }
 
 - (void) storeData: (NSData*) data



___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: What is the status of NSPropertyListBinaryFormat_v1_0?

2006-01-04 Thread Derek Zhou
Sorry, there is a typo in previous patch. Should have tested it before
sending. Resend here. 

Derek

Index: gnustep-base-1.11.1/Source/NSPropertyList.m
===
--- gnustep-base-1.11.1.orig/Source/NSPropertyList.m2006-01-04 
14:05:46.0 -0800
+++ gnustep-base-1.11.1/Source/NSPropertyList.m 2006-01-04 14:50:22.0 
-0800
@@ -3270,7 +3270,7 @@
 {
   unsigned char code;
 
-  if (count = 256)
+  if (count  256)
 {
   unsigned char c;
 
@@ -3279,16 +3279,23 @@
   c = count;
   [dest appendBytes: c length: 1];  
 }
-  else
+  else if (count  256 * 256)
 {
   unsigned short c;
 
   code = 0x11;
   [dest appendBytes: code length: 1];
   c = count;
-  NSSwapHostShortToBig(c);
+  c = NSSwapHostShortToBig(c);
   [dest appendBytes: c length: 2];
 }
+  else
+{
+  code = 0x13;
+  [dest appendBytes: code length: 1];
+  count = NSSwapHostIntToBig(count);
+  [dest appendBytes: count length: 4];
+}
 }
 
 - (void) storeData: (NSData*) data




___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev