diff options
author | Bruce Momjian <bruce@momjian.us> | 1997-09-08 02:41:22 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1997-09-08 02:41:22 +0000 |
commit | 319dbfa7364721d3343af03a7ce063c2a2c9d385 (patch) | |
tree | a2146fe02c49ce1e497b7c287dfcaa367a703ae4 /src/backend/tcop/variable.c | |
parent | a90f12fd9d6886da4f0734288496361a304d3882 (diff) |
Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting.
Diffstat (limited to 'src/backend/tcop/variable.c')
-rw-r--r-- | src/backend/tcop/variable.c | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/src/backend/tcop/variable.c b/src/backend/tcop/variable.c index d394881ab3a..d702bbaa08e 100644 --- a/src/backend/tcop/variable.c +++ b/src/backend/tcop/variable.c @@ -2,7 +2,7 @@ * Routines for handling of 'SET var TO', 'SHOW var' and 'RESET var' * statements. * - * $Id: variable.c,v 1.14 1997/09/07 04:49:37 momjian Exp $ + * $Id: variable.c,v 1.15 1997/09/08 02:29:52 momjian Exp $ * */ @@ -15,11 +15,11 @@ #include "utils/builtins.h" #include "optimizer/internal.h" -extern Cost _cpu_page_wight_; -extern Cost _cpu_index_page_wight_; -extern bool _use_geqo_; -extern int32 _use_geqo_rels_; -extern bool _use_right_sided_plans_; +extern Cost _cpu_page_wight_; +extern Cost _cpu_index_page_wight_; +extern bool _use_geqo_; +extern int32 _use_geqo_rels_; +extern bool _use_right_sided_plans_; /*-----------------------------------------------------------------------*/ #if USE_EURODATES @@ -38,8 +38,8 @@ struct PGVariables PGVariables = static const char * get_token(char **tok, char **val, const char *str) { - const char *start; - int len = 0; + const char *start; + int len = 0; *tok = NULL; if (val != NULL) @@ -157,9 +157,9 @@ reset_null(const char *value) static bool parse_geqo(const char *value) { - const char *rest; - char *tok, - *val; + const char *rest; + char *tok, + *val; rest = get_token(&tok, &val, value); if (tok == NULL) @@ -170,7 +170,7 @@ parse_geqo(const char *value) if (strcasecmp(tok, "on") == 0) { - int32 geqo_rels = GEQO_RELS; + int32 geqo_rels = GEQO_RELS; if (val != NULL) { @@ -259,7 +259,7 @@ reset_r_plans() static bool parse_cost_heap(const char *value) { - float32 res = float4in((char *) value); + float32 res = float4in((char *) value); _cpu_page_wight_ = *res; @@ -284,7 +284,7 @@ reset_cost_heap() static bool parse_cost_index(const char *value) { - float32 res = float4in((char *) value); + float32 res = float4in((char *) value); _cpu_index_page_wight_ = *res; @@ -309,9 +309,9 @@ reset_cost_index() static bool parse_date(const char *value) { - char *tok; - int dcnt = 0, - ecnt = 0; + char *tok; + int dcnt = 0, + ecnt = 0; while ((value = get_token(&tok, NULL, value)) != 0) { @@ -365,20 +365,20 @@ parse_date(const char *value) static bool show_date() { - char buf[64]; + char buf[64]; strcpy(buf, "DateStyle is "); switch (DateStyle) { - case USE_ISO_DATES: - strcat(buf, "ISO"); - break; - case USE_SQL_DATES: - strcat(buf, "SQL"); - break; - default: - strcat(buf, "Postgres"); - break; + case USE_ISO_DATES: + strcat(buf, "ISO"); + break; + case USE_SQL_DATES: + strcat(buf, "SQL"); + break; + default: + strcat(buf, "Postgres"); + break; }; strcat(buf, " with "); strcat(buf, ((EuroDates) ? "European" : "US (NonEuropean)")); @@ -401,11 +401,11 @@ reset_date() /*-----------------------------------------------------------------------*/ struct VariableParsers { - const char *name; - bool(*parser) (const char *); - bool(*show) (); - bool(*reset) (); -} VariableParsers[] = + const char *name; + bool(*parser) (const char *); + bool(*show) (); + bool(*reset) (); +} VariableParsers[] = { { |