gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gcc coughs at EasyDiff's DiffWindowController.m


From: Chris B . Vetter
Subject: gcc coughs at EasyDiff's DiffWindowController.m
Date: Tue, 11 Jun 2002 15:02:25 -0700

Hi,

I'm not sure if it's an oversight, nobody tried it yet, or whether newer
versions of gcc actually do compile it, but I get

DiffWindowController.m: In function `-[DiffWindowController
 _patchMutableString:]':
DiffWindowController.m:671: syntax error before `int'
DiffWindowController.m:679: `d' undeclared (first use in this function)

Here's a "patch" ...

:0> diff -u DiffWindowController.m.org DiffWindowController.m
--- DiffWindowController.m.org  Tue Jun 11 14:58:38 2002
+++ DiffWindowController.m      Tue Jun 11 15:00:13 2002
@@ -664,11 +664,9 @@
 
 
   {
-    NSMutableString *patchFileString;
-
-    patchFileString = (NSMutableString*)[NSMutableString string];
-
+    NSMutableString *patchFileString = (NSMutableString*)[NSMutableString 
string];
     int d = 0;
+    
     for ( i = 0; i < [finalArray count]; i++ )
       {
        p = [finalArray objectAtIndex: i];

-- 
Chris



reply via email to

[Prev in Thread] Current Thread [Next in Thread]