PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
help_config.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void GucInfoMain (void) pg_attribute_noreturn()
 

Function Documentation

void GucInfoMain ( void  )

Definition at line 47 of file help_config.c.

References build_guc_variables(), displayStruct(), get_guc_variables(), GetNumConfigOptions(), i, and printMixedStruct().

Referenced by main().

48 {
49  struct config_generic **guc_vars;
50  int numOpts,
51  i;
52 
53  /* Initialize the guc_variables[] array */
55 
56  guc_vars = get_guc_variables();
57  numOpts = GetNumConfigOptions();
58 
59  for (i = 0; i < numOpts; i++)
60  {
61  mixedStruct *var = (mixedStruct *) guc_vars[i];
62 
63  if (displayStruct(var))
64  printMixedStruct(var);
65  }
66 
67  exit(0);
68 }
void build_guc_variables(void)
Definition: guc.c:4156
static bool displayStruct(mixedStruct *structToDisplay)
Definition: help_config.c:76
struct config_generic ** get_guc_variables(void)
Definition: guc.c:4144
static void printMixedStruct(mixedStruct *structToPrint)
Definition: help_config.c:89
int i
int GetNumConfigOptions(void)
Definition: guc.c:8290