Re: [PATCH] cleanup of the sctp state table code

2006-11-13 Thread Sridhar Samudrala
On Mon, 2006-11-13 at 16:18 -0800, David Miller wrote: > From: Peter Zijlstra <[EMAIL PROTECTED]> > Date: Mon, 13 Nov 2006 14:38:05 +0100 > > > I noticed an insane high density of repeated characters fixable by a > > simple regular expression: > > > > % s/{.fn = \([^,]*\),[[:space:]]\+\(\\\n[[:

Re: [PATCH] cleanup of the sctp state table code

2006-11-13 Thread David Miller
From: Peter Zijlstra <[EMAIL PROTECTED]> Date: Mon, 13 Nov 2006 14:38:05 +0100 > I noticed an insane high density of repeated characters fixable by a > simple regular expression: > > % s/{.fn = \([^,]*\),[[:space:]]\+\(\\\n[[:space:]]\+\)\?.name = > "\1"}/TYPE_SCTP_FUNC(\1)/g > > (NOTE: the .

[PATCH] cleanup of the sctp state table code

2006-11-13 Thread Peter Zijlstra
I noticed an insane high density of repeated characters fixable by a simple regular expression: % s/{.fn = \([^,]*\),[[:space:]]\+\(\\\n[[:space:]]\+\)\?.name = "\1"}/TYPE_SCTP_FUNC(\1)/g (NOTE: the .name for .fn = sctp_sf_do_9_2_start_shutdown didn't match) Signed-off-by: Peter Zijlstra <[EM