/* * common routine to construct a signature string for a given varlist item * requires a destination ptr, will return the updated dest ptr */ private String genDataTypeSig(Var e) { if (e == null) return null; StringBuilder sb = new StringBuilder(MyC.MAXSTR); if (e.getSign() == Tok.T_UNSIGNED) /* if var is unsigned, put it in sig */ sb.Append("unsigned "); sb.Append(ilSType(e.getTypeId())); /* get the datatype */ return (sb.ToString()); }
private String genFieldRef(Var e) { if (e == null) return null; StringBuilder sb = new StringBuilder(MyC.MAXSTR); if (e.getSign() == Tok.T_UNSIGNED) /* if var is unsigned, put it in sig */ sb.Append("unsigned "); sb.Append(ilSType(e.getTypeId())); /* get the datatype */ sb.Append(" "); sb.Append(Io.GetClassname()); /* get the current classname */ sb.Append("."); sb.Append(e.getName()); /* copy the variable name */ return (sb.ToString()); }
/* * common routine to construct a signature string for a given varlist item * requires a destination ptr, will return the updated dest ptr */ private String genDataTypeSig(Var e) { if (e == null) { return(null); } StringBuilder sb = new StringBuilder(MyC.MAXSTR); if (e.getSign() == Tok.T_UNSIGNED) /* if var is unsigned, put it in sig */ { sb.Append("unsigned "); } sb.Append(ilSType(e.getTypeId())); /* get the datatype */ return(sb.ToString()); }
/* * common routine to construct a signature string for a given varlist item * requires a destination ptr, will return the updated dest ptr */ private Type genDataTypeSig(Var e) { bool sign = true; if (e == null) { return(null); } if (e.getSign() == Tok.T_UNSIGNED) /* if var is unsigned, put it in sig */ { sign = false; } Type sig = ilSType(sign, e.getTypeId()); /* get the datatype */ return(sig); }
private String genFieldRef(Var e) { if (e == null) { return(null); } StringBuilder sb = new StringBuilder(MyC.MAXSTR); if (e.getSign() == Tok.T_UNSIGNED) /* if var is unsigned, put it in sig */ { sb.Append("unsigned "); } sb.Append(ilSType(e.getTypeId())); /* get the datatype */ sb.Append(" "); sb.Append(Io.GetClassname()); /* get the current classname */ sb.Append("."); sb.Append(e.getName()); /* copy the variable name */ return(sb.ToString()); }
/* * common routine to construct a signature string for a given varlist item * requires a destination ptr, will return the updated dest ptr */ private Type genDataTypeSig(Var e) { bool sign = true; if (e == null) return null; if (e.getSign() == Tok.T_UNSIGNED) /* if var is unsigned, put it in sig */ sign = false; Type sig = ilSType(sign, e.getTypeId()); /* get the datatype */ return (sig); }