Skip to content

Commit

Permalink
bugfix for parse_bbody()
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenteaches committed May 10, 2024
1 parent b81250e commit 3ad492e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bench/main.do
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
cscript
mata: mata clear

*local home "D"
local home "C"
local home "D"
*local home "C"

cd "`home':\mijn documenten\projecten\stata\mkproject"
do mkproject_build.do
Expand Down
Binary file modified lmkproject.mlib
Binary file not shown.
2 changes: 1 addition & 1 deletion mkproject_build.do
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cscript
mata: mata clear

cd "c:/mijn documenten/projecten/stata/mkproject"
cd "D:/mijn documenten/projecten/stata/mkproject"
do mkproject_main.mata

lmbuild lmkproject, replace
Expand Down
8 changes: 5 additions & 3 deletions mkproject_mpboilerplate.mata
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,15 @@ void boilerplate::copy_boiler(string scalar dest, | string scalar boiler)
read_defaults()
boiler = defaults.boilerplate
}
orig = find_file(boiler, "boilerplate")
parse_dest(dest)
mpfread(orig)
read_header("boilerplate")
chkreqs()
dh = mpfopen(dest, "w")
if (lt(reading.fversion,(2,1,0))){
Expand All @@ -122,8 +123,9 @@ void boilerplate::parse_bbody(real scalar dh)
real scalar body
string scalar line, EOF, first
EOF == J(0,0,"")
EOF = J(0,0,"")
body = 0
while ((line=mpfget())!=EOF) {
reading.lnr = reading.lnr + 1
if (line != "") {
Expand Down

0 comments on commit 3ad492e

Please sign in to comment.