1
1
diff -c -r bsd_indent/Makefile pg_bsd_indent/Makefile
2
- *** bsd_indent/Makefile Mon Nov 14 19:30:11 2005
2
+ *** bsd_indent/Makefile Wed Oct 26 17:13:34 2011
3
3
--- pg_bsd_indent/Makefile Wed Oct 12 12:17:12 2011
4
4
***************
5
5
*** 2,10 ****
@@ -38,7 +38,7 @@ diff -c -r bsd_indent/Makefile pg_bsd_indent/Makefile
38
38
! install: $(TARGET)
39
39
install -s -o bin -g bin $(TARGET) /usr/local/bin
40
40
diff -c -r bsd_indent/README pg_bsd_indent/README
41
- *** bsd_indent/README Wed Oct 12 11:51:58 2011
41
+ *** bsd_indent/README Wed Oct 26 17:13:34 2011
42
42
--- pg_bsd_indent/README Mon Nov 14 19:30:24 2005
43
43
***************
44
44
*** 1,3 ****
@@ -57,15 +57,15 @@ diff -c -r bsd_indent/README pg_bsd_indent/README
57
57
via some distribution tape for PDP-11 Unix. It has subsequently been
58
58
hacked upon by James Gosling @ CMU. It isn't very pretty, and really needs
59
59
diff -c -r bsd_indent/args.c pg_bsd_indent/args.c
60
- *** bsd_indent/args.c Mon Nov 14 19:30:00 2005
61
- --- pg_bsd_indent/args.c Wed Oct 12 12:30:06 2011
60
+ *** bsd_indent/args.c Wed Oct 26 17:13:34 2011
61
+ --- pg_bsd_indent/args.c Wed Oct 26 17:16:56 2011
62
62
***************
63
63
*** 83,88 ****
64
64
--- 83,90 ----
65
65
#include <string.h>
66
66
#include "indent_globs.h"
67
67
68
- + #define INDENT_PG_VERSION "1.0 "
68
+ + #define INDENT_PG_VERSION "1.1 "
69
69
+
70
70
/* profile types */
71
71
#define PRO_SPECIAL 1 /* special case */
@@ -125,7 +125,7 @@ diff -c -r bsd_indent/args.c pg_bsd_indent/args.c
125
125
indent: set_option: internal error: p_special %d\n", p->p_special);
126
126
***************
127
127
*** 459,461 ****
128
- --- 485,509 ----
128
+ --- 485,508 ----
129
129
exit(1);
130
130
}
131
131
}
@@ -145,17 +145,16 @@ diff -c -r bsd_indent/args.c pg_bsd_indent/args.c
145
145
+ while ((fgets(line, BUFSIZ, file)) != NULL)
146
146
+ {
147
147
+ /* Remove trailing whitespace */
148
- + if (strstr(line, " \t\n\r") != NULL)
149
- + *strstr(line, " \t\n\r") = '\0';
148
+ + *(line + strcspn(line, " \t\n\r")) = '\0';
150
149
+ addkey(strdup(line), 4);
151
150
+ }
152
151
+ fclose(file);
153
152
+ }
154
- Only in pg_bsd_indent/ : args.o
155
- Only in bsd_indent/ : indent.bsd.patch
156
- Only in pg_bsd_indent/ : indent.o
153
+ Only in pg_bsd_indent: args.o
154
+ Only in pg_bsd_indent : indent.bsd.patch
155
+ Only in pg_bsd_indent: indent.o
157
156
diff -c -r bsd_indent/indent_globs.h pg_bsd_indent/indent_globs.h
158
- *** bsd_indent/indent_globs.h Wed Oct 12 11:51:58 2011
157
+ *** bsd_indent/indent_globs.h Wed Oct 26 17:13:34 2011
159
158
--- pg_bsd_indent/indent_globs.h Mon Nov 14 19:30:24 2005
160
159
***************
161
160
*** 239,245 ****
@@ -178,9 +177,9 @@ diff -c -r bsd_indent/indent_globs.h pg_bsd_indent/indent_globs.h
178
177
179
178
EXTERN struct parser_state {
180
179
int last_token;
181
- Only in pg_bsd_indent/ : io.o
180
+ Only in pg_bsd_indent: io.o
182
181
diff -c -r bsd_indent/lexi.c pg_bsd_indent/lexi.c
183
- *** bsd_indent/lexi.c Wed Oct 12 11:51:58 2011
182
+ *** bsd_indent/lexi.c Wed Oct 26 17:13:34 2011
184
183
--- pg_bsd_indent/lexi.c Mon Nov 14 19:30:24 2005
185
184
***************
186
185
*** 93,99 ****
@@ -221,9 +220,9 @@ diff -c -r bsd_indent/lexi.c pg_bsd_indent/lexi.c
221
220
p->rwd = key;
222
221
p->rwcode = val;
223
222
p[1].rwd = 0;
224
- Only in pg_bsd_indent/ : lexi.o
223
+ Only in pg_bsd_indent: lexi.o
225
224
diff -c -r bsd_indent/parse.c pg_bsd_indent/parse.c
226
- *** bsd_indent/parse.c Wed Oct 12 11:51:58 2011
225
+ *** bsd_indent/parse.c Wed Oct 26 17:13:34 2011
227
226
--- pg_bsd_indent/parse.c Mon Nov 14 19:30:24 2005
228
227
***************
229
228
*** 231,236 ****
@@ -239,9 +238,9 @@ diff -c -r bsd_indent/parse.c pg_bsd_indent/parse.c
239
238
reduce(); /* see if any reduction can be done */
240
239
241
240
#ifdef debug
242
- Only in pg_bsd_indent/ : parse.o
241
+ Only in pg_bsd_indent: parse.o
243
242
diff -c -r bsd_indent/pr_comment.c pg_bsd_indent/pr_comment.c
244
- *** bsd_indent/pr_comment.c Wed Oct 12 11:51:58 2011
243
+ *** bsd_indent/pr_comment.c Wed Oct 26 17:13:34 2011
245
244
--- pg_bsd_indent/pr_comment.c Mon Nov 14 19:30:24 2005
246
245
***************
247
246
*** 148,154 ****
@@ -286,4 +285,4 @@ diff -c -r bsd_indent/pr_comment.c pg_bsd_indent/pr_comment.c
286
285
} else
287
286
if (++buf_ptr >= buf_end)
288
287
fill_buffer();
289
- Only in pg_bsd_indent/ : pr_comment.o
288
+ Only in pg_bsd_indent: pr_comment.o
0 commit comments