瀏覽代碼

minor fixes

Nicolas Cannasse 13 年之前
父節點
當前提交
d0de851463
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      genxml.ml

+ 1 - 2
genxml.ml

@@ -81,7 +81,6 @@ let rec follow_param t =
 
 let rec sexpr (e,_) =
 	match e with
-	| EConst (String s) -> s
 	| EConst c -> s_constant c
 	| EParenthesis e -> "(" ^ (sexpr e) ^ ")"
 	| EArrayDecl el -> "[" ^ (String.concat "," (List.map sexpr el)) ^ "]"
@@ -436,7 +435,7 @@ let generate_type com t =
 		p "}\n"
 	| TTypeDecl t ->
 		print_meta t.t_meta;
-		p "extern typedef %s = " (stype (TType (t,List.map snd t.t_types)));
+		p "typedef %s = " (stype (TType (t,List.map snd t.t_types)));
 		p "%s" (stype t.t_type);
 		p "\n";
 	);