=================================================================== RCS file: /home/cvs/OpenXM/src/ox_toolkit/ox_toolkit.h,v retrieving revision 1.42 retrieving revision 1.46 diff -u -p -r1.42 -r1.46 --- OpenXM/src/ox_toolkit/ox_toolkit.h 2016/07/14 08:16:19 1.42 +++ OpenXM/src/ox_toolkit/ox_toolkit.h 2020/11/01 10:28:22 1.46 @@ -1,11 +1,12 @@ /* -*- mode: C -*- */ -/* $OpenXM: OpenXM/src/ox_toolkit/ox_toolkit.h,v 1.41 2016/04/01 18:12:39 ohara Exp $ */ +/* $OpenXM: OpenXM/src/ox_toolkit/ox_toolkit.h,v 1.45 2018/04/05 05:31:51 ohara Exp $ */ #ifndef _OX_TOOLKIT_H_ #define _OX_TOOLKIT_H_ #include +#include #include #include #include @@ -42,6 +43,7 @@ typedef struct { typedef struct mathcap { table *cmotbl; table *smtbl; + char **opts; } mathcap; /* OpenXM File Descripter */ @@ -231,6 +233,7 @@ cmo_distributed_polynomial* new_cmo_distributed_polyno cmo_dms_generic* new_cmo_dms_generic(); cmo_ring_by_name* new_cmo_ring_by_name(cmo* ob); cmo_indeterminate* new_cmo_indeterminate(cmo* ob); +cmo_indeterminate* new_cmo_indeterminate_set_name(char *s); cmo_polynomial_in_one_variable* new_cmo_polynomial_in_one_variable(int var); cmo_recursive_polynomial* new_cmo_recursive_polynomial(cmo_list* ringdef, cmo* coef); cmo_tree* new_cmo_tree(cmo_string* name, cmo_list *attributes, cmo_list *leaves); @@ -285,7 +288,9 @@ cmo_list* list_append_monomial(cmo_list* , cm cmo_list* list_appendl(cmo_list*, ...); int list_length(cmo_list* ); cmo* list_nth(cmo_list* , int n); +cell* list_nth_cell(cmo_list* , int n); cmo* list_first_cmo(cmo_list *); +char* cmo_indeterminate_get_name(cmo_indeterminate *); int cmolen_cmo(cmo* m); void dump_buffer_init(char *s); @@ -318,6 +323,7 @@ char* get_symbol_by_tag(int tag); /* for mathcap database */ mathcap *new_mathcap(); void mathcap_init(int ver, char *vstr, char *sysname, int cmos[], int sms[]); +void mathcap_init2(int ver, char *vstr, char *sysname, int cmos[], int sms[], char *options[]); cmo_mathcap* mathcap_get(mathcap *); mathcap *mathcap_update(mathcap *, cmo_mathcap *mc); int mathcap_allowQ_cmo(mathcap *, cmo *ob); @@ -349,6 +355,13 @@ char *generate_otp(); int ox_stderr_init(FILE *fp); int ox_printf(char *format, ...); + +int gclose(); +int gopen(); +int gFlush(); +int moveto(int x, int y); +int lineto(int x, int y); +int setpixel(int x, int y); #ifdef __cplusplus }