mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Indent C code in flex and bison files
In the style of pgindent, done semi-manually. Discussion: https://www.postgresql.org/message-id/flat/7d062ecc-7444-23ec-a159-acd8adf9b586%40enterprisedb.com
This commit is contained in:
@ -45,7 +45,7 @@ static NDBOX *write_point_as_box(int dim, char *str);
|
||||
|
||||
box: O_BRACKET paren_list COMMA paren_list C_BRACKET
|
||||
{
|
||||
int dim;
|
||||
int dim;
|
||||
|
||||
dim = item_count($2, ',');
|
||||
if (item_count($4, ',') != dim)
|
||||
@ -72,7 +72,7 @@ box: O_BRACKET paren_list COMMA paren_list C_BRACKET
|
||||
|
||||
| paren_list COMMA paren_list
|
||||
{
|
||||
int dim;
|
||||
int dim;
|
||||
|
||||
dim = item_count($1, ',');
|
||||
if (item_count($3, ',') != dim)
|
||||
@ -99,7 +99,7 @@ box: O_BRACKET paren_list COMMA paren_list C_BRACKET
|
||||
|
||||
| paren_list
|
||||
{
|
||||
int dim;
|
||||
int dim;
|
||||
|
||||
dim = item_count($1, ',');
|
||||
if (dim > CUBE_MAX_DIM)
|
||||
@ -117,7 +117,7 @@ box: O_BRACKET paren_list COMMA paren_list C_BRACKET
|
||||
|
||||
| list
|
||||
{
|
||||
int dim;
|
||||
int dim;
|
||||
|
||||
dim = item_count($1, ',');
|
||||
if (dim > CUBE_MAX_DIM)
|
||||
|
Reference in New Issue
Block a user