Author: toshok
Date: 2007-06-09 17:28:44 -0400 (Sat, 09 Jun 2007)
New Revision: 79076
Added:
trunk/moon/src/genkindcs.sh
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/value.h
Log:
* genkindcs.sh: new file, a script to generate
olive/class/agclr/Mono/Kind.cs.
* value.h: add marker comments so that genkindcs.sh works. Also,
remove the explicit value assignments to enum elements <
DEPENDENCY_OBJECT. there's no need for it.
2007-06-09 Chris Toshok <[EMAIL PROTECTED]>
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-06-09 20:57:25 UTC (rev 79075)
+++ trunk/moon/src/ChangeLog 2007-06-09 21:28:44 UTC (rev 79076)
@@ -1,5 +1,14 @@
2007-06-09 Chris Toshok <[EMAIL PROTECTED]>
+ * genkindcs.sh: new file, a script to generate
+ olive/class/agclr/Mono/Kind.cs.
+
+ * value.h: add marker comments so that genkindcs.sh works. Also,
+ remove the explicit value assignments to enum elements <
+ DEPENDENCY_OBJECT. there's no need for it.
+
+2007-06-09 Chris Toshok <[EMAIL PROTECTED]>
+
* demo.cpp (main): add in another animation, this one using
keyframes, that moves a square around in a square, while animating
its background color the same way as the other rectangles.
Added: trunk/moon/src/genkindcs.sh
===================================================================
--- trunk/moon/src/genkindcs.sh 2007-06-09 20:57:25 UTC (rev 79075)
+++ trunk/moon/src/genkindcs.sh 2007-06-09 21:28:44 UTC (rev 79076)
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+echo -e "/* this file was autogenerated from moon/src/value.h. do not edit
this file */"
+echo -e "namespace Mono {"
+echo -e "\\t public enum Kind {"
+echo
+
+cat value.h | sed -e 1,/START_MANAGED_MAPPING/d -e '/END_MANAGED_MAPPING/,$d'
+
+echo -e "\\t}"
+echo -e "}"
Modified: trunk/moon/src/value.h
===================================================================
--- trunk/moon/src/value.h 2007-06-09 20:57:25 UTC (rev 79075)
+++ trunk/moon/src/value.h 2007-06-09 21:28:44 UTC (rev 79076)
@@ -93,21 +93,22 @@
// Keep these values in sync with the Value.cs in olive.
// Also keep in sync within types_init.
enum Kind {
- INVALID = 0,
- BOOL = 1,
- DOUBLE = 2,
- UINT64 = 3,
- INT32 = 4,
- STRING = 5,
- COLOR = 7,
- POINT = 8,
- RECT = 9,
- REPEATBEHAVIOR = 10,
- DURATION = 11,
- INT64 = 12,
- DOUBLE_ARRAY = 13,
- POINT_ARRAY = 14,
- KEYTIME = 15,
+// START_MANAGED_MAPPING
+ INVALID,
+ BOOL,
+ DOUBLE,
+ UINT64,
+ INT32,
+ STRING,
+ COLOR,
+ POINT,
+ RECT,
+ REPEATBEHAVIOR,
+ DURATION,
+ INT64,
+ DOUBLE_ARRAY,
+ POINT_ARRAY,
+ KEYTIME,
DEPENDENCY_OBJECT,
@@ -195,6 +196,7 @@
TRIGGER_COLLECTION,
LASTTYPE
+// END_MANAGED_MAPPING
};
void Init ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches