|
Hi Scott, I fixed it in CVS. I'm leaving the function/switch statement there for now to remind me that we MIGHT want to do something with ideographic shift in/shift out in the future. Even though I don't know what they are. ;-) Mike On Thu, 29 Jun 2000, Scott Klement wrote: > > Mike, > > Thanks for fixing the compiler warning messages. Unfortunately, this fix > causes tn5250 to not work at all -- it'll end with "assertion failed" > immediately after starting. (before I even see my signon screen) > > The problem is in the tn5250_char_map_printable_p() function in utility.c. > > The old code (that was giving warnings) looked like this: > > switch (data) { > /* > Ideographic Shift-In and Shift-Out. > case 0x0e: > case 0x0f: > */ > return 0; > } > return 1; > > This code will always return 1, since the "return 0" is unreachable. And > this actually works... :) > > the new code looks like this: > > switch (data) > { > /* > Ideographic Shift-In and Shift-Out. > case 0x0e: > case 0x0f: > */ > default: > return 0; > break; > } > return 1; > > > This code always returns 0, which makes the emulator unusuable. (every > character is unprintable!) > > What you probably meant to do was something like this: > > switch (data) > { > /* > Ideographic Shift-In and Shift-Out. > case 0x0e: > case 0x0f: > return 0; > */ > default: > break; > } > return 1; > > Since that "return 0" is done (used to be done) when an ideographic > shift-in or shift-out character was encountered. Of course, the entire > switch statement seems pointless, this way! heck, the entire function > seems pointless... :) > > But anyway, that fixes my assertion, and lets me use the emulator > again... > > -Scott > > > +--- > | This is the LINUX5250 Mailing List! > | To submit a new message, send your mail to LINUX5250@midrange.com. > | To subscribe to this list send email to LINUX5250-SUB@midrange.com. > | To unsubscribe from this list send email to LINUX5250-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: david@midrange.com > +--- > +--- | This is the LINUX5250 Mailing List! | To submit a new message, send your mail to LINUX5250@midrange.com. | To subscribe to this list send email to LINUX5250-SUB@midrange.com. | To unsubscribe from this list send email to LINUX5250-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.