Skip to content

Commit

Permalink
update cfunction tuple call type (#84)
Browse files Browse the repository at this point in the history
 update cfunction tuple call type
  • Loading branch information
musm authored Jul 31, 2017
1 parent 813266d commit 94065b4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions src/LibExpat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,16 @@ end


function xp_make_parser(sep='\0')
cb_start_cdata = cfunction(start_cdata, Void, (Ptr{Void},))
cb_end_cdata = cfunction(end_cdata, Void, (Ptr{Void},))
cb_cdata = cfunction(cdata, Void, (Ptr{Void},Ptr{UInt8}, Cint))
cb_comment = cfunction(comment, Void, (Ptr{Void},Ptr{UInt8}))
cb_default = cfunction(default, Void, (Ptr{Void},Ptr{UInt8}, Cint))
cb_default_expand = cfunction(default_expand, Void, (Ptr{Void},Ptr{UInt8}, Cint))
cb_start_element = cfunction(start_element, Void, (Ptr{Void},Ptr{UInt8}, Ptr{Ptr{UInt8}}))
cb_end_element = cfunction(end_element, Void, (Ptr{Void},Ptr{UInt8}))
cb_start_namespace = cfunction(start_namespace, Void, (Ptr{Void},Ptr{UInt8}, Ptr{UInt8}))
cb_end_namespace = cfunction(end_namespace, Void, (Ptr{Void},Ptr{UInt8}))
cb_start_cdata = cfunction(start_cdata, Void, Tuple{Ptr{Void}})
cb_end_cdata = cfunction(end_cdata, Void, Tuple{Ptr{Void}})
cb_cdata = cfunction(cdata, Void, Tuple{Ptr{Void}, Ptr{UInt8}, Cint})
cb_comment = cfunction(comment, Void, Tuple{Ptr{Void}, Ptr{UInt8}})
cb_default = cfunction(default, Void, Tuple{Ptr{Void}, Ptr{UInt8}, Cint})
cb_default_expand = cfunction(default_expand, Void, Tuple{Ptr{Void}, Ptr{UInt8}, Cint})
cb_start_element = cfunction(start_element, Void, Tuple{Ptr{Void}, Ptr{UInt8}, Ptr{Ptr{UInt8}}})
cb_end_element = cfunction(end_element, Void, Tuple{Ptr{Void}, Ptr{UInt8}})
cb_start_namespace = cfunction(start_namespace, Void, Tuple{Ptr{Void}, Ptr{UInt8}, Ptr{UInt8}})
cb_end_namespace = cfunction(end_namespace, Void, Tuple{Ptr{Void}, Ptr{UInt8}})

p::XML_Parser = (sep == '\0') ? XML_ParserCreate(C_NULL) : XML_ParserCreateNS(C_NULL, sep);
if (p == C_NULL) error("XML_ParserCreate failed") end
Expand Down
20 changes: 10 additions & 10 deletions src/streaming.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,16 @@ end


function make_parser(cbs::XPCallbacks,data=nothing,sep='\0')
cb_streaming_start_cdata = cfunction(streaming_start_cdata, Void, (Ptr{Void},))
cb_streaming_end_cdata = cfunction(streaming_end_cdata, Void, (Ptr{Void},))
cb_streaming_cdata = cfunction(streaming_cdata, Void, (Ptr{Void},Ptr{UInt8}, Cint))
cb_streaming_comment = cfunction(streaming_comment, Void, (Ptr{Void},Ptr{UInt8}))
cb_streaming_default = cfunction(streaming_default, Void, (Ptr{Void},Ptr{UInt8}, Cint))
cb_streaming_default_expand = cfunction(streaming_default_expand, Void, (Ptr{Void},Ptr{UInt8}, Cint))
cb_streaming_start_element = cfunction(streaming_start_element, Void, (Ptr{Void},Ptr{UInt8}, Ptr{Ptr{UInt8}}))
cb_streaming_end_element = cfunction(streaming_end_element, Void, (Ptr{Void},Ptr{UInt8}))
cb_streaming_start_namespace = cfunction(streaming_start_namespace, Void, (Ptr{Void},Ptr{UInt8}, Ptr{UInt8}))
cb_streaming_end_namespace = cfunction(streaming_end_namespace, Void, (Ptr{Void},Ptr{UInt8}))
cb_streaming_start_cdata = cfunction(streaming_start_cdata, Void, Tuple{Ptr{Void}})
cb_streaming_end_cdata = cfunction(streaming_end_cdata, Void, Tuple{Ptr{Void}})
cb_streaming_cdata = cfunction(streaming_cdata, Void, Tuple{Ptr{Void}, Ptr{UInt8}, Cint})
cb_streaming_comment = cfunction(streaming_comment, Void, Tuple{Ptr{Void}, Ptr{UInt8}})
cb_streaming_default = cfunction(streaming_default, Void, Tuple{Ptr{Void}, Ptr{UInt8}, Cint})
cb_streaming_default_expand = cfunction(streaming_default_expand, Void, Tuple{Ptr{Void}, Ptr{UInt8}, Cint})
cb_streaming_start_element = cfunction(streaming_start_element, Void, Tuple{Ptr{Void}, Ptr{UInt8}, Ptr{Ptr{UInt8}}})
cb_streaming_end_element = cfunction(streaming_end_element, Void, Tuple{Ptr{Void}, Ptr{UInt8}})
cb_streaming_start_namespace = cfunction(streaming_start_namespace, Void, Tuple{Ptr{Void}, Ptr{UInt8}, Ptr{UInt8}})
cb_streaming_end_namespace = cfunction(streaming_end_namespace, Void, Tuple{Ptr{Void}, Ptr{UInt8}})

p::XML_Parser = (sep == '\0') ? XML_ParserCreate(C_NULL) : XML_ParserCreateNS(C_NULL, sep);
if (p == C_NULL) error("XML_ParserCreate failed") end
Expand Down

0 comments on commit 94065b4

Please sign in to comment.