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
9c56b408
Commit
9c56b408
authored
May 26, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add fix for 0x7fU constants to pgindent
parent
eeadc5e8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
9 deletions
+32
-9
src/backend/utils/mb/big5.c
src/backend/utils/mb/big5.c
+5
-5
src/backend/utils/mb/conv.c
src/backend/utils/mb/conv.c
+2
-2
src/tools/pgindent/indent.bsd.patch
src/tools/pgindent/indent.bsd.patch
+25
-2
No files found.
src/backend/utils/mb/big5.c
View file @
9c56b408
...
...
@@ -7,7 +7,7 @@
*
* 1999/1/15 Tatsuo Ishii
*
* $Id: big5.c,v 1.
4 1999/05/25 22:42:19
momjian Exp $
* $Id: big5.c,v 1.
5 1999/05/26 15:19:54
momjian Exp $
*/
#include "mb/pg_wchar.h"
...
...
@@ -218,7 +218,7 @@ static unsigned short BinarySearchRange
{
if
(
0
==
array
[
mid
].
peer
)
return
0
;
if
(
code
>=
(
unsigned
)
0xa140
)
if
(
code
>=
0xa140U
)
{
/* big5 to cns */
tmp
=
((
code
&
0xff00
)
-
(
array
[
mid
].
code
&
0xff00
))
>>
8
;
...
...
@@ -292,7 +292,7 @@ BIG5toCNS(unsigned short big5, unsigned char *lc)
unsigned
short
cns
=
0
;
int
i
;
if
(
big5
<
(
unsigned
)
0xc940
)
if
(
big5
<
0xc940U
)
{
/* level 1 */
...
...
@@ -301,14 +301,14 @@ BIG5toCNS(unsigned short big5, unsigned char *lc)
if
(
b1c4
[
i
][
0
]
==
big5
)
{
*
lc
=
LC_CNS11643_4
;
return
(
b1c4
[
i
][
1
]
|
(
unsigned
)
0x8080
);
return
(
b1c4
[
i
][
1
]
|
0x8080U
);
}
}
if
(
0
<
(
cns
=
BinarySearchRange
(
big5Level1ToCnsPlane1
,
23
,
big5
)))
*
lc
=
LC_CNS11643_1
;
}
else
if
(
big5
==
(
unsigned
)
0xc94a
)
else
if
(
big5
==
0xc94aU
)
{
/* level 2 */
*
lc
=
LC_CNS11643_1
;
...
...
src/backend/utils/mb/conv.c
View file @
9c56b408
...
...
@@ -2,7 +2,7 @@
* conversion between client encoding and server internal encoding
* (currently mule internal code (mic) is used)
* Tatsuo Ishii
* $Id: conv.c,v 1.1
0 1999/05/25 22:42:20
momjian Exp $
* $Id: conv.c,v 1.1
1 1999/05/26 15:19:55
momjian Exp $
*/
#include <stdio.h>
#include <string.h>
...
...
@@ -384,7 +384,7 @@ big52mic(unsigned char *big5, unsigned char *p, int len)
while
(
len
>
0
&&
(
c1
=
*
big5
++
))
{
if
(
c1
<=
(
unsigned
)
0x7f
)
if
(
c1
<=
0x7fU
)
{
/* ASCII */
len
--
;
*
p
++
=
c1
;
...
...
src/tools/pgindent/indent.bsd.patch
View file @
9c56b408
This increases the number of typedef's understood by BSD indent from 100
to 1000.
to 1000. The second patch allows it to understand 0x7fU constants.
---------------------------------------------------------------------------
*** ./lexi.c.orig Mon Sep 8 17:55:47 1997
--- ./lexi.c Mon Sep 8 17:02:10 1997
...
...
@@ -17,7 +19,28 @@ to 1000.
int rwcode;
};
! struct templ specials[
1000
] =
! struct templ specials[
4096
] =
{
"switch", 1,
"case", 2,
*** ./lexi.c.orig Wed May 26 10:50:54 1999
--- ./lexi.c Wed May 26 10:51:08 1999
***************
*** 186,192 ****
*e_token++ = *buf_ptr++;
}
}
! if (*buf_ptr == 'L' || *buf_ptr == 'l')
*e_token++ = *buf_ptr++;
}
else
--- 186,193 ----
*e_token++ = *buf_ptr++;
}
}
! if (*buf_ptr == 'L' || *buf_ptr == 'U' ||
! *buf_ptr == 'l' || *buf_ptr == 'u')
*e_token++ = *buf_ptr++;
}
else
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