summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoequant <joequant@gmail.com>2013-01-12 22:44:40 +0800
committerjoequant <joequant@gmail.com>2013-01-12 22:44:40 +0800
commit7f82a5d1c4229c4c111de99417590dcba0aae168 (patch)
tree2e989f0882d4f6bc0e4d68841d302c2d02163b49
parenta6d456a15eb509719aece348c5717f76c68b9e71 (diff)
downloadswig-r-experimental.tar.gz
expand enum definitions for Rr-experimental
-rw-r--r--Source/Modules/r.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/Modules/r.cxx b/Source/Modules/r.cxx
index 8b3bc20bb..2d1d84448 100644
--- a/Source/Modules/r.cxx
+++ b/Source/Modules/r.cxx
@@ -1214,12 +1214,13 @@ int R::enumDeclaration(Node *n) {
value++;
else
value = inval;
- } else
- value++;
-
- Printf(scode, "%s%s%s'%s' = %d%s\n", tab8, tab8, tab8, name, value,
- nextSibling(c) ? ", " : "");
- // }
+ Printf(scode, "%s%s%s'%s' = %d%s\n", tab8, tab8, tab8, name, value,
+ nextSibling(c) ? ", " : "");
+ } else {
+ Printf(scode, "%s%s%s'%s' = %d%s\n", tab8, tab8, tab8, name,
+ Getattr(c, "value"),
+ nextSibling(c) ? ", " : "");
+ }
}
Printv(scode, "))", NIL);