~ubuntu-branches/ubuntu/karmic/coccinelle/karmic

« back to all changes in this revision

Viewing changes to tests/oddifdef.c

  • Committer: Bazaar Package Importer
  • Author(s): Євгеній Мещеряков
  • Date: 2009-05-11 15:32:24 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090511153224-1odv41d4dkr3y80v
Tags: 0.1.8.deb-2
Use common install Makefile target for both native and bytecode
build. This hopefully fixes FTBFS on bytecode archs 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
void one () {
 
2
  if (errno != ENOENT 
 
3
#ifdef ENOTDIR
 
4
      && errno != ENOTDIR
 
5
#endif
 
6
    )
 
7
    a = 5;
 
8
 
 
9
#ifdef FOO
 
10
  x = 0;
 
11
#else
 
12
  x = 0;
 
13
#endif
 
14
}
 
15
 
 
16
void two() {
 
17
#ifdef ENOTTY
 
18
  if (errno == ENOTTY)
 
19
    is_a_tty=0;
 
20
  else
 
21
#endif
 
22
    a = 3;
 
23
 
 
24
#ifdef FOO
 
25
  x = 0;
 
26
#else
 
27
  x = 0;
 
28
#endif
 
29
}
 
30
 
 
31
void three() {
 
32
  if (x)
 
33
    a = 3;
 
34
#ifndef OPENSSL_NO_SSL2
 
35
  else if (strcmp(*argv,"-ssl2") == 0)
 
36
    meth=SSLv2_client_method();
 
37
#endif
 
38
 
 
39
#ifdef FOO
 
40
  x = 0;
 
41
#else
 
42
  x = 0;
 
43
#endif
 
44
}