[Aegisvm-devel] Introducing a JFile structure for JPR
Status: Pre-Alpha
Brought to you by:
pwlfong
|
From: Gildas B. <gb...@al...> - 2002-09-21 17:30:56
|
Hi Philip,
I've got a few more patches to propose you :)
Recently I've been working on a Win32 port of AegisVM. In the process, I had
to make one change to the API of JPR which does break compatibility with
older versions.
I introduced a new JFile structure:
struct JFile {
void *data; /* pointer to the mmap area */
size_t size; /* size of mmap data */
#ifdef WIN32
HANDLE hmmap; /* handle of file mapping object */
HANDLE hfile; /* handle of file */
#endif
};
This change is needed on Win32 because we need to know "hmmap", "hfile" and
"data" when freeing a mmapped file.
I think hidding the platform specific details in a structure like this does
make aegisvm more platform independant.
So here is the patch for JPR and AegisVM. The patch for JPR also includes
some Win32 specific bits which touched the io.[hc] files, but I'll send you
the rest of the win32 port in a separate patch.
Regards,
--
Gildas |