Skip to content

Commit 6cb9b2d

Browse files
Format files using DocumentFormat
1 parent 3cfe6e8 commit 6cb9b2d

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

docs/make.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
using Documenter, ReadStat
22

33
makedocs(
4-
modules = [ReadStat],
5-
sitename = "ReadStat.jl",
4+
modules=[ReadStat],
5+
sitename="ReadStat.jl",
66
analytics="UA-132838790-1",
7-
pages = [
7+
pages=[
88
"Introduction" => "index.md"
99
]
1010
)
1111

1212
deploydocs(
13-
repo = "github.com/queryverse/ReadStat.jl.git"
13+
repo="github.com/queryverse/ReadStat.jl.git"
1414
)

src/C_interface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function readstat_get_var_count(metadata::Ptr{Nothing})
2020
end
2121

2222
function readstat_value_is_missing(value::ReadStatValue, variable::Ptr{Nothing})
23-
return Bool(ccall((:readstat_value_is_missing, libreadstat), Cint, (ReadStatValue,Ptr{Nothing}), value, variable))
23+
return Bool(ccall((:readstat_value_is_missing, libreadstat), Cint, (ReadStatValue, Ptr{Nothing}), value, variable))
2424
end
2525

2626
function readstat_variable_get_index(variable::Ptr{Nothing})

src/ReadStat.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ using ReadStat_jll
88
##
99
##############################################################################
1010

11-
using DataValues: DataValueVector
11+
using DataValues:DataValueVector
1212
import DataValues
1313
using Dates
1414

@@ -63,7 +63,7 @@ mutable struct ReadStatDataFrame
6363
measures::Vector{Cint}
6464
alignments::Vector{Cint}
6565
val_label_keys::Vector{String}
66-
val_label_dict::Dict{String, Dict{Any,String}}
66+
val_label_dict::Dict{String,Dict{Any,String}}
6767
rows::Int
6868
columns::Int
6969
filelabel::String
@@ -74,7 +74,7 @@ mutable struct ReadStatDataFrame
7474

7575
ReadStatDataFrame() =
7676
new(Any[], Symbol[], DataType[], String[], String[], Csize_t[], Cint[], Cint[],
77-
String[], Dict{String, Dict{Any,String}}(), 0, 0, "", Dates.unix2datetime(0), 0, Cint[], Bool[])
77+
String[], Dict{String,Dict{Any,String}}(), 0, 0, "", Dates.unix2datetime(0), 0, Cint[], Bool[])
7878
end
7979

8080
include("C_interface.jl")
@@ -144,7 +144,7 @@ function handle_variable!(var_index::Cint, variable::Ptr{Nothing},
144144
ds = unsafe_pointer_to_objref(ds_ptr)::ReadStatDataFrame
145145
missing_count = readstat_variable_get_missing_ranges_count(variable)
146146

147-
push!(ds.val_label_keys, (val_label == C_NULL ? "" : unsafe_string(val_label)))
147+
push!(ds.val_label_keys, (val_label == C_NULL ? "" : unsafe_string(val_label)))
148148
push!(ds.headers, get_name(variable))
149149
push!(ds.labels, get_label(variable))
150150
push!(ds.formats, get_format(variable))
@@ -209,7 +209,7 @@ function handle_value!(obs_index::Cint, variable::Ptr{Nothing},
209209

210210
return Cint(0)
211211
end
212-
212+
213213
function readfield!(dest::DataValueVector{String}, row, val::ReadStatValue)
214214
ptr = ccall((:readstat_string_value, libreadstat), Cstring, (ReadStatValue,), val)
215215

@@ -237,7 +237,7 @@ for (j_type, rs_name) in (
237237
@inbounds DataValues.unsafe_setindex_value!(dest, _val, row)
238238
elseif row == length(dest) + 1
239239
DataValues.push!(dest, _val)
240-
else
240+
else
241241
throw(ArgumentError("illegal row index: $row"))
242242
end
243243
end
@@ -289,4 +289,4 @@ read_por(filename::AbstractString) = read_data_file(filename, Val(:por))
289289
read_sas7bdat(filename::AbstractString) = read_data_file(filename, Val(:sas7bdat))
290290
read_xport(filename::AbstractString) = read_data_file(filename, Val(:xport))
291291

292-
end #module ReadStat
292+
end # module ReadStat

0 commit comments

Comments
 (0)