Ignore:
Timestamp:
12/11/08 22:20:14 (16 years ago)
Author:
obrebski <obrebski@…>
Branches:
master, help
Children:
2d89d4b
Parents:
91ed676
git-author:
obrebski <obrebski@…> (12/11/08 22:20:14)
git-committer:
obrebski <obrebski@…> (12/11/08 22:20:14)
Message:

trochę zmian

M app/doc/utt.texinfo
M app/src/dgp/sgraph.hh
M app/src/dgp/const.hh
M app/src/dgp/grammar.hh
M app/src/dgp/thesymbols.hh
M app/src/dgp/dgc
M app/src/dgp/sgraph.cc
M app/src/dgp/grammar.cc

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

File:
1 edited

Legend:

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

    r0214596 r9ace5d2  
    128128  { 
    129129    buf+=sprintf(buf,";"); 
     130    int cont=0; 
    130131    for(Role i=1; i<=Role::count(); ++i) 
    131       if(node.prop.forbidden[i]) buf+=sprintf(buf,"!%s",i.str()); 
     132      if(node.prop.forbidden[i]) buf+=sprintf(buf,"%s!%s",(cont++)?",":"",i.str()); 
    132133    for(Role i=1; i<=Role::count(); ++i) 
    133       if(node.prop.required[i]) buf+=sprintf(buf,"&%s",i.str()); 
     134      if(node.prop.required[i]) buf+=sprintf(buf,"%s&%s",(cont++)?",":"",i.str()); 
    134135  } 
    135136   
     
    140141 
    141142 
    142 int SGraph::sprint_node_debug(char* buf, char* pref, int n) 
     143int SGraph::sprint_node_debug(char* buf, const char* pref, int n) 
    143144{ 
    144145  char *buf0 = buf; 
     
    149150} 
    150151 
    151 int SGraph::print_node_debug(FILE* f, char* pref, int n) 
     152int SGraph::print_node_debug(FILE* f, const char* pref, int n) 
    152153{ 
    153154  char buf[1000]; 
Note: See TracChangeset for help on using the changeset viewer.