Skip to content

Commit 42a1232

Browse files
authored
Merge branch 'lego-yaw-patch-1' into main
2 parents 81f633b + a045965 commit 42a1232

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

Project.toml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ DBCtoDBF_jll = "404e8f35-d372-56c3-89ac-e648a26fddda"
88
DBFTables = "75c7ada1-017a-5fb6-b8c7-2125ff2d6c93"
99
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
1010
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
11+
1112
Revise = "295af30f-e4ad-537b-8983-00126c2a3abe"
1213

1314

src/ReadDBC.jl

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ using DBFTables
88
using DataFrames
99
using DBCtoDBF_jll
1010

11-
12-
13-
14-
1511
# Defining function dbctodbf
1612
function dbctodbf(input_file::String, output_file::String)
1713
# The DBCtoDBF_jll package provides the dbc2dbf executable directly

src/ccall_dbftodbc.jl

+12
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ function dbctodbf(input_file::String, output_file::String)
1111
return output_file # Optionally return the output file name
1212
end
1313

14+
15+
function dbctodbf(input_file::String, output_file::String)
16+
# The DBCtoDBF_jll package provides the dbc2dbf executable directly
17+
exe_path = dbc2dbf() # This gives the path to the dbc2dbf executable
18+
19+
# Run the executable with the input and output file arguments
20+
run(`$exe_path $input_file $output_file`)
21+
22+
return output_file # Optionally return the output file name
23+
end
24+
25+
1426
# Example usage
1527
input_file = "src/ABOAC1909.dbc"
1628
output_file = "src/ABOAC1909.dbf"

0 commit comments

Comments
 (0)