struct encpage_t

[email protected] (rajarshi das)
Newsgroups perl.unicode,perl.mvs,perl.perl5.porters
Message-ID <[email protected]>
Hi,
while running a test in perl-5.8.6 (z/OS), when the
do_encode function is called, struct encpage_t *enc is
passed as a parameter. How is the linked list of
struct encpage_t filled up before do_encode is called
? 

Here's a small portion of the fn do_encode :
----------------------------------
       if (byte >= e->min && e->slen && (approx ||
!(e->slen & 0x80))) {
            const U8 *cend = s + (e->slen & 0x7f);
            if (cend <= send) {
                STRLEN n;
                if ((n = e->dlen)) {
                    const U8 *out = e->seq + n * (byte
- e->min);
                    U8 *oend = d + n;

---------------------------------------
*out is being set wrongly (or it is different from the
value it should have). 

I have to change either e->seq or byte (which I cant
change since its passed in) or e->min to set *out to
the correct value. 

Can I change the value of e->min just before its used
to set *out or should it be set (how?) when the list
of struct encpage_t was filled up ?

Thanks,
Rajarshi.


	
		
______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.