-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from ScottPJones/spj/v7update
Updates for v0.6/v0.7 compatibility
- Loading branch information
Showing
14 changed files
with
120 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
julia 0.4 | ||
Compat 0.17.0 | ||
julia 0.6 | ||
Compat 0.45.0 | ||
@windows WinRPM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
using Compat | ||
if is_windows() | ||
|
||
@static if Compat.Sys.iswindows() | ||
using WinRPM | ||
WinRPM.install("libxml2-2", yes=true) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
function new_cdatanode(xdoc::XMLDocument, txt::String) | ||
p = ccall((:xmlNewCDataBlock,libxml2), Xptr, (Xptr, Xstr, Cint), xdoc.ptr, txt, length(txt)+1) | ||
XMLNode(p) | ||
function new_cdatanode(xdoc::XMLDocument, txt::AbstractString) | ||
p = ccall((:xmlNewCDataBlock,libxml2), Xptr, | ||
(Xptr, Xstr, Cint), | ||
xdoc.ptr, txt, length(txt) + 1) | ||
XMLNode(p) | ||
end | ||
|
||
add_cdata(xdoc::XMLDocument, x::XMLElement, txt::String) = add_child(x, new_cdatanode(xdoc,txt)) | ||
add_cdata(xdoc::XMLDocument, x::XMLElement, txt::AbstractString) = | ||
add_child(x, new_cdatanode(xdoc, txt)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
abstract type XMLError <: Exception end | ||
|
||
@compat abstract type XMLError <: Exception end | ||
struct XMLNoRootError <: XMLError ; end | ||
|
||
immutable XMLParseError{T<:AbstractString} <: XMLError | ||
msg::T | ||
end | ||
struct XMLAttributeNotFound <: XMLError ; end | ||
|
||
immutable XMLNoRootError <: XMLError | ||
end | ||
|
||
immutable XMLAttributeNotFound <: XMLError | ||
struct XMLParseError{T<:AbstractString} <: XMLError | ||
msg::T | ||
end | ||
|
||
immutable XMLWriteError{T<:AbstractString} <: XMLError | ||
struct XMLWriteError{T<:AbstractString} <: XMLError | ||
msg::T | ||
end | ||
|
||
immutable XMLTreeError{T<:AbstractString} <: XMLError | ||
struct XMLTreeError{T<:AbstractString} <: XMLError | ||
msg::T | ||
end |
Oops, something went wrong.