Re: is glib too bloated?

2007-04-24 Thread Jake Goulding
Brandon Casey wrote: > It's hard for me to think of unicode as > being low-level when it adds so much overhead to string handling. Isn't (a part of) the unicode handling needed for correctly processing paths under Windows? As I remember it, Windows-native calls take either ASCII or a slightly m

Re: GLib and 64-bit Windows

2007-04-19 Thread Jake Goulding
I'll wait to hear about the proper place to put these... but here are the mess of patches I currently apply against 2.12.9 to get something working under Windows 64-bit. I tried to split all the patches into clearly-defined sections, but there is the chance that some overlap occurs. I simply a

Re: GLib and 64-bit Windows

2007-03-27 Thread Jake Goulding
So bugzilla is again available to me. Any tips on where to file this bug? Jake Goulding wrote: > As soon as we get a bug for this (I don't seem > to be able to access bugzilla.gnome.org right now...) I'll post the > patch and let you take a look at it. -- JAKE GOULDIN

Re: GLib and 64-bit Windows

2007-03-26 Thread Jake Goulding
nings. Should I post diffs to this list? > > Thanks, > Jonathan > > On 3/5/07, *Jake Goulding* < [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Tor Lillqvist wrote: > > I'm not sure. This can be considered as an API change even if >

Re: GRegex(win32) : 500 tests passed, 3 failed

2007-03-15 Thread Jake Goulding
> gbooleanexpected) > { >gboolean match; > - > + > + if (string[0] == '%' && string[1] == '\0') > + string = "%%"; > + >verbose ("matching \"%s\" against \"%s\" \t", string, pattern); > >mat

Re: GLib and 64-bit Windows

2007-03-05 Thread Jake Goulding
Tor Lillqvist wrote: > I'm not sure. This can be considered as an API change even if the type > is the same size and signedness as the old one on the existing > plaforms. intprt_t and uintprt_t also don't exist on all > platforms. Maybe preprocessor macros is the only way out, i.e. having > a macro

Re: GLib and 64-bit Windows

2007-03-05 Thread Jake Goulding
gnome.org/mailman/listinfo/gtk-devel-list > > -- JAKE GOULDING Software Engineer [EMAIL PROTECTED] Viví­simo [Search Done Right™] 1710 Murray Avenue Pittsburgh, PA 15217 USA tel: +1.412.422.2499 x105 fax: +1.412.422.2495 vivisimo.com clusty.com ___

Re: GLib and 64-bit Windows

2007-03-05 Thread Jake Goulding
> > ___ > gtk-devel-list mailing list > gtk-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-devel-list > -- JAKE GOULDING Software Engineer [EMAIL PROTECTED] Viví­simo [Sear

Re: GLib and 64-bit Windows

2007-03-05 Thread Jake Goulding
Sure. Please excuse the following formatting... gbookmarkfile.c(1838) : warning C4267: 'function' : conversion from 'size_t' to 'gulong', possible loss of data all_data_dirs = g_new0 (gchar *, g_strv_length ((gchar **)system_data_dirs) + 2); gfileutils.c(565) : warning C4267: 'function' : conve

Re: GLib and 64-bit Windows

2007-03-05 Thread Jake Goulding
Also, I ran into a similar problem with some date functions (gmtime expects a 64-bit number as time_t is 64-bit)... It's almost like there should be a full-width type, one that is 32 bits on a 32-bit platform, and 64 bits on 64-bit. Thoughts? Jake Goulding wrote: > That does leave

Re: GLib and 64-bit Windows

2007-03-05 Thread Jake Goulding
; thorough analysis and came to the conclusion that this causes less > problems than going to 64-bit longs.) > > --tml > ___ > gtk-devel-list mailing list > gtk-devel-list@gnome.org <mailto:gtk-devel-list@gnome.org> > http://mail.gnome.org/mailman/listinfo/gtk-devel-list > > >

Re: GLib and 64-bit Windows

2007-03-03 Thread Jake Goulding
ize_t. It would be A Bad Thing to change the function declarations that cause this I assume, as it would break ABI compatibility. However, for function-local variables that make this mistake, should it be fine to fix this? Or is it more appropriate to cast strlen to an int? Jake Goulding wrote:

Re: GLib and 64-bit Windows

2007-03-03 Thread Jake Goulding
Duh... of course. I always forget about -E (which is conveniently the same for MSVCs cl.exe) So, yeah, it is 0 cast to a void *. I figured it would be good, as most of the tests ran fine, but always good to double check. :-D muppet wrote: > > Use the preprocessor to expand it for you: > > $ gc

Re: GLib and 64-bit Windows

2007-03-03 Thread Jake Goulding
Morten Welinder wrote: > ">=", I think, but yes. You need to make sure configure defines gsize > as unsigned > long long, and gssize as long long. > Well, gsize is actually fine. There is a "native" size_t type that is 8 bytes. long is the issue here, as it is only 4 bytes. long long is 8 byte

Re: GLib and 64-bit Windows

2007-03-03 Thread Jake Goulding
orm, but I know the standard doesn't guarantee it. GCC on linux has a long as 64-bits. As far as I can tell, there is no 64-bit GCC for Windows (yet?) to compare against. How *wrong* would it be to define g[u]long as forcibly 64-bit on a 64-bit platform? Jake Goulding wrote: > I think

Re: GLib and 64-bit Windows

2007-03-03 Thread Jake Goulding
This would certainly explain all sorts of the warnings (not all, of course). Jake Goulding wrote: > Of course, that would have made more sense... :-) > > http://www.myxopho.be/glib-win64-compile.log > And grepped for warning: > http://www.myxopho.be/glib-win64-warnings.log >

Re: GLib and 64-bit Windows

2007-03-03 Thread Jake Goulding
t the whole compilation output > listing up on the web somewhere.) > > --tml > ___ > gtk-devel-list mailing list > gtk-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-devel-list > > -- JAKE GOULD

Re: GLib and 64-bit Windows

2007-03-02 Thread Jake Goulding
ion was added with win64 in mind but not > tested at that time. It probably needs to be an int64 there. > > >> There are whole piles of warnings about signed/unsigned comparisons and >> type size issues: >> >> warning C4311: 'type cast' : pointer trunc

Re: GLib and 64-bit Windows

2007-03-02 Thread Jake Goulding
Ah, I guess I forgot to mention my attack plan here... I am working off of the latest stable version (2.12.9) as we will want the most stable for our product. I figure that I can apply most (if not all) of the changes to the trunk. After I get the stable version, I'll probably give a swing a

Re: GLib and 64-bit Windows

2007-03-02 Thread Jake Goulding
> > I think I have made some progress... at least the following libraries > > have been built: > > > build/win32/dirent/dirent.lib > > glib/gnulib/gnulib.lib > > (These are just auxiliary libraries that are linked in the glib DLL.) > Right, but are nonetheless needed for the rest of glib.

Re: GLib and 64-bit Windows

2007-03-02 Thread Jake Goulding
running each of the test executables in the tests directory and getting a 0 exit code for each a reasonable sanity check that everything compiled correctly and is working? -- JAKE GOULDING Software Engineer [EMAIL PROTECTED] Viví­simo [Search Done Right™] 1710 Murray Avenue Pittsburgh, PA

Re: GLib and 64-bit Windows

2007-03-01 Thread Jake Goulding
s to fix, which could be merged to trunk but much less > to glib-2-8. > > Maybe I am just being dense here, but am I right in interpreting this to mean: if I fix things to get a 64-bit build, those fixes could more easily be merged back into the trunk, where as they would be less like

GLib and 64-bit Windows

2007-03-01 Thread Jake Goulding
Hey all, i am trying to compile glib-2.8.6 (an older version, I know...) under Windows Server 2003 64-bit. I hit the following issues: gbacktrace.c(192) : error C2065: 'SIGTRAP' : undeclared identifier This is caused by an if/else fallthrough in gbacktrace.h. Adding the following lines skipped

Re: Glib-Windows Compilation Issues

2006-03-20 Thread Jake Goulding
rted', but any help is appreciated! Thanks again! -jake Hans Breuer wrote: On 17.03.2006 22:40, Jake Goulding wrote: Hey all: I've had some trouble in compiling and subsequently using glib (2.8.6) on a Windows machine. I am building using nmake and the MSVC toolset. My proced

Glib-Windows Compilation Issues

2006-03-17 Thread Jake Goulding
Hey all: I've had some trouble in compiling and subsequently using glib (2.8.6) on a Windows machine. I am building using nmake and the MSVC toolset. My procedure is such: unpack glib into a directory containing gettext and libiconv. cd build/win32/dirent nmake -f makefile.msc cd ../../../ nm