mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
33 lines
966 B
C
33 lines
966 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* nodes.c
|
|
* support code for nodes (now that we get rid of the home-brew
|
|
* inheritance system, our support code for nodes get much simpler)
|
|
*
|
|
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
*
|
|
* IDENTIFICATION
|
|
* $Header: /cvsroot/pgsql/src/backend/nodes/nodes.c,v 1.16 2002/10/11 04:12:14 momjian Exp $
|
|
*
|
|
* HISTORY
|
|
* Andrew Yu Oct 20, 1994 file creation
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#include "postgres.h"
|
|
#include "nodes/nodes.h"
|
|
|
|
/*
|
|
* newNode -
|
|
* create a new node of the specified size and tag the node with the
|
|
* specified tag.
|
|
*
|
|
* !WARNING!: Avoid using newNode directly. You should be using the
|
|
* macro makeNode. eg. to create a Resdom node, use makeNode(Resdom)
|
|
*
|
|
*/
|
|
Node *newNodeMacroHolder;
|
|
|