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

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

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

revision 707 by johnpye, Wed Jun 21 07:00:45 2006 UTC revision 708 by johnpye, Tue Jun 27 07:34:31 2006 UTC
# Line 81  static POINTER rel_tmpalloc( int nbytes) Line 81  static POINTER rel_tmpalloc( int nbytes)
81    if (nbytes) {    if (nbytes) {
82      if( nbytes > cap ) {      if( nbytes > cap ) {
83        if( ptr != NULL ) ascfree(ptr);        if( ptr != NULL ) ascfree(ptr);
84        ptr = (char *)ascmalloc(nbytes);        ptr = ASC_NEW_ARRAY(char,nbytes);
85        cap = nbytes;        cap = nbytes;
86      }      }
87    } else {    } else {
# Line 900  char *dummyrelstring(slv_system_t sys, s Line 900  char *dummyrelstring(slv_system_t sys, s
900    UNUSED_PARAMETER(sys);    UNUSED_PARAMETER(sys);
901    UNUSED_PARAMETER(rel);    UNUSED_PARAMETER(rel);
902    UNUSED_PARAMETER(style);    UNUSED_PARAMETER(style);
903    result = (char *)ascmalloc(80);    result = ASC_NEW_ARRAY(char,80);
904    sprintf(result,"relman_make_*string_*fix not implemented yet");    sprintf(result,"relman_make_*string_*fix not implemented yet");
905    return result;    return result;
906  }  }
# Line 965  char *relman_make_vstring_postfix(slv_sy Line 965  char *relman_make_vstring_postfix(slv_sy
965       left = exprman_make_xstring_postfix(rel,sys,rel_lhs(rel));       left = exprman_make_xstring_postfix(rel,sys,rel_lhs(rel));
966       right = exprman_make_xstring_postfix(rel,sys,rel_rhs(rel));       right = exprman_make_xstring_postfix(rel,sys,rel_rhs(rel));
967  #else  #else
968       sbeg = (char *)ascmalloc(60);       sbeg = ASC_NEW_ARRAY(char,60);
969       if (sbeg==NULL) return sbeg;       if (sbeg==NULL) return sbeg;
970       sprintf(sbeg,"relman_make_xstring_postfix not reimplemented.");       sprintf(sbeg,"relman_make_xstring_postfix not reimplemented.");
971  #endif  #endif

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

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