|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Macros | |
| #define | nitems(x) (sizeof((x)) / sizeof((x)[0])) |
Functions | |
| void | add_typename (const char *) |
| void | alloc_typenames (void) |
| int | compute_code_target (void) |
| int | compute_label_target (void) |
| int | count_spaces (int, char *) |
| int | count_spaces_until (int, char *, char *) |
| int | lexi (struct parser_state *) |
| void | diag2 (int, const char *) |
| void | diag3 (int, const char *, int) |
| void | diag4 (int, const char *, int, int) |
| void | dump_line (void) |
| int | lookahead (void) |
| void | lookahead_reset (void) |
| void | fill_buffer (void) |
| void | parse (int) |
| void | pr_comment (void) |
| void | set_defaults (void) |
| void | set_option (char *) |
| void | set_profile (const char *) |
Definition at line 687 of file lexi.c.
References err(), fb(), realloc, typename_count, typename_top, and typenames.
Referenced by add_typedefs_from_file(), and set_option().
Definition at line 677 of file lexi.c.
References err(), fb(), malloc, typename_count, and typenames.
Referenced by main().
Definition at line 223 of file io.c.
References continuation_indent, count_spaces(), fb(), parser_state::ind_level, parser_state::ind_size, parser_state::ind_stmt, lineup_to_parens, lineup_to_parens_always, max_col, parser_state::paren_level, paren_target, ps, and s_code.
Referenced by dump_line(), main(), and pr_comment().
Definition at line 252 of file io.c.
References case_ind, fb(), parser_state::ind_level, parser_state::ind_size, label_offset, parser_state::pcase, ps, and s_lab.
Referenced by dump_line(), and pr_comment().
Definition at line 550 of file io.c.
References count_spaces_until(), cur, and fb().
Referenced by compute_code_target(), dump_line(), and pr_comment().
Definition at line 517 of file io.c.
References buf, cur, and tabsize.
Referenced by count_spaces(), main(), and pr_comment().
Definition at line 61 of file io.c.
References parser_state::bl_line, blanklines_after_declarations, parser_state::block_init, parser_state::block_init_level, code_lines, parser_state::com_col, parser_state::com_lines, combuf, parser_state::comment_delta, comment_open, compute_code_target(), compute_label_target(), count_spaces(), parser_state::decl_on_line, parser_state::dumped_decl_indent, e_code, e_com, e_lab, fb(), fprintf, i, parser_state::i_l_follow, parser_state::in_decl, parser_state::in_stmt, parser_state::ind_level, parser_state::ind_stmt, inhibit_formatting, parser_state::just_saw_decl, parser_state::n_comment_delta, n_real_blanklines, parser_state::out_lines, output, parser_state::p_l_follow, pad_output(), parser_state::paren_indents, parser_state::paren_level, paren_target, parser_state::pcase, postfix_blankline_requested, prefix_blankline_requested, parser_state::procname, ps, s_code, s_com, s_lab, suppress_blanklines, swallow_optional_blanklines, tabsize, and parser_state::use_ff.
Referenced by fill_buffer(), main(), and pr_comment().
Definition at line 346 of file io.c.
References be_save, bp_save, buf_end, buf_ptr, dump_line(), e_code, e_com, e_lab, errx(), fb(), fill_buffer(), had_eof, i, in_buffer, in_buffer_limit, inhibit_formatting, input, lookahead_bp_save, lookahead_buf, lookahead_end, lookahead_ptr, lookahead_start, n_real_blanklines, output, postfix_blankline_requested, prefix_blankline_requested, realloc, s_code, s_com, s_lab, and suppress_blanklines.
Referenced by fill_buffer(), lexi(), main(), and pr_comment().
| int lexi | ( | struct parser_state * | state | ) |
Definition at line 216 of file lexi.c.
References alphanum, auto_typedefs, BACKSLASH, binary_op, buf_end, buf_ptr, casestmt, chartype, CHECK_SIZE_TOKEN, colon, comma, comment, decl, diag2(), e_token, fb(), fill_buffer(), form_feed, funcname, had_eof, ident, is_func_definition(), lbrace, len, line_no, lparen, newline, period, postop, preesc, question, rbrace, rparen, templ::rwcode, s_token, semicolon, sp_nparen, sp_paren, specials, storage, strcmp_type(), strpfx, structure, swstmt, token, type_def, typename_top, typenames, and unary_op.
Referenced by main().
Definition at line 275 of file io.c.
References be_save, errx(), fb(), i, input, lookahead_bp_save, lookahead_buf, lookahead_buf_end, lookahead_end, lookahead_ptr, lookahead_start, malloc, and realloc.
Referenced by is_func_definition().
Definition at line 320 of file io.c.
References bp_save, lookahead_bp_save, lookahead_ptr, and lookahead_start.
Referenced by is_func_definition().
Definition at line 49 of file parse.c.
References break_comma, btype_2, case_ind, parser_state::case_indent, parser_state::cstk, decl, diag2(), dohead, dolit, e_code, parser_state::else_if, elsehead, elselit, errx(), fb(), forstmt, i, parser_state::i_l_follow, ifhead, ifstmt, parser_state::il, parser_state::ind_level, lbrace, parser_state::ljust_decl, nitems, parser_state::p_stack, parse(), printf, ps, rbrace, reduce(), s_code, parser_state::search_brace, semicolon, stmt, stmtl, swstmt, parser_state::tos, and whilestmt.
Referenced by add_foreign_final_paths(), add_foreign_grouping_paths(), add_foreign_ordered_paths(), add_paths_to_grouping_rel(), build_minmax_path(), build_mvdependencies(), build_mvndistinct(), can_partial_agg(), check_sql_stmt_retval(), consider_groupingsets_paths(), convert_ANY_sublink_to_join(), convert_EXISTS_sublink_to_join(), create_degenerate_grouping_paths(), create_final_distinct_paths(), create_grouping_paths(), create_limit_plan(), create_partial_distinct_paths(), create_partial_grouping_paths(), delay_execution_planner(), dependencies_array_element_start(), dependencies_array_end(), dependencies_array_start(), dependencies_object_end(), dependencies_object_field_start(), dependencies_object_start(), dependencies_scalar(), distribute_row_identity_vars(), expand_single_inheritance_child(), expand_virtual_generated_columns(), flatten_simple_union_all(), get_nullingrels(), get_number_of_groups(), get_sql_fn_result_tlist(), get_useful_group_keys_orderings(), grouping_planner(), is_degenerate_grouping(), json_manifest_array_end(), json_manifest_array_start(), json_manifest_finalize_file(), json_manifest_finalize_system_identifier(), json_manifest_finalize_version(), json_manifest_finalize_wal_range(), json_manifest_object_end(), json_manifest_object_field_start(), json_manifest_object_start(), json_manifest_scalar(), json_parse_manifest(), json_parse_manifest_incremental_chunk(), json_parse_manifest_incremental_init(), limit_needed(), main(), make_group_input_target(), make_sort_input_target(), max_parallel_hazard(), ndistinct_array_element_start(), ndistinct_array_end(), ndistinct_array_start(), ndistinct_object_end(), ndistinct_object_field_start(), ndistinct_object_start(), ndistinct_scalar(), parse(), perform_pullup_replace_vars(), pgss_planner(), plan_set_operations(), planner(), preprocess_groupclause(), preprocess_grouping_sets(), preprocess_limit(), preprocess_minmax_aggregates(), preprocess_relation_rtes(), preprocess_rowmarks(), preprocess_targetlist(), pull_up_constant_function(), pull_up_simple_subquery(), pull_up_simple_values(), query_planner(), remove_useless_groupby_columns(), replace_empty_jointree(), resolve_unique_index_expr(), set_subquery_pathlist(), standard_planner(), standard_qp_callback(), subquery_planner(), transform_MERGE_to_join(), and verify_manifest_checksum().
Definition at line 79 of file pr_comment.c.
References blanklines_before_blockcomments, block_comment_max_col, parser_state::box_com, buf_end, buf_ptr, CHECK_SIZE_COM, parser_state::col_1, parser_state::com_col, parser_state::com_ind, comment_delimiter_on_blankline, parser_state::comment_delta, compute_code_target(), compute_label_target(), count_spaces(), count_spaces_until(), parser_state::decl_com_ind, parser_state::decl_on_line, dump_line(), e_code, e_com, e_lab, else_endif_com_ind, fb(), fill_buffer(), format_block_comments, format_col1_comments, had_eof, in_buffer, parser_state::ind_level, parser_state::ind_size, parser_state::just_saw_decl, parser_state::last_nl, parser_state::last_token, lbrace, line_no, max_col, parser_state::n_comment_delta, parser_state::out_coms, prefix_blankline_requested, printf, ps, s_code, s_com, s_lab, save_com, sc_buf, sc_size, star_comment_cont, start, tabsize, parser_state::unindent_displace, and parser_state::use_ff.
Referenced by main().
Definition at line 246 of file args.c.
References parser_state::case_indent, pro::p_default, pro::p_name, pro::p_obj, pro::p_type, PRO_SPECIAL, and ps.
Referenced by main().
Definition at line 261 of file args.c.
References add_typedefs_from_file(), add_typename(), arg, parser_state::case_indent, CLI, eqin(), errx(), fb(), IGN, INDENT_VERSION, input, KEY, KEY_FILE, OFF, option_source, output, pro::p_name, pro::p_obj, pro::p_special, pro::p_type, printf, PRO_BOOL, PRO_INT, PRO_SPECIAL, ps, STDIN, and VERSION.
Definition at line 176 of file args.c.
References fb(), MAXPGPATH, option_source, scan_profile(), and snprintf.
Referenced by main().