summaryrefslogtreecommitdiff
path: root/src/include/c.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/c.h')
-rw-r--r--src/include/c.h116
1 files changed, 58 insertions, 58 deletions
diff --git a/src/include/c.h b/src/include/c.h
index fbf4a613e0..9c7d823ea8 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -1,13 +1,13 @@
/*-------------------------------------------------------------------------
*
- * c.h--
+ * c.h
* Fundamental C definitions. This is included by every .c file in
* postgres.
*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: c.h,v 1.50 1999/02/11 01:36:55 tgl Exp $
+ * $Id: c.h,v 1.51 1999/02/13 23:20:44 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -62,7 +62,7 @@
* ----------------------------------------------------------------
*/
/*
- * bool --
+ * bool
* Boolean value, either true or false.
*
*/
@@ -95,7 +95,7 @@ typedef bool *BoolPtr;
#ifdef __STDC__ /* ANSI C */
/*
- * Pointer --
+ * Pointer
* Variable holding address of any memory resident object.
*/
@@ -107,7 +107,7 @@ typedef char *Pointer;
#ifndef NULL
/*
- * NULL --
+ * NULL
* Null pointer.
*/
#define NULL ((void *) 0)
@@ -122,21 +122,21 @@ typedef char *Pointer;
#else /* !defined(__STDC__) *//* NOT ANSI C */
/*
- * Pointer --
+ * Pointer
* Variable containing address of any memory resident object.
*/
typedef char *Pointer;
#ifndef NULL
/*
- * NULL --
+ * NULL
* Null pointer.
*/
#define NULL 0
#endif /* !defined(NULL) */
/*
- * const --
+ * const
* Type modifier. Identifies read only variables.
*
* Example:
@@ -147,13 +147,13 @@ typedef char *Pointer;
#endif
/*
- * signed --
+ * signed
* Type modifier. Identifies signed integral types.
*/
#define signed /* signed */
/*
- * volatile --
+ * volatile
* Type modifier. Identifies variables which may change in ways not
* noticeable by the compiler, e.g. via asynchronous interrupts.
*
@@ -165,9 +165,9 @@ typedef char *Pointer;
#endif /* !defined(__STDC__) */ /* NOT ANSI C */
/*
- * CppAsString --
+ * CppAsString
* Convert the argument to a string, using the C preprocessor.
- * CppConcat --
+ * CppConcat
* Concatenate two arguments together, using the C preprocessor.
*/
#if defined(HAVE_ANSI_CPP)
@@ -224,7 +224,7 @@ typedef char *Pointer;
*/
/*
- * intN --
+ * intN
* Signed integer, EXACTLY N BITS IN SIZE,
* used for numerical computations and the
* frontend/backend protocol.
@@ -234,7 +234,7 @@ typedef signed short int16; /* == 16 bits */
typedef signed int int32; /* == 32 bits */
/*
- * uintN --
+ * uintN
* Unsigned integer, EXACTLY N BITS IN SIZE,
* used for numerical computations and the
* frontend/backend protocol.
@@ -244,7 +244,7 @@ typedef unsigned short uint16; /* == 16 bits */
typedef unsigned int uint32; /* == 32 bits */
/*
- * floatN --
+ * floatN
* Floating point number, AT LEAST N BITS IN SIZE,
* used for numerical computations.
*
@@ -257,7 +257,7 @@ typedef float *float32;
typedef double *float64;
/*
- * boolN --
+ * boolN
* Boolean value, AT LEAST N BITS IN SIZE.
*/
typedef uint8 bool8; /* >= 8 bits */
@@ -265,7 +265,7 @@ typedef uint16 bool16; /* >= 16 bits */
typedef uint32 bool32; /* >= 32 bits */
/*
- * bitsN --
+ * bitsN
* Unit of bitwise operation, AT LEAST N BITS IN SIZE.
*/
typedef uint8 bits8; /* >= 8 bits */
@@ -273,7 +273,7 @@ typedef uint16 bits16; /* >= 16 bits */
typedef uint32 bits32; /* >= 32 bits */
/*
- * wordN --
+ * wordN
* Unit of storage, AT LEAST N BITS IN SIZE,
* used to fetch/store data.
*/
@@ -282,13 +282,13 @@ typedef uint16 word16; /* >= 16 bits */
typedef uint32 word32; /* >= 32 bits */
/*
- * Size --
+ * Size
* Size of any memory resident object, as returned by sizeof.
*/
typedef size_t Size;
/*
- * Index --
+ * Index
* Index into any memory resident array.
*
* Note:
@@ -303,7 +303,7 @@ typedef struct
} IntArray;
/*
- * Offset --
+ * Offset
* Offset into any memory resident array.
*
* Note:
@@ -317,7 +317,7 @@ typedef signed int Offset;
* ----------------------------------------------------------------
*/
/*
- * datum.h --
+ * datum.h
* POSTGRES abstract data type datum representation definitions.
*
* Note:
@@ -352,133 +352,133 @@ typedef Datum *DatumPtr;
#define SET_4_BYTES(value) (((Datum) (value)) & 0xffffffff)
/*
- * DatumGetChar --
+ * DatumGetChar
* Returns character value of a datum.
*/
#define DatumGetChar(X) ((char) GET_1_BYTE(X))
/*
- * CharGetDatum --
+ * CharGetDatum
* Returns datum representation for a character.
*/
#define CharGetDatum(X) ((Datum) SET_1_BYTE(X))
/*
- * Int8GetDatum --
+ * Int8GetDatum
* Returns datum representation for an 8-bit integer.
*/
#define Int8GetDatum(X) ((Datum) SET_1_BYTE(X))
/*
- * DatumGetUInt8 --
+ * DatumGetUInt8
* Returns 8-bit unsigned integer value of a datum.
*/
#define DatumGetUInt8(X) ((uint8) GET_1_BYTE(X))
/*
- * UInt8GetDatum --
+ * UInt8GetDatum
* Returns datum representation for an 8-bit unsigned integer.
*/
#define UInt8GetDatum(X) ((Datum) SET_1_BYTE(X))
/*
- * DatumGetInt16 --
+ * DatumGetInt16
* Returns 16-bit integer value of a datum.
*/
#define DatumGetInt16(X) ((int16) GET_2_BYTES(X))
/*
- * Int16GetDatum --
+ * Int16GetDatum
* Returns datum representation for a 16-bit integer.
*/
#define Int16GetDatum(X) ((Datum) SET_2_BYTES(X))
/*
- * DatumGetUInt16 --
+ * DatumGetUInt16
* Returns 16-bit unsigned integer value of a datum.
*/
#define DatumGetUInt16(X) ((uint16) GET_2_BYTES(X))
/*
- * UInt16GetDatum --
+ * UInt16GetDatum
* Returns datum representation for a 16-bit unsigned integer.
*/
#define UInt16GetDatum(X) ((Datum) SET_2_BYTES(X))
/*
- * DatumGetInt32 --
+ * DatumGetInt32
* Returns 32-bit integer value of a datum.
*/
#define DatumGetInt32(X) ((int32) GET_4_BYTES(X))
/*
- * Int32GetDatum --
+ * Int32GetDatum
* Returns datum representation for a 32-bit integer.
*/
#define Int32GetDatum(X) ((Datum) SET_4_BYTES(X))
/*
- * DatumGetUInt32 --
+ * DatumGetUInt32
* Returns 32-bit unsigned integer value of a datum.
*/
#define DatumGetUInt32(X) ((uint32) GET_4_BYTES(X))
/*
- * UInt32GetDatum --
+ * UInt32GetDatum
* Returns datum representation for a 32-bit unsigned integer.
*/
#define UInt32GetDatum(X) ((Datum) SET_4_BYTES(X))
/*
- * DatumGetObjectId --
+ * DatumGetObjectId
* Returns object identifier value of a datum.
*/
#define DatumGetObjectId(X) ((Oid) GET_4_BYTES(X))
/*
- * ObjectIdGetDatum --
+ * ObjectIdGetDatum
* Returns datum representation for an object identifier.
*/
#define ObjectIdGetDatum(X) ((Datum) SET_4_BYTES(X))
/*
- * DatumGetPointer --
+ * DatumGetPointer
* Returns pointer value of a datum.
*/
#define DatumGetPointer(X) ((Pointer) X)
/*
- * PointerGetDatum --
+ * PointerGetDatum
* Returns datum representation for a pointer.
*/
#define PointerGetDatum(X) ((Datum) X)
/*
- * DatumGetName --
+ * DatumGetName
* Returns name value of a datum.
*/
#define DatumGetName(X) ((Name) DatumGetPointer((Datum) X))
/*
- * NameGetDatum --
+ * NameGetDatum
* Returns datum representation for a name.
*/
@@ -486,7 +486,7 @@ typedef Datum *DatumPtr;
/*
- * DatumGetFloat32 --
+ * DatumGetFloat32
* Returns 32-bit floating point value of a datum.
* This is really a pointer, of course.
*/
@@ -494,7 +494,7 @@ typedef Datum *DatumPtr;
#define DatumGetFloat32(X) ((float32) DatumGetPointer((Datum) X))
/*
- * Float32GetDatum --
+ * Float32GetDatum
* Returns datum representation for a 32-bit floating point number.
* This is really a pointer, of course.
*/
@@ -502,7 +502,7 @@ typedef Datum *DatumPtr;
#define Float32GetDatum(X) PointerGetDatum((Pointer) X)
/*
- * DatumGetFloat64 --
+ * DatumGetFloat64
* Returns 64-bit floating point value of a datum.
* This is really a pointer, of course.
*/
@@ -510,7 +510,7 @@ typedef Datum *DatumPtr;
#define DatumGetFloat64(X) ((float64) DatumGetPointer(X))
/*
- * Float64GetDatum --
+ * Float64GetDatum
* Returns datum representation for a 64-bit floating point number.
* This is really a pointer, of course.
*/
@@ -522,19 +522,19 @@ typedef Datum *DatumPtr;
* ----------------------------------------------------------------
*/
/*
- * BoolIsValid --
+ * BoolIsValid
* True iff bool is valid.
*/
#define BoolIsValid(boolean) ((boolean) == false || (boolean) == true)
/*
- * PointerIsValid --
+ * PointerIsValid
* True iff pointer is valid.
*/
#define PointerIsValid(pointer) (bool)((void*)(pointer) != NULL)
/*
- * PointerIsInBounds --
+ * PointerIsInBounds
* True iff pointer is within given bounds.
*
* Note:
@@ -545,7 +545,7 @@ typedef Datum *DatumPtr;
((min) <= (pointer) && (pointer) < (max))
/*
- * PointerIsAligned --
+ * PointerIsAligned
* True iff pointer is properly aligned to point to the given type.
*/
#define PointerIsAligned(pointer, type) \
@@ -556,7 +556,7 @@ typedef Datum *DatumPtr;
* ----------------------------------------------------------------
*/
/*
- * offsetof --
+ * offsetof
* Offset of a structure/union field within that structure/union.
*
* XXX This is supposed to be part of stddef.h, but isn't on
@@ -567,13 +567,13 @@ typedef Datum *DatumPtr;
#endif /* offsetof */
/*
- * lengthof --
+ * lengthof
* Number of elements in an array.
*/
#define lengthof(array) (sizeof (array) / sizeof ((array)[0]))
/*
- * endof --
+ * endof
* Address of the element one past the last in an array.
*/
#define endof(array) (&array[lengthof(array)])
@@ -601,7 +601,7 @@ typedef struct Exception
*/
/*
- * Trap --
+ * Trap
* Generates an exception if the given condition is true.
*
*/
@@ -647,7 +647,7 @@ extern int assert_enabled;
#endif /* USE_ASSERT_CHECKING */
/*
- * LogTrap --
+ * LogTrap
* Generates an exception with a message if the given condition is true.
*
*/
@@ -698,25 +698,25 @@ extern int assertTest(int val);
* ----------------------------------------------------------------
*/
/*
- * Max --
+ * Max
* Return the maximum of two numbers.
*/
#define Max(x, y) ((x) > (y) ? (x) : (y))
/*
- * Min --
+ * Min
* Return the minimum of two numbers.
*/
#define Min(x, y) ((x) < (y) ? (x) : (y))
/*
- * Abs --
+ * Abs
* Return the absolute value of the argument.
*/
#define Abs(x) ((x) >= 0 ? (x) : -(x))
/*
- * StrNCpy --
+ * StrNCpy
* Does string copy, and forces terminating NULL
*/
/* we do this so if the macro is used in an if action, it will work */