このページを編集する際は、編集に関する方針に従ってください。

概要

* 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.  Note that NAMEDATALEN
* must be a multiple of sizeof(int), else sizeof(NameData) will probably
* not come out equal to NAMEDATALEN.

実装

  1. dataを、サイズNAMEDATALENのchar配列として定義。
  2. alignmentDummyを、intとして定義。

typedef union nameData {

	char		data[NAMEDATALEN];
	int			alignmentDummy;

} NameData;

履歴

コメント



トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS