/[mailutils]/mailutils/mh/mh_format.c
ViewVC logotype

Diff of /mailutils/mh/mh_format.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.34 by gray, Wed Mar 26 18:54:17 2003 UTC revision 1.35 by gray, Mon Aug 11 11:55:54 2003 UTC
# Line 442  mh_format (mh_format_t *fmt, message_t m Line 442  mh_format (mh_format_t *fmt, message_t m
442    mach.message = msg;    mach.message = msg;
443    mach.msgno = msgno;    mach.msgno = msgno;
444        
445    mach.width = width;    mach.width = width - 1; /* Do not count newlines */
446    mach.pc = 1;    mach.pc = 1;
447    obstack_init (&mach.stk);    obstack_init (&mach.stk);
448    list_create (&mach.addrlist);    list_create (&mach.addrlist);
# Line 454  mh_format (mh_format_t *fmt, message_t m Line 454  mh_format (mh_format_t *fmt, message_t m
454        mh_opcode_t opcode;        mh_opcode_t opcode;
455        switch (opcode = MHI_OPCODE(mach.prog[mach.pc++]))        switch (opcode = MHI_OPCODE(mach.prog[mach.pc++]))
456          {          {
457            case mhop_nop:
458              break;
459              
460          case mhop_stop:          case mhop_stop:
461            mach.stop = 1;            mach.stop = 1;
462            break;            break;
# Line 513  mh_format (mh_format_t *fmt, message_t m Line 516  mh_format (mh_format_t *fmt, message_t m
516                  mach.arg_str.size = len + 1;                  mach.arg_str.size = len + 1;
517                  compress_ws (value, &len);                  compress_ws (value, &len);
518                  mach.arg_str.ptr = value;                  mach.arg_str.ptr = value;
519                    mach.arg_num = 1;
520                }                }
521                else
522                  mach.arg_num = 0;
523            }            }
524            break;            break;
525    
# Line 636  mh_format_dump (mh_format_t *fmt) Line 642  mh_format_dump (mh_format_t *fmt)
642        printf ("% 4.4ld: ", (long) pc);        printf ("% 4.4ld: ", (long) pc);
643        switch (opcode = MHI_OPCODE(prog[pc++]))        switch (opcode = MHI_OPCODE(prog[pc++]))
644          {          {
645            case mhop_nop:
646              printf ("nop");
647              break;
648              
649          case mhop_stop:          case mhop_stop:
650            printf ("stop");            printf ("stop");
651            stop = 1;            stop = 1;

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26