summaryrefslogtreecommitdiff
path: root/src/backend/access/attnum.h
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-08-27 21:49:14 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-08-27 21:49:14 +0000
commit9247b29228c05e1e368c14d339fcbabeb27b426b (patch)
tree9ab68b8bb9118aa21b47c5398c7df2571d41506c /src/backend/access/attnum.h
parente1f31a2bb67d5b70f12951562da3fa33b141cafe (diff)
The use of include files is a mess...alot of redundancy, it seems...
First Step: Centralize them under on src/include hierarchy
Diffstat (limited to 'src/backend/access/attnum.h')
-rw-r--r--src/backend/access/attnum.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/backend/access/attnum.h b/src/backend/access/attnum.h
deleted file mode 100644
index 7c999e58e9d..00000000000
--- a/src/backend/access/attnum.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * attnum.h--
- * POSTGRES attribute number definitions.
- *
- *
- * Copyright (c) 1994, Regents of the University of California
- *
- * $Id: attnum.h,v 1.1.1.1 1996/07/09 06:21:08 scrappy Exp $
- *
- *-------------------------------------------------------------------------
- */
-#ifndef ATTNUM_H
-#define ATTNUM_H
-
-#include "c.h"
-
-/*
- * user defined attribute numbers start at 1. -ay 2/95
- */
-typedef int16 AttrNumber;
-
-#define InvalidAttrNumber 0
-
-/* ----------------
- * support macros
- * ----------------
- */
-/*
- * AttributeNumberIsValid --
- * True iff the attribute number is valid.
- */
-#define AttributeNumberIsValid(attributeNumber) \
- ((bool) ((attributeNumber) != InvalidAttrNumber))
-
-/*
- * AttrNumberIsForUserDefinedAttr --
- * True iff the attribute number corresponds to an user defined attribute.
- */
-#define AttrNumberIsForUserDefinedAttr(attributeNumber) \
- ((bool) ((attributeNumber) > 0))
-
-/*
- * AttrNumberGetAttrOffset --
- * Returns the attribute offset for an attribute number.
- *
- * Note:
- * Assumes the attribute number is for an user defined attribute.
- */
-#define AttrNumberGetAttrOffset(attNum) \
- (AssertMacro(AttrNumberIsForUserDefinedAttr(attNum)) ? \
- ((attNum - 1)) : 0)
-
-/*
- * AttributeOffsetGetAttributeNumber --
- * Returns the attribute number for an attribute offset.
- */
-#define AttrOffsetGetAttrNumber(attributeOffset) \
- ((AttrNumber) (1 + attributeOffset))
-
-#endif /* ATTNUM_H */