[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.28 and 1.32

version 1.28, 2013/02/15 07:05:49 version 1.32, 2015/03/15 19:31:30
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.27 2009/03/13 04:45:15 ohara Exp $   * $OpenXM: OpenXM_contrib2/asir2000/builtin/file.c,v 1.31 2014/05/12 02:27:49 ohara Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
Line 68 
Line 68 
 #define R_OK 0x04  #define R_OK 0x04
 #endif  #endif
   
   void Psprintf(NODE,STRING *);
   
 void Pget_rootdir();  void Pget_rootdir();
 void Paccess(),Premove_file();  void Paccess(),Premove_file();
 void Pbsave_enc(), Pbload_enc();  void Pbsave_enc(), Pbload_enc();
Line 518  void get_rootdir(char *name,int len)
Line 520  void get_rootdir(char *name,int len)
                 strcpy(name,rootdir.body);                  strcpy(name,rootdir.body);
                 return;                  return;
         }          }
           if ( GetModuleFileName(NULL,name,BUFSIZ) ) {
         if ( access("UseCurrentDir",0) >= 0 ) {  
                 GetCurrentDirectory(BUFSIZ,name);  
                 slash = strrchr(name,'\\');                  slash = strrchr(name,'\\');
                 if ( slash )                  *slash = 0;
                   slash = strrchr(name,'\\');
                   if ( slash )
                         *slash = 0;                          *slash = 0;
                 return;                  return;
         }          }

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

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