Skip to content

Commit a32b77c

Browse files
committed
complete typedef names
1 parent 09b6959 commit a32b77c

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

src/cursors_leaks.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,20 @@ int plpgsql_check_cursors_leaks_level = WARNING;
3030

3131
#define MAX_NAMES_PER_STATEMENT 20
3232

33-
typedef struct
33+
typedef struct CursorTrace
3434
{
3535
int stmtid;
3636
int rec_level;
3737
char *curname;
3838
} CursorTrace;
3939

40-
typedef struct
40+
typedef struct FunctionTraceKey
4141
{
4242
Oid fn_oid;
4343
TransactionId fn_xmin;
4444
} FunctionTraceKey;
4545

46-
typedef struct
46+
typedef struct FunctionTrace
4747
{
4848
FunctionTraceKey key;
4949

@@ -52,7 +52,7 @@ typedef struct
5252
CursorTrace *cursors_traces;
5353
} FunctionTrace;
5454

55-
typedef struct
55+
typedef struct CursorLeaksPlugin2Info
5656
{
5757
FunctionTrace *ftrace;
5858
LocalTransactionId lxid;

src/expr_walk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "utils/builtins.h"
2222
#include "utils/lsyscache.h"
2323

24-
typedef struct
24+
typedef struct check_funcexpr_walker_params
2525
{
2626
PLpgSQL_checkstate *cstate;
2727
PLpgSQL_expr *expr;

src/parser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
* Originaly this structure was named TokenType, but this is in collision
2626
* with name from NT SDK. So it is renamed to PragmaTokenType.
2727
*/
28-
typedef struct
28+
typedef struct PragmaTokenType
2929
{
3030
int value;
3131
const char *substr;
3232
size_t size;
3333
} PragmaTokenType;
3434

35-
typedef struct
35+
typedef struct TokenizerState
3636
{
3737
const char *str;
3838
PragmaTokenType saved_token;

src/plpgsql_check.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ enum
5454
PLPGSQL_CHECK_UNKNOWN
5555
};
5656

57-
typedef enum
57+
typedef enum profiler_stmt_walker_mode
5858
{
5959
PLPGSQL_CHECK_STMT_WALKER_COUNT_EXEC_TIME,
6060
PLPGSQL_CHECK_STMT_WALKER_PREPARE_RESULT,
6161
PLPGSQL_CHECK_STMT_WALKER_COLLECT_COVERAGE
6262
} profiler_stmt_walker_mode;
6363

64-
typedef enum
64+
typedef enum PragmaAssertType
6565
{
6666
PLPGSQL_CHECK_PRAGMA_ASSERT_SCHEMA,
6767
PLPGSQL_CHECK_PRAGMA_ASSERT_TABLE,
@@ -127,7 +127,7 @@ typedef struct plpgsql_check_info
127127
bool incomment_options_usage_warning;
128128
} plpgsql_check_info;
129129

130-
typedef struct
130+
typedef struct plpgsql_check_pragma_vector
131131
{
132132
unsigned int disable_check : 1;
133133
unsigned int disable_tracer : 1; /* has not any effect - it's runtime */
@@ -179,7 +179,7 @@ typedef struct PLpgSQL_checkstate
179179
PLpgSQL_statements *top_stmts; /* pointer to current statement group */
180180
} PLpgSQL_checkstate;
181181

182-
typedef struct
182+
typedef struct coverage_state
183183
{
184184
int statements;
185185
int branches;

src/profiler.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ typedef struct fstats
7575
* This is used as cache for types of expressions of USING clause
7676
* (EXECUTE like statements).
7777
*/
78-
typedef struct
78+
typedef struct query_params
7979
{
8080
int nparams;
8181
Oid paramtypes[FLEXIBLE_ARRAY_MEMBER];
@@ -157,7 +157,7 @@ typedef struct profiler_iterator
157157

158158
} profiler_iterator;
159159

160-
typedef struct
160+
typedef struct profiler_stmt_walker_options
161161
{
162162
int stmtid;
163163
int64 nested_us_time;

src/stmtwalk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,7 @@ exception_matches_conditions(int sqlerrstate, PLpgSQL_condition *cond)
16941694
* static SQL.
16951695
*/
16961696

1697-
typedef struct
1697+
typedef struct DynSQLParams
16981698
{
16991699
List *args;
17001700
PLpgSQL_checkstate *cstate;

0 commit comments

Comments
 (0)