version 1.2, 2000/08/21 08:31:18 |
version 1.5, 2001/10/09 01:36:05 |
|
|
* shall be made on your publication or presentation in any form of the |
* shall be made on your publication or presentation in any form of the |
* results obtained by use of the SOFTWARE. |
* results obtained by use of the SOFTWARE. |
* (4) In the event that you modify the SOFTWARE, you shall notify FLL by |
* (4) In the event that you modify the SOFTWARE, you shall notify FLL by |
* e-mail at risa-admin@flab.fujitsu.co.jp of the detailed specification |
* e-mail at risa-admin@sec.flab.fujitsu.co.jp of the detailed specification |
* for such modification or the source code of the modified part of the |
* for such modification or the source code of the modified part of the |
* SOFTWARE. |
* SOFTWARE. |
* |
* |
|
|
* 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/algnum.c,v 1.1.1.1 1999/12/03 07:39:07 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/builtin/algnum.c,v 1.4 2000/12/05 01:24:49 noro Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
|
|
void Pdefpoly(), Pnewalg(), Pmainalg(), Palgtorat(), Prattoalg(), Pgetalg(); |
void Pdefpoly(), Pnewalg(), Pmainalg(), Palgtorat(), Prattoalg(), Pgetalg(); |
void Palg(), Palgv(), Pgetalgtree(); |
void Palg(), Palgv(), Pgetalgtree(); |
|
|
#if defined(THINK_C) |
|
void mkalg(P,Alg *); |
void mkalg(P,Alg *); |
int cmpalgp(P,P); |
int cmpalgp(P,P); |
void algptop(P,P *); |
void algptop(P,P *); |
void algtorat(Num,Obj *); |
void algtorat(Num,Obj *); |
void rattoalg(Obj,Alg *); |
void rattoalg(Obj,Alg *); |
void ptoalgp(P,P *); |
void ptoalgp(P,P *); |
#else |
void clctalg(P,VL *); |
void mkalg(); |
|
int cmpalgp(); |
|
void algptop(); |
|
void algtorat(); |
|
void rattoalg(); |
|
void ptoalgp(); |
|
void clctalg(); |
|
#endif |
|
|
|
struct ftab alg_tab[] = { |
struct ftab alg_tab[] = { |
{"defpoly",Pdefpoly,1}, |
{"defpoly",Pdefpoly,1}, |
|
|
t = BDY((Alg)a); |
t = BDY((Alg)a); |
switch ( OID(t) ) { |
switch ( OID(t) ) { |
case O_P: |
case O_P: |
clctalg(t,&vl); break; |
clctalg((P)t,&vl); break; |
case O_R: |
case O_R: |
clctalg(NM((R)t),&vl1); |
clctalg(NM((R)t),&vl1); |
clctalg(DN((R)t),&vl2); |
clctalg(DN((R)t),&vl2); |