summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-01-21 02:46:11 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-01-21 02:46:11 +0000
commit716e8b8374d7acd8831767918258727ecb099428 (patch)
tree583ec41d15bf8bbf4b573bdc5d3a221061d34825 /src/include
parentf7108ce06bb526ba336c194956b4ed924b317b7a (diff)
Fix RS_isRegis() to agree exactly with RS_compile()'s idea of what's a valid
regis. Correct the latter's oversight that a bracket-expression needs to be terminated. Reduce the ereports to elogs, since they are now not expected to ever be hit (thus addressing Alvaro's original complaint). In passing, const-ify the string argument to RS_compile.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/tsearch/dicts/regis.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/tsearch/dicts/regis.h b/src/include/tsearch/dicts/regis.h
index b97ec25471b..5c3c1794b84 100644
--- a/src/include/tsearch/dicts/regis.h
+++ b/src/include/tsearch/dicts/regis.h
@@ -6,7 +6,7 @@
*
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/include/tsearch/dicts/regis.h,v 1.4 2008/01/01 19:45:59 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/tsearch/dicts/regis.h,v 1.5 2008/01/21 02:46:11 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -40,7 +40,7 @@ typedef struct Regis
bool RS_isRegis(const char *str);
-void RS_compile(Regis *r, bool issuffix, char *str);
+void RS_compile(Regis *r, bool issuffix, const char *str);
void RS_free(Regis *r);
/*returns true if matches */