From 658fca8d3abd2f8f1b04028ac2d0dd49b49896c5 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 24 Jul 2003 17:59:56 +0000 Subject: [PATCH] Fix a few portability issues, adjust error messages. --- contrib/tsearch2/snowball/api.c | 1 + contrib/tsearch2/snowball/english_stem.c | 1 - contrib/tsearch2/snowball/header.h | 6 ------ 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/contrib/tsearch2/snowball/api.c b/contrib/tsearch2/snowball/api.c index c9019ce973..27bf31a588 100644 --- a/contrib/tsearch2/snowball/api.c +++ b/contrib/tsearch2/snowball/api.c @@ -1,3 +1,4 @@ +#include #include "header.h" diff --git a/contrib/tsearch2/snowball/english_stem.c b/contrib/tsearch2/snowball/english_stem.c index 6715c7cea4..f6ceb5c576 100644 --- a/contrib/tsearch2/snowball/english_stem.c +++ b/contrib/tsearch2/snowball/english_stem.c @@ -373,7 +373,6 @@ static int r_prelude(struct SN_env * z) { z->c = c; break; } - lab1: z->c = c; } return 1; diff --git a/contrib/tsearch2/snowball/header.h b/contrib/tsearch2/snowball/header.h index aaec3ae5d1..6b63697202 100644 --- a/contrib/tsearch2/snowball/header.h +++ b/contrib/tsearch2/snowball/header.h @@ -1,11 +1,5 @@ - -#include - #include "api.h" -#define MAXINT INT_MAX -#define MININT INT_MIN - #define HEAD 2*sizeof(int) #define SIZE(p) ((int *)(p))[-1]