Changeset 9ace5d2 for app/src/dgp/sgraph.cc
- Timestamp:
- 12/11/08 22:20:14 (16 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/src/dgp/sgraph.cc
r0214596 r9ace5d2 128 128 { 129 129 buf+=sprintf(buf,";"); 130 int cont=0; 130 131 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()); 132 133 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()); 134 135 } 135 136 … … 140 141 141 142 142 int SGraph::sprint_node_debug(char* buf, c har* pref, int n)143 int SGraph::sprint_node_debug(char* buf, const char* pref, int n) 143 144 { 144 145 char *buf0 = buf; … … 149 150 } 150 151 151 int SGraph::print_node_debug(FILE* f, c har* pref, int n)152 int SGraph::print_node_debug(FILE* f, const char* pref, int n) 152 153 { 153 154 char buf[1000];
Note: See TracChangeset
for help on using the changeset viewer.