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

Diff for /OpenXM_contrib2/asir2000/builtin/print.c between version 1.19 and 1.21

version 1.19, 2005/09/28 08:08:34 version 1.21, 2006/02/01 07:29:29
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/builtin/print.c,v 1.18 2005/04/28 08:14:46 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/builtin/print.c,v 1.20 2005/12/10 14:14:15 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
Line 65  struct ftab print_tab[] = {
Line 65  struct ftab print_tab[] = {
         {0,0,0},          {0,0,0},
 };  };
   
   extern int I_am_server;
   
 void Pprint(NODE arg,pointer *rp)  void Pprint(NODE arg,pointer *rp)
 {  {
         Obj obj;          Obj obj;
Line 92  void Pprint(NODE arg,pointer *rp)
Line 94  void Pprint(NODE arg,pointer *rp)
                         putc('\n',asir_out);                          putc('\n',asir_out);
                 }                  }
         }          }
           /* XXX : if ox_asir, we have to fflush always */
           if ( I_am_server )
                   fflush(asir_out);
         *rp = 0;          *rp = 0;
 }  }
   
Line 256  void fnodetotree(FNODE f,LIST *rp)
Line 261  void fnodetotree(FNODE f,LIST *rp)
                         break;                          break;
   
                 /* function */                  /* function */
                 case I_FUNC: case I_CAR: case I_CDR: case I_EV:                  case I_FUNC: case I_FUNC_QARG: case I_CAR: case I_CDR: case I_EV:
                         MKSTR(head,"function");                          MKSTR(head,"function");
                         switch ( f->id ) {                          switch ( f->id ) {
                                 case I_FUNC:                                  case I_FUNC: case I_FUNC_QARG:
                                         MKSTR(op,((FUNC)FA0(f))->fullname);                                          MKSTR(op,((FUNC)FA0(f))->fullname);
                                         fnodetotree((FNODE)FA1(f),&a1);                                          fnodetotree((FNODE)FA1(f),&a1);
                                         break;                                          break;

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.21

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