Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:plunky:20120326112227

Diff

Diff from 1.2 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/pcc/pcc-tests/regress/jira/PCC-70.c

Annotated File View

faceless
1.1
1 /* 
plunky
1.2
2  * PCC-70
faceless
1.1
3  * cpp incorrectly parses code
4  */
plunky
1.2
5
faceless
1.1
6 #include <sys/types.h>
7
8 struct tty {
9 };
10
11 struct proc {
12 };
13
14 struct uio {
15 };
16
17 #define ttynodisc ((int (*)(dev_t, struct tty *))enodev)
18 #define ttyerrclose ((int (*)(struct tty *, int flags))enodev)
19 #define ttyerrio ((int (*)(struct tty *, struct uio *, int))enodev)
20 #define ttyerrinput ((int (*)(int c, struct tty *))enodev)
21 #define ttyerrstart ((int (*)(struct tty *))enodev)
22
23 int     nullioctl(struct tty *, u_longcaddr_tintstruct proc *);
24 int     nullmodem(struct tty *tpint flag);
25
26 int      enodev(void);
27
28 struct linesw {
29         int     (*l_open)(dev_t devstruct tty *tp);
30         int     (*l_close)(struct tty *tpint flags);
31         int     (*l_read)(struct tty *tpstruct uio *uio,
32                                      int flag);
33         int     (*l_write)(struct tty *tpstruct uio *uio,
34                                      int flag);
35         int     (*l_ioctl)(struct tty *tpu_long cmdcaddr_t data,
36                                      int flagstruct proc *p);
37         int     (*l_rint)(int cstruct tty *tp);
38         int     (*l_start)(struct tty *tp);
39         int     (*l_modem)(struct tty *tpint flag);
40 };
41
42 struct linesw linesw[] =
43 {
44         { ttynodiscttyerrclosettyerriottyerrionullioctl,
45           ttyerrinputttyerrstartnullmodem },        /* 1- defunct */
46         { ttynodiscttyerrclosettyerriottyerrionullioctl,
47           ttyerrinputttyerrstartnullmodem },
48 };
49
plunky
1.2
50 int main(int argcchar *argv[]) { return 0; }
51 int nullioctl(struct tty *tpu_long cmdcaddr_t addrint flagsstruct proc *proc) { return 0; }
52 int nullmodem(struct tty *tpint flag) { return 0; }
53 int enodev(void) { return 0; }
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-03 01:43 +0200