Skip to content

Commit

Permalink
comment and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
rvjansen committed Dec 24, 2024
1 parent 40c8ab0 commit a375e36
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
8 changes: 0 additions & 8 deletions interpreter/rxvmintp.c
Original file line number Diff line number Diff line change
Expand Up @@ -834,14 +834,6 @@ START_OF_INSTRUCTIONS
#endif
}
DISPATCH

/* String Say - Deprecated */
/* START_INSTRUCTION(SSAY_REG) CALC_DISPATCH(1) */
/* DEBUG("TRACE - SSAY (DEPRICATED) R%lu\n", REG_IDX(1)); */
/* mprintf("%.*s", (int) op1R->string_length, op1R->string_value); */
/* DISPATCH */

/* Say - Print string value of register as a line */

START_INSTRUCTION(SAY_REG) CALC_DISPATCH(1)
DEBUG("TRACE - SAY R%lu\n", REG_IDX(1));
Expand Down
15 changes: 9 additions & 6 deletions lib/rxfnsb/rexx/fileio.rexx
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,20 @@ import _rxsysb

/* REXX Lineout BIF */
lineout: procedure = .int
arg fname = .string, line = .string
arg fname = .string, line = ""

if ?line then do
/* line specified - open file */
nl = '0a'x

/* if length(fname)=0 then do */
/* /\* no file specified, use stdout *\/ */
/* assembler sayx line */
/* return 0 */
/* end */
say '----> in lineout before'
if length(fname)=0 then do
/* no file specified, use stdout */
assembler sayx line
say '----> in lineout before return'
return 0
end
say '----> in lineout after sayx'

fileid = _open(fname, "w")
if fileid = 0 then say "ERROR lineout() file" fname "could not open"
Expand Down

0 comments on commit a375e36

Please sign in to comment.