[RESEND] Sync (46): msvcrt cpp test

2003-08-23 Thread Jon Griffiths
. You'll need to re-run ./configure after applying. Cheers, Jon License: X11 ChangeLog: Jon Griffiths [EMAIL PROTECTED] +dlls/msvcrt/tests/cpp.c dlls/msvcrt/tests/Makefile.in dlls/msvcrt/tests/.cvsignore Tests for static RTTI and dynamic casting of cpp

Re: [RESEND] Sync (46): msvcrt cpp test

2003-08-23 Thread Jon Griffiths
Hi, Ignore this, it should have gone to wine-patches, and yahooPops seems to be truncating my mails. Aargh! Jon __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com

Re: spec file syntax and automated generation

2003-08-20 Thread Jon Griffiths
Hi, disclaimer I havent read the wine-user posts 1. The winebuild manpage only mentions ptr, str, wstr, long and double as valid Win32 function argument size information - is the amount and kind of symbols really important, or is it just the amount of used stack space? the type is used for

Re: Using Wine for Production Build Processes

2003-08-16 Thread Jon Griffiths
Hi Bob, We currently support production build processes using both FreeBSD snip We're currently using some in-house tools that drive Visual Studio using a COM interface, vs using command-line compilers and nmake. Does it make sense to try to run these builds using Wine? Not unless you have

Re: Sync (44): documentation/Makefile.in

2003-07-17 Thread Jon Griffiths
Hiya, Why do you keep $(SRCDIR) after pwd? man bash and man pwd both say nothing about giving pwd a path... you're right, theres no need for it, it just gets swallowed by the backticks so i didn't notice. What's really needed is either use our own db2html (but that was struck down already

RE: Sync(2): oleaut32 I1 funcs

2003-07-17 Thread Jon Griffiths
Hiya, Is there any reason for stripping out the parameter names from this file? They can be quite useful as a reminder for what each parameter is. Consistency and ease of reading, mostly. Before the patch only some of the calls have parameter names, and (e.g.) the variant calls aren't

Re: Widl Fixes

2003-03-18 Thread Jon Griffiths
Hi, --- Ove Kaaven [EMAIL PROTECTED] wrote: A new parameter to write_type/write_typedef which inhibits writing anything to the header but still sets written, for example... would that work? Err, probably, but I'm not convinced its a better solution without going back through the code again

Re: Fwd: Test Header

2003-03-18 Thread Jon Griffiths
Hi, This is wrong; if you link with msvcrt you have to use msvcrt headers, and then everything works fine, including references to stdout. If you mix glibc and msvcrt you are in trouble. Understood and noted here too - wrong but occasionally useful ;-) Can you apply the rest of the patch (ie

Re: ntdll Rtl Strings

2003-03-15 Thread Jon Griffiths
Hi, For base 0 it accepts: {whitespace} [+|-] [0[x|o|b]] {digits} For bases 2, 8, 10 and 16 it accepts: {whitespace} [+|-] {digits} I'll resend with this difference added, for what its worth. So: Feel free to reformat the comments of my functions, but do not remove information. Far be it

Re: winebuild initialisation

2003-03-15 Thread Jon Griffiths
Hi, --- Eric Pouech [EMAIL PROTECTED] wrote: any reason why not use DllMain instead of patching winebuild ? If you mean the DllMain of msvcrt, there is no way for the it to know what type of app is calling it AFAICS. Only the generated main knows, and should inform msvcrt when it starts. Also

Re: Widl Fixes

2003-03-15 Thread Jon Griffiths
Hi, --- Ove Kaaven [EMAIL PROTECTED] wrote: Could you explain the reason behind the last line, Don't dump full struct/enum definitions in prototypes, since this shouldn't happen in any case. The following idl file, foo.idl, cut down from my oleidl.idl for example purposes:

Re: DPRINTF-TRACE Final (Exceptions - not changed)

2003-03-15 Thread Jon Griffiths
Hi, but i can't without use of DPRINTF ... but if you have a better solution ? I suggest creating functions to print your types into a string, and then dump the created string. Then, if no trace is defined, make those functions macros that compile to nothing. Cheers, Jon = Don't wait

Re: Oleaut32 Debug Messages

2003-03-13 Thread Jon Griffiths
This way we can eliminate the DPRINTF macro which is rarely used, and thus confusing. Alexandre? Hence my suggestion to only use MESSAGE and DPRINTF inside dumping functions that can be elimated with macros. But as far as cosmetics go, i don't see how TMSG and TMS2 are any more ugly than

Re: LHashValOfNameSysA for 407

2002-12-14 Thread Jon Griffiths
I'll see If I can work out the hash table for that locale, might take a little while to get out though... Cheers, Jon --- Marcus Meissner [EMAIL PROTECTED] wrote: Hi, I have an app here, which uses locale 407, for which we do not implement LHashValOfNameSys yet... It reports:

Re: autoconf 2.52

2002-07-17 Thread Jon Griffiths
Hi, Conversely, I think it's quite reasonable to ask the few developers that need to change configure to install the latest autoconf, Sounds fair enough. I only got bitten by it when testing the update to winedump for the changes to the build system, I'd never use autoconf normally. Cheers,

Re: SHLWAPI ole32 (delay-load of dlls)

2002-07-16 Thread Jon Griffiths
--- [EMAIL PROTECTED] wrote: The LoadLibrary call comes from the implementation of DelayLoad Ah, In that case I can see why doing it manually is a waste of time ;-) Cheers, Jon = Don't wait for the seas to part, or messiahs to come; Don't you sit around and waste this chance... - Live

Re: mvcrt.ungetc and stdio buffering

2002-01-02 Thread Jon Griffiths
Have a look at the following two messages from Marcus Meissner to wine-devel and wine-patches: Hmm, those links dont work for me, however I remember: The header files for stdio have macro versions of putc/getc so your implementation must use the FILE structure fields in a binary compatable way

Re: SHLWAPI pre-submit questions

2001-12-05 Thread Jon Griffiths
Hiya, Thanks for your prompt responses. Based on yourfeedback I'll: 1. Create internal functions with meaningful names and call them when ordinal calls are used within the DLL (A plus to this is that the ordinal functions can stay in ordinal.c, and the implementation can go into the

SHLWAPI pre-submit questions

2001-12-04 Thread Jon Griffiths
Hi, I've been hacking on SHLWAPI.dll for a couple of months now while holidaying around Thailand, using a beaten up laptop. Since I just obtained free use of a real machine with a good net connection, I want to start submitting my work but I thought I'd clear up a few style issues beforehand:

Re: msvcrt/c++

2001-02-15 Thread Jon Griffiths
Hi, You should _really_ use register functions instead of inline assembly. Then you can do setjmp/longjmp 100% in C. I can't get this to build cleanly. Changing the type to register in the .spec, and adding a CONTEXT86 * as the last parameter in the prototype gave me an unresolved

Re: howto use dll´s in C

2001-02-14 Thread Jon Griffiths
Hi, If you have the wine sources, or browse them from www.winehq.com, checkout tools/specmaker/README. Also see the Winelib developer guide for details on Winelib in general. Note that if all you want is the string routines, thats a lot of overhead for a few routines. You might find they are

Re: msvcrt/c++

2001-02-14 Thread Jon Griffiths
You should _really_ use register functions instead of inline assembly. Then you can do setjmp/longjmp 100% in C. OK, new patch coming up shortly. I hadn't grokked register functions at all. On a related note, going forward we should really support __thiscall in the spec files too, and pass

Re: process.h patch

2001-02-13 Thread Jon Griffiths
Hi, Hmm, glad to see everyone is alive and well again. :-) Its been a slow week, no? Firstup, on copyright, I think I was misunderstood. When I say they are not copyrighted, I mean the author(s) have _given up_ their copyright explicitly. Each original header file carries the following

Re: Should Wine use alloca or not?

2001-02-13 Thread Jon Griffiths
On Monday 12 February 2001 15:33, Patrik Stridvall wrote: So perhaps we should debate whether we should use alloca or not. It seems this has been decided. I haven't examined or used alloca in years, so its possible that my personal objections don't apply in todays implementations ( a quick

Re: No implementation for shlwapi.dll.0(StrRetToBufA)

2001-02-12 Thread Jon Griffiths
Hi, Regedit has an annoying refresh problem due to a lack of a DrawAnimatedRects implementation... so, the next time you need a break and have nothing better to do... ;) Hmm, Ive played with regedit from 98 OSR2, and I cant make it call DrawAnimatedRects. What action specifically makes it

Re: Should Wine use alloca or not?

2001-02-12 Thread Jon Griffiths
Yes, LocalAlloc is for 16 bit source code compabillity and shouldn't be used by Win32 code. Oops, ok, HeapAlloc then :-) So perhaps we should debate whether we should use alloca or not. I'll throw my reasons in: -alloca with unknown length argument resolves to a function call, so isn't as

Re: No implementation for shlwapi.dll.0(StrRetToBufA)

2001-02-11 Thread Jon Griffiths
Why is wine-dev so quiet lately? This sad thread is almost the only one today. would it be that everyone is waiting for the return of Alexandre? I sure am! I've been working on shlwapi specmaker instead of msvcrt because I don't want to get tied up resubmitting patches, I need the ones

Re: various config files for various applications

2001-02-11 Thread Jon Griffiths
i know it was already at least mentioned here - how to provide config file that works without change for more than one application. what do you think about this concept? The problem here is the server. I notice that if you start one application with --managed, all applications started

Re: Eyes requested

2001-02-11 Thread Jon Griffiths
Hi, I don't know anything about the Win32 print API, but style wise I tend to stay away from alloca(). It screws up exception handling because it messes with the stack, and is machine dependant. Maybe LocalAlloc() would be a better choice? Cheers, Jon -- "Don't wait for the seas to part,

Re: Misc / Unicode

2001-02-06 Thread Jon Griffiths
I know this comes from from someone who just forgot to put a trailing '\0'. But still. Sounds like a job for winapi_check ;-) BTW, Is Alexandre away? I haven't seen any cvs commits for a week... Jon -- "Don't wait for the seas to part, or messiahs to come, Dont you sit around and waste

Re: debugger fix

2001-02-05 Thread Jon Griffiths
Hi, Perhaps it'd be nice to tie up all these memory issues with some kind of kernel patch... a way to read/write and generally mess with another process's memory that was broader and more efficient that p-trace. Something like that would be great for Linux, not sure how it could work with

Re: debugger fix

2001-02-04 Thread Jon Griffiths
So, does anyone have a hint on how to go about supporting VirualProtectEx/VirtualQueryEx on other provesses? Looking into this, the VirtualEx functions work within the address space of the target process. At user level I can't see any way to support this from the sever or any other process

Re: debugger fix

2001-02-03 Thread Jon Griffiths
Hi, debugger starts all right and I can go to a breakpoint using the dll name in uppercase.api trick. On a somewhat related note, I'm trying to get the debuggers from lcc and visual studio to work. VC is my preference since it will let you bring up a release build executable (i.e. any old

Re: WINE_UNICODE_TEXT

2001-02-01 Thread Jon Griffiths
Hi, Actually I suspect there's another problem with your patch. since you cast the return values to void*, WINE_UNICODE_TEXT("abc")+1 will very likely be wrong. Also I believe void* arithmetic is a gcc extension. I haven't checked, but youre probably right. However Ive never come across

Re: WINE_UNICODE_TEXT

2001-02-01 Thread Jon Griffiths
Hi, type WCHAR* and since sizeof(WCHAR)==2, it just adds two. Sounds likely. A cast back to WCHAR fixes it, anyhow, but isn't especially nice. Which means you get warnings too. I'm not too convinced about this patch especially because it does not return the proper type. On the other

Re: Suggestion

2001-01-25 Thread Jon Griffiths
Hi Dror, if this sounds really idiotic, just delete this post, and forget you ever saw it.. :) Its not a stupid idea, but anyone who has the wine source can generate a list of unimplemented calls with find wine-src-path/dlls -name "*.spec" -exec grep stub {} \; -print So it seems overkill

Re: MSVCRT,Unicode

2001-01-19 Thread Jon Griffiths
Whoops, Due to underzealous diff checking on my part, the patch will cause a regression on toupper/tolower; the following tiny patch needs to be applied after it: Cheers, Jon Content-Type: application/x-bzip2; charset="iso-8859-1";

Re: MSVCRT,Unicode

2001-01-19 Thread Jon Griffiths
wsprintfW() in user32 is not the same as swprintf(), it only supports a small subset of the possible format strings. We need a complete Unicode printf implementation in ntdll (or maybe in libwine.so). wsprintfW supports the formats I need at present, so implementing it in ntdll would just

Re: Fwd: Re: MSVCRT,Unicode

2001-01-19 Thread Jon Griffiths
Why the app does _nothing_ with dllonexit stubbed is a mystery to me, but I am never surprised by any stupid thing a windows programmer might do. :-) Are you sure its dllonexit thats causing the problem? It shouldn't have an effect until the dll that called it is unloaded... Have you got

Re: Winelib + Unicode

2001-01-18 Thread Jon Griffiths
If you do get some docs written, by all means submit it to one of the Wine guides (the Winelib User Guide?). If you don't feel like writing it in DocBook, you can just send me the plain ASCII text, and I'd be happy to convert it and find a good place for it. big grin I was hoping someone

Re: Winelib + Unicode

2001-01-17 Thread Jon Griffiths
Hi, Use gcc 2.97 with -fshort-wchar. Well, this was for VWCL, and I wanted to make the price of entry as low as possible for the existing win programmers, so I've gone for another solution; since its a C++ framework its sufficient to use #define VTEXTW(str) wine_unicode_text(L##str) and

Re: Winelib + Unicode

2001-01-17 Thread Jon Griffiths
Hi, Of course the name is a bit long (and it's WINE specific) so you could do: #define VTEXTW(x) WINE_UNICODE_TEXT(x) In this case the macro is only used in c++, so I used what WINE_UNICODE_TEXT expands to in this context; this works for single chars and strings. I think to be

Re: Winelib + Unicode

2001-01-17 Thread Jon Griffiths
Actually it helps a little in that you can use the standard C library headers (e.g. to get wcslen) and then link with crtdll or msvcrt. This is what I was wondering; given that they expect wchar_t* and Winelib uses WCHAR* I assumed the headers would be useless. But the libc C still

Re: ./math.c:329: `d' undeclared (first use in this function)

2001-01-12 Thread Jon Griffiths
On Friday 12 January 2001 02:58, Gerald Pfeifer wrote: The following patch should fix the bug. snip Aargh. All that cutting and pasting, I was bound to screw a couple up ;-( I have a couple of other minor fixes after testing crt vs msvcrt to come... Thanks, Jon -- "Once you realise you're

Re: MSVCRT

2001-01-11 Thread Jon Griffiths
OK, I'll try and find a cleaner way to implement this. Cheers, Jon On Thursday 11 January 2001 00:19, Alexandre Julliard wrote: First, as already mentioned here, you cannot access %esp from inline assembly and hope to have it point to something specific, gcc is free to manage the stack

Re: MSVCRT

2001-01-11 Thread Jon Griffiths
My objection was about local_unwind2, where you were using %esp to reference local variables. This cannot work, even if you don't modify %esp in the inline assembly. Got it, chaining the exception frame using esp is only valid if gcc pushes the registration struct onto the stack (not a safe

Re: Patches?

2001-01-04 Thread Jon Griffiths
On Thursday 04 January 2001 05:52, Shane Nifong wrote: I am new to open source so forgive me. How do I know if someone is working on (or in) the sections that I want to work on? Where I work we can look into our source management tool and see who is working on which files. Also, if that

Re: Patches?

2001-01-03 Thread Jon Griffiths
On Wednesday 03 January 2001 06:42, Shane Nifong wrote: I am starting to work on the advapi32 functions. I was wondering if I make changes to the stub files that are there how often to I create patches or update using CVS? Should I create patches first? I normally work in one or more

msvcrt init

2001-01-01 Thread Jon Griffiths
Hi, It seems win32 programs that link with msvcrt get a load of calls inserted into their pre main/WinMain startup code to initialise the run time. Just to get a simple program running (well, crashing _after_ main()) required implementing a load of init stuff. I was catering for Winelib

d3ddevice/mesa.c compile error

2001-01-01 Thread Jon Griffiths
Hi, Im getting a build error since I upgraded to Mandrake 7.2: gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -fno-strength-reduce -mpreferred-stack-boundary=2 -fPIC -D__WINE__ -D_REENTRANT -I/usr/X11R6/include -o d3ddevice/mesa.o d3ddevice/mesa.c d3ddevice/mesa.c:37:

Re: New wine icon

2000-12-31 Thread Jon Griffiths
On Monday 01 January 2001 05:24, Ove Kaaven wrote: (But from what I found in my mailbox, it seems you were right about the martini glass issue, at least, it's just that the WineHQ logo isn't really a wine glass either) It may not be a Wine glass, but it looks a lot better than the existing

Re: MSVCRT

2000-12-30 Thread Jon Griffiths
Hi, Definitely, I am not sure how to go about this now though. Should we just say the hell with it and forward to CRTDLL since our CRTDLL is working better or should we just move code out of CRTDLL and into MSVCRT a function at a time (or several at a time)? I would prefer sticking with

Re: MSVCRT

2000-12-30 Thread Jon Griffiths
On Sunday 31 December 2000 2:15 am, Andreas Mohr wrote: You could always make Wine use the *native* version of the file as default loadorder. What's the problem ? Well, of course if people start forcing the loadorder to builtin, then we're outta luck... Thats what I did (wanting to run a

DLL functions returning structs

2000-11-22 Thread Jon Griffiths
Hi all, While updating my crt test harness, I found a call returning strange values using the native DLL. The call is "ldiv", which returns an ldiv_t struct _by value_. ldiv_t is defined the same under linux and windows. The spec entry is: @ cdecl ldiv(long long) ldiv i.e it uses the libc

Re: DLL functions returning structs-Info+Suggestions

2000-11-22 Thread Jon Griffiths
OK, I've been investigating (couldn't wait), heres what I've got so far: Recap: Using GetProcAddress to get a pointer (p_ldiv)to CRTDLL's "ldiv" function, and calling through that pointer produces errors in some cases. This is because ldiv returns a struct. The problem occurs for any dll

Re: regapi broken in newer builds of Wine

2000-11-17 Thread Jon Griffiths
../../include/wine/obj_base.h:493: duplicate argument name `tj' in `#define' make: *** [regapi.o] Error 1 Hi, The patch I sent earlier, "small fixes", fixes this. Cheers, Jon = "May their negative actions ripen upon me. And may all my virtues ripen upon them."-Nagarjuna, on

CRTDLL patch

2000-09-22 Thread Jon Griffiths
Heres the Changelog: * dlls/crtdll: crtdll_main.c, crtdll.h, crtdll.spec, Makefile.in, mbstring.c, wcstring.c, +crtdll_file.c, +crtdll_str.c, +crtdll_mem.c, +crtdll_exit.c, +crtdll_spawn.c, +crtdll_dir.c, +crtdll_time.c Jon Griffiths [EMAIL PROTECTED] - Implement

Re: winelib app with windows .dll

2000-09-16 Thread Jon Griffiths
If it does, then I'll write a script to generate wrappers and publish the full API in a .so When you have the headers available, a script that could parse out the prototypes and generate a spec src file would be a godsend. I had in mind something that would parse the output of an export listing