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

Diff for /OpenXM_contrib2/asir2000/builtin/miscf.c between version 1.9 and 1.17

version 1.9, 2000/11/14 08:38:38 version 1.17, 2003/04/02 06:48:19
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/miscf.c,v 1.8 2000/08/22 05:03:59 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/builtin/miscf.c,v 1.16 2003/03/07 06:39:55 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
 #if INET && !defined(VISUAL)  #if !defined(VISUAL) && defined(DO_PLOT)
 #include <X11/Xlib.h>  #include <X11/Xlib.h>
 #include <X11/cursorfont.h>  #include <X11/cursorfont.h>
 #endif  #endif
   
   #if defined(VISUAL)
   #include <stdlib.h>
   #include <windows.h>
   #endif
   
 void Pquit(), Pdebug(), Pnmono(), Pnez(), Popt(), Pshell(), Pheap();  void Pquit(), Pdebug(), Pnmono(), Pnez(), Popt(), Pshell(), Pheap();
 void Perror(), Perror3(), Pversion(), Pflist(), Pdelete_history(), Ppause(), Pxpause();  void Perror(), Perror3(), Pversion(), Pflist(), Pdelete_history(), Ppause(), Pxpause();
 void Pr2g(), Pread_cmo(), Pwrite_cmo();  void Pr2g(), Pread_cmo(), Pwrite_cmo();
Line 62  void Pnull_command();
Line 67  void Pnull_command();
 void Pgetenv();  void Pgetenv();
 void Pget_addr(),Phex_dump();  void Pget_addr(),Phex_dump();
 void Ppeek(),Ppoke();  void Ppeek(),Ppoke();
   void Psleep();
   
 void delete_history(int,int);  void delete_history(int,int);
   
 struct ftab misc_tab[] = {  struct ftab misc_tab[] = {
           {"sleep",Psleep,1},
         {"null_command",Pnull_command,-99999},          {"null_command",Pnull_command,-99999},
         {"getenv",Pgetenv,1},          {"getenv",Pgetenv,1},
         {"end",Pquit,0},          {"end",Pquit,0},
Line 73  struct ftab misc_tab[] = {
Line 80  struct ftab misc_tab[] = {
         {"debug",Pdebug,0},          {"debug",Pdebug,0},
         {"shell",Pshell,-2},          {"shell",Pshell,-2},
         {"heap",Pheap,-1},          {"heap",Pheap,-1},
         {"version",Pversion,0},          {"version",Pversion,-99999},
         {"nmono",Pnmono,1},          {"nmono",Pnmono,1},
         {"error",Perror,1},          {"error",Perror,1},
         {"error3",Perror3,3},          {"error3",Perror3,3},
Line 88  struct ftab misc_tab[] = {
Line 95  struct ftab misc_tab[] = {
         {"hex_dump",Phex_dump,2},          {"hex_dump",Phex_dump,2},
         {"peek",Ppeek,1},          {"peek",Ppeek,1},
         {"poke",Ppoke,2},          {"poke",Ppoke,2},
 #if INET && !defined(VISUAL) && DO_PLOT  #if !defined(VISUAL) && defined(DO_PLOT)
         {"xpause",Pxpause,0},          {"xpause",Pxpause,0},
 #endif  #endif
 #if 0  #if 0
Line 97  struct ftab misc_tab[] = {
Line 104  struct ftab misc_tab[] = {
         {0,0,0},          {0,0,0},
 };  };
   
   void Psleep(arg,rp)
   NODE arg;
   Q *rp;
   {
           int ms;
   
           ms = QTOS((Q)ARG0(arg));
   #if defined(VISUAL)
           Sleep(ms);
   #else
           usleep(ms*1000);
   #endif
           *rp = ONE;
   }
   
 void Pgetenv(arg,rp)  void Pgetenv(arg,rp)
 NODE arg;  NODE arg;
 STRING *rp;  STRING *rp;
Line 196  Q *rp;
Line 218  Q *rp;
 }  }
   
 unsigned int get_asir_version();  unsigned int get_asir_version();
   char *get_asir_distribution();
   
 void Pversion(rp)  void Pversion(arg,rp)
 Q *rp;  NODE arg;
   Obj *rp;
 {  {
         unsigned int version;          unsigned int version;
           char *distribution;
           Q q;
           STRING str;
           NODE n;
           LIST l;
   
         version = get_asir_version();          version = get_asir_version();
         STOQ(version,*rp);          distribution = get_asir_distribution();
           UTOQ(version,q);
           if ( !argc(arg) )
                   *rp = (Obj)q;
           else {
                   MKSTR(str,distribution);
                   n = mknode(2,q,str);
                   MKLIST(l,n);
                   *rp = (Obj)l;
           }
 }  }
   
 extern int nez;  extern int nez;
Line 233  void Perror3(arg,rp)
Line 271  void Perror3(arg,rp)
 NODE arg;  NODE arg;
 Q *rp;  Q *rp;
 {  {
         char s[BUFSIZ];  
         int code;          int code;
         char *reason,*action;          char *reason,*action;
   
Line 333  Q *rp;
Line 370  Q *rp;
         STOQ(ret,*rp);          STOQ(ret,*rp);
 }  }
   
 #if INET && !defined(VISUAL) && DO_PLOT  #if !defined(VISUAL) && defined(DO_PLOT)
 void Pxpause(rp)  void Pxpause(rp)
 Q *rp;  Q *rp;
 {  {

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.17

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