diff options
author | Bruce Momjian | 2001-10-25 01:29:37 +0000 |
---|---|---|
committer | Bruce Momjian | 2001-10-25 01:29:37 +0000 |
commit | fde8edaf53806777e606e04187d60d5b3f26d886 (patch) | |
tree | a9d2702cbf8a0748931c81c27aa48dda4293c973 /contrib/fuzzystrmatch/fuzzystrmatch.c | |
parent | b4a57b06486df001e9b4e4350c493e2c15e76380 (diff) |
Add do { ... } while (0) to more bad macros.
Diffstat (limited to 'contrib/fuzzystrmatch/fuzzystrmatch.c')
-rw-r--r-- | contrib/fuzzystrmatch/fuzzystrmatch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/fuzzystrmatch/fuzzystrmatch.c b/contrib/fuzzystrmatch/fuzzystrmatch.c index 4a2d3f932e7..d6ec0f5c30a 100644 --- a/contrib/fuzzystrmatch/fuzzystrmatch.c +++ b/contrib/fuzzystrmatch/fuzzystrmatch.c @@ -280,9 +280,9 @@ char Lookahead(char * word, int how_far) { /* phonize one letter */ -#define Phonize(c) {(*phoned_word)[p_idx++] = c;} +#define Phonize(c) do {(*phoned_word)[p_idx++] = c;} while (0) /* Slap a null character on the end of the phoned word */ -#define End_Phoned_Word {(*phoned_word)[p_idx] = '\0';} +#define End_Phoned_Word do {(*phoned_word)[p_idx] = '\0';} while (0) /* How long is the phoned word? */ #define Phone_Len (p_idx) |