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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user