Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
b538215d
Commit
b538215d
authored
Jul 10, 2006
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove a few baby-C macros in fuzzystrmatch. Add a few missing includes.
parent
d399f1b7
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
9 deletions
+11
-9
contrib/btree_gist/btree_utils_num.h
contrib/btree_gist/btree_utils_num.h
+1
-0
contrib/btree_gist/btree_utils_var.h
contrib/btree_gist/btree_utils_var.h
+2
-0
contrib/dblink/dblink.h
contrib/dblink/dblink.h
+3
-1
contrib/fuzzystrmatch/fuzzystrmatch.c
contrib/fuzzystrmatch/fuzzystrmatch.c
+4
-4
contrib/fuzzystrmatch/fuzzystrmatch.h
contrib/fuzzystrmatch/fuzzystrmatch.h
+1
-4
No files found.
contrib/btree_gist/btree_utils_num.h
View file @
b538215d
#include "btree_gist.h"
typedef
char
GBT_NUMKEY
;
typedef
char
GBT_NUMKEY
;
...
...
contrib/btree_gist/btree_utils_var.h
View file @
b538215d
#include "mb/pg_wchar.h"
#include "mb/pg_wchar.h"
#include "btree_gist.h"
/* Variable length key */
/* Variable length key */
typedef
bytea
GBT_VARKEY
;
typedef
bytea
GBT_VARKEY
;
...
...
contrib/dblink/dblink.h
View file @
b538215d
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* Darko Prenosil <Darko.Prenosil@finteh.hr>
* Darko Prenosil <Darko.Prenosil@finteh.hr>
* Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
* Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
*
*
* $PostgreSQL: pgsql/contrib/dblink/dblink.h,v 1.1
5 2006/03/11 04:38:29
momjian Exp $
* $PostgreSQL: pgsql/contrib/dblink/dblink.h,v 1.1
6 2006/07/10 18:40:16
momjian Exp $
* Copyright (c) 2001-2006, PostgreSQL Global Development Group
* Copyright (c) 2001-2006, PostgreSQL Global Development Group
* ALL RIGHTS RESERVED;
* ALL RIGHTS RESERVED;
*
*
...
@@ -34,6 +34,8 @@
...
@@ -34,6 +34,8 @@
#ifndef DBLINK_H
#ifndef DBLINK_H
#define DBLINK_H
#define DBLINK_H
#include "fmgr.h"
/*
/*
* External declarations
* External declarations
*/
*/
...
...
contrib/fuzzystrmatch/fuzzystrmatch.c
View file @
b538215d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*
*
* Joe Conway <mail@joeconway.com>
* Joe Conway <mail@joeconway.com>
*
*
* $PostgreSQL: pgsql/contrib/fuzzystrmatch/fuzzystrmatch.c,v 1.2
1 2006/05/30 22:12:13 tgl
Exp $
* $PostgreSQL: pgsql/contrib/fuzzystrmatch/fuzzystrmatch.c,v 1.2
2 2006/07/10 18:40:16 momjian
Exp $
* Copyright (c) 2001-2006, PostgreSQL Global Development Group
* Copyright (c) 2001-2006, PostgreSQL Global Development Group
* ALL RIGHTS RESERVED;
* ALL RIGHTS RESERVED;
*
*
...
@@ -142,7 +142,7 @@ levenshtein(PG_FUNCTION_ARGS)
...
@@ -142,7 +142,7 @@ levenshtein(PG_FUNCTION_ARGS)
* position in the source string, matches the character at the
* position in the source string, matches the character at the
* current row position in the target string; cost is 1 otherwise.
* current row position in the target string; cost is 1 otherwise.
*/
*/
c
=
(
(
CHAREQ
(
str_s
,
str_t
))
?
0
:
1
);
c
=
(
*
str_s
!=
*
str_t
);
/*
/*
* c1 is upper right cell plus 1
* c1 is upper right cell plus 1
...
@@ -167,7 +167,7 @@ levenshtein(PG_FUNCTION_ARGS)
...
@@ -167,7 +167,7 @@ levenshtein(PG_FUNCTION_ARGS)
/*
/*
* Increment the pointer to str_s
* Increment the pointer to str_s
*/
*/
NextChar
(
str_s
)
;
str_s
++
;
}
}
/*
/*
...
@@ -181,7 +181,7 @@ levenshtein(PG_FUNCTION_ARGS)
...
@@ -181,7 +181,7 @@ levenshtein(PG_FUNCTION_ARGS)
/*
/*
* Increment the pointer to str_t
* Increment the pointer to str_t
*/
*/
NextChar
(
str_t
)
;
str_t
++
;
/*
/*
* Rewind the pointer to str_s
* Rewind the pointer to str_s
...
...
contrib/fuzzystrmatch/fuzzystrmatch.h
View file @
b538215d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*
*
* Joe Conway <mail@joeconway.com>
* Joe Conway <mail@joeconway.com>
*
*
* $PostgreSQL: pgsql/contrib/fuzzystrmatch/fuzzystrmatch.h,v 1.1
3 2006/03/11 04:38:29
momjian Exp $
* $PostgreSQL: pgsql/contrib/fuzzystrmatch/fuzzystrmatch.h,v 1.1
4 2006/07/10 18:40:16
momjian Exp $
* Copyright (c) 2001-2006, PostgreSQL Global Development Group
* Copyright (c) 2001-2006, PostgreSQL Global Development Group
* ALL RIGHTS RESERVED;
* ALL RIGHTS RESERVED;
*
*
...
@@ -81,9 +81,6 @@ static const char *soundex_table = "01230120022455012623010202";
...
@@ -81,9 +81,6 @@ static const char *soundex_table = "01230120022455012623010202";
/*
/*
* Levenshtein
* Levenshtein
*/
*/
#define STRLEN(p) strlen(p)
#define CHAREQ(p1, p2) (*(p1) == *(p2))
#define NextChar(p) ((p)++)
#define MAX_LEVENSHTEIN_STRLEN 255
#define MAX_LEVENSHTEIN_STRLEN 255
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment