Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bindgen: use CXVisitorResult typedef

  • Loading branch information...
commit cce1f50b32d48905600498c5e02ae8af89bb1dc4 1 parent f68f400
@jckarter authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 tools/bindgen.clay
View
10 tools/bindgen.clay
@@ -215,7 +215,7 @@ convertType(type:CXType, refCursor:CXCursor) : String {
}
-visitStruct(cursor:CXCursor, parent:CXCursor, data:CXClientData) : UInt
+visitStruct(cursor:CXCursor, parent:CXCursor, data:CXClientData) : Enum_CXVisitorResult
{
ref unnamedFieldIndex = Pointer[Int](data)^;
@@ -237,7 +237,7 @@ visitStruct(cursor:CXCursor, parent:CXCursor, data:CXClientData) : UInt
return CXChildVisit_Continue;
}
-visitUnion(cursor:CXCursor, parent:CXCursor, data:CXClientData) : UInt
+visitUnion(cursor:CXCursor, parent:CXCursor, data:CXClientData) : Enum_CXVisitorResult
{
assert(clang_getCursorKind(parent) == CXCursor_UnionDecl);
var kind = clang_getCursorKind(cursor);
@@ -253,7 +253,7 @@ visitUnion(cursor:CXCursor, parent:CXCursor, data:CXClientData) : UInt
record FunctionDeclAttributes (asmLabel:Maybe[String]);
-visitFunctionAttr(cursor:CXCursor, parent:CXCursor, data:CXClientData) : UInt
+visitFunctionAttr(cursor:CXCursor, parent:CXCursor, data:CXClientData) : Enum_CXVisitorResult
{
ref attributes = Pointer[FunctionDeclAttributes](data)^;
switch (cursor.kind)
@@ -262,7 +262,7 @@ visitFunctionAttr(cursor:CXCursor, parent:CXCursor, data:CXClientData) : UInt
return CXChildVisit_Continue;
}
-visitEnum(cursor:CXCursor, parent:CXCursor, data:CXClientData) : UInt
+visitEnum(cursor:CXCursor, parent:CXCursor, data:CXClientData) : Enum_CXVisitorResult
{
switch (cursor.kind)
case (CXCursor_EnumConstantDecl) {
@@ -331,7 +331,7 @@ symbolVisited(name:String) : Bool
return false;
}
-visitToplevel(cursor:CXCursor, parent:CXCursor, data:CXClientData) : UInt
+visitToplevel(cursor:CXCursor, parent:CXCursor, data:CXClientData) : Enum_CXVisitorResult
{
ref options = Pointer[BindgenOptions](data)^;
Please sign in to comment.
Something went wrong with that request. Please try again.