26 const unsigned char *ptr = (
const unsigned char *)
name;
35 strchr(
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz"
36 "_0123456789", *ptr) !=
NULL)
80 for (current = space->
next; current; current = current->
next)
87 return current->
value;
141 pg_log_error(
"unrecognized value \"%s\" for \"%s\": Boolean expected",
178 pg_log_error(
"invalid value \"%s\" for \"%s\": integer expected",
213 if (
errno == 0 && *end ==
'\0' && end !=
value)
218 pg_log_error(
"invalid value \"%s\" for variable \"%s\": must be greater than %.2f",
225 pg_log_error(
"invalid value \"%s\" for variable \"%s\": must be less than %.2f",
263 for (ptr = space->
next; ptr; ptr = ptr->
next)
298 for (previous = space, current = space->
next;
300 previous = current, current = current->
next)
362 previous->
next = current;
397 for (previous = space, current = space->
next;
399 previous = current, current = current->
next)
425 previous->
next = current;
444 for (current = space->
next; current; current = current->
next)
489 "Available values are: %s.",
#define IS_HIGHBIT_SET(ch)
#define Assert(condition)
void * pg_malloc(size_t size)
char * pg_strdup(const char *in)
volatile sig_atomic_t cancel_pressed
#define pg_log_error(...)
int pg_strcasecmp(const char *s1, const char *s2)
int pg_strncasecmp(const char *s1, const char *s2, size_t n)
static int cmp(const chr *x, const chr *y, size_t len)
VariableSubstituteHook substitute_hook
VariableAssignHook assign_hook
void PrintVariables(VariableSpace space)
bool DeleteVariable(VariableSpace space, const char *name)
void SetVariableHooks(VariableSpace space, const char *name, VariableSubstituteHook shook, VariableAssignHook ahook)
void PsqlVarEnumError(const char *name, const char *value, const char *suggestions)
bool ParseVariableBool(const char *value, const char *name, bool *result)
bool ParseVariableDouble(const char *value, const char *name, double *result, double min, double max)
bool SetVariableBool(VariableSpace space, const char *name)
bool ParseVariableNum(const char *value, const char *name, int *result)
bool VariableHasHook(VariableSpace space, const char *name)
bool SetVariable(VariableSpace space, const char *name, const char *value)
static bool valid_variable_name(const char *name)
const char * GetVariable(VariableSpace space, const char *name)
VariableSpace CreateVariableSpace(void)
char *(* VariableSubstituteHook)(char *newval)
bool(* VariableAssignHook)(const char *newval)