contrib/fuzzystrmatch

Started by Joe Conwayover 24 years ago2 messagespatches
Jump to latest
#1Joe Conway
mail@joeconway.com

Here's a trivial patch for fuzzystrmatch.c (broken due to macro cleanup).

-- Joe

--- fuzzystrmatch.c.orig	Sun Oct 28 22:45:46 2001
+++ fuzzystrmatch.c	Sun Oct 28 22:42:54 2001
@@ -341,7 +341,7 @@
  		/* On the off chance we were given nothing but crap... */
  		if (Curr_Letter == '\0')
  		{
- 
		End_Phoned_Word
+ 
		End_Phoned_Word;

return META_SUCCESS; /* For testing */
}
}

#2Bruce Momjian
bruce@momjian.us
In reply to: Joe Conway (#1)
Re: contrib/fuzzystrmatch

OK, I see your patch but it appears to just move a blank line to below
the macro and it shows two calls to End_Phoned_Word while I see only one
in the file. I am sure this was some kind of cut/paste wrapping
problem in the email.

I applied the following patch which does what I think you intended,
which is to add a trailing semicolon. This is very common because
incorrectly structured macro allowed the old syntax while the correct
macro does not.

Thanks.

---------------------------------------------------------------------------

Here's a trivial patch for fuzzystrmatch.c (broken due to macro cleanup).

-- Joe

--- fuzzystrmatch.c.orig	Sun Oct 28 22:45:46 2001
+++ fuzzystrmatch.c	Sun Oct 28 22:42:54 2001
@@ -341,7 +341,7 @@
/* On the off chance we were given nothing but crap... */
if (Curr_Letter == '\0')
{
- 		End_Phoned_Word
+ 		End_Phoned_Word;

return META_SUCCESS; /* For testing */
}
}

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Attachments:

/bjm/difftext/plainDownload+4-4