Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve UWP support. #8963

Merged
merged 4 commits into from
Jun 11, 2018
Merged

Improve UWP support. #8963

merged 4 commits into from
Jun 11, 2018

Conversation

jaykrell
Copy link
Contributor

No description provided.

…ile GetDriveType GetComputerNameW

Some of these were already supported and identical code copied.
@@ -45,25 +45,26 @@ mono_icall_module_get_hinstance (MonoReflectionModuleHandle module)
return (gpointer) (-1);
}

#if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT)
#if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, you would prefer, this identical content be in icall-windows-uwp.c, instead of icall-windows.c? Identical content and identical if, still used by both classic and uwp?

@@ -393,14 +393,18 @@ mono_w32file_move (const gunichar2 *path, const gunichar2 *dest, gint32 *error)
return result;
}

#endif

#if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
Copy link
Contributor Author

@jaykrell jaykrell May 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, you would prefer, this identical content be in w32file-win32-uwp.c, instead of w32file-win32.c? Identical content and identical if, still used by both classic and uwp?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And a few others ditto.

@jaykrell jaykrell changed the title Update UWP support some. Improve UWP support. Jun 1, 2018
@jaykrell jaykrell force-pushed the uwp branch 20 times, most recently from 1ecf0ac to c176679 Compare June 1, 2018 11:17
Introduce fine-grained ifdefs.
This should make maintenace of other subsets easier.
@jaykrell
Copy link
Contributor Author

jaykrell commented Jun 7, 2018

@monojenkins build failed

@jaykrell
Copy link
Contributor Author

jaykrell commented Jun 8, 2018

@monojenkins build Linux AArch64

@jaykrell
Copy link
Contributor Author

jaykrell commented Jun 8, 2018

@monojenkins build failed

@jaykrell jaykrell merged commit a48ba55 into mono:master Jun 11, 2018
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* [uwp] UWP supports: ReplaceFile CopyFile LockFile UnlockFile GetDriveType GetComputerNameW
Some of these were already supported and identical code copied.

* Remove pre-Windows 2000 support -- use GetFileSizeEx instead of GetFileSize.
UWP does not support GetFileSize.

* Introduce fine-grained ifdefs.
This should make maintenance of Win32 subsets easier (see w32subset.h).

* Generally the code should be/stay in "classic.c" and the "uwp.c" files can/should go away. The uwp.c files were a medium-sized granularlity of reuse/replace, but the fine-grained ifdefs are better/smaller -- more code reuse.

Commit migrated from mono/mono@a48ba55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants