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/

Reply via email to