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
13553cbb
Commit
13553cbb
authored
Sep 11, 2007
by
Teodor Sigaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix header's size of structs defines in ispell.
Backpatch is needed for contrib version.
parent
64def095
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/backend/tsearch/spell.c
src/backend/tsearch/spell.c
+2
-2
src/include/tsearch/dicts/spell.h
src/include/tsearch/dicts/spell.h
+3
-3
No files found.
src/backend/tsearch/spell.c
View file @
13553cbb
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/tsearch/spell.c,v 1.
4 2007/09/10 20:27:12
teodor Exp $
* $PostgreSQL: pgsql/src/backend/tsearch/spell.c,v 1.
5 2007/09/11 12:57:05
teodor Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -896,7 +896,7 @@ mkSPNode(IspellDict * Conf, int low, int high, int level)
...
@@ -896,7 +896,7 @@ mkSPNode(IspellDict * Conf, int low, int high, int level)
if
(
!
nchar
)
if
(
!
nchar
)
return
NULL
;
return
NULL
;
rs
=
(
SPNode
*
)
palloc0
(
SPNH
RD
SZ
+
nchar
*
sizeof
(
SPNodeData
));
rs
=
(
SPNode
*
)
palloc0
(
SPNH
DR
SZ
+
nchar
*
sizeof
(
SPNodeData
));
rs
->
length
=
nchar
;
rs
->
length
=
nchar
;
data
=
rs
->
data
;
data
=
rs
->
data
;
...
...
src/include/tsearch/dicts/spell.h
View file @
13553cbb
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
*
*
* $PostgreSQL: pgsql/src/include/tsearch/dicts/spell.h,v 1.
2 2007/08/25 00:03:59 tgl
Exp $
* $PostgreSQL: pgsql/src/include/tsearch/dicts/spell.h,v 1.
3 2007/09/11 12:57:05 teodor
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -52,7 +52,7 @@ typedef struct SPNode
...
@@ -52,7 +52,7 @@ typedef struct SPNode
SPNodeData
data
[
1
];
SPNodeData
data
[
1
];
}
SPNode
;
}
SPNode
;
#define SPNH
RDSZ (sizeof(uint32
))
#define SPNH
DRSZ (offsetof(SPNode,data
))
typedef
struct
spell_struct
typedef
struct
spell_struct
...
@@ -123,7 +123,7 @@ typedef struct AffixNode
...
@@ -123,7 +123,7 @@ typedef struct AffixNode
AffixNodeData
data
[
1
];
AffixNodeData
data
[
1
];
}
AffixNode
;
}
AffixNode
;
#define ANHRDSZ (
sizeof(uint32
))
#define ANHRDSZ (
offsetof(AffixNode, data
))
typedef
struct
typedef
struct
{
{
...
...
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