mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Comment out code that makes no sense, and Purify complains about.
This commit is contained in:
		@@ -6,7 +6,7 @@
 | 
			
		||||
 *
 | 
			
		||||
 *
 | 
			
		||||
 * IDENTIFICATION
 | 
			
		||||
 *    $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.19 1997/07/24 20:13:21 momjian Exp $
 | 
			
		||||
 *    $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.20 1997/08/03 02:28:10 momjian Exp $
 | 
			
		||||
 *
 | 
			
		||||
 *-------------------------------------------------------------------------
 | 
			
		||||
 */
 | 
			
		||||
@@ -172,7 +172,10 @@ define_sets(Node *clause)
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/* not used
 | 
			
		||||
#define    PSIZE(PTR)      (*((int32 *)(PTR) - 1))
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
Node *
 | 
			
		||||
parser_typecast(Value *expr, TypeName *typename, int typlen)
 | 
			
		||||
{
 | 
			
		||||
@@ -254,12 +257,14 @@ parser_typecast(Value *expr, TypeName *typename, int typlen)
 | 
			
		||||
    cp = instr2 (tp, const_string, typlen);
 | 
			
		||||
    
 | 
			
		||||
    if (!tbyvalue(tp)) {
 | 
			
		||||
/*
 | 
			
		||||
	if (len >= 0 && len != PSIZE(cp)) {
 | 
			
		||||
	    char *pp;
 | 
			
		||||
	    pp = (char *) palloc(len);
 | 
			
		||||
	    memmove(pp, cp, len);
 | 
			
		||||
	    cp = pp;
 | 
			
		||||
	}
 | 
			
		||||
*/
 | 
			
		||||
	lcp = PointerGetDatum(cp);
 | 
			
		||||
    } else {
 | 
			
		||||
	switch(len) {
 | 
			
		||||
@@ -374,12 +379,14 @@ parser_typecast2(Node *expr, Oid exprType, Type tp, int typlen)
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    if (!tbyvalue(tp)) {
 | 
			
		||||
/*
 | 
			
		||||
	if (len >= 0 && len != PSIZE(cp)) {
 | 
			
		||||
	    char *pp;
 | 
			
		||||
	    pp = (char *) palloc(len);
 | 
			
		||||
	    memmove(pp, cp, len);
 | 
			
		||||
	    cp = pp;
 | 
			
		||||
	}
 | 
			
		||||
*/
 | 
			
		||||
	lcp = PointerGetDatum(cp);
 | 
			
		||||
    } else {
 | 
			
		||||
	switch(len) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user