Skip to content

Commit ea210dc

Browse files
committed
Comment out code that makes no sense, and Purify complains about.
1 parent 8015ba0 commit ea210dc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/backend/parser/parser.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.19 1997/07/24 20:13:21 momjian Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.20 1997/08/03 02:28:10 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -172,7 +172,10 @@ define_sets(Node *clause)
172172
}
173173
#endif
174174

175+
/* not used
175176
#define PSIZE(PTR) (*((int32 *)(PTR) - 1))
177+
*/
178+
176179
Node *
177180
parser_typecast(Value *expr, TypeName *typename, int typlen)
178181
{
@@ -254,12 +257,14 @@ parser_typecast(Value *expr, TypeName *typename, int typlen)
254257
cp = instr2 (tp, const_string, typlen);
255258

256259
if (!tbyvalue(tp)) {
260+
/*
257261
if (len >= 0 && len != PSIZE(cp)) {
258262
char *pp;
259263
pp = (char *) palloc(len);
260264
memmove(pp, cp, len);
261265
cp = pp;
262266
}
267+
*/
263268
lcp = PointerGetDatum(cp);
264269
} else {
265270
switch(len) {
@@ -374,12 +379,14 @@ parser_typecast2(Node *expr, Oid exprType, Type tp, int typlen)
374379

375380

376381
if (!tbyvalue(tp)) {
382+
/*
377383
if (len >= 0 && len != PSIZE(cp)) {
378384
char *pp;
379385
pp = (char *) palloc(len);
380386
memmove(pp, cp, len);
381387
cp = pp;
382388
}
389+
*/
383390
lcp = PointerGetDatum(cp);
384391
} else {
385392
switch(len) {

0 commit comments

Comments
 (0)