[BACK]Return to strobj.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / builtin

Diff for /OpenXM_contrib2/asir2000/builtin/strobj.c between version 1.7 and 1.11

version 1.7, 2000/08/22 05:04:00 version 1.11, 2004/02/13 05:48:35
Line 45 
Line 45 
  * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,   * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
  * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.   * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
  *   *
  * $OpenXM: OpenXM_contrib2/asir2000/builtin/strobj.c,v 1.6 2000/08/21 08:31:21 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/builtin/strobj.c,v 1.10 2003/02/14 22:29:07 ohara Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
 #include "ctype.h"  #include "ctype.h"
 #if PARI  #if defined(PARI)
 #include "genpari.h"  #include "genpari.h"
   #  if !(PARI_VERSION_CODE > 131588)
 extern jmp_buf environnement;  extern jmp_buf environnement;
   #  endif
 #endif  #endif
 #include <string.h>  #include <string.h>
   
Line 105  Q *rp;
Line 107  Q *rp;
         p = BDY(str);          p = BDY(str);
         spos = QTOS(start);          spos = QTOS(start);
         chr = BDY(terminator)[0];          chr = BDY(terminator)[0];
         if ( spos > strlen(p) )          if ( spos > (int)strlen(p) )
                 r = -1;                  r = -1;
         else {          else {
                 ind = strchr(p+spos,chr);                  ind = strchr(p+spos,chr);
Line 203  Obj *rp;
Line 205  Obj *rp;
 {  {
         FNODE fnode;          FNODE fnode;
         char *cmd;          char *cmd;
 #if PARI  #if defined(PARI)
           void recover(int);
   
         recover(0);          recover(0);
   #  if !(PARI_VERSION_CODE > 131588)
         if ( setjmp(environnement) ) {          if ( setjmp(environnement) ) {
                 avma = top; recover(1);                  avma = top; recover(1);
                 resetenv("");                  resetenv("");
         }          }
   #  endif
 #endif  #endif
         cmd = BDY((STRING)ARG0(arg));          cmd = BDY((STRING)ARG0(arg));
         exprparse(0,cmd,&fnode);          exprparse_create_var(0,cmd,&fnode);
         *rp = eval(fnode);          *rp = eval(fnode);
 }  }
   
Line 233  void Pstrtov(arg,rp)
Line 239  void Pstrtov(arg,rp)
 NODE arg;  NODE arg;
 P *rp;  P *rp;
 {  {
         char *p,*t;          char *p;
   
         p = BDY((STRING)ARG0(arg));          p = BDY((STRING)ARG0(arg));
 #if 0  #if 0

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.11

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>