From: SourceForge.net <no...@so...> - 2006-04-18 09:55:40
|
Patches item #1426209, was opened at 2006-02-08 04:39 Message generated for change (Comment added) made by dannysmith You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=302435&aid=1426209&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: w32api >Group: Patch committed >Status: Closed >Resolution: Duplicate Priority: 5 Submitted By: Eric House (ehouse) Assigned to: Danny Smith (dannysmith) Summary: header changes to allow PocketPC development Initial Comment: The included patch makes changes to four existing files in src/winsup/w32api/include/, and adds a new file. The purpose of my changes is to allow PocketPC applications to be developed using the same set of headers as are used for win32 apps. My changes are of three types. The first modifies structs (one struct, WIN32_FIND_DATA, with A and W variants) to remove and rename fields to align it with the definition in the documentation on MSDN. The second changes the declarations of functions not found in DLLs on PocketPC. Rather than remove them altogether, I've conditionally declared them 'extern' as an indicator to developers that they will need to provide their own implementations. Over time I hope to add implementations to the pocketpc development suite in Debian. The third change adds new functions and struct declarations that are used only for PocketPC development. As before, I've taken the definitions from the documentation on the MSDN site. And again, some functions that appear not to be in the DLLs are declared extern, when I couldn't figure out from the MSDN docs how to implement them inline, or provided as macros. The sources of information are MSDN API docs and an obscure article that happens to give the ordinals for two functions that are not exported by name: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncenet/html/wincenet_cepcc_app.asp I've used two methods to test my changes. First, I've compiled and run a large open source app (xwords.sf.net) against the MinGW headers with my changes in place. In most cases my changes have fixed bugs in the app. For example, the change to WIN32_FIND_DATA stopped the cFileName field from losing its first two bytes. Second, in cases where I did not use an API I was adding I wrote a trivial test app and verified that it would load correctly on the device. These changes are not fully useful without corresponding changes to the pocketpc-sdk package on Debian. For example, the code at xwords.sf.net will not link without them. I am submitting patches to that package as well. ---------------------------------------------------------------------- >Comment By: Danny Smith (dannysmith) Date: 2006-04-18 21:55 Message: Logged In: YES user_id=11494 Thanks. Committed. Danny ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=302435&aid=1426209&group_id=2435 |