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

Diff of /mailutils/mh/repl.c

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

revision 1.18 by gray, Thu Feb 13 16:37:14 2003 UTC revision 1.19 by gray, Sun Feb 16 11:26:12 2003 UTC
# Line 123  decode_cc_flag (const char *opt, const c Line 123  decode_cc_flag (const char *opt, const c
123  }  }
124    
125  static int  static int
126  opt_handler (int key, char *arg, void *unused)  opt_handler (int key, char *arg, void *unused, struct argp_state *state)
127  {  {
128    char *s;    char *s;
129        
# Line 172  opt_handler (int key, char *arg, void *u Line 172  opt_handler (int key, char *arg, void *u
172        width = strtoul (arg, NULL, 0);        width = strtoul (arg, NULL, 0);
173        if (!width)        if (!width)
174          {          {
175            mh_error (_("Invalid width"));            argp_error (state, _("Invalid width"));
176            exit (1);            exit (1);
177          }          }
178        break;        break;
# Line 198  opt_handler (int key, char *arg, void *u Line 198  opt_handler (int key, char *arg, void *u
198      case ARG_INPLACE:      case ARG_INPLACE:
199      case ARG_WHATNOWPROC:      case ARG_WHATNOWPROC:
200      case ARG_NOWHATNOWPROC:      case ARG_NOWHATNOWPROC:
201        mh_error (_("option is not yet implemented"));        argp_error (state, _("option is not yet implemented"));
202        exit (1);        exit (1);
203                
204      default:      default:
# Line 318  main (int argc, char **argv) Line 318  main (int argc, char **argv)
318    /* Native Language Support */    /* Native Language Support */
319    mu_init_nls ();    mu_init_nls ();
320    
321    mh_argp_parse (argc, argv, options, mh_option, args_doc, doc,    mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc,
322                   opt_handler, NULL, &index);                   opt_handler, NULL, &index);
323    if (mh_format_parse (format_str, &format))    if (mh_format_parse (format_str, &format))
324      {      {

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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