From 39b7ec330923b5a2746720101fbd83c1dd418aea Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 9 Feb 2003 06:56:28 +0000 Subject: Create a distinction between Lists of integers and Lists of OIDs, to get rid of the assumption that sizeof(Oid)==sizeof(int). This is one small step towards someday supporting 8-byte OIDs. For the moment, it doesn't do much except get rid of a lot of unsightly casts. --- src/include/parser/parsetree.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/include/parser') diff --git a/src/include/parser/parsetree.h b/src/include/parser/parsetree.h index 170f6289813..49aa7228382 100644 --- a/src/include/parser/parsetree.h +++ b/src/include/parser/parsetree.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parsetree.h,v 1.19 2002/09/04 20:31:45 momjian Exp $ + * $Id: parsetree.h,v 1.20 2003/02/09 06:56:28 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -26,16 +26,12 @@ /* * rt_fetch - * rt_store * - * Access and (destructively) replace rangetable entries. + * NB: this will crash and burn if handed an out-of-range RT index */ #define rt_fetch(rangetable_index, rangetable) \ ((RangeTblEntry *) nth((rangetable_index)-1, rangetable)) -#define rt_store(rangetable_index, rangetable, rt) \ - set_nth(rangetable, (rangetable_index)-1, rt) - /* * getrelid * -- cgit v1.2.3