return rank;
}
+ /**
+ * Sets the rank of this integer or floating point type.
+ *
+ * @return the rank if this is an integer or floating point type
+ */
+ public void set_rank (int rank) {
+ this.rank = rank;
+ }
+
private void process_ccode_attribute (Attribute a) {
if (a.has_argument ("const_cname")) {
set_const_cname (a.get_string ("const_cname"));
if (eval (nv[1]) == "1") {
return;
}
+ } else if (nv[0] == "base_type") {
+ st.base_type = parse_type_string (eval (nv[1]));
+ } else if (nv[0] == "rank") {
+ st.set_rank (eval (nv[1]).to_int ());
} else if (nv[0] == "simple_type") {
if (eval (nv[1]) == "1") {
st.set_simple_type (true);