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

Diff for /OpenXM_contrib2/asir2000/builtin/file.c between version 1.32 and 1.33

version 1.32, 2015/03/15 19:31:30 version 1.33, 2015/08/06 10:01:51
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/file.c,v 1.31 2014/05/12 02:27:49 ohara Exp $   * $OpenXM: OpenXM_contrib2/asir2000/builtin/file.c,v 1.32 2015/03/15 19:31:30 ohara Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
 #include "ox.h"  #include "ox.h"
 #include "base.h"  #include "base.h"
 #if !defined(VISUAL)  #if !defined(VISUAL) && !defined(__MINGW32__) && !defined(__MINGW64__)
 #include "unistd.h"  #include "unistd.h"
 #endif  #endif
 #if defined(PARI)  #if defined(PARI)
 #include "genpari.h"  #include "genpari.h"
 #endif  #endif
   
 #if defined(VISUAL)  #if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__)
 #include <windows.h>  #include <windows.h>
 #include <process.h>  #include <process.h>
 #include <io.h>  #include <io.h>
Line 508  void Pbload_cmo(NODE arg,Obj *rp)
Line 508  void Pbload_cmo(NODE arg,Obj *rp)
   
 static struct oSTRING rootdir;  static struct oSTRING rootdir;
   
 #if defined(VISUAL)  #if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__)
 void get_rootdir(char *name,int len)  void get_rootdir(char *name,int len)
 {  {
         LONG    ret;          LONG    ret;
Line 591  void Pgetpid(Q *rp)
Line 591  void Pgetpid(Q *rp)
 {  {
         int id;          int id;
   
 #if defined(VISUAL)  #if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__)
         id = GetCurrentProcessId();          id = GetCurrentProcessId();
 #else  #else
         id = getpid();          id = getpid();
Line 701  void Paccess(NODE arg,Q *rp)
Line 701  void Paccess(NODE arg,Q *rp)
                 *rp = 0;                  *rp = 0;
 }  }
   
 #if defined(VISUAL)  #if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__)
 int process_id()  int process_id()
 {  {
         return GetCurrentProcessId();          return GetCurrentProcessId();

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

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