VOGONS


First post, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

won't this scrap the old port variable here?

Sorry, might be off-topic here. I can build ykhwong version now, but I am getting this runtime error

	/* register parallel ports */
for (port=0;port < 3;port++) {
Bitu port = mem_readw(BIOS_ADDRESS_LPT1+(port*2));
if (port != 0) {

Reply 1 of 2, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The old port variable will be "forgotten" until it is the new one is out of scope.
However, it can be considered confusing at least.

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 2, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

Hi Qbix,
Sorry for late replies. How can I resolve it without breaking the source code?
Thanks
Jack