1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-26 12:21:12 +03:00

Clean up att_align calculations so that XXXALIGN macros

need not be bogus.
This commit is contained in:
Tom Lane
1999-03-25 03:49:34 +00:00
parent d471f8073a
commit 6febecc569
5 changed files with 125 additions and 144 deletions

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1995, Regents of the University of California
*
* $Id: postgres.h,v 1.20 1999/02/13 23:20:46 momjian Exp $
* $Id: postgres.h,v 1.21 1999/03/25 03:49:28 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -92,9 +92,14 @@ typedef struct varlena text;
typedef int2 int28[8];
typedef Oid oid8[8];
typedef struct nameData
/* We want NameData to have length NAMEDATALEN and int alignment,
* because that's how the data type 'name' is defined in pg_type.
* Use a union to make sure the compiler agrees.
*/
typedef union nameData
{
char data[NAMEDATALEN];
int alignmentDummy;
} NameData;
typedef NameData *Name;