aboutsummaryrefslogtreecommitdiff
path: root/src/tools/pgindent/indent.bsd.patch
blob: 2c117caa9e80e8c628ea1c26fdf48f730d47f650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
This increases the number of typedef's understood by BSD indent from 100
to 1000.  The second patch allows it to understand 0x7fU and 0LL constants.

---------------------------------------------------------------------------

*** ./lexi.c.orig	Mon Sep  8 17:55:47 1997
--- ./lexi.c	Mon Sep  8 17:02:10 1997
***************
*** 58,64 ****
      int         rwcode;
  };
  
! struct templ specials[100] =
  {
      "switch", 1,
      "case", 2,
--- 58,64 ----
      int         rwcode;
  };
  
! struct templ specials[4096] =
  {
      "switch", 1,
      "case", 2,

*** ./lexi.c.orig	Wed May 26 10:50:54 1999
--- ./lexi.c	Wed May 26 10:51:08 1999
***************
*** 186,192 ****
  				*e_token++ = *buf_ptr++;
  			}
  		}
! 	    if (*buf_ptr == 'L' || *buf_ptr == 'l')
  		*e_token++ = *buf_ptr++;
  	}
  	else
--- 186,193 ----
  				*e_token++ = *buf_ptr++;
  			}
  		}
! 	    if (*buf_ptr == 'L' || *buf_ptr == 'U' ||
! 		*buf_ptr == 'l' || *buf_ptr == 'u')
  		*e_token++ = *buf_ptr++;
  	}
  	else

*** ./lexi.c.orig	Wed Apr 18 17:15:17 2001
--- ./lexi.c	Mon Sep  3 19:05:17 2001
***************
*** 186,194 ****
  				*e_token++ = *buf_ptr++;
  			}
  		}
! 	    if (*buf_ptr == 'L' || *buf_ptr == 'U' ||
! 		*buf_ptr == 'l' || *buf_ptr == 'u')
! 		*e_token++ = *buf_ptr++;
  	}
  	else
  	    while (chartype[*buf_ptr] == alphanum) {	/* copy it over */
--- 186,203 ----
  				*e_token++ = *buf_ptr++;
  			}
  		}
! 		if (*buf_ptr == 'F' || *buf_ptr == 'f') {
! 			/* float constant */
! 			*e_token++ = *buf_ptr++;
! 		} else {
! 			/* integer constant (U, L, UL, LL, ULL) */
! 			if (*buf_ptr == 'U' || *buf_ptr == 'u')
! 				*e_token++ = *buf_ptr++;
! 			if (*buf_ptr == 'L' || *buf_ptr == 'l')
! 				*e_token++ = *buf_ptr++;
! 			if (*buf_ptr == 'L' || *buf_ptr == 'l')
! 				*e_token++ = *buf_ptr++;
! 		}
  	}
  	else
  	    while (chartype[*buf_ptr] == alphanum) {	/* copy it over */