1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting.

This commit is contained in:
Bruce Momjian
1997-09-08 02:41:22 +00:00
parent a90f12fd9d
commit 319dbfa736
632 changed files with 28301 additions and 28220 deletions

View File

@@ -21,33 +21,33 @@
#define FALSE 0
#endif
void halt();
void halt();
extern char *optarg;
extern int optind;
extern char *optarg;
extern int optind;
int
main(argc, argv)
int argc;
char **argv;
int argc;
char **argv;
{
int tab_size = 8,
min_spaces = 2,
protect_quotes = FALSE,
del_tabs = FALSE,
clip_lines = FALSE,
prv_spaces,
col_in_tab,
escaped,
nxt_spaces;
char in_line[BUFSIZ],
out_line[BUFSIZ],
*src,
*dst,
quote_char,
ch,
*cp;
FILE *in_file;
int tab_size = 8,
min_spaces = 2,
protect_quotes = FALSE,
del_tabs = FALSE,
clip_lines = FALSE,
prv_spaces,
col_in_tab,
escaped,
nxt_spaces;
char in_line[BUFSIZ],
out_line[BUFSIZ],
*src,
*dst,
quote_char,
ch,
*cp;
FILE *in_file;
if ((cp = strrchr(argv[0], '/')) != NULL)
++cp;
@@ -59,30 +59,30 @@ char **argv;
while ((ch = getopt(argc, argv, "cdhqs:t:")) != -1)
switch (ch)
{
case 'c':
clip_lines = TRUE;
break;
case 'd':
del_tabs = TRUE;
break;
case 'q':
protect_quotes = TRUE;
break;
case 's':
min_spaces = atoi(optarg);
break;
case 't':
tab_size = atoi(optarg);
break;
case 'h':
case '?':
halt("USAGE: %s [ -cdqst ] [file ...]\n\
case 'c':
clip_lines = TRUE;
break;
case 'd':
del_tabs = TRUE;
break;
case 'q':
protect_quotes = TRUE;
break;
case 's':
min_spaces = atoi(optarg);
break;
case 't':
tab_size = atoi(optarg);
break;
case 'h':
case '?':
halt("USAGE: %s [ -cdqst ] [file ...]\n\
-c (clip trailing whitespace)\n\
-d (delete tabs)\n\
-q (protect quotes)\n\
-s minimum_spaces\n\
-t tab_width\n",
cp);
cp);
}
argv += optind;

View File

@@ -22,10 +22,10 @@ void
halt(va_alist)
va_dcl
{
va_list arg_ptr;
char *format,
*pstr;
void (*sig_func) ();
va_list arg_ptr;
char *format,
*pstr;
void (*sig_func) ();
va_start(arg_ptr);
format = va_arg(arg_ptr, char *);