Skip to content

Commit

Permalink
fix: doc update for lua files, plus leftover reference in code
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan Bowe committed Jan 3, 2021
1 parent 4df8f3b commit b4d97a0
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 7 deletions.
4 changes: 2 additions & 2 deletions all.sas
Original file line number Diff line number Diff line change
Expand Up @@ -12374,7 +12374,7 @@ data _null_;
infile = io.open (sas.symget("fpath1"), "r")
outfile = io.open (sas.symget("fpath2"), "w")
io.input(infile)
local resp=json2sas.decode(io.read())
local resp=json.decode(io.read())
local job=resp["code"]
outfile:write(job)
io.close(infile)
Expand Down Expand Up @@ -13549,7 +13549,7 @@ filename &fref1 clear;
data _null_;
file "%sysfunc(pathname(work))/ml_json.lua";
put '-- ';
put '-- json.lua (modified from json.lua) ';
put '-- json.lua ';
put '-- ';
put '-- Copyright (c) 2019 rxi ';
put '-- ';
Expand Down
2 changes: 1 addition & 1 deletion doxy/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ HTML_FOOTER = ./doxy/new_footer.html
HTML_EXTRA_STYLESHEET = ./doxy/new_stylesheet.css
INHERIT_DOCS = NO
INLINE_INFO = NO
INPUT = base meta metax viya
INPUT = base meta metax viya lua
LAYOUT_FILE = ./doxy/DoxygenLayout.xml
MAX_INITIALIZER_LINES = 0
PROJECT_NAME = Macro Core
Expand Down
1 change: 1 addition & 0 deletions doxy/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ mkdir $BUILD_FOLDER
cp -r base $BUILD_FOLDER
cp -r meta $BUILD_FOLDER
cp -r metax $BUILD_FOLDER
cp -r lua $BUILD_FOLDER
cp -r viya $BUILD_FOLDER
cp -r doxy $BUILD_FOLDER
cp main.dox $BUILD_FOLDER
Expand Down
4 changes: 2 additions & 2 deletions lua/json.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--
-- json.lua (modified from json.lua)
-- json.lua
--
-- Copyright (c) 2019 rxi
--
Expand Down Expand Up @@ -368,4 +368,4 @@ function json.decode(str)
return res
end

return json
return json
2 changes: 1 addition & 1 deletion lua/ml_json.sas
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
data _null_;
file "%sysfunc(pathname(work))/ml_json.lua";
put '-- ';
put '-- json.lua (modified from json.lua) ';
put '-- json.lua ';
put '-- ';
put '-- Copyright (c) 2019 rxi ';
put '-- ';
Expand Down
11 changes: 11 additions & 0 deletions main.dox
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,15 @@
* No X command
* Prefixes: _mv_

*/

/*! \dir lua
* \brief Lua macros
* \details These macros have the following attributes:

* OS independent
* Work as LUA functions (they are immediately executed/compiled)
* Auto-generated from the plain source `.lua` files in the same directory
* Prefixes: _ml_

*/
2 changes: 1 addition & 1 deletion viya/mv_getjobcode.sas
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ data _null_;
infile = io.open (sas.symget("fpath1"), "r")
outfile = io.open (sas.symget("fpath2"), "w")
io.input(infile)
local resp=json2sas.decode(io.read())
local resp=json.decode(io.read())
local job=resp["code"]
outfile:write(job)
io.close(infile)
Expand Down

0 comments on commit b4d97a0

Please sign in to comment.