/[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 707 by johnpye, Tue May 9 01:05:40 2006 UTC revision 708 by johnpye, Tue Jun 27 07:34:31 2006 UTC
# Line 1235  int32 slv_define_parm(slv_parameters_t * Line 1235  int32 slv_define_parm(slv_parameters_t *
1235        (char **)ascmalloc(high.argi*sizeof(char *));        (char **)ascmalloc(high.argi*sizeof(char *));
1236      for (i = 0; i < high.argi; i++) {      for (i = 0; i < high.argi; i++) {
1237        len = strlen(low.argv[i]);        len = strlen(low.argv[i]);
1238        p->parms[length].info.c.argv[i] =(char *)ascmalloc(len+1*sizeof(char));        p->parms[length].info.c.argv[i] =ASC_NEW_ARRAY(char,len+1);
1239        strcpy(p->parms[length].info.c.argv[i],low.argv[i]);        strcpy(p->parms[length].info.c.argv[i],low.argv[i]);
1240      }      }
1241    
# Line 1254  int32 slv_define_parm(slv_parameters_t * Line 1254  int32 slv_define_parm(slv_parameters_t *
1254      p->parms[length].number = length;      p->parms[length].number = length;
1255    
1256      len = strlen(name);      len = strlen(name);
1257      p->parms[length].name = (char *)ascmalloc(len+1*sizeof(char));      p->parms[length].name = ASC_NEW_ARRAY(char,len+1);
1258      strcpy(p->parms[length].name,name);      strcpy(p->parms[length].name,name);
1259    
1260      len = strlen(interface_label);      len = strlen(interface_label);
1261      p->parms[length].interface_label = (char *)ascmalloc(len+1*sizeof(char));      p->parms[length].interface_label = ASC_NEW_ARRAY(char,len+1);
1262      strcpy(p->parms[length].interface_label,interface_label);      strcpy(p->parms[length].interface_label,interface_label);
1263    
1264      len = strlen(description);      len = strlen(description);
1265      p->parms[length].description = (char *)ascmalloc(len+1*sizeof(char));      p->parms[length].description = ASC_NEW_ARRAY(char,len+1);
1266      strcpy(p->parms[length].description,description);      strcpy(p->parms[length].description,description);
1267    
1268      p->parms[length].display = display;      p->parms[length].display = display;

Legend:
Removed from v.707  
changed lines
  Added in v.708

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