Exemple #1
0
 public static Ident Param(String name, Xtype t) {
   return Var(name, t, Xtype.Pointer(t), VarScope.PARAM);
 }
Exemple #2
0
 public static Ident TempVar(int num, Xtype t) {
   if (t.isArray()) {
     t = Xtype.Pointer(t.getRef()); // convert to pointer
     return new Ident(num, t);
   } else return new Ident(num, t);
 }
Exemple #3
0
 public static Ident Local(String name, Xtype t) {
   if (XmOption.isLanguageC()) return Local(name, t, Xtype.Pointer(t));
   return Fident(name, t);
 }