summaryrefslogtreecommitdiffstats
path: root/kate/cppsymbolviewer/testfile.c
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit84da08d7b7fcda12c85caeb5a10b4903770a6f69 (patch)
tree2a6aea76f2dfffb4cc04bb907c4725af94f70e72 /kate/cppsymbolviewer/testfile.c
downloadtdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.tar.gz
tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/cppsymbolviewer/testfile.c')
-rw-r--r--kate/cppsymbolviewer/testfile.c59
1 files changed, 59 insertions, 0 deletions
diff --git a/kate/cppsymbolviewer/testfile.c b/kate/cppsymbolviewer/testfile.c
new file mode 100644
index 0000000..8f5f959
--- /dev/null
+++ b/kate/cppsymbolviewer/testfile.c
@@ -0,0 +1,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() );
+ }
+}
+
+ }