[gforth] / gforth / Attic / primitives  

gforth: gforth/Attic/primitives

Diff for /gforth/Attic/primitives between version 1.15 and 1.16

version 1.15, Wed Aug 31 19:42:50 1994 UTC version 1.16, Mon Sep 5 17:36:23 1994 UTC
Line 610 
Line 610 
 system  c_addr u -- n   own  system  c_addr u -- n   own
 n=system(cstr(c_addr,u));  n=system(cstr(c_addr,u));
   
   getenv  c_addr1 u1 -- c_addr2 u2        new
   c_addr2 = getenv(cstr(c_addr1,u1));
   u2=strlen(c_addr2);
   
 popen   c_addr u n -- wfileid   own  popen   c_addr u n -- wfileid   own
 static char* mode[2]={"r","w"};  static char* mode[2]={"r","w"};
 wfileid=(Cell)popen(cstr(c_addr,u),mode[n]);  wfileid=(Cell)popen(cstr(c_addr,u),mode[n]);
Line 617 
Line 621 
 pclose  wfileid -- wior own  pclose  wfileid -- wior own
 wior=pclose((FILE *)wfileid);  wior=pclose((FILE *)wfileid);
   
 time&date       -- nyear nmonth nday nhour nmin nsec    ansi    time_and_date  time&date       -- nyear nmonth nday nhour nmin nsec    facility-ext    time_and_date
 struct timeval time1;  struct timeval time1;
 struct timezone zone1;  struct timezone zone1;
 struct tm *ltime;  struct tm *ltime;
Line 630 
Line 634 
 nmin  =ltime->tm_min;  nmin  =ltime->tm_min;
 nsec  =ltime->tm_sec;  nsec  =ltime->tm_sec;
   
 ms      n --    ansi  ms      n --    facility-ext
 struct timeval timeout;  struct timeval timeout;
 timeout.tv_sec=n/1000;  timeout.tv_sec=n/1000;
 timeout.tv_usec=1000*(n%1000);  timeout.tv_usec=1000*(n%1000);


Generate output suitable for use with a patch program
Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help