summaryrefslogtreecommitdiffstats
path: root/kate/cppsymbolviewer/testfile.c
blob: 8f5f959f5f3bf5c422c021745415472fab9b43e7 (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
/** Test File...very demoniac for parsing... **/
#include <stdio.h>
#include <stdlib.h>

#ifdef (_cplusplus)
{
#define VALUE 5

#define MACRO(x)    (x^2)

#    define abs_float(x)            \
          ( ((x)<0) ? -(x) : (x) )
              

typedef struct
   {
    pTest *pNext;
    pTest *pPrev;
   } 
   Another_test, *pTest;

typedef struct xauth
{
  unsigned short family;
  char *address;
} Xauth;

typedef struct {
    color    to_move;
    occupant board[8][8];
   } game;

typedef game  gt_data;
    
/* 
 A comment with a function hello() { } 
*/
// Continued...

RockType *
     MyMusicFunction(
          void *Red,
          int Hot, // Comment double slash
          char Chili, /* Comment inline */
          unsigned long Peppers)
// A comment..just to make some noise...
{
 // Passed first stage ???
 // Ok..get ready for the second one !
 if(I_Have_Failed() >= 0 && /* comments everywhere :} */
    This_Appears() == 1)
     {
      printf("Damn !!! Better going to bed :((");
      if ( vs ) // here you are ;}
     activateSpace( vs->currentView() );
     } 
}

 }