Changeset df77b87 for app/src/dgp/main.cc
- Timestamp:
- 05/07/08 14:11:21 (17 years ago)
- Branches:
- master, help
- Children:
- f5d3b20
- Parents:
- 13a8a67
- git-author:
- obrebski <obrebski@…> (05/07/08 14:11:21)
- git-committer:
- obrebski <obrebski@…> (05/07/08 14:11:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/src/dgp/main.cc
r13a8a67 rdf77b87 35 35 gengetopt_args_info args; 36 36 37 if(cmdline_parser(argc,argv,&args) != 0) exit(1); 37 if(cmdline_parser(argc,argv,&args) != 0) 38 exit(1); 38 39 39 if(args.help_given) cmdline_parser_print_help (); 40 process_config_files(&args,argv[0]); 41 process_common_options(&args,argv[0]); 40 42 41 if(args.input_given) 42 if(!(inputf=fopen(args.input_arg,"r"))) 43 fprintf(stderr,"dgp: input file not found: %s.\n", args.input_arg), exit(1); 43 // if(args.help_given) cmdline_parser_print_help (); 44 44 45 if(args.output_given) 46 if(!(outputf=fopen(args.output_arg,"w"))) 47 fprintf(stderr,"dgp: cannot open output file: %s.\n", args.output_arg), exit(1); 45 // if(args.input_given) 46 // if(!(inputf=fopen(args.input_arg,"r"))) 47 // fprintf(stderr,"dgp: input file not found: %s.\n", args.input_arg), exit(1); 48 49 // if(args.output_given) 50 // if(!(outputf=fopen(args.output_arg,"w"))) 51 // fprintf(stderr,"dgp: cannot open output file: %s.\n", args.output_arg), exit(1); 48 52 49 53 if(!(grammarf=fopen(args.grammar_arg,"r")))
Note: See TracChangeset
for help on using the changeset viewer.