[BACK]Return to ext.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / Kan

Diff for /OpenXM/src/kan96xx/Kan/ext.c between version 1.23 and 1.25

version 1.23, 2004/02/28 13:39:42 version 1.25, 2004/09/09 03:14:46
Line 1 
Line 1 
 /* $OpenXM: OpenXM/src/kan96xx/Kan/ext.c,v 1.22 2004/02/25 23:14:35 takayama Exp $ */  /* $OpenXM: OpenXM/src/kan96xx/Kan/ext.c,v 1.24 2004/09/04 11:25:58 takayama Exp $ */
 #include <stdio.h>  #include <stdio.h>
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/stat.h>  #include <sys/stat.h>
Line 364  struct object Kextension(struct object obj)
Line 364  struct object Kextension(struct object obj)
     obj1 = getoa(obj,1);      obj1 = getoa(obj,1);
         obj2 = getoa(obj,2);          obj2 = getoa(obj,2);
     rob = KooPower(obj1,obj2);      rob = KooPower(obj1,obj2);
     }else if (strcmp(key,"Krest")==0) {
       if (size != 2) errorKan1("%s\n","[(Krest) a] extension b");
       obj1 = getoa(obj,1);
       rob = Krest(obj1);
     }else if (strcmp(key,"Kjoin")==0) {
       if (size != 3) errorKan1("%s\n","[(Kjoin) a b] extension c");
       obj1 = getoa(obj,1);
           obj2 = getoa(obj,2);
       rob = Kjoin(obj1,obj2);
   }else if (strcmp(key,"ostype")==0) {    }else if (strcmp(key,"ostype")==0) {
     rob = newObjectArray(1);      rob = newObjectArray(1);
     /* Hard encode the OS type. */      /* Hard encode the OS type. */
Line 372  struct object Kextension(struct object obj)
Line 381  struct object Kextension(struct object obj)
 #else  #else
     putoa(rob,0,KpoString("unix"));      putoa(rob,0,KpoString("unix"));
 #endif  #endif
     }else if (strcmp(key,"traceClearStack")==0) {
       traceClearStack();
       rob = NullObject;
     }else if (strcmp(key,"traceShowStack")==0) {
       char *ssst;
       ssst = traceShowStack();
       if (ssst != NULL) {
         rob = KpoString(ssst);
       }else{
         rob = NullObject;
       }
   }    }
 #include "plugin.hh"  #include "plugin.hh"
 #include "Kclass/tree.hh"  #include "Kclass/tree.hh"

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.25

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