~ubuntu-branches/ubuntu/saucy/kate/saucy

« back to all changes in this revision

Viewing changes to kate/plugins/symbolviewer/testfile.c

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell, Rohan Garg, Jonathan Riddell
  • Date: 2013-06-21 00:48:29 UTC
  • mfrom: (1.1.28)
  • Revision ID: package-import@ubuntu.com-20130621004829-y2ui02eg0j47h94y
Tags: 4:4.10.80-0ubuntu1
[ Rohan Garg ]
* New upstream release
  - Update and sort install files
  - Drop kubuntu_pate_find_python.diff, kubuntu_kate_initial_preference.patch,
    kubuntu_find_python.diff from debian/patches , not required

[ Jonathan Riddell ]
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/** Test File...very demoniac for parsing... **/
2
 
#include <stdio.h>
3
 
#include <stdlib.h>
4
 
 
5
 
#ifdef (_cplusplus)
6
 
{
7
 
#define VALUE 5
8
 
 
9
 
#define MACRO(x)    (x^2)
10
 
 
11
 
#    define abs_float(x)            \
12
 
          ( ((x)<0) ? -(x) : (x) )
13
 
              
14
 
 
15
 
typedef struct
16
 
   {
17
 
    pTest *pNext;
18
 
    pTest *pPrev;
19
 
   } 
20
 
   Another_test, *pTest;
21
 
 
22
 
typedef struct xauth
23
 
{
24
 
  unsigned short family;
25
 
  char *address;
26
 
} Xauth;
27
 
 
28
 
typedef struct {
29
 
    color    to_move;
30
 
    occupant board[8][8];
31
 
   } game;
32
 
 
33
 
typedef game  gt_data;
34
 
    
35
 
/* 
36
 
 A comment with a function hello() { } 
37
 
*/
38
 
// Continued...
39
 
 
40
 
RockType *
41
 
     MyMusicFunction(
42
 
          void *Red,
43
 
          int Hot, // Comment double slash
44
 
          char Chili, /* Comment inline */
45
 
          unsigned long Peppers)
46
 
// A comment..just to make some noise...
47
 
{
48
 
 // Passed first stage ???
49
 
 // Ok..get ready for the second one !
50
 
 if(I_Have_Failed() >= 0 && /* comments everywhere :} */
51
 
    This_Appears() == 1)
52
 
     {
53
 
      printf("Damn !!! Better going to bed :((");
54
 
      if ( vs ) // here you are ;}
55
 
     activateSpace( vs->currentView() );
56
 
     } 
57
 
}
58
 
 
59
 
 }