/[ascend]/trunk/base/generic/solver/slv.c
ViewVC logotype

Diff of /trunk/base/generic/solver/slv.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1132 by johnpye, Sun Jan 14 10:40:58 2007 UTC revision 1133 by johnpye, Sun Jan 14 11:51:48 2007 UTC
# Line 1306  int slv_param_char(slv_parameters_t *p, Line 1306  int slv_param_char(slv_parameters_t *p,
1306    
1307      /* find the length by hunting for the NULL at the end */      /* find the length by hunting for the NULL at the end */
1308      for(i=0; options[i]!=NULL; ++i){      for(i=0; options[i]!=NULL; ++i){
1309          CONSOLE_DEBUG("FOUND init.options[%d]='%s'",i,options[i]);          /* CONSOLE_DEBUG("FOUND init.options[%d]='%s'",i,options[i]); */
1310      }      }
1311      noptions = i;      noptions = i;
1312      CONSOLE_DEBUG("THERE ARE %d CHAR OPTIONS IN PARAMETER '%s'", noptions, init.meta.codename);      /* CONSOLE_DEBUG("THERE ARE %d CHAR OPTIONS IN PARAMETER '%s'", noptions, init.meta.codename); */
1313    
1314      p1->info.c.high = noptions;      p1->info.c.high = noptions;
1315      p1->info.c.value = strdup(init.val);      p1->info.c.value = strdup(init.val);
# Line 1317  int slv_param_char(slv_parameters_t *p, Line 1317  int slv_param_char(slv_parameters_t *p,
1317    
1318      for(i = 0; i < noptions; ++i){      for(i = 0; i < noptions; ++i){
1319          p1->info.c.argv[i] = strdup(options[i]);          p1->info.c.argv[i] = strdup(options[i]);
1320          CONSOLE_DEBUG("Copied '%s' --> argv[%d] = '%s'",options[i],i,p1->info.c.argv[i]);          /* CONSOLE_DEBUG("Copied '%s' --> argv[%d] = '%s'",options[i],i,p1->info.c.argv[i]); */
1321      }      }
1322    
1323      slv_define_param_meta(p1, &(init.meta), index);      slv_define_param_meta(p1, &(init.meta), index);

Legend:
Removed from v.1132  
changed lines
  Added in v.1133

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22