Ignore:
Timestamp:
05/09/08 10:38:46 (17 years ago)
Author:
obrebski <obrebski@…>
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)
Message:

1) dgp nie wysypuje sie na nieznanych kategoriach
2) dodane i uzupelnione konfigi

git-svn-id: svn://atos.wmid.amu.edu.pl/utt@49 e293616e-ec6a-49c2-aa92-f4a8b91c5d16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/src/dgp/main.cc

    rdf77b87 r3748bd1  
    2020int segcount=0; 
    2121char seg_mnode[MAXSEGMENTS]; 
     22char grammarfile[255]; 
     23 
    2224 
    2325Grammar grammar; 
     
    4143  process_common_options(&args,argv[0]); 
    4244 
    43 //   if(args.help_given) cmdline_parser_print_help (); 
     45  if(!args.grammar_given) 
     46    fprintf(stderr,"dgp: no grammar given\n"); 
    4447 
    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); 
    4849 
    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); 
    5552 
    5653  if(args.debug_given) debug=true; 
Note: See TracChangeset for help on using the changeset viewer.