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

Diff for /OpenXM/src/kan96xx/Kan/extern.h between version 1.14 and 1.33

version 1.14, 2003/12/03 01:21:43 version 1.33, 2005/07/18 10:55:16
Line 1 
Line 1 
 /* $OpenXM: OpenXM/src/kan96xx/Kan/extern.h,v 1.13 2003/11/24 12:38:17 takayama Exp $ */  /* $OpenXM: OpenXM/src/kan96xx/Kan/extern.h,v 1.32 2005/06/16 06:21:21 takayama Exp $ */
 /*********** global variables for module stackmachine***************/  /*********** global variables for module stackmachine***************/
 extern int VerboseStack;  extern int VerboseStack;
 extern int DebugStack;  extern int DebugStack;
Line 19  struct tokens *decomposeToTokens(char *str,int *size);
Line 19  struct tokens *decomposeToTokens(char *str,int *size);
 struct tokens getokenSM();  struct tokens getokenSM();
 struct tokens *decomposeToTokens();  struct tokens *decomposeToTokens();
 char *getLOAD_SM1_PATH();  char *getLOAD_SM1_PATH();
   char *traceShowScannerBuf();
   
   
 /* stackmachine.c  object */  /* stackmachine.c  object */
 struct object *newObject(void);  struct object *newObject(void);
 struct object newObjectArray(int size);  struct object newObjectArray(int size);
Line 72  int isLiteral(char *str);
Line 72  int isLiteral(char *str);
 void lockCtrlCForOx();  void lockCtrlCForOx();
 void unlockCtrlCForOx();  void unlockCtrlCForOx();
 void restoreCtrlCForOx();  void restoreCtrlCForOx();
   int executeExecutableArray(struct object ob,char *fname,int withGotoP);
   
 /* stackmachine.c  export */  /* stackmachine.c  export */
 int KSdefineMacros(void);  int KSdefineMacros(void);
Line 90  void KsetContext(struct object contextobj);
Line 91  void KsetContext(struct object contextobj);
 void contextControl(actionOfContextControl ctl);  void contextControl(actionOfContextControl ctl);
 struct object getSuperContext(struct object contextObj) ;  struct object getSuperContext(struct object contextObj) ;
   
   /* stackmachine.c back-trace */
   void tracePushName(char *s);
   void traceClearStack(void);
   char *tracePopName(void);
   char *traceShowStack(void);
   
 /* kclass.c */  /* kclass.c */
 int initClassDataBase();  int initClassDataBase();
 void fprintClass(FILE *fp,struct object ob);  void fprintClass(FILE *fp,struct object ob);
Line 122  struct object *cdr(struct object *list);
Line 129  struct object *cdr(struct object *list);
 void printObjectList(struct object *op);  void printObjectList(struct object *op);
 int memberQ(struct object *list1,struct object list2);  int memberQ(struct object *list1,struct object list2);
   
   struct object KvJoin(struct object listo1,struct object listo2);
   struct object Kcar(struct object listo);
   struct object Kcdr(struct object listo);
   struct object KlistToArray(struct object listo);
   struct object KarrayToList(struct object ob);
   
 /* list:conversion */  /* list:conversion */
 struct object listToArray(struct object *op);  struct object listToArray(struct object *op);
 struct object *arrayToList(struct object ob);  struct object *arrayToList(struct object ob);
   struct object newByteArray(int size,struct object obj);
   struct object newByteArrayFromStr(char *s,int size);
   struct object byteArrayToArray(struct object obj);
   
 /* kanExport0.c */  /* kanExport0.c */
 /** arithmetic **/  /** arithmetic **/
Line 136  struct object KaoMult(struct object aa,struct object b
Line 152  struct object KaoMult(struct object aa,struct object b
 struct object KooDiv2(struct object ob1,struct object ob2);  struct object KooDiv2(struct object ob1,struct object ob2);
 struct object KoNegate(struct object ob1);  struct object KoNegate(struct object ob1);
 struct object KreduceRationalFunction(struct object ob);  struct object KreduceRationalFunction(struct object ob);
   struct object KooPower(struct object ob1,struct object ob2);
   
 /* for rational function object */  /* for rational function object */
 struct object KoInverse(struct object ob);  struct object KoInverse(struct object ob);
Line 156  struct object KooLess(struct object o1,struct object o
Line 173  struct object KooLess(struct object o1,struct object o
   
 /** Conversion */  /** Conversion */
 struct object KdataConversion(struct object ob1, char *key);  struct object KdataConversion(struct object ob1, char *key);
   struct object Kto_int32(struct object ob);
 struct object KpoInteger(int i);  struct object KpoInteger(int i);
 struct object KpoString(char *s);  struct object KpoString(char *s);
 struct object KpoPOLY(POLY f);  struct object KpoPOLY(POLY f);
Line 163  struct object KpoArrayOfPOLY(struct arrayOfPOLY *ap);
Line 181  struct object KpoArrayOfPOLY(struct arrayOfPOLY *ap);
 struct object KpoMatrixOfPOLY(struct matrixOfPOLY *mp);  struct object KpoMatrixOfPOLY(struct matrixOfPOLY *mp);
 struct object KpoRingp(struct ring *ringp);  struct object KpoRingp(struct ring *ringp);
 struct object KpoDouble(double a);  struct object KpoDouble(double a);
   struct object KpoUniversalNumber(struct coeff *u);
   struct object KintToUniversalNumber(int n);
 #define KopInteger(o) ( (o).lc.ival )  #define KopInteger(o) ( (o).lc.ival )
 #define KopString(o)  ( (o).lc.str )  #define KopString(o)  ( (o).lc.str )
 #define KopPOLY(o)    ( (o).lc.poly )  #define KopPOLY(o)    ( (o).lc.poly )
Line 175  struct object KpoDouble(double a);
Line 195  struct object KpoDouble(double a);
 #define Knumerator(o)  ( (o).lc.op )  #define Knumerator(o)  ( (o).lc.op )
 #define Kdenominator(o) ( (o).rc.op )  #define Kdenominator(o) ( (o).rc.op )
 #define KopDouble(ob)  (*((ob).lc.dbl))  #define KopDouble(ob)  (*((ob).lc.dbl))
   #define KopByteArray(o) ( (o).lc.bytes )
   #define getByteArraySize(o) ( (o).rc.ival )
 char *KPOLYToString(POLY f);  char *KPOLYToString(POLY f);
 /** conversion 2 **/  /** conversion 2 **/
 struct object arrayOfPOLYToArray(struct arrayOfPOLY *aa);  struct object arrayOfPOLYToArray(struct arrayOfPOLY *aa);
Line 188  int objArrayToOrderMatrix(struct object oA,int order[]
Line 210  int objArrayToOrderMatrix(struct object oA,int order[]
 int KsetOrderByObjArray(struct object oA);  int KsetOrderByObjArray(struct object oA);
 struct object oGetOrderMatrix(struct ring *ringp); /* order.c */  struct object oGetOrderMatrix(struct ring *ringp); /* order.c */
 struct object KgetOrderMatrixOfCurrentRing();  struct object KgetOrderMatrixOfCurrentRing();
   struct object oRingToOXringStructure(struct ring *ringp); /* order.c */
 int KsetUpRing(struct object ob1,struct object ob2, struct object ob3,struct object ob4,struct object ob5);  int KsetUpRing(struct object ob1,struct object ob2, struct object ob3,struct object ob4,struct object ob5);
 void KshowRing(struct ring *ringp);  void KshowRing(struct ring *ringp);
 struct object KdefaultPolyRing(struct object num);  struct object KdefaultPolyRing(struct object num);
Line 204  struct object Khead(struct object ob);
Line 227  struct object Khead(struct object ob);
 int KpolyLength(POLY f);  int KpolyLength(POLY f);
 struct object KsetOutputOrder(struct object obj,struct ring *rp);  struct object KsetOutputOrder(struct object obj,struct ring *rp);
 struct object KsetVariableNames(struct object obj,struct ring *rp);  struct object KsetVariableNames(struct object obj,struct ring *rp);
   /* KgetRingInfo has not yet been implemented. */
   struct object KgetRingInfo(struct object ringObj, struct object ofunc);
   
   
 /* :eval */  /* :eval */
 struct object Keval(struct object obj);  struct object Keval(struct object obj);
   
Line 220  struct object test(struct object ob);
Line 244  struct object test(struct object ob);
 struct object Kextension(struct object ob);  struct object Kextension(struct object ob);
 struct object KgbExtension(struct object ob);  struct object KgbExtension(struct object ob);
 struct object KmpzExtension(struct object ob);  struct object KmpzExtension(struct object ob);
   struct object Krest(struct object ob);
   struct object Kjoin(struct object ob1, struct object ob2);
   struct object Kget(struct object ob1, struct object ob2);
   
 /** Utilities */  /** Utilities */
 char *KremoveSpace(char *s);  char *KremoveSpace(char *s);
 int KtoArgvbyCurryBrace(char *str,char *argv[],int limit);  int KtoArgvbyCurryBrace(char *str,char *argv[],int limit);
   
   /** Attribute */
   struct object KgetAttributeList(struct object ob);
   struct object  KsetAttributeList(struct object ob,struct object attr);
   struct object KgetAttribute(struct object ob,struct object key);
   struct object KsetAttribute(struct object ob,struct object key,struct object value);
   /*  ob (key) (value) setAttribute /ob set. They are not destructive. */
   
   
   
 /** kanExport1.c */  /** kanExport1.c */
 /* :ring :kan */  /* :ring :kan */
 struct object Kreduction(struct object f,struct object set);  struct object Kreduction(struct object f,struct object set);
Line 256  struct object KisOrdered(struct object of);
Line 291  struct object KisOrdered(struct object of);
 struct object KvectorToSchreyer_es(struct object obarray);  struct object KvectorToSchreyer_es(struct object obarray);
 POLY objArrayToPOLY(struct object ob);  POLY objArrayToPOLY(struct object ob);
 struct object POLYtoObjArray(POLY f,int size);  struct object POLYtoObjArray(POLY f,int size);
   struct object KgetExponents(struct object obPoly,struct object type);
   
 /* hilbert.c */  /* hilbert.c */
 struct object hilberto(struct object obgb,struct object obvlist);  struct object hilberto(struct object obgb,struct object obvlist);
Line 278  int objToInteger(struct object ob);
Line 314  int objToInteger(struct object ob);
 /* shell.c */  /* shell.c */
 struct object KoxWhich(struct object cmdo,struct object patho);  struct object KoxWhich(struct object cmdo,struct object patho);
 struct object KoxShell(struct object ob);  struct object KoxShell(struct object ob);
   void KoxShellHelp(char *key,FILE *fp);

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

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