Changeset 3748bd1 for app/src/dgp/main.cc
- Timestamp:
- 05/09/08 10:38:46 (17 years ago)
- Branches:
- master, help
- Children:
- 6ac84d8
- Parents:
- 9b57c4d
- git-author:
- obrebski <obrebski@…> (05/09/08 10:38:46)
- git-committer:
- obrebski <obrebski@…> (05/09/08 10:38:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/src/dgp/main.cc
rdf77b87 r3748bd1 20 20 int segcount=0; 21 21 char seg_mnode[MAXSEGMENTS]; 22 char grammarfile[255]; 23 22 24 23 25 Grammar grammar; … … 41 43 process_common_options(&args,argv[0]); 42 44 43 // if(args.help_given) cmdline_parser_print_help (); 45 if(!args.grammar_given) 46 fprintf(stderr,"dgp: no grammar given\n"); 44 47 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 expand_path(args.grammar_arg,grammarfile); 48 49 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); 52 53 if(!(grammarf=fopen(args.grammar_arg,"r"))) 54 fprintf(stderr,"dgp: grammar file not found: %s.\n", args.grammar_arg), exit(1); 50 if(!(grammarf=fopen(grammarfile,"r"))) 51 fprintf(stderr,"dgp: grammar file not found: %s.\n", grammarfile), exit(1); 55 52 56 53 if(args.debug_given) debug=true;
Note: See TracChangeset
for help on using the changeset viewer.