|
PostgreSQL Source Code git master
|
#include "c.h"#include <ctype.h>#include <err.h>#include <limits.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "indent_globs.h"#include "indent.h"
Go to the source code of this file.
Data Structures | |
| struct | pro |
Macros | |
| #define | INDENT_VERSION "2.1.2" |
| #define | PRO_SPECIAL 1 /* special case */ |
| #define | PRO_BOOL 2 /* boolean */ |
| #define | PRO_INT 3 /* integer */ |
| #define | ON 1 /* turn it on */ |
| #define | OFF 0 /* turn it off */ |
| #define | IGN 1 /* ignore it */ |
| #define | CLI 2 /* case label indent (float) */ |
| #define | STDIN 3 /* use stdin */ |
| #define | KEY 4 /* type (keyword) */ |
| #define | KEY_FILE 5 /* only used for args */ |
| #define | VERSION 6 /* only used for args */ |
Functions | |
| static void | scan_profile (FILE *f) |
| void | add_typedefs_from_file (const char *str) |
| void | set_profile (const char *profile_name) |
| static const char * | eqin (const char *s1, const char *s2) |
| void | set_defaults (void) |
| void | set_option (char *arg) |
Variables | |
| const char * | option_source = "?" |
| struct pro | pro [] |
Definition at line 335 of file args.c.
References add_typename(), fb(), fprintf, and str.
Referenced by set_option().
Definition at line 198 of file args.c.
References buf, comment, fb(), i, printf, set_option, and verbose.
Referenced by set_profile().
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().
Definition at line 76 of file args.c.
Referenced by set_option(), and set_profile().