@@ -123,8 +123,8 @@ sectionsize(x::SectionRef) = sectionsize(deref(x))
123
123
sectionaddress (x:: SectionRef ) = sectionaddress (deref (x))
124
124
sectionoffset (x:: SectionRef ) = sectionoffset (deref (x))
125
125
126
- handleT {T} (:: Union ( Type{SectionRef{T}}, Type{Section{T}}, Type{SymbolRef{T}},
127
- Type{SymtabEntry{T}}) ) = T
126
+ handleT {T} (:: Union { Type{SectionRef{T}}, Type{Section{T}}, Type{SymbolRef{T}},
127
+ Type{SymtabEntry{T}}} ) = T
128
128
129
129
abstract StrTab
130
130
134
134
135
135
# ################################ Utilities ####################################
136
136
137
- typealias SectionOrRef{T} Union ( Section{T},SectionRef{T})
137
+ typealias SectionOrRef{T} Union{ Section{T},SectionRef{T}}
138
138
139
139
sectionsize (sect:: SectionRef ) = sectionsize (deref (sect))
140
140
sectionoffset (sect:: SectionRef ) = sectionoffset (deref (sect))
@@ -151,7 +151,7 @@ function readbytes{T<:ObjectHandle,S}(oh::T,sec::Section{S})
151
151
end
152
152
readbytes (sec:: SectionRef ) = readbytes (handle (sec),deref (sec))
153
153
154
- typealias Maybe{T} Union (T,Nothing)
154
+ typealias Maybe{T} Union{T,Void}
155
155
156
156
# # # Higher level debug info support
157
157
immutable DebugSections{T<: ObjectHandle , Sect}
@@ -294,7 +294,7 @@ function readmeta(io::IO)
294
294
""" )
295
295
end
296
296
297
- readmeta (file:: String ) = readmeta (open (file," r" ))
297
+ readmeta (file:: AbstractString ) = readmeta (open (file," r" ))
298
298
299
299
read {T<:ObjectHandle} (oh:: T , args... ) = read (oh. io,args... )
300
300
0 commit comments