ck_null, /* readline */
ck_null, /* rcatline */
ck_fun, /* regcmaybe */
+ ck_fun, /* regcreset */
ck_null, /* regcomp */
ck_match, /* match */
ck_null, /* subst */
pp_readline,
pp_rcatline,
pp_regcmaybe,
+ pp_regcreset,
pp_regcomp,
pp_match,
pp_subst,
int pmode, int &err) = 0;
virtual int Read(int handle, void *buffer,
unsigned int count, int &err) = 0;
- virtual int Rename(const char *oldname,
+ virtual int Rename(const char *oname,
const char *newname, int &err) = 0;
virtual int Setmode(int handle, int mode, int &err) = 0;
virtual int NameStat(const char *path,
piLIO->Open((file), (flag), (perm), ErrorNo())
#define PerlLIO_read(fd, buf, count) \
piLIO->Read((fd), (buf), (count), ErrorNo())
-#define PerlLIO_rename(oldname, newname) \
- piLIO->Rename((oldname), (newname), ErrorNo())
+#define PerlLIO_rename(oname, newname) \
+ piLIO->Rename((oname), (newname), ErrorNo())
#define PerlLIO_setmode(fd, mode) \
piLIO->Setmode((fd), (mode), ErrorNo())
#define PerlLIO_stat(name, buf) \
return pPerl->piLIO->NameStat(name, sbufptr, ErrorNo());
}
-int _win32_rename(const char *oldname, const char *newname)
+int _win32_rename(const char *oname, const char *newname)
{
- return pPerl->piLIO->Rename(oldname, newname, ErrorNo());
+ return pPerl->piLIO->Rename(oname, newname, ErrorNo());
}
int _win32_setmode(int fd, int mode)
#
# if you have the source for des_fcrypt(), uncomment this and make sure the
-# file exists (see README.win32). File should be located at the perl
-# top level directory.
+# file exists (see README.win32). File should be located in the same
+# directory as this file.
#
#CRYPT_SRC = des_fcrypt.c
..\universal.c \
..\util.c
-!IF "$(CRYPT_SRC)" != ""
-MICROCORE_SRC = $(MICROCORE_SRC) ..\$(CRYPT_SRC)
-!ENDIF
-
!IF "$(PERL_MALLOC)" == "define"
EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
!ENDIF
WIN32_SRC = $(WIN32_SRC) .\win32thread.c
!ENDIF
+!IF "$(CRYPT_SRC)" != ""
+WIN32_SRC = $(WIN32_SRC) .\$(CRYPT_SRC)
+!ENDIF
+
PERL95_SRC = \
perl95.c \
win32mt.c \
win32sckmt.c
!IF "$(CRYPT_SRC)" != ""
-PERL95_SRC = $(PERL95_SRC) ..\$(CRYPT_SRC)
+PERL95_SRC = $(PERL95_SRC) .\$(CRYPT_SRC)
!ENDIF
DLL_SRC = $(DYNALOADER).c
#
# if you have the source for des_fcrypt(), uncomment this and make sure the
-# file exists (see README.win32). File should be located at the perl
-# top level directory.
+# file exists (see README.win32). File should be located in the same
+# directory as this file.
#
#CRYPT_SRC *= des_fcrypt.c
..\universal.c \
..\util.c
-.IF "$(CRYPT_SRC)" != ""
-MICROCORE_SRC += ..\$(CRYPT_SRC)
-.ENDIF
-
.IF "$(PERL_MALLOC)" == "define"
EXTRACORE_SRC += ..\malloc.c
.ENDIF
WIN32_SRC += .\win32thread.c
.ENDIF
+.IF "$(CRYPT_SRC)" != ""
+WIN32_SRC += .\$(CRYPT_SRC)
+.ENDIF
+
PERL95_SRC = \
perl95.c \
win32mt.c \
win32sckmt.c
.IF "$(CRYPT_SRC)" != ""
-PERL95_SRC += ..\$(CRYPT_SRC)
+PERL95_SRC += .\$(CRYPT_SRC)
.ENDIF
DLL_SRC = $(DYNALOADER).c
}
DllExport int
-win32_rename(const char *oldname, const char *newname)
+win32_rename(const char *oname, const char *newname)
{
char szNewWorkName[MAX_PATH+1];
WIN32_FIND_DATA fdOldFile, fdNewFile;
HANDLE handle;
char *ptr;
- if ((strchr(oldname, '\\') || strchr(oldname, '/'))
+ if ((strchr(oname, '\\') || strchr(oname, '/'))
&& strchr(newname, '\\') == NULL
&& strchr(newname, '/') == NULL)
{
- strcpy(szNewWorkName, oldname);
+ strcpy(szNewWorkName, oname);
if ((ptr = strrchr(szNewWorkName, '\\')) == NULL)
ptr = strrchr(szNewWorkName, '/');
strcpy(++ptr, newname);
else
strcpy(szNewWorkName, newname);
- if (stricmp(oldname, szNewWorkName) != 0) {
+ if (stricmp(oname, szNewWorkName) != 0) {
// check that we're not being fooled by relative paths
// and only delete the new file
// 1) if it exists
// 2) it is not the same file as the old file
// 3) old file exist
// GetFullPathName does not return the long file name on some systems
- handle = FindFirstFile(oldname, &fdOldFile);
+ handle = FindFirstFile(oname, &fdOldFile);
if (handle != INVALID_HANDLE_VALUE) {
FindClose(handle);
}
}
}
- return rename(oldname, newname);
+ return rename(oname, newname);
}
DllExport int
DllExport int win32_pipe( int *phandles, unsigned int psize, int textmode );
DllExport FILE* win32_popen( const char *command, const char *mode );
DllExport int win32_pclose( FILE *pf);
-DllExport int win32_rename( const char *oldname, const char *newname);
+DllExport int win32_rename( const char *oname, const char *newname);
DllExport int win32_setmode( int fd, int mode);
DllExport long win32_lseek( int fd, long offset, int origin);
DllExport long win32_tell( int fd);