Re: [Cleanup] Int vs Long #3

From: nobu.nokada@...
Date: 2002-08-23 10:41:22 UTC
List: ruby-core #350
Hi,

At Fri, 23 Aug 2002 18:12:57 +0900,
Michal Rokos wrote:
> > # I'd like you to use -p option.
> >
> 	Sorry, I don't know what do you mean by this.

$ diff --help | grep -we -p
    -p  --show-c-function  Show which C function each change is in.

For example:

$ cvs diff -u2p -r1.147 -r1.148 -kk io.c
Index: io.c
===================================================================
RCS file: /cvs/ruby/src/ruby/io.c,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -2 -p -r1.147 -r1.148
--- io.c	21 Aug 2002 08:30:05 -0000	1.147
+++ io.c	21 Aug 2002 15:47:54 -0000	1.148
@@ -673,5 +673,5 @@ io_read(argc, argv, io)
 {
     OpenFile *fptr;
-    int n, len;
+    long n, len;
     VALUE length, str;

This enables reviewing small changes without applying the patch.

-- 
Nobu Nakada

In This Thread