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

Diff for /OpenXM_contrib2/asir2000/parse/compile.c between version 1.2 and 1.7

version 1.2, 2000/08/21 08:31:46 version 1.7, 2015/08/14 13:51:56
Line 23 
Line 23 
  * 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.
  *   *
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/compile.c,v 1.1.1.1 1999/12/03 07:39:12 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/parse/compile.c,v 1.6 2015/08/08 14:19:42 fujimoto Exp $
 */  */
 #include <ctype.h>  #include <ctype.h>
 #include "ca.h"  #include "ca.h"
Line 193  SNODE f;
Line 193  SNODE f;
                 case S_BP:                  case S_BP:
                         if ( !nextbp && (!FA1(f) || compile((FNODE)FA1(f))) ) {                          if ( !nextbp && (!FA1(f) || compile((FNODE)FA1(f))) ) {
                                 if ( (FNODE)FA2(f) ) {                                  if ( (FNODE)FA2(f) ) {
 #if PARI  #if defined(PARI)
                                         extern FILE *outfile;                                          extern FILE *outfile;
                                         outfile = stderr;                                          outfile = stderr;
 #endif  #endif
                                         asir_out = stderr;                                          asir_out = stderr;
                                         printexpr(CO,compile((FNODE)FA2(f)));                                          printexpr(CO,compile((FNODE)FA2(f)));
                                         putc('\n',asir_out); fflush(asir_out);                                          putc('\n',asir_out); fflush(asir_out);
 #if PARI  #if defined(PARI)
                                         outfile = stdout;                                          outfile = stdout;
 #endif  #endif
                                         asir_out = stdout;                                          asir_out = stdout;
Line 590  FUNC *r;
Line 590  FUNC *r;
         f->name = name; f->id = A_PARI; f->argc = 0; f->f.binf = 0;          f->name = name; f->id = A_PARI; f->argc = 0; f->f.binf = 0;
 }  }
   
 void mkuf(name,fname,args,body,startl,endl,desc)  void mkuf(name,fname,args,body,startl,endl,desc,module)
 char *name,*fname;  char *name,*fname;
 NODE args;  NODE args;
 SNODE body;  SNODE body;
 int startl,endl;  int startl,endl;
 char *desc;  char *desc;
   MODULE module;
 {  {
         FUNC f;          FUNC f;
         USRF t;          USRF t;
Line 629  char *desc;
Line 630  char *desc;
                 fprintf(stderr,"%s() defined.\n",name); */                  fprintf(stderr,"%s() defined.\n",name); */
         t=(USRF)MALLOC(sizeof(struct oUSRF));          t=(USRF)MALLOC(sizeof(struct oUSRF));
         t->args=args; BDY(t)=body; t->pvs = CPVS; t->fname = fname;          t->args=args; BDY(t)=body; t->pvs = CPVS; t->fname = fname;
         t->startl = startl; t->endl = endl; t->vol = asir_infile->vol;          t->startl = startl; t->endl = endl;
         t->desc = desc;          t->desc = desc; t->module = module;
         f->id = A_USR; f->argc = argc; f->f.usrf = t;          f->id = A_USR; f->argc = argc; f->f.usrf = t;
         CPVS = GPVS;          CPVS = GPVS;
         clearbp(f);          clearbp(f);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.7

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