From 0da6358f373c2736626b4189a3e7e413e107b9a0 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 20 Jul 1998 16:57:18 +0000 Subject: Cleanup use of 16 that should be NAMEDATALEN. --- src/include/libpq/libpq.h | 4 ++-- src/include/storage/buf_internals.h | 11 +---------- 2 files changed, 3 insertions(+), 12 deletions(-) (limited to 'src/include') diff --git a/src/include/libpq/libpq.h b/src/include/libpq/libpq.h index 4b2f95056ba..a328e6dacdf 100644 --- a/src/include/libpq/libpq.h +++ b/src/include/libpq/libpq.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: libpq.h,v 1.19 1998/07/18 18:34:23 momjian Exp $ + * $Id: libpq.h,v 1.20 1998/07/20 16:57:06 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -44,7 +44,7 @@ typedef struct * Information about an attribute. * ---------------- */ -#define NameLength 16 +#define NameLength NAMEDATALEN typedef struct TypeBlock { diff --git a/src/include/storage/buf_internals.h b/src/include/storage/buf_internals.h index ab4a6f288dc..0a419784f1c 100644 --- a/src/include/storage/buf_internals.h +++ b/src/include/storage/buf_internals.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: buf_internals.h,v 1.23 1998/07/13 16:34:55 momjian Exp $ + * $Id: buf_internals.h,v 1.24 1998/07/20 16:57:10 momjian Exp $ * * NOTE * If BUFFERPAGE0 is defined, then 0 will be used as a @@ -86,15 +86,6 @@ struct buftag #define BAD_BUFFER_ID(bid) ((bid<1) || (bid>(NBuffers))) #define INVALID_DESCRIPTOR (-3) -/* - * bletch hack -- anyplace that we declare space for relation or - * database names, we just use '16', not a symbolic constant, to - * specify their lengths. BM_NAMESIZE is the length of these names, - * and is used in the buffer manager code. somebody with lots of - * spare time should do this for all the other modules, too. - */ -#define BM_NAMESIZE 16 - /* * struct sbufdesc -- shared buffer cache metadata for a single * shared buffer descriptor. -- cgit v1.2.3