Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
gdefs.h File Reference
#include <gvpr/gprdata.inc>
Include dependency graph for gdefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define Y(i)   (1<<(i))
 
#define V   0x4 /* NODE */
 
#define E   0x5 /* EDGE */
 
#define G   0x6 /* GRAPH */
 
#define O   0x7 /* OBJECT */
 
#define TV   0x8 /* TV_ */
 
#define YALL   (Y(V)|Y(E)|Y(G))
 
#define X(prefix, name, str, type, subtype, ...)   prefix##name,
 
#define X(prefix, name, str, type, subtype, ...)   + (prefix == V_ ? 1 : 0)
 
#define V_   1
 
#define M_   2
 
#define T_   3
 
#define A_   4
 
#define F_   5
 
#define C_   6
 
#define X(prefix, name, str, type, subtype, ...)    + ((prefix == V_ || prefix == M_) ? 1 : 0)
 
#define X(prefix, name, str, type, subtype, ...)   + 1
 
#define X(prefix, name, str, type, subtype, ...)    EX_ID(str, type, prefix##name, subtype),
 
#define X(prefix, name, str, type, subtype, ...)   type ## _(str)
 
#define ID_(str)
 
#define DECLARE_(str)   str,
 
#define ARRAY_(str)
 
#define FUNCTION_(str)
 
#define CONSTANT_(str)
 
#define X(prefix, name, str, type, subtype, ...)   type ## _(__VA_ARGS__)
 
#define ID_(...)   { __VA_ARGS__ },
 
#define DECLARE_()
 
#define ARRAY_()
 
#define FUNCTION_()
 
#define CONSTANT_()
 

Typedefs

typedef unsigned short tctype
 

Enumerations

enum  { RESERVED }
 
enum  { LAST_V }
 
enum  { LAST_M }
 
enum  { MINNAME = 1 }
 
enum  { MAXNAME }
 

Variables

static Exid_t symbols []
 
static char * typenames []
 
static tctype tchk [][2]
 

Macro Definition Documentation

◆ A_

#define A_   4

◆ ARRAY_ [1/2]

#define ARRAY_ ( )

◆ ARRAY_ [2/2]

#define ARRAY_ (   str)

◆ C_

#define C_   6

◆ CONSTANT_ [1/2]

#define CONSTANT_ ( )

◆ CONSTANT_ [2/2]

#define CONSTANT_ (   str)

◆ DECLARE_ [1/2]

#define DECLARE_ ( )

◆ DECLARE_ [2/2]

#define DECLARE_ (   str)    str,

◆ E

#define E   0x5 /* EDGE */

Definition at line 6 of file gdefs.h.

◆ F_

#define F_   5

◆ FUNCTION_ [1/2]

#define FUNCTION_ ( )

◆ FUNCTION_ [2/2]

#define FUNCTION_ (   str)

◆ G

#define G   0x6 /* GRAPH */

Definition at line 7 of file gdefs.h.

◆ ID_ [1/2]

#define ID_ (   ...)    { __VA_ARGS__ },

◆ ID_ [2/2]

#define ID_ (   str)

◆ M_

#define M_   2

◆ O

#define O   0x7 /* OBJECT */

Definition at line 8 of file gdefs.h.

◆ T_

#define T_   3

◆ TV

#define TV   0x8 /* TV_ */

Definition at line 9 of file gdefs.h.

◆ V

#define V   0x4 /* NODE */

Definition at line 5 of file gdefs.h.

◆ V_

#define V_   1

◆ X [1/7]

#define X (   prefix,
  name,
  str,
  type,
  subtype,
  ... 
)    prefix##name,

Definition at line 14 of file gdefs.h.

◆ X [2/7]

#define X (   prefix,
  name,
  str,
  type,
  subtype,
  ... 
)    + (prefix == V_ ? 1 : 0)

Definition at line 14 of file gdefs.h.

◆ X [3/7]

#define X (   prefix,
  name,
  str,
  type,
  subtype,
  ... 
)     + ((prefix == V_ || prefix == M_) ? 1 : 0)

Definition at line 14 of file gdefs.h.

◆ X [4/7]

#define X (   prefix,
  name,
  str,
  type,
  subtype,
  ... 
)    + 1

Definition at line 14 of file gdefs.h.

◆ X [5/7]

#define X (   prefix,
  name,
  str,
  type,
  subtype,
  ... 
)     EX_ID(str, type, prefix##name, subtype),

Definition at line 14 of file gdefs.h.

◆ X [6/7]

#define X (   prefix,
  name,
  str,
  type,
  subtype,
  ... 
)    type ## _(str)

Definition at line 14 of file gdefs.h.

◆ X [7/7]

#define X (   prefix,
  name,
  str,
  type,
  subtype,
  ... 
)    type ## _(__VA_ARGS__)

Definition at line 14 of file gdefs.h.

◆ Y

#define Y (   i)    (1<<(i))

Definition at line 3 of file gdefs.h.

◆ YALL

#define YALL   (Y(V)|Y(E)|Y(G))

Definition at line 10 of file gdefs.h.

Typedef Documentation

◆ tctype

typedef unsigned short tctype

Definition at line 85 of file gdefs.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
RESERVED 

Definition at line 12 of file gdefs.h.

◆ anonymous enum

anonymous enum
Enumerator
LAST_V 

Definition at line 19 of file gdefs.h.

◆ anonymous enum

anonymous enum
Enumerator
LAST_M 

Definition at line 31 of file gdefs.h.

◆ anonymous enum

anonymous enum
Enumerator
MINNAME 

Definition at line 44 of file gdefs.h.

◆ anonymous enum

anonymous enum
Enumerator
MAXNAME 

Definition at line 46 of file gdefs.h.

Variable Documentation

◆ symbols

Exid_t symbols[]
static
Initial value:
= {
#define X(prefix, name, str, type, subtype, ...)
EX_ID({0}, 0, 0, 0),
}
#define EX_ID(n, l, i, t)
Definition expr.h:53

Definition at line 52 of file gdefs.h.

Referenced by compileProg(), initDisc(), and mkBlock().

◆ tchk

tctype tchk[][2]
static
Initial value:
= {
{0, 0},
#define X(prefix, name, str, type, subtype, ...)
#define ID_(...)
#define DECLARE_()
#define ARRAY_()
#define FUNCTION_()
#define CONSTANT_()
}

Definition at line 87 of file gdefs.h.

Referenced by compileProg(), mkBlock(), and typeChk().

◆ typenames

char* typenames[]
static
Initial value:
= {
#define X(prefix, name, str, type, subtype, ...)
#define ID_(str)
#define DECLARE_(str)
#define ARRAY_(str)
#define FUNCTION_(str)
#define CONSTANT_(str)
}

Definition at line 60 of file gdefs.h.

Referenced by typeName().