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

Diff for /OpenXM_contrib2/asir2000/parse/util.c between version 1.13 and 1.14

version 1.13, 2005/02/08 18:06:05 version 1.14, 2005/09/14 02:48:38
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/parse/util.c,v 1.12 2004/12/18 16:50:10 saito Exp $   * $OpenXM: OpenXM_contrib2/asir2000/parse/util.c,v 1.13 2005/02/08 18:06:05 saito Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "base.h"  #include "base.h"
Line 57 
Line 57 
 #endif  #endif
 #include <ctype.h>  #include <ctype.h>
   
 int length(n)  int length(NODE n)
 NODE n;  
 {  {
         int i;          int i;
   
Line 66  NODE n;
Line 65  NODE n;
         return i;          return i;
 }  }
   
 int argc(a)  int argc(NODE a)
 NODE a;  
 {  {
         int i;          int i;
   
Line 75  NODE a;
Line 73  NODE a;
         return ( i );          return ( i );
 }  }
   
 void stoarg(s,acp,av)  void stoarg(char *s,int *acp,char **av)
 char *s;  
 int *acp;  
 char **av;  
 {  {
         int i;          int i;
   
Line 96  char **av;
Line 91  char **av;
 }  }
   
 #if 0  #if 0
 unsigned int ator(addr,r)  unsigned int ator(unsigned int addr,Obj *r)
 unsigned int addr;  
 Obj *r;  
 {  {
         N n;          N n;
         Q q;          Q q;
Line 115  Obj *r;
Line 108  Obj *r;
 }  }
 #endif  #endif
   
 void getarray(a,ind,vp)  void getarray(pointer a,NODE ind,pointer *vp)
 pointer a;  
 NODE ind;  
 pointer *vp;  
 {  {
         Obj len,row,col,trg;          Obj len,row,col,trg;
         int i;          int i;
Line 196  pointer *vp;
Line 186  pointer *vp;
         *vp = a;          *vp = a;
 }  }
   
 void putarray(a,ind,b)  void putarray(pointer a,NODE ind,pointer b)
 pointer a;  
 NODE ind;  
 pointer b;  
 {  {
         Obj len,row,col;          Obj len,row,col;
         int i;          int i;
Line 274  pointer b;
Line 261  pointer b;
         }          }
 }  }
   
 int rangecheck(a,n)  int rangecheck(Obj a,int n)
 Obj a;  
 int n;  
 {  {
         N m;          N m;
   
Line 290  int n;
Line 275  int n;
         return 1;          return 1;
 }  }
   
 int zp(p)  int zp(P p)
 P p;  
 {  {
         int r;          int r;
         DCP dc;          DCP dc;
Line 404  va_dcl
Line 388  va_dcl
 }  }
 #endif  #endif
   
 void makevar(str,p)  V searchvar(char *str)
 char *str;  
 P *p;  
 {  {
         VL vl;          VL vl;
   
           for ( vl = CO; ;vl = NEXT(vl) )
                   if ( NAME(VR(vl)) && !strcmp(NAME(VR(vl)),str) )
                           return VR(vl);
           return 0;
   }
   
   void makevar(char *str,P *p)
   {
           VL vl;
         V v;          V v;
         P t;          P t;
   
Line 427  P *p;
Line 419  P *p;
                         vl = NEXT(vl);                          vl = NEXT(vl);
 }  }
   
 void makesrvar(f,p)  void makesrvar(FUNC f,P *p)
 FUNC f;  
 P *p;  
 {  {
         VL vl;          VL vl;
         V v;          V v;
Line 452  P *p;
Line 442  P *p;
                         vl = NEXT(vl);                          vl = NEXT(vl);
 }  }
   
 void appendtonode(n,a,nrp)  void appendtonode(NODE n,pointer a,NODE *nrp)
 NODE n;  
 pointer a;  
 NODE *nrp;  
 {  {
         NODE tn;          NODE tn;
   
Line 467  NODE *nrp;
Line 454  NODE *nrp;
         }          }
 }  }
   
 void appendtonode2(n,a,b,nrp)  void appendtonode2(NODE2 n,pointer a,pointer b,NODE2 *nrp)
 NODE2 n;  
 pointer a,b;  
 NODE2 *nrp;  
 {  {
         NODE2 tn;          NODE2 tn;
   
Line 482  NODE2 *nrp;
Line 466  NODE2 *nrp;
         }          }
 }  }
   
 void appendvar(vl,v)  void appendvar(VL vl,V v)
 VL vl;  
 V v;  
 {  {
         while (1)          while (1)
                 if ( vl->v == v )                  if ( vl->v == v )
Line 496  V v;
Line 478  V v;
                         vl = NEXT(vl);                          vl = NEXT(vl);
 }  }
   
 void reallocarray(arrayp,sizep,indexp,esize)  void reallocarray(char **arrayp,int *sizep,int *indexp,int esize)
 char **arrayp;  
 int *sizep,*indexp;  
 int esize;  
 {  {
         char *new;          char *new;
   

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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