~ubuntu-branches/ubuntu/gutsy/libpgjava/gutsy

« back to all changes in this revision

Viewing changes to src/tools/pgindent/indent.bsd.patch

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2005-04-21 14:25:11 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050421142511-wibh5vc31fkrorx7
Tags: 7.4.7-3
Built with sources...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
This increases the number of typedef's understood by BSD indent from 100
 
3
to 4096.  The second patch allows it to understand 0x7fU and 0LL constants.
 
4
 
 
5
---------------------------------------------------------------------------
 
6
 
 
7
*** ./lexi.c.orig       Mon Sep  8 17:55:47 1997
 
8
--- ./lexi.c    Mon Sep  8 17:02:10 1997
 
9
***************
 
10
*** 58,64 ****
 
11
      int         rwcode;
 
12
  };
 
13
  
 
14
! struct templ specials[100] =
 
15
  {
 
16
      "switch", 1,
 
17
      "case", 2,
 
18
--- 58,64 ----
 
19
      int         rwcode;
 
20
  };
 
21
  
 
22
! struct templ specials[4096] =
 
23
  {
 
24
      "switch", 1,
 
25
      "case", 2,
 
26
***************
 
27
*** 186,192 ****
 
28
                                *e_token++ = *buf_ptr++;
 
29
                        }
 
30
                }
 
31
!           if (*buf_ptr == 'L' || *buf_ptr == 'l')
 
32
                *e_token++ = *buf_ptr++;
 
33
        }
 
34
        else
 
35
--- 186,203 ----
 
36
                                *e_token++ = *buf_ptr++;
 
37
                        }
 
38
                }
 
39
!               if (*buf_ptr == 'F' || *buf_ptr == 'f') {
 
40
!                       /* float constant */
 
41
!                       *e_token++ = *buf_ptr++;
 
42
!               } else {
 
43
!                       /* integer constant (U, L, UL, LL, ULL) */
 
44
!                       if (*buf_ptr == 'U' || *buf_ptr == 'u')
 
45
!                               *e_token++ = *buf_ptr++;
 
46
!                       if (*buf_ptr == 'L' || *buf_ptr == 'l')
 
47
!                               *e_token++ = *buf_ptr++;
 
48
!                       if (*buf_ptr == 'L' || *buf_ptr == 'l')
 
49
!                               *e_token++ = *buf_ptr++;
 
50
!               }
 
51
        }
 
52
        else
 
53
            while (chartype[*buf_ptr] == alphanum) {    /* copy it over */