[RESEND] Sync (46): msvcrt cpp test

2003-08-23 Thread Jon Griffiths
Hi, Now the cpp RTTI changes are in, the tests for them can be applied. this is a slighly updated version of the original patch that fixes a problem with asm, register clobbers and optimisation I found when I moved to gcc 3.2.2, and also works with really ancient, buggy versions of msvcrt

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: Sync (29): msvcrt cpp

2003-07-21 Thread Alexandre Julliard
Jon Griffiths [EMAIL PROTECTED] writes: +dlls/msvcrt/cpp.c Use exception as the base for all exception derived classes. Implement type_info methods correctly. Add static RTTI for exported objects. Throw exceptions when run time casts fail. Why did you remove all

Re: Sync(18): msvcrt cpp exceptions

2003-07-18 Thread Alexandre Julliard
Jon Griffiths [EMAIL PROTECTED] writes: +dlls/msvcrt/cppexcept.c strip dump code when NO_TRACE_MSGS is defined The compiler should optimize this out, and even if it doesn't that's no big deal. It certainly doesn't justify adding #ifdefs. -- Alexandre Julliard [EMAIL PROTECTED]

Re: Sync (32): winbuild msvcrt

2003-07-18 Thread Alexandre Julliard
Jon Griffiths [EMAIL PROTECTED] writes: - Functions exported by name only should not be given ordinal numbers in the .def output, so that link.exe can fill up empy ordinal slots and create a valid export table. Not doing this leads to an incorrect export table without any warnings or errors

Re: Sync (32): winbuild msvcrt

2003-07-18 Thread Steven Edwards
--- Jon Griffiths [EMAIL PROTECTED] wrote: This patch addresses most of the existing issues building Wines dlls as native win32 dlls using msvc, namely: - We need to export forwards from the .def file. - We need to export any implemented ordinal functions and mark them as NONAME. -

Re: Sync (32): winbuild msvcrt

2003-07-18 Thread Steven Edwards
--- Jon Griffiths [EMAIL PROTECTED] wrote: +tools/winebuild/build.h tools/winebuild/import.c tools/winebuild/parser.ctools/winebuild/spec16.c tools/winebuild/spec32.c Export '@'-functions and forwards Support PRIVATE and optional ordinal numbers in .def files Allow

question about WINE MSVCRT

2003-07-16 Thread Jonathan Wilson
I notice that WINE has a clone of MSVCRT. I also know that MSVCRT exports some C++ symbols. How does WINE and its clone of MSVCRT and its build system handle the differences in name mangling between MSVCRT and GCC? Also, how does it handle the differences between the different class formats

Re: question about WINE MSVCRT

2003-07-16 Thread Mike Hearn
On Wed, 2003-07-16 at 15:00, Jonathan Wilson wrote: I notice that WINE has a clone of MSVCRT. I also know that MSVCRT exports some C++ symbols. How does WINE and its clone of MSVCRT and its build system handle the differences in name mangling between MSVCRT and GCC? If you look in the spec

Re: question about WINE MSVCRT

2003-07-16 Thread Eric Pouech
Jonathan Wilson wrote: I notice that WINE has a clone of MSVCRT. I also know that MSVCRT exports some C++ symbols. How does WINE and its clone of MSVCRT and its build system handle the differences in name mangling between MSVCRT and GCC? MSVCRT is the the C (and C++) run time library for MS

Re: winsock.h: msvcrt headers versus systems headers

2003-06-07 Thread Gerald Pfeifer
/msvcrt/sys/time.h needs to be added, as these are the only two ways of avoiding mixture of the MSVCRT sys/types.h with the native systems sys/time.h. (Or -I../../include/msvcrt should be removed when compiling programs/notepad, but I'm afraid that's not right either.) Gerald -- Gerald Jerry [EMAIL

Re: winsock.h: msvcrt headers versus systems headers

2003-06-07 Thread Yorick Hardy
/time.h for struct timeval definition. causes compilation failure of programs/notepad: /sw/gcc-3.2.2/bin/gcc -c -I. -I. -I../../include -I../../include -I../../include/msvcrt -D_REENTRANT -fPIC -DNO_LIBWINE_PORT -Wall -mpreferred-stack-boundary=2 -gstabs+ -Wpointer-arith -g -O2 -o

Re: winsock.h: msvcrt headers versus systems headers

2003-06-07 Thread Yorick Hardy
time.h and simple removing that #include statement from include/winsock.h solve this problem for me (on FreeBSD 4.8). My intuition is that either the addition of #include sys/time.h needs to reverted or a dummy include/msvcrt/sys/time.h needs to be added, as these are the only two ways

winsock.h: msvcrt headers versus systems headers

2003-06-06 Thread Gerald Pfeifer
. -I. -I../../include -I../../include -I../../include/msvcrt -D_REENTRANT -fPIC -DNO_LIBWINE_PORT -Wall -mpreferred-stack-boundary=2 -gstabs+ -Wpointer-arith -g -O2 -o License_En.o License_En.c In file included from ../../include/winsock.h:68, from ../../include/winsock2.h

(1st) Implement msvcrt._wfullpath

2003-03-26 Thread Sylvain Petreolle
Taking _fullpath as a model, I implemented msvcrt._wfullpath (patch attached). My unique problem : it makes use of an internal helper called msvcrt_fln_fix, which I dont understand. It seems to work without it, so I think its useful only in specific cases. Could someone explain what it does

patch: macros changed to inline functions (msvcrt headers)

2003-03-21 Thread madhura sahasrabudhe
Hi, I have changed the macros in the msvcrt headers to static inline functions. The modified files are: conio.h, ctype.h, direct.h, malloc.h, process.h, search.h, stdio.h, stdlib.h and string.h (in the include/msvcrt directory). I have attached a patch for the same. Thank you. Madhura

Re: msvcrt _tempname (Resent)

2003-02-19 Thread Alexandre Julliard
Uwe Bonnes [EMAIL PROTECTED] writes: +#ifdef P_tmpdir + if ( (dir) lstrcpynA(dirname, P_tmpdir,MAX_PATH) +(GetTempFileNameA(dirname,prefix,0,tmpbuf))) +goto done; +#endif + if ( (GetEnvironmentVariableA(PWD,dirname,MAX_PATH) ) +

Re: msvcrt _tempnam dll

2003-02-15 Thread Paul Millar
Hi Uwe, On Sat, 15 Feb 2003, Uwe Bonnes wrote: Test succeeds with native msvcrt.dll. Patch to msvcrt/file.c comming. Is it worth marking the tests as todo and removing the todo once wine passes the tests? Just a thought ... Paul Millar

dlls/msvcrt/locale.c:544: warning: unsigned int format, LCID arg(arg 5)

2003-02-12 Thread Gerald Pfeifer
Hi, the following patch to dlls/msvcrt/locale.c revision 1.15 date: 2003/02/11 22:11:17; author: julliard; state: Exp; lines: +15 -0 Marcus Meissner [EMAIL PROTECTED] Implemented __crtLCMapStringA. causes the following warning on FreeBSD 4.7 using GCC 2.95.4: locale.c: In function

Re: infinite loop in msvcrt dll

2003-02-02 Thread Marcus Meissner
in the relay output are tons of: 0009:Call kernel32.TlsGetValue() ret=405d833e 0009:Ret kernel32.TlsGetValue() retval=402a7810 ret=405d833e 0009:Call msvcrt.__CxxFrameHandler(403821f0,40592c60,4038226c,40382180) ret=400c42b7 fs=008f eax=179c3008 ebx=400f6204 ecx=4010de20 edx

Re: infinite loop in msvcrt dll

2003-02-02 Thread Michael Stefaniuc
On Sun, Feb 02, 2003 at 09:05:38PM +0100, Marcus Meissner wrote: On Sun, Feb 02, 2003 at 12:34:53AM +0100, Michael Stefaniuc wrote: Any tips how to debug this further? This is usually a missing function in msvcrt. Run with -debugmsg +seh and check the output directly before

Re: msvcrt: stubs for chsize, dup, dup2

2003-01-10 Thread Steven Edwards
--- Dimitrie O. Paun [EMAIL PROTECTED] wrote: These are needed by the inline functions in the header. ChangeLog Create stubs for chsize, dup, and dup2. I think chsize and ftruncate do the same thing so is there anyway to forward the call for chsize to ftruncate on platforms that have it?

Re: [RFC] msvcrt: defines break C++ code

2003-01-10 Thread Dimitrie O. Paun
to violent behaviour... This patch depends on msvcrt: stubs for chsize, dup, dup2 and it obsoletes sys/{stat,types}.h: mode_t, umask (take 2) since I was difficult to separate them. Also, I did not know what to do about _open(), and _sopen() as they take variable number of arguments, so I've left them

[RFC] msvcrt: defines break C++ code

2003-01-09 Thread Dimitrie O. Paun
Folks, We have a lot of code in msvcrt headers like so: #define umask _umask #define unlink _unlink #define write _write This breaks C++ that define a write method in a header, and then implement it like so: #include io.h void MyClass::write(...) { write(...); } I suggest we turn those

Re: [RFC] msvcrt: defines break C++ code

2003-01-09 Thread Dan Kegel
Dimitrie O. Paun wrote: I suggest we turn those defines into inlines, like this: inline int write(int fd, const void* ptr, unsigned int size) { return _write(fd, ptr, size); } Any other solutions? Sure, there are two: 0. use a linker alias for _write 1. actually have a function write() that

Re: [RFC] msvcrt: defines break C++ code

2003-01-09 Thread Francois Gouget
On Thu, 9 Jan 2003, Dimitrie O. Paun wrote: Folks, We have a lot of code in msvcrt headers like so: #define umask _umask #define unlink _unlink #define write _write [...] I suggest we turn those defines into inlines, like this: inline int write(int fd, const void* ptr, unsigned int size

Re: [RFC] msvcrt: defines break C++ code

2003-01-09 Thread Alexandre Julliard
Francois Gouget [EMAIL PROTECTED] writes: The strange thing is that the MSVC headers simply define their prototype, e.g.: _CRTIMP int __cdecl umask(int); Yet these APIs are not exported by the msvcrt library or by any other dll that I know of. And still applications compile and link! I

Re: [RFC] msvcrt: defines break C++ code

2003-01-09 Thread Dimitrie O. Paun
On January 9, 2003 08:38 pm, Alexandre Julliard wrote: I think you have to link with oldnames.lib for that. We probably have to provide an oldnames.lib too. OK, but what do we do now about those defines? -- Dimi.

Re: include msvcrt/ fix (take 2)

2002-12-16 Thread Dimitrie O. Paun
On December 14, 2002 02:10 pm, Dimitrie O. Paun wrote: ChangeLog Do not explicitly include msvcrt files from msvcrt headers. Include windef.h instead of winnt.h to get all appropriate types. Alexandre, What about this one? Currently {ming,wine}wrap are badly broken. I hope this one

Re: include msvcrt/ fix (take 2)

2002-12-16 Thread Alexandre Julliard
Dimitrie O. Paun [EMAIL PROTECTED] writes: What about this one? Currently {ming,wine}wrap are badly broken. I hope this one is rather uncontroversial, but it does depend on that bit from crtdll, and I think that is the problem. I'd prefer that we simply get rid of these includes. This

Re: msvcrt/ removal

2002-12-13 Thread Dimitrie O. Paun
On December 13, 2002 02:57 pm, Alexandre Julliard wrote: Do we actually need to include other headers from the msvcrt includes? My Windows headers don't include anything, but they are from an old VC++ version. Could someone with a newer VC++ check if this is still the case? I don't know, I

Re: msvcrt/ removal

2002-12-13 Thread Francois Gouget
On 13 Dec 2002, Alexandre Julliard wrote: Dimitrie O. Paun [EMAIL PROTECTED] writes: Here is the problem: A. The msvcrt files include other msvcrt files, but they should do so *without* explicitly asking for them. That is, they should #include stdio.h instead

msvcrt vs std incl

2002-11-19 Thread Dimitrie O. Paun
Hi guys, Here's a small test program: #include windows.h #include stdio.h #include stdlib.h #include assert.h int main() { printf(sizeof(wchar_t)=%d\n, sizeof(wchar_t)); return 0; } And I want to compile this with our msvcrt headers. Look what happens: [dimi@dimi wine]$ gcc

Re: msvcrt vs std incl

2002-11-19 Thread Dimitrie O. Paun
On November 19, 2002 09:46 am, Dimitrie O. Paun wrote: [dimi@dimi wine]$ gcc -nostdinc -fshort-wchar -I /home/dimi/dev/wine/wine.src/include/msvcrt -I /home/dimi/dev/wine/wine.src/include test.c Hm, maybe we need the standard headers after all. Even though this might create confusion

Re: msvcrt vs std incl

2002-11-19 Thread David Fraser
Dimitrie O. Paun wrote: On November 19, 2002 09:46 am, Dimitrie O. Paun wrote: [dimi@dimi wine]$ gcc -nostdinc -fshort-wchar -I /home/dimi/dev/wine/wine.src/include/msvcrt -I /home/dimi/dev/wine/wine.src/include test.c Hm, maybe we need the standard headers after all. Even though

Re: msvcrt vs std incl

2002-11-19 Thread Dimitrie O. Paun
On November 19, 2002 10:26 am, David Fraser wrote: So the following C program compiles fine with the above command, -fshort-wchar or not, and making stdio.h angle-bracketed will take away the size_t warning: What I'm waiting for is a solution that does not touch the program I've posted. My

Re: msvcrt vs std incl

2002-11-19 Thread Martin Wilck
Am Die, 2002-11-19 um 15.59 schrieb Dimitrie O. Paun: Nevertheless, they solve only part of the problem: [dimi@dimi wine]$ gcc -fshort-wchar -I /home/dimi/dev/wine/wine.src/include/msvcrt -I /home/dimi/dev/wine/wine.src/include test.c test.c: In function `main': test.c:8: `wchar_t

Re: msvcrt vs std incl

2002-11-19 Thread Dimitrie O. Paun
On November 19, 2002 10:51 am, Martin Wilck wrote: Using this line and WCHAR instead of wchar_t, I'm fine. It prints sizeof (WCHAR) = 2. I know, but this is not good enough. I want to port some apps over (eg putty) and that one uses wchar_t. Changing the source is not an option IMO. In this

Re: msvcrt vs std incl

2002-11-19 Thread Vincent Béron
Dimitrie O. Paun a écrit: On November 19, 2002 10:26 am, David Fraser wrote: So the following C program compiles fine with the above command, -fshort-wchar or not, and making stdio.h angle-bracketed will take away the size_t warning: What I'm waiting for is a solution that does not touch the

Re: msvcrt vs std incl

2002-11-19 Thread Dimitrie O. Paun
On November 19, 2002 10:57 am, Vincent Béron wrote: Quickly checking in MS's headers (an old version), there's a lot of typedef to define wchar_t. I figured that much. I was hoping for a patch... :) -- Dimi.

Re: msvcrt vs std incl

2002-11-19 Thread Vincent Béron
, and msvcrt/wctypes.h), we have the exact opposite: typedef wchar_t WCHAR, with a default to typedef unsigned short WCHAR if wchar_t is not defined. So we need to define wchar_t, not WCHAR. BTW, I believe MS headers have the same order (wchar_t - WCHAR). Actually, I have similar questions about

Re: msvcrt vs std incl

2002-11-19 Thread Greg Turner
On Tuesday 19 November 2002 09:58 am, Dimitrie O. Paun wrote: On November 19, 2002 10:57 am, Vincent Béron wrote: Quickly checking in MS's headers (an old version), there's a lot of typedef to define wchar_t. I figured that much. I was hoping for a patch... :) The wine headers are very

Re: msvcrt vs std incl

2002-11-19 Thread Dimitrie O. Paun
/msvcrt/stddef.h === RCS file: /var/cvs/wine/include/msvcrt/stddef.h,v retrieving revision 1.4 diff -u -r1.4 stddef.h --- include/msvcrt/stddef.h 10 Mar 2002 00:02:38 - 1.4 +++ include/msvcrt/stddef.h 19 Nov 2002 17:09:20

Re: msvcrt vs std incl

2002-11-19 Thread Greg Turner
On Tuesday 19 November 2002 12:09 pm, Vincent Béron wrote: Greg Turner a écrit: Actually, I have similar questions about the programs and dlls trees of wine... for example, Alexandre has requested that I remove #ifdef's from rpcss... but can I safely code against the assumption that

Another msvcrt replacement

2002-11-15 Thread Fabian Cenedese
Hi Looks like wine is not the only one in need of MS replacements. They're only at version 0.0.1 but maybe they have something wine could use or wine sure has something they could use... http://mingwacr.sourceforge.net/ bye Fabi

Re: msvcrt-A06: _popen + COMSPEC

2002-11-04 Thread Sylvain Petreolle
Why not cmd.exe only, and hope to find it in the PATH? I think the PATH in Windows contains windows\system32 in it by default. Jaco, did you make sure you have the correct link into C:\windows\system32 created by wineinstall ? lrwxrwxrwx1 syl wine 31 aoû 3 09:08

Re: msvcrt-A06: _popen + COMSPEC

2002-11-03 Thread Dimitrie O. Paun
On November 3, 2002 12:45 pm, Jaco Greeff wrote: I have tried this, CreateProcess doesn't find cmd.exe if we don't specify the full path. (This happend in the test case with the neccessary changes made to default to cmd.exe). But yes, it would be great. But the question is whether or not

Re: msvcrt-A06: _popen + COMSPEC

2002-11-03 Thread Jaco Greeff
On Sun, 3 Nov 2002 12:53:15 -0500, Dimitrie O. Paun [EMAIL PROTECTED] wrote : But the question is whether or not CreateProcess _should_ find it, or not. If it is, than it's a bug in CreateProcess, and working around it is rather detrimental. If not, than fine, use the full path. We should

Re: msvcrt-A06: _popen + COMSPEC

2002-11-03 Thread Francois Gouget
On 3 Nov 2002, Jaco Greeff wrote: [...] I however, did look at what the correct behaviour of CreateProcess should be when I came across this. According to MSDN: The string can specify the full path and file name of the module to execute or it can specify a partial name. In the case of a

Re: msvcrt-A06: _popen + COMSPEC

2002-11-03 Thread Jaco Greeff
Francois Gouget wrote: This is if you specify the lpApplicationName parameter. To have CreateProcess search the path, leave it as NULL and specify wcmd.exe ... in lpCommandLine. Very good point. I'll look into it. Greetings, Jaco

Re: dlls/msvcrt: msvcrt-popen-2.diff

2002-11-02 Thread Jaco Greeff
On Sat, 2 Nov 2002 10:56:02 -0500, Dimitrie O. Paun [EMAIL PROTECTED] wrote : On November 2, 2002 10:41 am, Jaco Greeff wrote: +#define POPEN_WCMD_EXEC C:\\Windows\\System32\\cmd.exe /c Do we need this hardcoded path here?!? What about the COMSPEC idea that Francois suggested? I'm

Re: dlls/msvcrt: msvcrt-popen-2.diff

2002-11-02 Thread Dimitrie O. Paun
On November 2, 2002 10:41 am, Jaco Greeff wrote: +#define POPEN_WCMD_EXEC C:\\Windows\\System32\\cmd.exe /c Do we need this hardcoded path here?!? What about the COMSPEC idea that Francois suggested? +#define LPCWSTR_TO_LPSTR(wszIn, nIn, szOut, nOut) \ +*nOut =

Re: dlls/msvcrt: msvcrt-popen-2.diff

2002-11-02 Thread Dimitrie O. Paun
On November 2, 2002 11:07 am, Jaco Greeff wrote: And everybody is a critic ;) And especially me, lately :( I would potentially rather more it to it's own header file than doing the cut-n-paste thing inside a function... Would it be 50% ok with macro abuse in a seperate header file? Not

Status of libwine MFC and msvcrt compilation

2002-11-01 Thread Uwe Bonnes
Hallo, what is the status of winelib compilation of MFC and msvcrt? Thanks -- Uwe Bonnes[EMAIL PROTECTED] Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt - Tel. 06151 162516 Fax. 06151 164321 --

Re: Status of libwine MFC and msvcrt compilation

2002-11-01 Thread Francois Gouget
On Fri, 1 Nov 2002, Uwe Bonnes wrote: Hallo, what is the status of winelib compilation of MFC and msvcrt? I don't think compiling msvcrt with Winelib has ever been attempted. Concerning compiling the MFC it has been a long time (6 months?) since I tried. Shouldn't be must worse than before g

Re: dlls/msvcrt: msvcrt-popen-1.1

2002-11-01 Thread Joerg Mayer
On Fri, Nov 01, 2002 at 03:16:58PM +0200, Jaco Greeff wrote: +/* FIXME: Don't know what this value should be, 10 seems enough as + * the maximum number of simultaneous _popen'ed processes + */ #define POPEN_MAX_FILES 10 ... +INT POPEN_getOpenFileSlotPos(VOID) +{ +INT i = 0; +

Re: dlls/msvcrt: msvcrt-popen-1.1

2002-11-01 Thread Jaco Greeff
Joerg Mayer wrote: On Fri, Nov 01, 2002 at 03:16:58PM +0200, Jaco Greeff wrote: Please output an ERR here to ask people to report that POPEN_MAX_FILES needs to be increased. Will do that, thanks. Greetings, Jaco

Re: dlls/msvcrt: process.c (msvcrt-popen-1)

2002-11-01 Thread Alexandre Julliard
Jaco Greeff [EMAIL PROTECTED] writes: 1. Calling the popen function returns a FILE* which needs to be converted to a MSVCRT_FILE*. The apprach taken here is potentially not the best route but the only one I could think of. Is it suffiecient? No, it's wrong. You should be using the Windows API

Re: dlls/msvcrt: process.c (msvcrt-popen-1)

2002-11-01 Thread Jaco Greeff
On 01 Nov 2002 08:40:20 -0800, Alexandre Julliard [EMAIL PROTECTED] wrote : Jaco Greeff [EMAIL PROTECTED] writes: 1. Calling the popen function returns a FILE* which needs to be converted to a MSVCRT_FILE*. The apprach taken here is potentially not the best route but the only one I could

Re: dlls/msvcrt: process.c (msvcrt-popen-1)

2002-11-01 Thread Jaco Greeff
On 01 Nov 2002 08:40:20 -0800, Alexandre Julliard [EMAIL PROTECTED] wrote : No, it's wrong. You should be using the Windows API (CreateProcess etc.) not the Unix popen(). Then you can build a proper MSVCRT_FILE. Sorry, I had a few beers tonight ;) Ok, I just remembered what my concerns were

Re: dlls/msvcrt: process.c (msvcrt-popen-1)

2002-11-01 Thread Francois Gouget
On 1 Nov 2002, Jaco Greeff wrote: [...] Now wera are faced with a problem in that wcmd is not a pure Windows application and it doesn't reside in your Windows filesystem, rather it is in your *nix path. Try c:\Windows\System\wcmd.exe and I think you will find that it works. -- Francois

Re: dlls/msvcrt: process.c (msvcrt-popen-1)

2002-11-01 Thread Jaco Greeff
On Fri, 1 Nov 2002 11:21:26 -0800 (PST), Francois Gouget [EMAIL PROTECTED] wrote : Try c:\Windows\System\wcmd.exe and I think you will find that it works. *lol* Like I've said, expect me to be slow tonight :)

Re: dlls/msvcrt: process.c (msvcrt-popen-1)

2002-11-01 Thread Uwe Bonnes
Francois == Francois Gouget [EMAIL PROTECTED] writes: Francois On 1 Nov 2002, Jaco Greeff wrote: [...] Now wera are faced with a problem in that wcmd is not a pure Windows application and it doesn't reside in your Windows filesystem, rather it is in your *nix path.

Re: dlls/msvcrt: process.c (msvcrt-popen-1)

2002-11-01 Thread Francois Gouget
On Fri, 1 Nov 2002, Uwe Bonnes wrote: [...] Giving a fully qualified patch is probably bad advice here. Try wcmd.exe only and have cmd.exe.so in wine's program directory. Actually, using COMSPEC or something like that might be even better. The exact behavior has to be checked on Windows though.

Re: dlls/msvcrt: process.c (msvcrt-popen-1)

2002-11-01 Thread Jaco Greeff
On Fri, 1 Nov 2002 20:50:07 +0100, Uwe Bonnes [EMAIL PROTECTED] wrote : Giving a fully qualified patch is probably bad advice here. Try wcmd.exe only and have cmd.exe.so in wine's program directory. Wine sets on startup WINEDLLPATH to $topdir/dlls:$topdir/programs and wineapploader there

Re: dlls/msvcrt: process.c (msvcrt-popen-1)

2002-11-01 Thread Dimitrie O. Paun
On November 1, 2002 02:50 pm, Uwe Bonnes wrote: Probably Alexandre knows more. Well, yeah, he always does! :) -- Dimi.

Re: dlls/msvcrt: process.c (msvcrt-popen-1)

2002-11-01 Thread John K. Hohm
Quoting John K. Hohm [EMAIL PROTECTED]: No, it's wrong. You should be using the Windows API (CreateProcess etc.) not the Unix popen(). Then you can build a proper MSVCRT_FILE. Sorry, I had a few beers tonight ;) Ok, I just remembered what my concerns were about using CreateProcess

Re: dlls/msvcrt/tests: printf

2002-10-31 Thread Greg Turner
On Thursday 31 October 2002 10:34 am, Jaco Greeff wrote: - Tests that will fail with current implementation are temporarily commented out Is there a middle ground for tests that are expected to fail? If not, IMO maybe there should be: It kinda defeats the purpose of a test framework if we

Re: dlls/msvcrt/tests: printf

2002-10-31 Thread Uwe Bonnes
Jaco == Jaco Greeff [EMAIL PROTECTED] writes: Jaco ... Tests that will fail Jaco with current implementation are temporarily commented out Don't comment them out, matrk them todo. Look at the syntax in documentation/testing. And plain inlined patches are preferred against

Re: dlls/msvcrt/tests: printf

2002-10-31 Thread Jaco Greeff
with a FIXME. I don't want the test sequence to fail for this issue which is solved by my msvcrt patch. The way I've done it allows others to verify the new vfprintf patch with minimal work. And plain inlined patches are preferred against attachments. I'm doing this via a mail web interface, it has

Re: dlls/msvcrt/tests: printf

2002-10-31 Thread Jaco Greeff
maybe there should be: It kinda defeats the purpose of a test framework if we just comment out tests that don't work... Agreed. It will pass shortly though :) At this point the test will help anybody wishing to verify my latest msvcrt patch. Plus, it really should pass. The part that does fail

Re: dlls/msvcrt/tests: printf

2002-10-31 Thread Jaco Greeff
On Thu Oct 31 20:04:30 2002, Jaco Greeff [EMAIL PROTECTED] wrote : On Thu, 31 Oct 2002 17:57:12 +0100, Uwe Bonnes [EMAIL PROTECTED] wrote : Jaco ... Tests that will fail Jaco with current implementation are temporarily commented out Don't comment them out, matrk them todo. Look

Re: dlls/msvcrt/tests: printf

2002-10-31 Thread Greg Turner
On Thursday 31 October 2002 12:04 pm, Jaco Greeff wrote: On Thu, 31 Oct 2002 17:57:12 +0100, Uwe Bonnes And plain inlined patches are preferred against attachments. Just rabble-rousing here, but, until Alexandre stops accepting them, I plan to attach all my patches. I /am/ willing to mark

Re: dlls/msvcrt/tests: printf

2002-10-31 Thread Dimitrie O. Paun
On October 31, 2002 01:46 pm, Greg Turner wrote: In support of attached patches: Most are irrelevant. The point is not to transport the patch to Alexandre. If so, you might as well send it directly to him. Point is to get peer review, and maybe comments. For this purpose, inlining the patch is

RFC: msvcrt _popen/_wpopen/_pclose

2002-10-31 Thread Jaco Greeff
on it.) Anyway, here it is, comments appreciated: --[ inline-ish RFC ] #include config.h #include wine/port.h #include stdio.h #include stdlib.h #ifdef HAVE_UNISTD_H # include unistd.h #endif #include winbase.h #include winnls.h #include wine/unicode.h #include msvcrt/stdio.h #include msvcrt

Re: RFC: msvcrt _popen/_wpopen/_pclose

2002-10-31 Thread chrismorgan
What is wrong with using wcmd and extending it if necessary? Chris From: Jaco Greeff [EMAIL PROTECTED] Date: 2002/10/31 Thu PM 04:27:43 EST To: [EMAIL PROTECTED] Subject: RFC: msvcrt _popen/_wpopen/_pclose Hi, I want some comments on the possibility of a _popen/_wpopen/_pclose

Re: RFC: msvcrt _popen/_wpopen/_pclose

2002-10-31 Thread Jaco Greeff
[EMAIL PROTECTED] wrote: What is wrong with using wcmd and extending it if necessary? Nothing. I must admit that I have looked at the wcmd code, but if I remember correctly it lacks a /C switch. This I assume is the extending part you are speaking about. Then again, I'm not 100% sure that it

Re: RFC: msvcrt _popen/_wpopen/_pclose

2002-10-31 Thread Jaco Greeff
Jaco Greeff wrote: [EMAIL PROTECTED] wrote: What is wrong with using wcmd and extending it if necessary? Nothing. I must admit that I have looked at the wcmd code, but if I remember correctly it lacks a /C switch. Yes it lack a /C switch, but it has the /c switch :) I'm in the process

Re: Bug #321: msvcrt-vfprintf-3.diff

2002-10-29 Thread Dmitry Timoshkov
Jaco Greeff [EMAIL PROTECTED] wrote: Ok, try number 3. I've made the changes as requested * Get result length before allocating and copying with WideCharToMultiByte; * Make intentions clear on strncat, replaced with strcat * Removed CHAR castings to get the WCHAR formatting character. *

Re: Bug #321: msvcrt-vfprintf-3.diff

2002-10-29 Thread Jaco Greeff
Dmitry Timoshkov wrote: You are still using L prefix and redundant (WCHAR) casts. I know, it makes it more readable for me at least, telling you exactly what you are busy with. As I've said previously, it is just semantics mostly on compile-time. Either way it doesn't make a real difference,

RE: MSVCRT: added support for re-throwing exceptions

2002-10-28 Thread Patrik Stridvall
LICENSE: LGPL If you compile the following code with Visual C++ using the /MD option (so that it uses msvcrt.dll) class CExceptionClass { public: CExceptionClass() {number=0;} long number; }; void doSomething() { try { throw CExceptionClass(); } catch(...) {

Re: MSVCRT: added support for re-throwing exceptions

2002-10-28 Thread Dmitry Timoshkov
Patrik Stridvall [EMAIL PROTECTED] wrote: [1] All tests currenly doesn't compile quite yet, but the infrastructure is in place. I haven't had much time to look at it yet. Help would be nice... Patrik, what kind of help do you need regarding this issue? I'll gladly help when I have time. --

RE: MSVCRT: added support for re-throwing exceptions

2002-10-28 Thread Patrik Stridvall
Patrik Stridvall [EMAIL PROTECTED] wrote: [1] All tests currenly doesn't compile quite yet, but the infrastructure is in place. I haven't had much time to look at it yet. Help would be nice... Patrik, what kind of help do you need regarding this issue? I'll gladly help when I have

Re: msvcrt: printf family (Bug #321)

2002-10-26 Thread Alexandre Julliard
Jaco Greeff [EMAIL PROTECTED] writes: * dlls/msvcrt/file.c Jaco Greeff [EMAIL PROTECTED] - Allow for the processing of %S and %C format specifiers as per bug #321 - Code duplicated/shared between dlls/user/wsprintf.c, dlls/shlwapi/wsprintf.c and now dlls/msvcrt/file.c That's not correct

msvcrt tests

2002-10-06 Thread György 'Nog' Jeney
Im trying to write regression tests for the sscanf function but ran into some problems. First, there were some conflicts with the defines in the headers with my linux ones, but that was fixed simply by defining USE_MSVCRT_PREFIX. Whenever I try to run the test it spews out an error: undefind

Re: msvcrt tests

2002-10-06 Thread György 'Nog' Jeney
Im trying to write regression tests for the sscanf function but ran into some problems. First, there were some conflicts with the defines in the headers with my linux ones, but that was fixed simply by defining USE_MSVCRT_PREFIX. Whenever I try to run the test it spews out an error:

Re: msvcrt tests

2002-10-06 Thread Uwe Bonnes
the msvcrt test-framework to the wine source tree. And thanks for your findings. Bye -- Uwe Bonnes[EMAIL PROTECTED] Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt - Tel. 06151 162516 Fax. 06151 164321 --

Re: Fix for msvcrt sscanf/swscanf

2002-09-28 Thread Uwe Bonnes
Jukka == Jukka Heinonen [EMAIL PROTECTED] writes: Jukka Wine msvcrt sscanf and swscanf implementations incorrectly expect Jukka strings to end with EOF. This crashes some applications which did Jukka work with older versions of Wine that just forwarded msvcrt Jukka sscanf

Re: more MSVCRT fun

2002-09-18 Thread Martin Wilck
Am Die, 2002-09-17 um 21.47 schrieb [EMAIL PROTECTED]: In my winelib app, most of the cpp files use MSVCRT only, and thanks to Martin I've gotten those to compile. If the small patches I sent make your app _run_ fine, too, please notify me - I'll submit official. patches to Alexandre

Re: WineLib with MSVCRT

2002-09-17 Thread Martin Wilck
Am Mon, 2002-09-16 um 20.58 schrieb [EMAIL PROTECTED]: Finally, if I don't use either -nostdinc or -nostdinc++, gcc complains about types being redefined, such as wint_t (as an unsigned short int in /usr/include/_G_config.h but WCHAR in /usr/local/include/wine/msvcrt/wctype.h). I just

Re: WineLib with MSVCRT

2002-09-17 Thread steve . lustbader
I noticed in regedit's Makefile.in that it lists msvcrt, advapi32, and kernel32 in it's IMPORTS variable and has no foo_DLLS variable, whereas Winemaker by default puts most of those in the foo_DLLS variable. What's the difference between the DLLS variable and the IMPORTS variable? -Steve

Re: WineLib with MSVCRT

2002-09-17 Thread Martin Wilck
Am Die, 2002-09-17 um 16.27 schrieb [EMAIL PROTECTED]: I noticed in regedit's Makefile.in that it lists msvcrt, advapi32, and kernel32 in it's IMPORTS variable and has no foo_DLLS variable, whereas Winemaker by default puts most of those in the foo_DLLS variable. What's the difference

more MSVCRT fun

2002-09-17 Thread steve . lustbader
In my winelib app, most of the cpp files use MSVCRT only, and thanks to Martin I've gotten those to compile. A couple of my source files, however, use a mix of MSVCRT and standard glibc (fork, exec, etc). When I include unistd.h, lots of function definitions conflict with msvcrt/io.h. How can

missing export from native msvcrt

2002-05-25 Thread Ann and Jason Edmeades
From attempting to run pgm with native msvcrt, w2k scrrun.dll: fixme:win32:PE_CreateModule Security directory ignored err:win32:PE_FindExportedFunction function not found for forward 'ntdll._iswalpha' used by 'msvcrt.dll'. If you are using builtin 'msvcrt.dll', try using the native one instead

dlls/msvcrt/file.c broken on FreeBSD 4.5

2002-04-27 Thread Gerald Pfeifer
The following patch to dlls/msvcrt/file.c revision 1.23 date: 2002/04/26 19:05:16; author: julliard; state: Exp; lines: +4 -0 Better support for configure detection of missing types, added check for ssize_t. Removed a couple of no longer used portability functions. Various

RE: Linuxism in dlls/msvcrt/msvcrt.spec?

2002-03-19 Thread Medland, Bill
-Original Message- From: Gerald Pfeifer [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 8:31 AM To: [EMAIL PROTECTED] Cc: Martin Faxer Subject: Linuxism in dlls/msvcrt/msvcrt.spec? I believe there is a Linuxism in dlls/msvcrt/msvcrt.spec which expects that _tolower

Compiling with Winelib and msvcrt

2002-02-17 Thread David Walser
Hi, I'm trying to compile a simple Win32 console app ( http://luigiwalser.homeip.net:8080/~walser/cosc/450/ex3/ex3.cpp if you want to see it). I did: winemaker --console -I/usr/include/wine/msvcrt -I/usr/include/wine/wine -imsvcrt.dll --single-target ex3 ./configure --with-wine-libraries=/usr

Update: Compiling with Winelib and msvcrt

2002-02-17 Thread David Walser
I modified the winemaker command I issued to: winemaker --console -I/usr/include/wine/msvcrt -I/usr/include/wine/wine -L/usr/lib/wine -lmsvcrt -lkernel32 --single-target ex3 . and now: c++ -shared -Wl,-rpath,/usr/local/lib -Wl,-Bsymbolic -o ex3.so ex3.o ex3.spec.o -L/usr/lib/wine -lmsvcrt

Re: __p___argc, MSVCRT,__wine_get_main_args and ParseOptions

2001-12-04 Thread Francois Gouget
On Tue, 20 Nov 2001, Uwe Bonnes wrote: Hallo, running with builtin msvcrt like wine --dll msvcrt=b a.exe [...] still counts _two_ arguments, as it sees wine a.exe. Yes, there is a problem. How did I miss it when I looked into the parameter passing? For a short test I did

Re: __p___argc, MSVCRT,__wine_get_main_args and ParseOptions

2001-12-04 Thread Uwe Bonnes
Francois == Francois Gouget [EMAIL PROTECTED] writes: Francois On Tue, 20 Nov 2001, Uwe Bonnes wrote: Hallo, running with builtin msvcrt like wine --dll msvcrt=b a.exe Francois [...] still counts _two_ arguments, as it sees wine a.exe. Francois

  1   2   >