]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/sm-c-mode/sm-c-mode-test.c
Merge commit 'c0a1e24ef39e2b0f388135c2ed8f8b419346337c'
[gnu-emacs-elpa] / packages / sm-c-mode / sm-c-mode-test.c
index 3a1f1b6d4b73c5dffdb8973bab1213e6105ae318..4756064e35edc2c9ee3142cc49bd785e6964668c 100644 (file)
@@ -1,12 +1,47 @@
 /* -*- sm-c -*- */
 
-#define toto /* bla
-                bla */ \
- if (a) { \
-   f \
- }
+#include <toto>
+
+#define toto(arg) /* bla
+                     bla */ \
+  if (a) {  /* toto
+             * titi
+             */    \
+    fs((arg) + 2); \
+  }
+
+#define test(arg) \
+  (hello + arg)
+
+struct foo
+  {
+    int field;
+  };
+
+struct foo {
+  int field;
+};
+
+typedef struct bar {
+  int field;
+} *BarPtr;
+
+struct foo *getfoo (void)
+{
+  return NULL;
+}
+
+#define titi(arg) { \
+    if (a) {        \
+      f(arg + 1)    \
+    }               \
+  }
 
 DEFUN ()
+  ()
+{
+  return Qnil;
+}
 
 int main (void)
 {
@@ -24,10 +59,22 @@ int main (void)
     printf ("wow\n");
   else
     if (c)
-      printf ("weee\n");
+      printf
+        ("weee\n");
     else
       printf ("wop\n");
-    
+
+  if (a)
+    if (b) {
+      c;
+    }
+
+  *a = b;
+
+  if (pITORIG != pITCOPY)
+    *(pITORIG)
+      = *(pITCOPY);
+
   switch (a)
     {
     case 1:
@@ -42,8 +89,8 @@ int main (void)
     }
 }
 
-static struct myownspecialstruct
-  *testfunction
+static struct myownspecialstruct *
+testfunction
   (args)
 {
   return NULL;