summary refs log tree commit diff stats
path: root/rod/c2nim/tests/systest2.c
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-laptop>2010-07-23 20:17:12 +0200
committerAndreas Rumpf <andreas@andreas-laptop>2010-07-23 20:17:12 +0200
commit804e2ac89d378b87e0ec8c723f607aa4271c57bb (patch)
treeead60f389a638029f7c1625b0e8961179119e702 /rod/c2nim/tests/systest2.c
parent5a2163d71d79943a8fcdb34bef9b0bbecb8b40c7 (diff)
downloadNim-804e2ac89d378b87e0ec8c723f607aa4271c57bb.tar.gz
implemented user-defined pragmas
Diffstat (limited to 'rod/c2nim/tests/systest2.c')
-rw-r--r--rod/c2nim/tests/systest2.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/rod/c2nim/tests/systest2.c b/rod/c2nim/tests/systest2.c
new file mode 100644
index 000000000..bf3027cfc
--- /dev/null
+++ b/rod/c2nim/tests/systest2.c
@@ -0,0 +1,17 @@
+#ifdef C2NIM
+#  header "iup.h"
+#  cdecl
+#  mangle "'GTK_'{.*}" "TGtk$1"
+#  mangle "'PGTK_'{.*}" "PGtk$1"
+#endif
+
+typedef struct stupidTAG {
+  mytype a, b;
+} GTK_MyStruct, *PGTK_MyStruct;
+
+typedef struct  {
+  mytype a, b;
+} GTK_MyStruct, *PGTK_MyStruct;
+
+int IupConvertXYToPos(PIhandle ih, int x, int y);
+