Skip to content

Conversation

@rmkaplan
Copy link
Contributor

@rmkaplan rmkaplan commented Aug 8, 2021

The generic functions deal with updating the application variable.
\INCHAR eliminated in favor of \INCCODE.EOLC to make clear what it does.
OPENSTRINGSTREAM streams have their own format, and the string is always fattened.
READBITMAP doesn't mix character and byte reading (some other functions still do)

The generic functions deal with updating the application variable.
\INCHAR eliminated in favor of \INCCODE.EOLC to make clear what it does.
OPENSTRINGSTREAM streams have their own format, and the string is always fattened.
READBITMAP doesn't mix character and byte reading
@masinter
Copy link
Member

masinter commented Aug 9, 2021

it used to be we'd name special variables with \ or in the SI package or...
Just saying....

@masinter
Copy link
Member

masinter commented Aug 9, 2021

I'm looking at `grep -ri '\inchar> .' to look for things you might have missed. There are some comments in JAPANESE. CLtL2 has of course older files stashed away.

It would mitigate the risk to leave behind \INCHAR ...

This creates a file device that is not used anywhere.  The function OPENSTRINGSTREAM provides the functionality that this file device suggests that it would provide, but that functionality seems suspect at best.  The function is left in the system for now, probably should be deleted at some point in the future so we don't try to maintain it if we trip over it.
Copy link
Member

@masinter masinter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typing
(DIRECTORY ?= and CR in older sysouts shows the DIRECTORY argument list.
In this update, it gives an invalid argument NIL

@nbriggs
Copy link
Contributor

nbriggs commented Aug 10, 2021

typing
(DIRECTORY ?= and CR in older sysouts shows the DIRECTORY argument list.
In this update, it gives an invalid argument NIL

in a newly built sysout, but not the one that's checked in as part of the branch.

@rmkaplan
Copy link
Contributor Author

rmkaplan commented Aug 10, 2021 via email

@masinter
Copy link
Member

The generic functions deal with updating the application variable.
\INCHAR eliminated in favor of \INCCODE.EOLC to make clear what it does.
OPENSTRINGSTREAM streams have their own format, and the string is always fattened.
READBITMAP doesn't mix character and byte reading (some other functions still do)

Why does this have anything to do with TTYIN?

@rmkaplan
Copy link
Contributor Author

rmkaplan commented Aug 10, 2021 via email

but still doesn't solve the  (DIRECTORY ?=  problem #402
Added \BACKCCODE.EOLC that backs up over EOL encoding bytes, simplifies \RSTRING2.
\XCCSBACKCCODE returns T/NIL according to whether it succeeded.
\XCCSOUTCHAR uses IPLUS16 for CHARPOSITION
COPYCHARS makes no assumptions about EOL encoding
But still no solution for #402
The bug showed up in TTYIN, but it was actually a bad edit in the generic backccode.

TTYIN.LCOM is just a recompile--that had never been done with various new declarations.
Copy link
Member

@masinter masinter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish you wouldn't change CONDs to CL:WHEN and CL:UNLESS in old code that isn't otherwise changing -- it makes the changes harder to review.

@rmkaplan
Copy link
Contributor Author

rmkaplan commented Aug 14, 2021 via email

@masinter masinter merged commit 0d2c662 into master Aug 16, 2021
masinter pushed a commit that referenced this pull request Aug 16, 2021
)

* Format implementation functions set a known variable *BYTECOUNTER*

The generic functions deal with updating the application variable.
\INCHAR eliminated in favor of \INCCODE.EOLC to make clear what it does.
OPENSTRINGSTREAM streams have their own format, and the string is always fattened.
READBITMAP doesn't mix character and byte reading

* AOFD: Don't execute \STRINGSTREAM.INIT

This creates a file device that is not used anywhere.  The function OPENSTRINGSTREAM provides the functionality that this file device suggests that it would provide, but that functionality seems suspect at best.  The function is left in the system for now, probably should be deleted at some point in the future so we don't try to maintain it if we trip over it.

* TTYIN:  Fix an ancient coding error

but still doesn't solve the  (DIRECTORY ?=  problem #402

* LLREAD, FILEIO, XCCS:  Improve charcode backing, copychars

Added \BACKCCODE.EOLC that backs up over EOL encoding bytes, simplifies \RSTRING2.
\XCCSBACKCCODE returns T/NIL according to whether it succeeded.
\XCCSOUTCHAR uses IPLUS16 for CHARPOSITION
COPYCHARS makes no assumptions about EOL encoding
But still no solution for #402

* LLREAD, TTYIN.LCOM    fix #402

The bug showed up in TTYIN, but it was actually a bad edit in the generic backccode.

TTYIN.LCOM is just a recompile--that had never been done with various new declarations.
@masinter masinter deleted the BYTE-counter-for-characters branch October 26, 2021 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants